Skip to content

Commit c1d47e8

Browse files
committed
Fixed version in ruby sample.\n\nAdded real rakefile to ruby sample.
1 parent de014ac commit c1d47e8

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

samples/helloworld_ruby/Rakefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
11
require 'bundler/gem_tasks'
2+
require '${{=project.name=}}/version'
3+
4+
task :default => [:build]
5+
6+
task :build => [:test] do
7+
system("gem build ${{=project.name=}}.gemspec")
8+
end
9+
10+
task :test => [:prepare] do
11+
system("bundle exec rspec")
12+
end
13+
14+
task :push => [:build] do
15+
system("gem inabox ./${{=project.name=}}-#{${{=gem.module[::]=}}::VERSION}.gem")
16+
end
17+
18+
task :prepare do
19+
system("bundle install")
20+
end

samples/helloworld_ruby/lib/${{=project.name=}}/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ module ${{value}}
66
end
77
${{=;gem.module=}}
88

9-
${{=gem.module[::]=}}.VERSION = '1.0.0'
9+
${{=gem.module[::]=}}::VERSION = '1.0.0'

0 commit comments

Comments
 (0)