passbase 1.0.1 → 1.0.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88854be6e60a6cd145c4779ae0815a5a32c254257b0bc8c0a2792dad45225b8a
|
4
|
+
data.tar.gz: 8befeb974c06c4407c7e207b914051dba0faf439537eb49f23cdcf580a836f2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 175a72cd7113c4a84a49b7e2fd892bda6cc4c14e76d75e65ce62c008deee0554f82b8160fbf72270874c1a3f6d833de5c75199fc7bdb437cb05f3cf3fff16249
|
7
|
+
data.tar.gz: 21f46fee283edcb3807dc7d795ce4fe836500ec90e80a3f5bb5ef9b28efd32f98a56eace511dd1a389ff628ef7610d8a926b2660208fab5bc6ee545d95efd3e1
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -9,7 +9,7 @@ Passbase - the Ruby gem for the Verification API
|
|
9
9
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
10
10
|
|
11
11
|
- API version: 1.0.0
|
12
|
-
- Package version: 1.0.
|
12
|
+
- Package version: 1.0.2
|
13
13
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
14
14
|
|
15
15
|
## Installation
|
@@ -25,16 +25,16 @@ gem build passbase.gemspec
|
|
25
25
|
Then either install the gem locally:
|
26
26
|
|
27
27
|
```shell
|
28
|
-
gem install ./passbase-1.0.
|
28
|
+
gem install ./passbase-1.0.2.gem
|
29
29
|
```
|
30
30
|
|
31
|
-
(for development, run `gem install --dev ./passbase-1.0.
|
31
|
+
(for development, run `gem install --dev ./passbase-1.0.2.gem` to install the development dependencies)
|
32
32
|
|
33
33
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
34
34
|
|
35
35
|
Finally add this to the Gemfile:
|
36
36
|
|
37
|
-
gem 'passbase', '~> 1.0.
|
37
|
+
gem 'passbase', '~> 1.0.2'
|
38
38
|
|
39
39
|
### Install from Git
|
40
40
|
|
data/lib/passbase/api_client.rb
CHANGED
@@ -30,7 +30,7 @@ module Passbase
|
|
30
30
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
31
31
|
def initialize(config = Configuration.default)
|
32
32
|
@config = config
|
33
|
-
@user_agent = "passbase/ruby@1.0.
|
33
|
+
@user_agent = "passbase/ruby@1.0.2"
|
34
34
|
@default_headers = {
|
35
35
|
'Content-Type' => 'application/json',
|
36
36
|
'User-Agent' => @user_agent
|
@@ -24,28 +24,6 @@ module Passbase
|
|
24
24
|
# Font used in the verification flow
|
25
25
|
attr_accessor :font_family
|
26
26
|
|
27
|
-
class EnumAttributeValidator
|
28
|
-
attr_reader :datatype
|
29
|
-
attr_reader :allowable_values
|
30
|
-
|
31
|
-
def initialize(datatype, allowable_values)
|
32
|
-
@allowable_values = allowable_values.map do |value|
|
33
|
-
case datatype.to_s
|
34
|
-
when /Integer/i
|
35
|
-
value.to_i
|
36
|
-
when /Float/i
|
37
|
-
value.to_f
|
38
|
-
else
|
39
|
-
value
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
def valid?(value)
|
45
|
-
!value || allowable_values.include?(value)
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
50
28
|
def self.attribute_map
|
51
29
|
{
|
@@ -108,21 +86,9 @@ module Passbase
|
|
108
86
|
# Check to see if the all the properties in the model are valid
|
109
87
|
# @return true if the model is valid
|
110
88
|
def valid?
|
111
|
-
font_family_validator = EnumAttributeValidator.new('String', ["Arial", "Exo", "Open Sans", "Lato", "Baskerville"])
|
112
|
-
return false unless font_family_validator.valid?(@font_family)
|
113
89
|
true
|
114
90
|
end
|
115
91
|
|
116
|
-
# Custom attribute writer method checking allowed values (enum).
|
117
|
-
# @param [Object] font_family Object to be assigned
|
118
|
-
def font_family=(font_family)
|
119
|
-
validator = EnumAttributeValidator.new('String', ["Arial", "Exo", "Open Sans", "Lato", "Baskerville"])
|
120
|
-
unless validator.valid?(font_family)
|
121
|
-
fail ArgumentError, "invalid value for \"font_family\", must be one of #{validator.allowable_values}."
|
122
|
-
end
|
123
|
-
@font_family = font_family
|
124
|
-
end
|
125
|
-
|
126
92
|
# Checks equality by comparing each attribute.
|
127
93
|
# @param [Object] Object to be compared
|
128
94
|
def ==(o)
|
data/lib/passbase/version.rb
CHANGED
@@ -47,10 +47,6 @@ describe 'ProjectSettingsCustomizations' do
|
|
47
47
|
describe 'test attribute "font_family"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Arial", "Exo", "Open Sans", "Lato", "Baskerville"])
|
51
|
-
# validator.allowable_values.each do |value|
|
52
|
-
# expect { @instance.font_family = value }.not_to raise_error
|
53
|
-
# end
|
54
50
|
end
|
55
51
|
end
|
56
52
|
|