github_heroku_deployer 0.3.0 → 0.3.1

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
- !binary "U0hBMQ==":
3
- metadata.gz: 2e112b6159eb9fd1c9249c5757b688ab330ddec9
4
- data.tar.gz: 0d92b301adf5d354f0a694a0ea56ded4c1dbbe12
2
+ SHA1:
3
+ metadata.gz: 2f710fcc8d68880d359f589244dc112aa599fd91
4
+ data.tar.gz: bae937e9f03819394cb2613d833dd9901f7970d8
5
5
  SHA512:
6
- metadata.gz: fd7dca8afa4d96332cf5073fcef7fc58def6afb68d0159e183977d2787a569926965dce04d0563b50e4bb0923cedb5db37c952023fe445b13753e3023c186fe4
7
- data.tar.gz: 3cafa0b7b9f22c9612fcfb47cc08bdd03614b26d2b070d0782936dd1d6ca73c5adec9f2134abb2d80fedead7ef2484b54a2be2e14db72b45c2fc86e82a745127
6
+ metadata.gz: 4d2f8013830024aaf81330c57a5035b63a6891bef636847911377ee8c989937d60d67943dc82cf77158e8cf672a36341639ead8238728bd7a11aa4114cf57297
7
+ data.tar.gz: 0cb0c45f1ff4eb9cfd145d33e94e3385e0b6834428948e5c3b0fa4554add948b95c08e2e0fa5378b39a926bc108f90502f1a0704905805bb2b5b8e01f0b8ac3f
data/README.md CHANGED
@@ -8,12 +8,13 @@ Ruby gem to deploy public and private Github repos to Heroku
8
8
 
9
9
  ## Current Version
10
10
 
11
- 0.2.1
11
+ 0.3.1
12
12
 
13
13
 
14
14
  ## Requirements
15
15
 
16
16
  * ["heroku_api", "~> 0.3.5"](http://rubygems.org/gems/heroku-api)
17
+ * ["platform-api", "~> 0.2"](http://rubygems.org/gems/platform-api)
17
18
  * ["git", "~> 1.2.5"](http://rubygems.org/gems/git)
18
19
  * ["git-ssh-wrapper", "~> 0.1.0"](http://rubygems.org/gems/git-ssh-wrapper)
19
20
 
@@ -87,6 +88,7 @@ Manipulate Repo:
87
88
 
88
89
  * Jessica Lynn Suttles / [@jlsuttles](https://github.com/jlsuttles)
89
90
  * Bookis Smuin / [@bookis](https://github.com/bookis)
91
+ * Michael Mitchell / [@variousred](https://github.com/variousred)
90
92
 
91
93
 
92
94
  ## Contributing
@@ -8,6 +8,7 @@ module GithubHerokuDeployer
8
8
  @heroku_api_key = options[:heroku_api_key]
9
9
  @heroku_app_name = options[:heroku_app_name]
10
10
  @heroku_organization_name = options[:heroku_organization_name]
11
+ @logger = GithubHerokuDeployer.configuration.logger
11
12
  end
12
13
 
13
14
  def heroku
@@ -30,6 +31,7 @@ module GithubHerokuDeployer
30
31
  end
31
32
 
32
33
  def create_app
34
+ @logger.info("Creating Heroku app with options: #{platform_api_options}")
33
35
  heroku_platform_api.organization_app.create(platform_api_options)
34
36
  end
35
37
 
@@ -68,8 +70,11 @@ module GithubHerokuDeployer
68
70
  private
69
71
 
70
72
  def platform_api_options
71
- { name: @heroku_app_name,
72
- organization: @heroku_organization_name }
73
+ options = {name: @heroku_app_name}
74
+ unless @heroku_organization_name == "" || @heroku_organization_name == nil
75
+ options.merge!(organization: @heroku_organization_name)
76
+ end
77
+ options
73
78
  end
74
79
 
75
80
  def heroku_platform_api
@@ -1,3 +1,3 @@
1
1
  module GithubHerokuDeployer
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github_heroku_deployer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jessica Lynn Suttles
@@ -9,118 +9,118 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-09-15 00:00:00.000000000 Z
12
+ date: 2014-11-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: heroku-api
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ~>
18
+ - - "~>"
19
19
  - !ruby/object:Gem::Version
20
20
  version: 0.3.5
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ~>
25
+ - - "~>"
26
26
  - !ruby/object:Gem::Version
27
27
  version: 0.3.5
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: platform-api
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ~>
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0.2'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ~>
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0.2'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: git
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ~>
46
+ - - "~>"
47
47
  - !ruby/object:Gem::Version
48
48
  version: 1.2.5
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ~>
53
+ - - "~>"
54
54
  - !ruby/object:Gem::Version
55
55
  version: 1.2.5
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: git-ssh-wrapper
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ~>
60
+ - - "~>"
61
61
  - !ruby/object:Gem::Version
62
62
  version: 0.1.0
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ~>
67
+ - - "~>"
68
68
  - !ruby/object:Gem::Version
69
69
  version: 0.1.0
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: simplecov
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - ~>
74
+ - - "~>"
75
75
  - !ruby/object:Gem::Version
76
76
  version: 0.7.1
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ~>
81
+ - - "~>"
82
82
  - !ruby/object:Gem::Version
83
83
  version: 0.7.1
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: rspec
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - ~>
88
+ - - "~>"
89
89
  - !ruby/object:Gem::Version
90
90
  version: 2.11.0
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - ~>
95
+ - - "~>"
96
96
  - !ruby/object:Gem::Version
97
97
  version: 2.11.0
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: guard-rspec
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - ~>
102
+ - - "~>"
103
103
  - !ruby/object:Gem::Version
104
104
  version: 2.1.0
105
105
  type: :development
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - ~>
109
+ - - "~>"
110
110
  - !ruby/object:Gem::Version
111
111
  version: 2.1.0
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: rb-fsevent
114
114
  requirement: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - ~>
116
+ - - "~>"
117
117
  - !ruby/object:Gem::Version
118
118
  version: 0.9.2
119
119
  type: :development
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - ~>
123
+ - - "~>"
124
124
  - !ruby/object:Gem::Version
125
125
  version: 0.9.2
126
126
  description: Deploys Github repos to Heroku
@@ -130,8 +130,8 @@ executables: []
130
130
  extensions: []
131
131
  extra_rdoc_files: []
132
132
  files:
133
- - .gitignore
134
- - .travis.yml
133
+ - ".gitignore"
134
+ - ".travis.yml"
135
135
  - Gemfile
136
136
  - Guardfile
137
137
  - LICENSE
@@ -158,17 +158,17 @@ require_paths:
158
158
  - lib
159
159
  required_ruby_version: !ruby/object:Gem::Requirement
160
160
  requirements:
161
- - - ! '>='
161
+ - - ">="
162
162
  - !ruby/object:Gem::Version
163
163
  version: '0'
164
164
  required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  requirements:
166
- - - ! '>='
166
+ - - ">="
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
169
  requirements: []
170
170
  rubyforge_project:
171
- rubygems_version: 2.4.1
171
+ rubygems_version: 2.2.2
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: Deploys public and private Github repos to Heroku