special_delivery 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ff870585f8a864cf089e9c2f25e3c07a04467b27
4
+ data.tar.gz: 6ffd864d2ffe19a254a03a4d3466c15568cb1c70
5
+ SHA512:
6
+ metadata.gz: 6b0855e6a6af6e187d494ad2bc43af398546226de2be31ff42e5cfeb90cc3610f5d8be449532cc36096d3efb62de3b7c2436ef286e9c155e61d0553c1d2bb549
7
+ data.tar.gz: 30d29f41156710d98dffe2eebb9f3450f70f079c9d24d69298717ed6f5d7b3c5c8e975465d0877f472a6ed537d668d7f30904f4aaa1396788b519663f87e8895
@@ -3,25 +3,43 @@ require 'bundler/gem_helper'
3
3
  module SpecialDelivery
4
4
  class GemHelper < ::Bundler::GemHelper
5
5
  def install
6
+ built_gem_path = nil
7
+
6
8
  desc "Build #{name}-#{version}.gem into the pkg directory."
7
9
  task 'build' do
8
- build_gem
10
+ built_gem_path = build_gem
9
11
  end
10
12
 
11
13
  desc "Build and install #{name}-#{version}.gem into system gems."
12
- task 'install' do
13
- install_gem
14
+ task 'install' => 'build' do
15
+ install_gem(built_gem_path)
16
+ end
17
+
18
+ desc "Create tag #{version_tag} and build and push #{name}-#{version}.gem to Rubygems"
19
+ task 'release' => ['build', 'release:guard_clean',
20
+ 'release:source_control_push', 'release:geminabox_push'] do
21
+ end
22
+
23
+ task 'release:guard_clean' do
24
+ guard_clean
25
+ end
26
+
27
+ task 'release:source_control_push' do
28
+ tag_version { git_push } unless already_tagged?
29
+ end
30
+
31
+ task 'release:geminabox_push' do
32
+ geminabox_push(built_gem_path) if gem_push?
14
33
  end
15
34
 
16
- desc "Create tag #{version_tag} and build and push #{name}-#{version}.gem to your geminabox server"
17
- task 'release' do
18
- release_gem
35
+ task 'release:rubygem_push' do
36
+ rubygem_push(built_gem_path) if gem_push?
19
37
  end
20
38
 
21
- ::Bundler::GemHelper.instance = self
39
+ GemHelper.instance = self
22
40
  end
23
41
 
24
- def rubygem_push(path)
42
+ def geminabox_push(path)
25
43
  if Pathname.new("~/.gem/geminabox").expand_path.exist?
26
44
  sh("gem inabox #{path}")
27
45
  ::Bundler.ui.confirm "Pushed #{name} #{version} to your geminabox server."
@@ -1,3 +1,3 @@
1
1
  module SpecialDelivery
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
@@ -4,19 +4,19 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'special_delivery/version'
5
5
 
6
6
  Gem::Specification.new do |gem|
7
- gem.name = "special_delivery"
7
+ gem.name = 'special_delivery'
8
8
  gem.version = SpecialDelivery::VERSION
9
- gem.authors = ["Adam Hutchison"]
10
- gem.email = ["liveh2o@gmail.com"]
9
+ gem.authors = ['Adam Hutchison']
10
+ gem.email = ['liveh2o@gmail.com']
11
11
  gem.description = %q{Use Bundler's rake tasks to release to your geminabox server.}
12
12
  gem.summary = gem.description
13
- gem.homepage = "http://github.com/liveh2o/special_delivery"
13
+ gem.homepage = 'http://github.com/liveh2o/special_delivery'
14
14
 
15
15
  gem.files = `git ls-files`.split($/)
16
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
- gem.require_paths = ["lib"]
18
+ gem.require_paths = ['lib']
19
19
 
20
- gem.add_dependency "bundler"
21
- gem.add_dependency "geminabox"
20
+ gem.add_dependency 'bundler', '~> 1.8'
21
+ gem.add_dependency 'geminabox'
22
22
  end
metadata CHANGED
@@ -1,46 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: special_delivery
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
5
- prerelease:
4
+ version: 1.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Adam Hutchison
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-12-22 00:00:00.000000000 Z
11
+ date: 2015-02-19 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: '0'
19
+ version: '1.8'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '0'
26
+ version: '1.8'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: geminabox
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  description: Use Bundler's rake tasks to release to your geminabox server.
@@ -50,7 +45,7 @@ executables: []
50
45
  extensions: []
51
46
  extra_rdoc_files: []
52
47
  files:
53
- - .gitignore
48
+ - ".gitignore"
54
49
  - Gemfile
55
50
  - LICENSE.txt
56
51
  - README.md
@@ -62,26 +57,25 @@ files:
62
57
  - special_delivery.gemspec
63
58
  homepage: http://github.com/liveh2o/special_delivery
64
59
  licenses: []
60
+ metadata: {}
65
61
  post_install_message:
66
62
  rdoc_options: []
67
63
  require_paths:
68
64
  - lib
69
65
  required_ruby_version: !ruby/object:Gem::Requirement
70
- none: false
71
66
  requirements:
72
- - - ! '>='
67
+ - - ">="
73
68
  - !ruby/object:Gem::Version
74
69
  version: '0'
75
70
  required_rubygems_version: !ruby/object:Gem::Requirement
76
- none: false
77
71
  requirements:
78
- - - ! '>='
72
+ - - ">="
79
73
  - !ruby/object:Gem::Version
80
74
  version: '0'
81
75
  requirements: []
82
76
  rubyforge_project:
83
- rubygems_version: 1.8.24
77
+ rubygems_version: 2.4.5
84
78
  signing_key:
85
- specification_version: 3
79
+ specification_version: 4
86
80
  summary: Use Bundler's rake tasks to release to your geminabox server.
87
81
  test_files: []