downloadr 0.0.19 → 0.0.34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +2 -53
- 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: dfe988836e279572524ff4450eed52798a0a3729
|
4
|
+
data.tar.gz: 70cad4438540ad5c0de3022a1312f5a6994f022a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 586691fc503c624f624d23ff4566e78f2ee202d4095ddf8b8f1440ac6a141cbabe08b510982c88e4c102e3df8e8bd9df39f1981dcbf0593878fc17b4edf2812c
|
7
|
+
data.tar.gz: d6323959eb60f1e903803b3fcca10227e071d70068f637681d9ff353d96e032cbf336ba6d4be6b1debeefbdcebd4867baee5fd42c28041fb5d76aa6bfc75fbbe
|
data/Rakefile
CHANGED
@@ -7,6 +7,7 @@ require 'rspec/core'
|
|
7
7
|
require 'rspec/core/rake_task'
|
8
8
|
|
9
9
|
$:.unshift File.join(File.dirname(__FILE__), "lib")
|
10
|
+
require 'downloadr/version'
|
10
11
|
|
11
12
|
task :default => :spec
|
12
13
|
|
@@ -18,56 +19,4 @@ def clean_up
|
|
18
19
|
Dir.glob("*.lock").each { |f| File.unlink(f) }
|
19
20
|
end
|
20
21
|
|
21
|
-
|
22
|
-
version_string_match = File.read('lib/downloadr/version.rb').match(/VERSION='(\d+\.\d+\.)(\d+)'/)
|
23
|
-
|
24
|
-
version_prefix = version_string_match[1]
|
25
|
-
existing_patch_version = version_string_match[2]
|
26
|
-
new_patch_version = (existing_patch_version.to_i + 1).to_s
|
27
|
-
new_version = version_prefix + new_patch_version
|
28
|
-
|
29
|
-
File.open('lib/downloadr/version.rb', 'w') do |f|
|
30
|
-
f.puts "module Downloadr\n"
|
31
|
-
f.puts " VERSION='#{new_version}'\n"
|
32
|
-
f.puts "end"
|
33
|
-
end
|
34
|
-
|
35
|
-
puts "[+] Bumping Downloadr version #{new_version}"
|
36
|
-
puts `git add lib/downloadr/version.rb`
|
37
|
-
puts `git commit -a -m "Bumped Gem version to #{new_version}"`
|
38
|
-
puts `git push origin master`
|
39
|
-
end
|
40
|
-
|
41
|
-
desc "Build the gem"
|
42
|
-
task :build do
|
43
|
-
require 'downloadr/version.rb'
|
44
|
-
puts "[+] Building Downloadr version #{Downloadr::VERSION}"
|
45
|
-
puts `gem build downloadr.gemspec`
|
46
|
-
end
|
47
|
-
|
48
|
-
desc "Publish the gem"
|
49
|
-
task :publish do
|
50
|
-
require 'downloadr/version.rb'
|
51
|
-
puts "[+] Publishing Downloadr version #{Downloadr::VERSION}"
|
52
|
-
Dir.glob("*.gem").each { |f| puts `gem push #{f}`}
|
53
|
-
end
|
54
|
-
|
55
|
-
desc "Tag the release"
|
56
|
-
task :tag do
|
57
|
-
require 'downloadr/version.rb'
|
58
|
-
puts "[+] Tagging Downloadr version #{Downloadr::VERSION}"
|
59
|
-
puts `git tag #{Downloadr::VERSION}`
|
60
|
-
puts `git push --tags`
|
61
|
-
end
|
62
|
-
|
63
|
-
desc "Perform an end-to-end release of the gem"
|
64
|
-
task :release do
|
65
|
-
clean_up() # Clean up before we start
|
66
|
-
bump_minor_version()
|
67
|
-
|
68
|
-
require 'downloadr/version.rb'
|
69
|
-
Rake::Task[:build].execute
|
70
|
-
Rake::Task[:tag].execute
|
71
|
-
Rake::Task[:publish].execute
|
72
|
-
clean_up() # Clean up after we complete
|
73
|
-
end
|
22
|
+
Dir.glob('tasks/*.rake').each { |r| import r }
|
data/lib/downloadr/version.rb
CHANGED