promoted-ruby-client 0.1.2 → 0.1.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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +3 -2
- data/dev.md +1 -1
- data/lib/promoted/ruby/client/validator.rb +2 -1
- data/lib/promoted/ruby/client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6c6ac96f572587bcc605eb0bd622d0238e3fa2fe7ee55f479afdb913320a5e10
|
|
4
|
+
data.tar.gz: d89fc05b6e9701034bfb020fda1a6779e1d3cce4352115d89a3eaaba258dee3a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 13e6c6245b1b4a277309ab8c18e1797ea324e8569292fdf0727af313f4266f770c19c84218c18cceea05c8ee44cd11926bafa8c50ec3e1f7bc9df77aafc68477
|
|
7
|
+
data.tar.gz: f206b67e03cfe7221858606f270185ceb90c690b29b04eb17ca6385a1d935de38bad6a7c6fe605a35fd871a95f55c7259d2dcd3af554bcfee46db0d0cfccd18f
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -35,7 +35,7 @@ The `prepare_for_logging` call assumes the client has already handled pagination
|
|
|
35
35
|
## Example to run the client
|
|
36
36
|
|
|
37
37
|
Install our Ruby client.
|
|
38
|
-
`promoted-ruby-client (0.1.
|
|
38
|
+
`promoted-ruby-client (0.1.3)`
|
|
39
39
|
|
|
40
40
|
Or
|
|
41
41
|
|
|
@@ -233,4 +233,5 @@ input = {
|
|
|
233
233
|
}
|
|
234
234
|
]
|
|
235
235
|
}
|
|
236
|
-
```
|
|
236
|
+
```
|
|
237
|
+
|
data/dev.md
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
2. Get credentials for deployment from 1password.
|
|
6
6
|
3. Modify `promoted-ruby-client.gemspec`'s push block.
|
|
7
7
|
4. Run `gem build promoted-ruby-client.gemspec` to generate `gem`.
|
|
8
|
-
5. Run (using new output) `gem push promoted-ruby-client-0.1.
|
|
8
|
+
5. Run (using new output) `gem push promoted-ruby-client-0.1.3.gem`
|
|
9
9
|
6. Update README with new version.
|
|
@@ -145,7 +145,8 @@ module Promoted
|
|
|
145
145
|
raise ValidationError.new(field[:name].to_s + " is required on " + obj_name) if !obj.has_key?(field[:name])
|
|
146
146
|
end
|
|
147
147
|
|
|
148
|
-
|
|
148
|
+
# If a field is provided as non-nil, it should be of the correct type.
|
|
149
|
+
if field[:type] && obj.has_key?(field[:name]) && obj[field[:name]] != nil then
|
|
149
150
|
raise ValidationError.new(field[:name].to_s + " should be a " + field[:type].to_s) if !obj[field[:name]].is_a?(field[:type])
|
|
150
151
|
end
|
|
151
152
|
}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: promoted-ruby-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- scottmcmaster
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-06-
|
|
11
|
+
date: 2021-06-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|