downloadr 0.0.19 → 0.0.34

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +2 -53
  3. data/lib/downloadr/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b00cbf8647b2e8d9f40cf558acd7390a48e1d2e1
4
- data.tar.gz: f7d7730586e795b33ba6b28b2f01b418767f413a
3
+ metadata.gz: dfe988836e279572524ff4450eed52798a0a3729
4
+ data.tar.gz: 70cad4438540ad5c0de3022a1312f5a6994f022a
5
5
  SHA512:
6
- metadata.gz: 401a66cbe6b1441bb45278bd38be448f3e1efd80adcf9064b43308462691004b94ac537c46613b1c5c914e8539f7376de1fdb136461caab804f39f4676b7d96e
7
- data.tar.gz: 2ad7f76109fc0b253548a97605ff57a5d6edbbacd1c975b1cba0271faad62b6898aa826b1f37a456966f2407e30113a24a1b3a0f253186582cd40e717c4d2bf5
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
- def bump_minor_version
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 }
@@ -1,3 +1,3 @@
1
1
  module Downloadr
2
- VERSION='0.0.19'
2
+ VERSION='0.0.34'
3
3
  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.19
4
+ version: 0.0.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Claudius