downloadr 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +11 -10
- 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: e8674f3d05f731b6a6df64f6184f55a1ee46d8d9
|
4
|
+
data.tar.gz: 2ad725917e8841cea078533915b4544d25676c98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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='#{
|
35
|
+
f.puts " VERSION='#{version}'\n"
|
33
36
|
f.puts "end"
|
34
37
|
end
|
35
38
|
|
36
|
-
puts "[+] Bumping Downloadr 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 #{
|
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 #{
|
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 #{
|
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 #{
|
59
|
-
`git tag #{
|
59
|
+
puts "[+] Tagging Downloadr version #{version}"
|
60
|
+
`git tag #{version}`
|
60
61
|
`git push --tags`
|
61
62
|
end
|
62
63
|
|
data/lib/downloadr/version.rb
CHANGED