kibo 0.4.6 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/kibo/config.rb +0 -2
- data/lib/kibo/version.rb +21 -1
- data/man/kibo.1 +1 -1
- data/man/kibo.1.html +1 -1
- data/tasks/version.rake +15 -0
- metadata +3 -2
data/lib/kibo/config.rb
CHANGED
data/lib/kibo/version.rb
CHANGED
@@ -1,3 +1,23 @@
|
|
1
1
|
module Kibo
|
2
|
-
VERSION = "0.4.
|
2
|
+
VERSION = "0.4.8"
|
3
|
+
# Note: Keep the '"' string characters here!
|
4
|
+
end
|
5
|
+
|
6
|
+
if $0 == __FILE__
|
7
|
+
|
8
|
+
def next_version
|
9
|
+
parts = Kibo::VERSION.split(".")
|
10
|
+
parts[parts.length - 1] = parts[parts.length - 1].to_i + 1
|
11
|
+
parts.join(".")
|
12
|
+
end
|
13
|
+
|
14
|
+
rex = Regexp.new("VERSION.*" + Regexp.escape(Kibo::VERSION.inspect))
|
15
|
+
|
16
|
+
lines = File.readlines(__FILE__).map do |line|
|
17
|
+
next line unless line =~ rex
|
18
|
+
" VERSION = #{next_version.inspect}\n"
|
19
|
+
end
|
20
|
+
|
21
|
+
puts lines.join
|
22
|
+
|
3
23
|
end
|
data/man/kibo.1
CHANGED
data/man/kibo.1.html
CHANGED
data/tasks/version.rake
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
desc "Bump the version number"
|
2
|
+
task :bump do
|
3
|
+
version_file = File.expand_path("../../lib/kibo/version.rb", __FILE__)
|
4
|
+
sh "ruby #{version_file} > #{version_file}.new"
|
5
|
+
sh "mv #{version_file}.new #{version_file}"
|
6
|
+
end
|
7
|
+
|
8
|
+
desc "Bump the version number and release the gem"
|
9
|
+
task :publish do
|
10
|
+
sh "rake bump"
|
11
|
+
version_file = File.expand_path("../../lib/kibo/version.rb", __FILE__)
|
12
|
+
sh "git commit -m 'automatically bumped version number' #{version_file}"
|
13
|
+
sh "rake release"
|
14
|
+
end
|
15
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kibo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -164,6 +164,7 @@ files:
|
|
164
164
|
- man/kibo.1.markdown
|
165
165
|
- man/kibo.1.ronn
|
166
166
|
- tasks/doc.rake
|
167
|
+
- tasks/version.rake
|
167
168
|
- test/Kibofile
|
168
169
|
- test/kibo_test.rb
|
169
170
|
- test/test_helper.rb
|
@@ -181,7 +182,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
181
182
|
version: '0'
|
182
183
|
segments:
|
183
184
|
- 0
|
184
|
-
hash:
|
185
|
+
hash: 3344497689154052451
|
185
186
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
186
187
|
none: false
|
187
188
|
requirements:
|