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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a91095be0b5a3b3931abf0992134ab558ccf158
4
- data.tar.gz: 31224b5d2952682fbb52be75f359d5c8c2d0e1e8
3
+ metadata.gz: 66f92138bfe0777eade52b4c6ba7e77feec72968
4
+ data.tar.gz: 55f1a17d29ff5d9ef2df47ea6f6df788fddff1c3
5
5
  SHA512:
6
- metadata.gz: 7ed253461fcf6a6885aec229d0fd349a3d0e4ca87fc0af509b960dc2dd5e35d540769f246d385bbd6094e2da5de9125e57c1d1638e4136beb05525a33c99e4ad
7
- data.tar.gz: f0b224157012254542d347d5bb74f2fc6c6752251826dcf6707d66b6400dd964dccb629980e6a88e99f404ee0d426776a84821996b26ef4e89c43394f19a0ad3
6
+ metadata.gz: 8a9651270fee6b3c24e15b61bee1e5de2bb3835dd315269cb562ffe9221e0b93e83810a0752b909b39afcfd4f1f6d53840dcda754fa1945eda70dea968d006fd
7
+ data.tar.gz: 731bf14deef18f8f04070d90ad5eb04d52c5c3371589d059652d1829f62b5516380fdef68aae0922b660570c0e3cd259d181d6e6e113b02b3c2c2ac6ac0cd0f1
@@ -1,3 +1,3 @@
1
1
  module Downloadr
2
- VERSION='0.0.40'
2
+ VERSION='0.0.41'
3
3
  end
@@ -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
@@ -0,0 +1,6 @@
1
+ desc "Build the gem"
2
+ task :build do
3
+ load 'downloadr/version.rb'
4
+ puts "[+] Building Downloadr version #{Downloadr::VERSION}"
5
+ puts `gem build downloadr.gemspec`
6
+ end
@@ -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
@@ -0,0 +1,6 @@
1
+ desc "Publish the gem"
2
+ task :publish do
3
+ load 'downloadr/version.rb'
4
+ puts "[+] Publishing Downloadr version #{Downloadr::VERSION}"
5
+ Dir.glob("*.gem").each { |f| puts `gem push #{f}`}
6
+ end
@@ -0,0 +1,7 @@
1
+ desc "Tag the release"
2
+ task :tag do
3
+ load 'downloadr/version.rb'
4
+ puts "[+] Tagging Downloadr version #{Downloadr::VERSION}"
5
+ puts `git tag #{Downloadr::VERSION}`
6
+ puts `git push --tags`
7
+ 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.40
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