opto 1.6.1 → 1.7.0

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: 3ca045aebcc54054d2901ed55fa11c32c1bfce21
4
- data.tar.gz: a6e1510d1fee7789882f50501fc4d90613a16f0b
3
+ metadata.gz: 5ac3340f2ab72942ad62dd4589d773e7713ebb24
4
+ data.tar.gz: 5882bb7b1bb860e10413ca659887c1e166f39bad
5
5
  SHA512:
6
- metadata.gz: 6424d5217c9dd151d6627222efae29999a82ac5d2629cd160b64cd34ff2c58a55d35dabf7c8e549f68dcbc4e7d4c0734a6481b16ec98094a6966ee56755f41e0
7
- data.tar.gz: 5f1834c36f6db2b44e671c32a369c0b7be557ec7276c9a5561e8c2584443b91253a9181e998afbbd5cf2cbcb2374ad2cbdbfc2c5e5ba907e33d9b8dd733ba2dc
6
+ metadata.gz: 10ea21720b0b1d07c4d7deaa43424f296ac9b3dff137db003c2e40b87ba37604dbb864592268a1ffc30dfb0d8e46a1823a61954dfbf63e96f49df8a72d4fe4b6
7
+ data.tar.gz: 05c279f893883d1ac3b7dfabc8d9034719b22069369a24c6e7ed99f82e5f6ea192ce661cdb4278c68c4d4d68464446dd92160018f5a54626e6b91375f75a6d9a
data/LICENSE.txt CHANGED
@@ -1,21 +1,191 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2016 Kimmo Lehto
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ Copyright 2015 Kontena, Inc.
180
+
181
+ Licensed under the Apache License, Version 2.0 (the "License");
182
+ you may not use this file except in compliance with the License.
183
+ You may obtain a copy of the License at
184
+
185
+ http://www.apache.org/licenses/LICENSE-2.0
186
+
187
+ Unless required by applicable law or agreed to in writing, software
188
+ distributed under the License is distributed on an "AS IS" BASIS,
189
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190
+ See the License for the specific language governing permissions and
191
+ limitations under the License.
data/README.md CHANGED
@@ -11,7 +11,7 @@ The option type handlers can perform validations, such as defining a range or le
11
11
 
12
12
  Transformations can be performed on values, such as upcasing strings or removing white space.
13
13
 
14
- Options can have simple conditionals for determining if it needs to be processed or not, an option for defining a database
14
+ Options can have simple conditionals for determining if it needs to be processed or not, for example: an option for defining a database
15
15
  password can be processed only if a database has been selected.
16
16
 
17
17
  Finally the value for the option can be placed to some destination, such as an environment variable or sent to a command.
@@ -138,7 +138,7 @@ Ok, so what to do with the values? There's setters for that.
138
138
 
139
139
  ## Conditionals
140
140
 
141
- There's also rudimentary conditional support:
141
+ There's also support for conditionals
142
142
 
143
143
  ```yaml
144
144
  - name: foo
@@ -194,7 +194,93 @@ There's also rudimentary conditional support:
194
194
  - baz # AND baz is not null
195
195
  ```
196
196
 
197
- Pretty nifty, right?
197
+ ### Complex conditionals
198
+
199
+ You can define more complicated conditionals by supplying a hash instead of a value:
200
+
201
+ ```yaml
202
+ # value. same as foo == 5
203
+ only_if:
204
+ foo: 5
205
+ ```
206
+
207
+ ```yaml
208
+ # hash. same as foo > 5 && foo <= 10
209
+ only_if:
210
+ foo:
211
+ gt: 5
212
+ lte: 10
213
+ ```
214
+
215
+ ### Complex conditional operators
216
+
217
+ #### `lt`, `lte`
218
+
219
+ less than / less than or equal to
220
+
221
+ #### `gt`, `gte`
222
+
223
+ greater than / greater than or equal to
224
+
225
+ #### `eq`, `ne`
226
+
227
+ equals / not equals
228
+
229
+ #### `start_with`, `end_with`
230
+
231
+ "foobar" starts with "foo" and ends with "bar".
232
+
233
+ #### `contain`
234
+
235
+ Can be used for strings and arrays:
236
+
237
+ ```yaml
238
+ arr:
239
+ type: array
240
+ value:
241
+ - a
242
+ - b
243
+ - c
244
+
245
+ str:
246
+ type: string
247
+ value: foobar
248
+
249
+ x:
250
+ type: boolean
251
+ from:
252
+ condition:
253
+ - if:
254
+ arr:
255
+ contain: b
256
+ str:
257
+ contain: b
258
+ then: true
259
+ - else: false
260
+ -
261
+ # group.value_of('x')
262
+ # => true
263
+ ```
264
+
265
+ #### `any_of`
266
+
267
+ true when the value is one of the supplied values. Input is either a comma separated string or an array.
268
+
269
+ ```yaml
270
+ foo:
271
+ skip_if:
272
+ bar:
273
+ any_of: foo,baz
274
+ ```
275
+
276
+ ```yaml
277
+ foo:
278
+ skip_if:
279
+ bar:
280
+ any_of:
281
+ - foo
282
+ - baz
283
+ ```
198
284
 
