aptible-gridiron 0.2.1 → 0.2.2

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
2
  SHA1:
3
- metadata.gz: 550d66e30dc9cd699ec04bfa66f1a5fc10c99908
4
- data.tar.gz: 22affd274a499c0092834ec4d8e0a0c81f417512
3
+ metadata.gz: 6df60290b39ccd70f038c93fe2129b11b48d261e
4
+ data.tar.gz: 47da8a1be459cb22ce768859701534ec16c61ecc
5
5
  SHA512:
6
- metadata.gz: 354f864bc7e647068f0e2c2bd7f8cbeb6674941f6e1d61dad27beb5a66fab54804e9d4a369f58ac31b8302f9e38ccc2d148a516df8877b9b3cd8653bc9b319bb
7
- data.tar.gz: 8f774819701ff09ef4a0e3ae2e623eafc176e2f9974b31f37206494dcc8f7990e669b2653cd1f437e1dd7d7c4964199ad7d1d09a80a070839ba29cf84801e49d
6
+ metadata.gz: a3771fac1216fe1485e094e2bea4b2503fe299c37a8720f480b53d76f5ba1f642a9bf1f943b7682289decff6ecb089a84d3acfa2525bae3df1de68c3413598d9
7
+ data.tar.gz: 12c72506c1ac1561c7a20459f338afd6fe34ca4a0bdd066e0b2571f6574a441d6b70efec00447cb3ad07bdc4fea61aa3e35b7f204386d60579c936217308f7ac
@@ -1,3 +1,2 @@
1
1
  rvm:
2
2
  - 2.0.0
3
- - jruby
data/README.md CHANGED
@@ -80,4 +80,7 @@ end
80
80
 
81
81
  MIT License, see [LICENSE](LICENSE.md) for details.
82
82
 
