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: f834f243971596bfa920a226fadfbac9422278c59ad68bdf9f71bc986b0d1a76
4
- data.tar.gz: b0fa87855e3e58dce268bd7b9e6a531a6af2794c316dad5759c52cbe9f19b8f3
3
+ metadata.gz: 88854be6e60a6cd145c4779ae0815a5a32c254257b0bc8c0a2792dad45225b8a
4
+ data.tar.gz: 8befeb974c06c4407c7e207b914051dba0faf439537eb49f23cdcf580a836f2d
5
5
  SHA512:
6
- metadata.gz: 0e83583a972455fc9c830bb7fd728694b905c1eb0f40f0da8d489eeaa30aeaf0411db5cd6e37e469d43ba1c903f96e185d2bc0cf7de0c6fd225745b1e6007c20
7
- data.tar.gz: d97258d9ab42dbb92eaf778506ae40ae6bdd1acb1c224f8af2735efbf5e6ff5e9a9f4530d5c7d36df78b02ec43c3bb82bb5ea030c954abefa3601686311851d4
6
+ metadata.gz: 175a72cd7113c4a84a49b7e2fd892bda6cc4c14e76d75e65ce62c008deee0554f82b8160fbf72270874c1a3f6d833de5c75199fc7bdb437cb05f3cf3fff16249
7
+ data.tar.gz: 21f46fee283edcb3807dc7d795ce4fe836500ec90e80a3f5bb5ef9b28efd32f98a56eace511dd1a389ff628ef7610d8a926b2660208fab5bc6ee545d95efd3e1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- passbase (1.0.1)
4
+ passbase (1.0.2)
5
5
  faraday (>= 0.14.0)
6
6
 
7
7
  GEM
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.1
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.1.gem
28
+ gem install ./passbase-1.0.2.gem
29
29
  ```
30
30
 
31
- (for development, run `gem install --dev ./passbase-1.0.1.gem` to install the development dependencies)
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.1'
37
+ gem 'passbase', '~> 1.0.2'
38
38
 
39
39
  ### Install from Git
40
40
 
@@ -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.1"
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)
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.0.0-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module Passbase
14
- VERSION = '1.0.1'
14
+ VERSION = '1.0.2'
15
15
  end
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: passbase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Passbase