downloadr 0.0.36 → 0.0.37
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +20 -0
- data/lib/downloadr/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea0fd10063d6dbb7a43827dd3acf4f7f89c43dee
|
4
|
+
data.tar.gz: 82ccdb676a1371e5cb7d3e33ec54660e8e83fe91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 638c3e3dc8084244f79dbcf785653d2da8246d7ce264e1ba8c1d7f3cbcab6b2589cff6d28647b623f1e26f14f95827eeca7d343820a6f7ca91f9bffcb4800565
|
7
|
+
data.tar.gz: f77972d284854b78820d8f74812a8e38d534c5da4083efbdda7fb94fd198fdd62c06d1818685ceab60c57353f08816ff1555254ca3a9ac6891160e49decf4f69
|
data/Rakefile
CHANGED
@@ -19,4 +19,24 @@ def clean_up
|
|
19
19
|
Dir.glob("*.lock").each { |f| File.unlink(f) }
|
20
20
|
end
|
21
21
|
|
22
|
+
def bump_version
|
23
|
+
version_string_match = File.read('lib/downloadr/version.rb').match(/VERSION='(\d+\.\d+\.)(\d+)'/)
|
24
|
+
|
25
|
+
version_prefix = version_string_match[1]
|
26
|
+
existing_patch_version = version_string_match[2]
|
27
|
+
new_patch_version = (existing_patch_version.to_i + 1).to_s
|
28
|
+
new_version = version_prefix + new_patch_version
|
29
|
+
|
30
|
+
File.open('lib/downloadr/version.rb', 'w') do |f|
|
31
|
+
f.puts "module Downloadr\n"
|
32
|
+
f.puts " VERSION='#{new_version}'\n"
|
33
|
+
f.puts "end"
|
34
|
+
end
|
35
|
+
|
36
|
+
puts "[+] Bumping Downloadr version #{new_version}"
|
37
|
+
puts `git add lib/downloadr/version.rb`
|
38
|
+
puts `git commit -a -m "Bumped Gem version to #{new_version}"`
|
39
|
+
puts `git push origin master`
|
40
|
+
end
|
41
|
+
|
22
42
|
Dir.glob('tasks/*.rake').each { |r| import r }
|
data/lib/downloadr/version.rb
CHANGED