83
- Copyright (c) 2013 [Aptible](https://www.aptible.com), Frank Macreery, and contributors.
83
+ Copyright (c) 2014 [Aptible](https://www.aptible.com) and contributors.
84
+
85
+ [<img src="https://s.gravatar.com/avatar/9b58236204e844e3181e43e05ddb0809?s=60" style="border-radius: 50%;" alt="@sandersonet" />](https://github.com/sandersonet)
86
+
@@ -16,11 +16,11 @@ Gem::Specification.new do |spec|
16
16
  spec.license = 'MIT'
17
17
 
18
18
  spec.files = `git ls-files`.split($RS)
19
- spec.test_files = spec.files.grep(/^spec\//)
19
+ spec.test_files = spec.files.grep(%r{^spec\/})
20
20
  spec.require_paths = ['lib']
21
21
 
22
- spec.add_dependency 'aptible-resource', '>= 0.2.1'
23
- spec.add_dependency 'aptible-auth', '>= 0.5.0'
22
+ spec.add_dependency 'aptible-resource', '>= 0.3.7'
23
+ spec.add_dependency 'aptible-auth', '>= 0.11.10'
24
24
  spec.add_dependency 'gem_config'
25
25
 
26
26
  spec.add_development_dependency 'bundler', '~> 1.3'
@@ -0,0 +1,11 @@
1
+ module Aptible
2
+ module Gridiron
3
+ class MembershipNotification < Resource
4
+ belongs_to :organization_profile
5
+
6
+ field :id
7
+ field :user_url
8
+ field :role_url
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,19 @@
1
+ module Aptible
2
+ module Gridiron
3
+ class OrganizationProfile < Resource
4
+ has_many :membership_notifications
5
+ has_many :risk_assessments
6
+ has_many :policy_manuals
7
+
8
+ field :id
9
+ field :organization_url
10
+ field :has_completed_setup
11
+ field :current_step
12
+ field :about_organization
13
+ field :about_architecture
14
+ field :about_business_model
15
+ field :about_team
16
+ field :about_go_to_market
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,9 @@
1
+ module Aptible
2
+ module Gridiron
3
+ class PolicyManual < Resource
4
+ belongs_to :organization_profile
5
+
6
+ field :id
7
+ end
8
+ end
9
+ end
@@ -15,9 +15,8 @@ module Aptible
15
15
  def initialize(options = {})
16
16
  if options.is_a?(Hash) && options[:organization]
17
17
  options[:headers] ||= {}
18
- options[:headers].merge!(
19
- 'X-Aptible-Organization' => options[:organization].href
20
- )
18
+ organization_href = options[:organization].href
19
+ options[:headers]['X-Aptible-Organization'] = organization_href
21
20
  end
22
21
 
23
22
  super(options)
@@ -34,11 +33,14 @@ module Aptible
34
33
  end
35
34
  end
36
35
 
36
+ require 'aptible/gridiron/organization_profile'
37
+ require 'aptible/gridiron/membership_notification'
38
+ require 'aptible/gridiron/policy_manual'
37
39
  require 'aptible/gridiron/protocol'
38
40
  require 'aptible/gridiron/requirement'
41
+ require 'aptible/gridiron/risk_assessment'
39
42
  require 'aptible/gridiron/procedure'
40
43
  require 'aptible/gridiron/criterion'
41
-
42
44
  require 'aptible/gridiron/evidence'
43
45
  require 'aptible/gridiron/document'
44
46
  require 'aptible/gridiron/event'
@@ -0,0 +1,9 @@
1
+ module Aptible
2
+ module Gridiron
3
+ class RiskAssessment < Resource
4
+ belongs_to :organization_profile
5
+
6
+ field :id
7
+ end
8
+ end
9
+ end
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module Gridiron
3
- VERSION = '0.2.1'
3
+ VERSION = '0.2.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,167 +1,167 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aptible-gridiron
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Macreery
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-24 00:00:00.000000000 Z
11
+ date: 2016-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aptible-resource
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.1
19
+ version: 0.3.7
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.2.1
26
+ version: 0.3.7
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: aptible-auth
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.5.0
33
+ version: 0.11.10
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.5.0
40
+ version: 0.11.10
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: gem_config
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.3'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: aptible-tasks
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: 0.4.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.4.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: activesupport
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rspec
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ~>
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: '3.0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ~>
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: '3.0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rspec-its
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: foreman
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '>='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '>='
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: pry
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - '>='
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - '>='
164
+ - - ">="
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  description: Ruby client for gridiron.aptible.com
@@ -171,9 +171,9 @@ executables: []
171
171
  extensions: []
172
172
  extra_rdoc_files: []
173
173
  files:
174
- - .gitignore
175
- - .rspec
176
- - .travis.yml
174
+ - ".gitignore"
175
+ - ".rspec"
176
+ - ".travis.yml"
177
177
  - Gemfile
178
178
  - LICENSE.md
179
179
  - Procfile
@@ -186,10 +186,14 @@ files:
186
186
  - lib/aptible/gridiron/document.rb
187
187
  - lib/aptible/gridiron/event.rb
188
188
  - lib/aptible/gridiron/evidence.rb
189
+ - lib/aptible/gridiron/membership_notification.rb
190
+ - lib/aptible/gridiron/organization_profile.rb
191
+ - lib/aptible/gridiron/policy_manual.rb
189
192
  - lib/aptible/gridiron/procedure.rb
190
193
  - lib/aptible/gridiron/protocol.rb
191
194
  - lib/aptible/gridiron/requirement.rb
192
195
  - lib/aptible/gridiron/resource.rb
196
+ - lib/aptible/gridiron/risk_assessment.rb
193
197
  - lib/aptible/gridiron/version.rb
194
198
  - spec/aptible/gridiron/agent_spec.rb
195
199
  - spec/aptible/gridiron/resource_spec.rb
@@ -206,17 +210,17 @@ require_paths:
206
210
  - lib
207
211
  required_ruby_version: !ruby/object:Gem::Requirement
208
212
  requirements:
209
- - - '>='
213
+ - - ">="
210
214
  - !ruby/object:Gem::Version
211
215
  version: '0'
212
216
  required_rubygems_version: !ruby/object:Gem::Requirement
213
217
  requirements:
214
- - - '>='
218
+ - - ">="
215
219
  - !ruby/object:Gem::Version
216
220
  version: '0'
217
221
  requirements: []
218
222
  rubyforge_project:
219
- rubygems_version: 2.2.2
223
+ rubygems_version: 2.5.1
220
224
  signing_key:
221
225
  specification_version: 4
222
226
  summary: Ruby client for gridiron.aptible.com