downloadr 0.0.6 → 0.0.7

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 +11 -10
  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: 0282ece7dce13fca4af0eb16c968442a775a698c
4
- data.tar.gz: cc1bc163611167a053eb6261e4651c3c3c96b65f
3
+ metadata.gz: e8674f3d05f731b6a6df64f6184f55a1ee46d8d9
4
+ data.tar.gz: 2ad725917e8841cea078533915b4544d25676c98
5
5
  SHA512:
6
- metadata.gz: 3e61b1d93f87c1548cff06ae2452f9de38e2509400bff5ad103d0e6d63e72d176d085724c505538f0afcb1184091738d03d4f1da57b3740edfbf54400a94cddb
7
- data.tar.gz: ff062bf0d3f741c82d6e22c02e03a19a0aa4b673ced9a7f64be60898ab65d44428510e6c449917942b389636037341a863aeb80a5c0b36cf094772291921001e
6
+ metadata.gz: ef5016c4424d01236aaac26e1d70a6c54900e24498be0cb84b2d559ee0b376b99faceb4f2eb9518c48ad40ece75b7f45f2801151fee2da1429876e625ec40388
7
+ data.tar.gz: af136a5fe6808c172d3e0592d703f4a6939b3678d09451c927b81e2d4a6d0de3b76b0f17c2a94dd9ceaa150024fd35356a244ec2d4a0d57d904b16ae5cf3a6f2
data/Rakefile CHANGED
@@ -18,6 +18,9 @@ def clean_up
18
18
  Dir.glob("*.lock").each { |f| File.unlink(f) }
19
19
  end
20
20
 
21
+ require 'downloadr/version'
22
+ version = Downloadr::VERSION
23
+
21
24
  desc "Bump the Gemspec Version"
22
25
  task :bump do
23
26
  version_string_match = File.read('lib/downloadr/version.rb').match(/VERSION='(\d+\.\d+\.)(\d+)'/)
@@ -25,38 +28,36 @@ task :bump do
25
28
  version_prefix = version_string_match[1]
26
29
  existing_patch_version = version_string_match[2]
27
30
  new_patch_version = (existing_patch_version.to_i + 1).to_s
28
- new_version = version_prefix + new_patch_version
31
+ version = version_prefix + new_patch_version
29
32
 
30
33
  File.open('lib/downloadr/version.rb', 'w') do |f|
31
34
  f.puts "module Downloadr\n"
32
- f.puts " VERSION='#{new_version}'\n"
35
+ f.puts " VERSION='#{version}'\n"
33
36
  f.puts "end"
34
37
  end
35
38
 
36
- puts "[+] Bumping Downloadr version #{new_version}"
39
+ puts "[+] Bumping Downloadr version #{version}"
37
40
  puts `git add lib/downloadr/version.rb`
38
- puts `git commit -a -m "Bumped Gem version to #{new_version}"`
41
+ puts `git commit -a -m "Bumped Gem version to #{version}"`
39
42
  puts `git push origin master`
40
43
  end
41
44
 
42
- require 'downloadr/version'
43
-
44
45
  desc "Build the gem"
45
46
  task :build do
46
- puts "[+] Building Downloadr version #{Downloadr::VERSION}"
47
+ puts "[+] Building Downloadr version #{version}"
47
48
  puts `gem build downloadr.gemspec`
48
49
  end
49
50
 
50
51
  desc "Publish the gem"
51
52
  task :publish do
52
- puts "[+] Publishing Downloadr version #{Downloadr::VERSION}"
53
+ puts "[+] Publishing Downloadr version #{version}"
53
54
  Dir.glob("*.gem").each { |f| puts `gem push #{f}`}
54
55
  end
55
56
 
56
57
  desc "Tag the release"
57
58
  task :tag do
58
- puts "[+] Tagging Downloadr version #{Downloadr::VERSION}"
59
- `git tag #{Downloadr::VERSION}`
59
+ puts "[+] Tagging Downloadr version #{version}"
60
+ `git tag #{version}`
60
61
  `git push --tags`
61
62
  end
62
63
 
@@ -1,3 +1,3 @@
1
1
  module Downloadr
2
- VERSION='0.0.6'
2
+ VERSION='0.0.7'
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.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Claudius