199
285
  ## Examples
200
286
 
@@ -445,6 +531,45 @@ greeting:
445
531
  # group.value_of('greeting') => "Hello, world!"
446
532
  ```
447
533
 
534
+ ### condition
535
+
536
+ Hint is an array containing if/then/elsif/else definitions. Sets the value based on the values of other variables.
537
+
538
+ Example:
539
+ ```yaml
540
+ int:
541
+ type: integer
542
+ value: 5
543
+
544
+ str:
545
+ type: string
546
+ from:
547
+ condition:
548
+ - if:
549
+ int: 5
550
+ then: "five"
551
+ - elsif:
552
+ int: 6
553
+ then: "six"
554
+ - else: "not five or six"
555
+ ```
556
+
557
+ ```ruby
558
+ group.option('int').set(4)
559
+ group.option('str').resolve
560
+ => "not five or six"
561
+ group.option('int').set(5)
562
+ group.option('str').resolve
563
+ => "five"
564
+ group.option('int').set(6)
565
+ group.option('str').resolve
566
+ => "six"
567
+ ```
568
+
569
+ When an "else" is not defined and none of the conditions match, a null value will be returned.
570
+
571
+ The syntax for conditionals and complex conditionals is documented above in the chapter about conditionals.
572
+
448
573
  ## Default setters
449
574
 
450
575
  ### env
@@ -8,6 +8,14 @@ module Opto
8
8
  super(key.to_s) || super(key.to_sym)
9
9
  end
10
10
 
11
+ def has_key?(key)
12
+ if key.nil?
13
+ super(nil)
14
+ else
15
+ super(key.to_s) || super(key.to_sym)
16
+ end
17
+ end
18
+
11
19
  def delete(key)
12
20
  return nil if key.nil?
13
21
  super(key) || super(key.to_s) || super(key.to_sym)
data/lib/opto/group.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'opto/option'
1
2
  require 'opto/extensions/snake_case'
2
3
  require 'opto/extensions/hash_string_or_symbol_key'
3
4
 
@@ -125,7 +126,58 @@ module Opto
125
126
  end
126
127
  when Hash
127
128
  ifs.each_with_object([]) do |(k, v), arr|
128
- arr << lambda { |grp| grp.value_of(k.to_s) == v }
129
+ if v.kind_of?(Hash)
130
+ if v.has_key?(:lt)
131
+ arr << lambda { |grp| grp.value_of(k.to_s) < v[:lt] }
132
+ end
133
+
134
+ if v.has_key?(:lte)
135
+ arr << lambda { |grp| grp.value_of(k.to_s) <= v[:lte] }
136
+ end
137
+
138
+ if v.has_key?(:gt)
139
+ arr << lambda { |grp| grp.value_of(k.to_s) > v[:gt] }
140
+ end
141
+
142
+ if v.has_key?(:gte)
143
+ arr << lambda { |grp| grp.value_of(k.to_s) > v[:gte] }
144
+ end
145
+
146
+ if v.has_key?(:eq)
147
+ arr << lambda { |grp| grp.value_of(k.to_s) == v[:eq] }
148
+ end
149
+
150
+ if v.has_key?(:ne)
151
+ arr << lambda { |grp| grp.value_of(k.to_s) != v[:ne] }
152
+ end
153
+
154
+ if v.has_key?(:start_with)
155
+ arr << lambda { |grp| grp.value_of(k.to_s).to_s.start_with?(v[:start_with]) }
156
+ end
157
+
158
+ if v.has_key?(:end_with)
159
+ arr << lambda { |grp| grp.value_of(k.to_s).to_s.end_with?(v[:end_with]) }
160
+ end
161
+
162
+ if v.has_key?(:contain)
163
+ arr << lambda { |grp| grp.value_of(k.to_s).kind_of?(::Array) ? grp.value_of(k.to_s).include?(v[:contain]) : grp.value_of(k.to_s).to_s.include?(v[:contain]) }
164
+ end
165
+
166
+ if v.has_key?(:any_of)
167
+ arr << lambda do |grp|
168
+ if v[:any_of].kind_of?(String)
169
+ arr = v[:any_of].split(",")
170
+ elsif v[:any_of].kind_of?(::Array)
171
+ arr = v[:any_of]
172
+ else
173
+ raise TypeError, "Invalid list for 'any_of'. Expected: Array or a comma separated string"
174
+ end
175
+ arr.include?(grp.value_of(k.to_s))
176
+ end
177
+ end
178
+ else
179
+ arr << lambda { |grp| grp.value_of(k.to_s) == v }
180
+ end
129
181
  end
130
182
  when String, Symbol
131
183
  [lambda { |grp| !grp.value_of(ifs.to_s).nil? }]
@@ -0,0 +1,90 @@
1
+ require 'opto/extensions/snake_case'
2
+ require 'opto/extensions/hash_string_or_symbol_key'
3
+
4
+ if RUBY_VERSION < '2.1'
5
+ using Opto::Extension::SnakeCase
6
+ using Opto::Extension::HashStringOrSymbolKey
7
+ end
8
+
9
+ module Opto
10
+ module Resolvers
11
+ # Allows setting the value conditionally based on other variables
12
+ #
13
+ # Example:
14
+ # from:
15
+ # condition:
16
+ # - if:
17
+ # db_instances: 1
18
+ # then: single
19
+ # - elsif:
20
+ # db_instances:
21
+ # gt: 1
22
+ # then: multi
23
+ # - else: none
24
+ #
25
+ # Which is the same as:
26
+ # if $db_instances == 1
27
+ # return "single"
28
+ # elsif $db_instances > 1
29
+ # return "multi"
30
+ # else
31
+ # return "none"
32
+ # end
33
+ #
34
+ # If you don't define an else, a null will be returned when no conditions match.
35
+ class Condition < Opto::Resolver
36
+
37
+ using Opto::Extension::HashStringOrSymbolKey unless RUBY_VERSION < '2.1'
38
+
39
+ class HashCond
40
+ attr_reader :condition
41
+ attr_reader :result
42
+ attr_reader :group
43
+
44
+ def initialize(group, options={})
45
+ @group = group
46
+ if options.has_key?(:else)
47
+ @result = options[:else]
48
+ @else = true
49
+ elsif options.has_key?(:if) || options.has_key?(:elsif)
50
+ @condition = options[:if] || options[:elsif]
51
+ if options.has_key?(:then)
52
+ @result = options[:then]
53
+ else
54
+ raise ArgumentError, "Invalid condition definition: #{options.inspect} (no 'then')"
55
+ end
56
+ @else = false
57
+ else
58
+ raise ArgumentError, "Invalid condition definition: #{options.inspect} (no 'if', 'elsif' or 'else')"
59
+ end
60
+ end
61
+
62
+ def else?
63
+ @else
64
+ end
65
+
66
+ def true?
67
+ return true if else?
68
+ return true if group.all_true?(condition)
69
+ false
70
+ end
71
+ end
72
+
73
+ def resolve
74
+ raise TypeError, "An Array of Hashes expected" unless hint.kind_of?(Array)
75
+ raise TypeError, "An Array of Hashes expected" unless hint.all? {|h| h.kind_of?(Hash) }
76
+ raise TypeError, "Can't use condition resolver when option isn't a member of an option group" if option.group.nil?
77
+
78
+ conditions = hint.map {|h| HashCond.new(option.group, h) }
79
+
80
+ unless conditions.last.else?
81
+ conditions << HashCond.new(:else => nil)
82
+ end
83
+
84
+ matching_condition = conditions.find {|c| c.true? }
85
+ matching_condition.result
86
+ end
87
+ end
88
+ end
89
+ end
90
+
data/lib/opto/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Opto
2
- VERSION = "1.6.1"
2
+ VERSION = "1.7.0"
3
3
  end
data/opto.gemspec CHANGED
@@ -9,6 +9,8 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Kimmo Lehto"]
10
10
  spec.email = ["info@kontena.io"]
11
11
 
12
+ spec.licenses = ['Apache-2.0']
13
+
12
14
  spec.summary = "Option validator / resolver"
13
15
  spec.description = "Create validatable and resolvable options from hashes or YAML"
14
16
  spec.homepage = "https://github.com/kontena/opto"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opto
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kimmo Lehto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-29 00:00:00.000000000 Z
11
+ date: 2016-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,6 +72,7 @@ files:
72
72
  - lib/opto/group.rb
73
73
  - lib/opto/option.rb
74
74
  - lib/opto/resolver.rb
75
+ - lib/opto/resolvers/condition.rb
75
76
  - lib/opto/resolvers/default.rb
76
77
  - lib/opto/resolvers/environment_variable.rb
77
78
  - lib/opto/resolvers/evaluate.rb
@@ -92,7 +93,8 @@ files:
92
93
  - lib/opto/version.rb
93
94
  - opto.gemspec
94
95
  homepage: https://github.com/kontena/opto
95
- licenses: []
96
+ licenses:
97
+ - Apache-2.0
96
98
  metadata: {}
97
99
  post_install_message:
98
100
  rdoc_options: []