downloadr 0.0.40 → 0.0.41
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/downloadr/version.rb +1 -1
- data/tasks/auto_release.rake +9 -0
- data/tasks/build.rake +6 -0
- data/tasks/bump_version.rake +20 -0
- data/tasks/publish.rake +6 -0
- data/tasks/tag.rake +7 -0
- metadata +6 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66f92138bfe0777eade52b4c6ba7e77feec72968
|
4
|
+
data.tar.gz: 55f1a17d29ff5d9ef2df47ea6f6df788fddff1c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a9651270fee6b3c24e15b61bee1e5de2bb3835dd315269cb562ffe9221e0b93e83810a0752b909b39afcfd4f1f6d53840dcda754fa1945eda70dea968d006fd
|
7
|
+
data.tar.gz: 731bf14deef18f8f04070d90ad5eb04d52c5c3371589d059652d1829f62b5516380fdef68aae0922b660570c0e3cd259d181d6e6e113b02b3c2c2ac6ac0cd0f1
|
data/lib/downloadr/version.rb
CHANGED
@@ -0,0 +1,9 @@
|
|
1
|
+
desc "Perform an end-to-end release of the gem"
|
2
|
+
task :auto_release do
|
3
|
+
clean_up() # Clean up before we start
|
4
|
+
Rake::Task[:bump_version].execute
|
5
|
+
Rake::Task[:build].execute
|
6
|
+
Rake::Task[:tag].execute
|
7
|
+
Rake::Task[:publish].execute
|
8
|
+
clean_up() # Clean up after we complete
|
9
|
+
end
|
data/tasks/build.rake
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
desc "Bump the gem's version"
|
2
|
+
task :bump_version do
|
3
|
+
version_string_match = File.read('lib/downloadr/version.rb').match(/VERSION='(\d+\.\d+\.)(\d+)'/)
|
4
|
+
|
5
|
+
version_prefix = version_string_match[1]
|
6
|
+
existing_patch_version = version_string_match[2]
|
7
|
+
new_patch_version = (existing_patch_version.to_i + 1).to_s
|
8
|
+
new_version = version_prefix + new_patch_version
|
9
|
+
|
10
|
+
File.open('lib/downloadr/version.rb', 'w') do |f|
|
11
|
+
f.puts "module Downloadr\n"
|
12
|
+
f.puts " VERSION='#{new_version}'\n"
|
13
|
+
f.puts "end"
|
14
|
+
end
|
15
|
+
|
16
|
+
puts "[+] Bumping Downloadr version #{new_version}"
|
17
|
+
puts `git add lib/downloadr/version.rb`
|
18
|
+
puts `git commit -a -m "Bumped Gem version to #{new_version}"`
|
19
|
+
puts `git push origin master`
|
20
|
+
end
|
data/tasks/publish.rake
ADDED
data/tasks/tag.rake
ADDED
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.
|
4
|
+
version: 0.0.41
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Claudius
|
@@ -103,6 +103,11 @@ files:
|
|
103
103
|
- lib/downloadr/version.rb
|
104
104
|
- spec/downloadr/http_spec.rb
|
105
105
|
- spec/spec_helper.rb
|
106
|
+
- tasks/auto_release.rake
|
107
|
+
- tasks/build.rake
|
108
|
+
- tasks/bump_version.rake
|
109
|
+
- tasks/publish.rake
|
110
|
+
- tasks/tag.rake
|
106
111
|
homepage: https://github.com/claudijd/downloadr
|
107
112
|
licenses:
|
108
113
|
- MIT
|