paratrooper 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- paratrooper (1.3.1)
4
+ paratrooper (1.3.2)
5
5
  heroku-api (~> 0.3)
6
6
  netrc (~> 0.7)
7
7
  rendezvous (~> 0.0.1)
@@ -8,7 +8,7 @@ module Paratrooper
8
8
  #
9
9
  class Deploy
10
10
  attr_reader :app_name, :notifiers, :system_caller, :heroku, :tag_name,
11
- :match_tag, :protocol, :repo_host, :repo_name, :deployment_host
11
+ :match_tag, :protocol, :deployment_host
12
12
 
13
13
  # Public: Initializes a Deploy
14
14
  #
@@ -26,10 +26,6 @@ module Paratrooper
26
26
  # commands (optional).
27
27
  # :protocol - String web protocol to be used when pinging
28
28
  # application (optional, default: 'http').
29
- # :repo_host - String host name of of git repository
30
- # (optional, default: 'github.com').
31
- # :repo_name - String repository name (optional,
32
- # default: '#app_name).
33
29
  # :deployment_host - String host name to be used in git URL
34
30
  # (optional, default: 'heroku.com').
35
31
  def initialize(app_name, options = {})
@@ -40,8 +36,6 @@ module Paratrooper
40
36
  @match_tag = options[:match_tag_to] || 'master'
41
37
  @system_caller = options[:system_caller] || SystemCaller.new
42
38
  @protocol = options[:protocol] || 'http'
43
- @repo_host = options[:repo_host] || 'github.com'
44
- @repo_name = options[:repo_name] || app_name
45
39
  @deployment_host = options[:deployment_host] || 'heroku.com'
46
40
  end
47
41
 
@@ -79,7 +73,7 @@ module Paratrooper
79
73
  unless tag_name.nil? || tag_name.empty?
80
74
  notify(:update_repo_tag)
81
75
  system_call "git tag #{tag_name} #{match_tag} -f"
82
- system_call "git push -f #{repo_remote} #{tag_name}"
76
+ system_call "git push -f origin #{tag_name}"
83
77
  end
84
78
  end
85
79
 
@@ -147,7 +141,6 @@ module Paratrooper
147
141
  {
148
142
  app_name: app_name,
149
143
  app_url: app_url,
150
- repo_remote: repo_remote,
151
144
  deployment_remote: deployment_remote,
152
145
  tag_name: tag_name,
153
146
  match_tag: match_tag
@@ -162,10 +155,6 @@ module Paratrooper
162
155
  git_remote(deployment_host, app_name)
163
156
  end
164
157
 
165
- def repo_remote
166
- git_remote(repo_host, repo_name)
167
- end
168
-
169
158
  # Internal: Calls commands meant to go to system
170
159
  #
171
160
  # call - String version of system command
@@ -1,3 +1,3 @@
1
1
  module Paratrooper
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
3
3
  end
@@ -71,39 +71,6 @@ describe Paratrooper::Deploy do
71
71
  end
72
72
  end
73
73
 
74
- describe "repo_host" do
75
- context "accepts :repo_host" do
76
- let(:options) { { repo_host: 'repo_host_name' } }
77
-
78
- it "and responds to #repo_host" do
79
- expect(deployer.repo_host).to eq('repo_host_name')
80
- end
81
- end
82
-
83
- context "no value passed" do
84
- it "and responds to #repo_host with default value" do
85
- expect(deployer.repo_host).to eq('github.com')
86
- end
87
- end
88
- end
89
-
90
- describe "repo_name" do
91
- context "accepts :repo_name" do
92
- let(:options) { { repo_name: 'repo_name_name' } }
93
-
94
- it "and responds to #repo_name" do
95
- expect(deployer.repo_name).to eq('repo_name_name')
96
- end
97
- end
98
-
99
- context "no value passed" do
100
- let(:app_name) { 'REPO_MAN' }
101
- it "and responds to #repo_name with default value" do
102
- expect(deployer.repo_name).to eq('REPO_MAN')
103
- end
104
- end
105
- end
106
-
107
74
  context "accepts :deployment_host" do
108
75
  let(:options) { { deployment_host: 'host_name' } }
109
76
 
@@ -169,7 +136,7 @@ describe Paratrooper::Deploy do
169
136
  end
170
137
 
171
138
  it 'pushes git tag' do
172
- expected = 'git push -f git@github.com:app.git awesome'
139
+ expected = 'git push -f origin awesome'
173
140
  system_caller.should_receive(:execute).with(expected)
174
141
  deployer.update_repo_tag
175
142
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paratrooper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -112,18 +112,10 @@ description: Library to create task for deployment to Heroku
112
112
  email:
113
113
  - matt.polito@gmail.com
114
114
  - bthesorceror@gmail.com
115
- executables:
116
- - autospec
117
- - coderay
118
- - htmldiff
119
- - ldiff
120
- - pry
121
- - rake
122
- - rspec
115
+ executables: []
123
116
  extensions: []
124
117
  extra_rdoc_files: []
125
118
  files:
126
- - .bundle/config
127
119
  - .gitignore
128
120
  - .ruby-version
129
121
  - Gemfile
@@ -131,13 +123,6 @@ files:
131
123
  - LICENSE.txt
132
124
  - README.md
133
125
  - Rakefile
134
- - bin/autospec
135
- - bin/coderay
136
- - bin/htmldiff
137
- - bin/ldiff
138
- - bin/pry
139
- - bin/rake
140
- - bin/rspec
141
126
  - lib/paratrooper.rb
142
127
  - lib/paratrooper/deploy.rb
143
128
  - lib/paratrooper/heroku_wrapper.rb
@@ -166,18 +151,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
166
151
  - - ! '>='
167
152
  - !ruby/object:Gem::Version
168
153
  version: '0'
169
- segments:
170
- - 0
171
- hash: 2949666579820194565
172
154
  required_rubygems_version: !ruby/object:Gem::Requirement
173
155
  none: false
174
156
  requirements:
175
157
  - - ! '>='
176
158
  - !ruby/object:Gem::Version
177
159
  version: '0'
178
- segments:
179
- - 0
180
- hash: 2949666579820194565
181
160
  requirements: []
182
161
  rubyforge_project:
183
162
  rubygems_version: 1.8.23
data/.bundle/config DELETED
@@ -1,2 +0,0 @@
1
- ---
2
- BUNDLE_BIN: bin
data/bin/autospec DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'autospec' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('rspec-core', 'autospec')
data/bin/coderay DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'coderay' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('coderay', 'coderay')
data/bin/htmldiff DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'htmldiff' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('diff-lcs', 'htmldiff')
data/bin/ldiff DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'ldiff' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('diff-lcs', 'ldiff')
data/bin/pry DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'pry' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('pry', 'pry')
data/bin/rake DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'rake' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('rake', 'rake')
data/bin/rspec DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'rspec' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('rspec-core', 'rspec')