jumpup-heroku 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1138bd5883940e7d6c8ebbe05eeed5168a684078
4
- data.tar.gz: 7222d1259b990b16981e38ca4e008f9776b625dc
3
+ metadata.gz: cf991ff339b56efcc4409daa1ac095316681651b
4
+ data.tar.gz: 90f2a0d694367ac749ff7185d6132e27e3d79c56
5
5
  SHA512:
6
- metadata.gz: 74e2825fe8e235c3258f3edb51de1e977bff25b1edee1b32d1770a5139cfa5e350de7e30470adfa155119b82c0fda947864911f2449ed17ddb404ae69fdfb260
7
- data.tar.gz: a2bf33ba4f153b5469460f894861d29c6597689f0006464d90ac847aaca9fe1878901f9bda99f7e153e4a0a27b8e4038dfd89bd66ee3c3f3a76e8bc61a88a6f7
6
+ metadata.gz: 33d61d74d911d8debbdfa11f5cb8e4929ee7ff462cc1388deea4d39a7db36347b5b6c8b63b448581cb6c5b3ff7a40e02d266335384fb95016b9e4d0af595c008
7
+ data.tar.gz: 3e41ca498967a2dbfd875936a346c33a899db1b73355c52ed9e7b98b588a6ff6b4936dca021a52c49fa58ec729c95d04a71e306d97a78062c7c96f0ac6a229c3
@@ -21,4 +21,5 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency "bundler", "~> 1.3"
22
22
  spec.add_development_dependency "rake"
23
23
  spec.add_development_dependency "rspec"
24
+ spec.add_development_dependency "pry", "0.9.12.4"
24
25
  end
@@ -21,6 +21,7 @@ module Jumpup
21
21
 
22
22
  def account(account_token)
23
23
  if account_token == current_account
24
+ self.app = nil
24
25
  self.host = "heroku.#{account_token}"
25
26
  yield(self)
26
27
  end
@@ -1,5 +1,5 @@
1
1
  module Jumpup
2
2
  module Heroku
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -43,14 +43,13 @@ describe Jumpup::Heroku::Configuration do
43
43
  before { ENV.stub(:[]).with("HEROKU_ACCOUNT").and_return("first") }
44
44
  before do
45
45
  Jumpup::Heroku.configure do |config|
46
+ config.app = 'myapp'
46
47
  config.run_database_tasks = false
47
48
  config.account(:first) do |first|
48
- first.app = 'myapp1'
49
49
  first.production_app = 'myapp1-production'
50
50
  first.staging_app = 'myapp1-staging'
51
51
  end
52
52
  config.account(:second) do |second|
53
- second.app = 'myapp2'
54
53
  second.production_app = 'myapp2-production'
55
54
  second.staging_app = 'myapp2-staging'
56
55
  end
@@ -59,7 +58,8 @@ describe Jumpup::Heroku::Configuration do
59
58
  subject do
60
59
  Jumpup::Heroku.configuration
61
60
  end
62
- its(:app) { should eq('myapp1') }
61
+ its(:valid?) { should be_true }
62
+ its(:app) { should be_nil }
63
63
  its(:staging_app) { should eq('myapp1-staging')}
64
64
  its(:production_app) { should eq('myapp1-production') }
65
65
  its(:run_database_tasks) { should be_false }
@@ -69,12 +69,10 @@ describe Jumpup::Heroku::Configuration do
69
69
  before { ENV.stub(:[]).with("HEROKU_ACCOUNT").and_return("second") }
70
70
  before do
71
71
  Jumpup::Heroku.configure do |config|
72
- config.app = 'myapp1'
73
72
  config.production_app = 'myapp1-production'
74
73
  config.staging_app = 'myapp1-staging'
75
74
  config.run_database_tasks = true
76
75
  config.account(:second) do |second|
77
- second.app = 'myapp2'
78
76
  second.production_app = 'myapp2-production'
79
77
  second.staging_app = 'myapp2-staging'
80
78
  second.run_database_tasks = false
@@ -85,7 +83,8 @@ describe Jumpup::Heroku::Configuration do
85
83
  subject do
86
84
  Jumpup::Heroku.configuration
87
85
  end
88
- its(:app) { should eq('myapp2') }
86
+ its(:valid?) { should be_true }
87
+ its(:app) { should be_nil }
89
88
  its(:staging_app) { should eq('myapp2-staging')}
90
89
  its(:production_app) { should eq('myapp2-production') }
91
90
  its(:run_database_tasks) { should be_false }
@@ -111,6 +110,7 @@ describe Jumpup::Heroku::Configuration do
111
110
  subject do
112
111
  Jumpup::Heroku.configuration
113
112
  end
113
+ its(:valid?) { should be_false }
114
114
  its(:app) { should be_nil }
115
115
  its(:staging_app) { should be_nil }
116
116
  its(:production_app) { should be_nil }
@@ -132,6 +132,7 @@ describe Jumpup::Heroku::Configuration do
132
132
  subject do
133
133
  Jumpup::Heroku.configuration
134
134
  end
135
+ its(:valid?) { should be_false }
135
136
  its(:app) { should be_nil }
136
137
  its(:staging_app) { should be_nil }
137
138
  its(:production_app) { should be_nil }
@@ -142,12 +143,10 @@ describe Jumpup::Heroku::Configuration do
142
143
  before { Jumpup::Heroku::Configuration.any_instance.stub(:current_account).and_return(:"") }
143
144
  before do
144
145
  Jumpup::Heroku.configure do |config|
145
- config.app = 'myapp1'
146
146
  config.production_app = 'myapp1-production'
147
147
  config.staging_app = 'myapp1-staging'
148
148
  config.run_database_tasks = true
149
149
  config.account(:second) do |second|
150
- second.app = 'myapp2'
151
150
  second.production_app = 'myapp2-production'
152
151
  second.staging_app = 'myapp2-staging'
153
152
  config.run_database_tasks = false
@@ -157,7 +156,8 @@ describe Jumpup::Heroku::Configuration do
157
156
  subject do
158
157
  Jumpup::Heroku.configuration
159
158
  end
160
- its(:app) { should eq('myapp1') }
159
+ its(:valid?) { should be_true }
160
+ its(:app) { should be_nil }
161
161
  its(:staging_app) { should eq('myapp1-staging')}
162
162
  its(:production_app) { should eq('myapp1-production') }
163
163
  its(:run_database_tasks) { should be_true }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jumpup-heroku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - HE:labs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-16 00:00:00.000000000 Z
11
+ date: 2014-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 0.9.12.4
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '='
67
+ - !ruby/object:Gem::Version
68
+ version: 0.9.12.4
55
69
  description: Rake tasks to deploy on heroku
56
70
  email:
57
71
  - contato@helabs.com.br
@@ -99,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
113
  version: '0'
100
114
  requirements: []
101
115
  rubyforge_project:
102
- rubygems_version: 2.2.1
116
+ rubygems_version: 2.0.3
103
117
  signing_key:
104
118
  specification_version: 4
105
119
  summary: Rake tasks to deploy on heroku