downloadr 0.0.8 → 0.0.9

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 +16 -14
  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: 8fa50053570b70c9697de1d32e7bc09e4eff11ae
4
- data.tar.gz: 104238265127fe2d291470cc382ba5222e540ce9
3
+ metadata.gz: b23066715ef900d31e327a0a0be0af5e7eb375b2
4
+ data.tar.gz: 4d66570ae6a026c89700559eafba27110bb60758
5
5
  SHA512:
6
- metadata.gz: 861fcd3fc3a2acab063bf63a3a65ef775d4dd0b3f340f61a0a26592799a62925ef010400aa323e5f5ce384fad59d5b438061d587c4684d6dbc02ffe6e9f6f009
7
- data.tar.gz: 5f36f8946d49b016e5d3f8bed5cc9fee48ffe080f650b1913ddd142056dee381bea5c66f5dc2bbc16c71f484dbf8ce07611d5e69987ae33b729cd4b615944f8c
6
+ metadata.gz: 759e53a1ccc76fca310ca8f15706ae021c90375aa18d7b22002be223e8aa3bd4594a34eb7990b629ec1227e0c8ff42a5fa144d03acd8ec2f8b20bbe13d090abd
7
+ data.tar.gz: 3590c5057c8a216a4abc2b27c0b7ae8fdcdbe67a85db3dcb5cea568816d3d7e11f8963609cb5f4b8ff7b86ab3f410773afc37e257512cbcfacc4aa1968a6b1f8
data/Rakefile CHANGED
@@ -18,53 +18,55 @@ 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
-
24
- desc "Bump the Gemspec Version"
25
- task :bump do
21
+ def bump_minor_version
26
22
  version_string_match = File.read('lib/downloadr/version.rb').match(/VERSION='(\d+\.\d+\.)(\d+)'/)
27
23
 
28
24
  version_prefix = version_string_match[1]
29
25
  existing_patch_version = version_string_match[2]
30
26
  new_patch_version = (existing_patch_version.to_i + 1).to_s
31
- version = version_prefix + new_patch_version
27
+ new_version = version_prefix + new_patch_version
32
28
 
33
29
  File.open('lib/downloadr/version.rb', 'w') do |f|
34
30
  f.puts "module Downloadr\n"
35
- f.puts " VERSION='#{version}'\n"
31
+ f.puts " VERSION='#{new_version}'\n"
36
32
  f.puts "end"
37
33
  end
38
34
 
39
- puts "[+] Bumping Downloadr version #{version}"
35
+ puts "[+] Bumping Downloadr version #{new_version}"
40
36
  puts `git add lib/downloadr/version.rb`
41
- puts `git commit -a -m "Bumped Gem version to #{version}"`
37
+ puts `git commit -a -m "Bumped Gem version to #{new_version}"`
42
38
  puts `git push origin master`
43
39
  end
44
40
 
45
41
  desc "Build the gem"
46
42
  task :build do
47
- puts "[+] Building Downloadr version #{version}"
43
+ require 'downloadr/version.rb'
44
+ puts "[+] Building Downloadr version #{Downloadr::VERSION}"
48
45
  puts `gem build downloadr.gemspec`
49
46
  end
50
47
 
51
48
  desc "Publish the gem"
52
49
  task :publish do
53
- puts "[+] Publishing Downloadr version #{version}"
50
+ require 'downloadr/version.rb'
51
+ puts "[+] Publishing Downloadr version #{Downloadr::VERSION}"
54
52
  Dir.glob("*.gem").each { |f| puts `gem push #{f}`}
55
53
  end
56
54
 
57
55
  desc "Tag the release"
58
56
  task :tag do
59
- puts "[+] Tagging Downloadr version #{version}"
60
- `git tag #{version}`
57
+ require 'downloadr/version.rb'
58
+ puts "[+] Tagging Downloadr version #{Downloadr::VERSION}"
59
+ `git tag #{Downloadr::VERSION}`
61
60
  `git push --tags`
62
61
  end
63
62
 
64
63
  desc "Perform an end-to-end release of the gem"
65
64
  task :release do
66
65
  clean_up() # Clean up before we start
67
- Rake::Task[:bump].execute
66
+ bump_minor_version()
67
+
68
+ require 'downloadr/version.rb'
69
+
68
70
  Rake::Task[:build].execute
69
71
  Rake::Task[:tag].execute
70
72
  Rake::Task[:publish].execute
@@ -1,3 +1,3 @@
1
1
  module Downloadr
2
- VERSION='0.0.8'
2
+ VERSION='0.0.9'
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.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Claudius