downloadr 0.0.36 → 0.0.37

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +20 -0
  3. data/lib/downloadr/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d78bfbea59a9568a15d38d68a098cd1c41ff77eb
4
- data.tar.gz: 9cffe659608ae729c3d45a664c89d5334810533a
3
+ metadata.gz: ea0fd10063d6dbb7a43827dd3acf4f7f89c43dee
4
+ data.tar.gz: 82ccdb676a1371e5cb7d3e33ec54660e8e83fe91
5
5
  SHA512:
6
- metadata.gz: 6a94e67562a2f6ef840c7ecade61d54db62e768f8094d2af1b5fc6570e89ba1df4eb685c367bb7e2fe4735b24f2c02891b154d519ff5f2a078be8cd2324f3516
7
- data.tar.gz: 34ad687c59b9a7bb73b7c200e819d163b53790327f7cbcf639f1cc011b8a4d51cd6892719b9132e45c04f4e3d28ac643f7c759dcb38eb9444b4eb17dcf89f338
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 }
@@ -1,3 +1,3 @@
1
1
  module Downloadr
2
- VERSION='0.0.36'
2
+ VERSION='0.0.37'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: downloadr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.36
4
+ version: 0.0.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Claudius