downloadr 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +16 -14
- 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: b23066715ef900d31e327a0a0be0af5e7eb375b2
|
4
|
+
data.tar.gz: 4d66570ae6a026c89700559eafba27110bb60758
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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='#{
|
31
|
+
f.puts " VERSION='#{new_version}'\n"
|
36
32
|
f.puts "end"
|
37
33
|
end
|
38
34
|
|
39
|
-
puts "[+] Bumping Downloadr 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 #{
|
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
|
-
|
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
|
-
|
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
|
-
|
60
|
-
|
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
|
-
|
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
|
data/lib/downloadr/version.rb
CHANGED