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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '06709e6306f4f601ce1f67c7a75926ab585fd47af125995491909c2ddcef85e8'
4
- data.tar.gz: c6e3a18424e31abf4a35000e03335251c709bcde886e20b5a4d4a5f660414382
3
+ metadata.gz: 6c6ac96f572587bcc605eb0bd622d0238e3fa2fe7ee55f479afdb913320a5e10
4
+ data.tar.gz: d89fc05b6e9701034bfb020fda1a6779e1d3cce4352115d89a3eaaba258dee3a
5
5
  SHA512:
6
- metadata.gz: 4d323360ed9e65a00fa9da40f3645288ea93f68c1f4e7a29c1779b3f21ba5430bfd278534669839f7e35e7ddc370a70d4d3b5b7152a8ce4b9b17097ed297d924
7
- data.tar.gz: fc75f38fbd9d8c14f8c8930b2459b4eed3e912c57360bbf383478fbad4c614abef09a76bfa9fd818173367e168b24a730e13143c56a02c3191cd1f862c33e0e6
6
+ metadata.gz: 13e6c6245b1b4a277309ab8c18e1797ea324e8569292fdf0727af313f4266f770c19c84218c18cceea05c8ee44cd11926bafa8c50ec3e1f7bc9df77aafc68477
7
+ data.tar.gz: f206b67e03cfe7221858606f270185ceb90c690b29b04eb17ca6385a1d935de38bad6a7c6fe605a35fd871a95f55c7259d2dcd3af554bcfee46db0d0cfccd18f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- promoted-ruby-client (0.1.2)
4
+ promoted-ruby-client (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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.2)`
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.2.gem`
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
- if field[:type] && obj.has_key?(field[:name]) then
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
  }
@@ -1,7 +1,7 @@
1
1
  module Promoted
2
2
  module Ruby
3
3
  module Client
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
6
6
  end
7
7
  end
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.2
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-28 00:00:00.000000000 Z
11
+ date: 2021-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler