yuba 0.0.4 → 0.0.5

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
  SHA256:
3
- metadata.gz: 44fecdd9227315c32dd0ad9f68544cae39c26212642b4ac7e4e8ca413453f301
4
- data.tar.gz: 99560ac1d5b2380795838759882f8f36518dcb8c5e2b0c8f1ef4c908effa03ca
3
+ metadata.gz: 7d13a7bddc245ba124ce105b6827afb261d6268a417809a6bc7ec04e70cff0b9
4
+ data.tar.gz: c4769bdc11c239e2c99d848ab99f9b13309c5f6c4064b53b52b4087c025eeaa8
5
5
  SHA512:
6
- metadata.gz: 58937e1afd76b13778f95bb7c4b2605f50d9e0b94d13688e93a6e8097e6129bd3ed58fde82e098c247b6399576e1ee11679e7fa23d2a45a29e17c665aa5c67ea
7
- data.tar.gz: e9cbaff5f3734229394abf0be77570dc9537180e4a1846756b315de48cd98a51773b6aa5ec3d01d548e198a4f5b855f8f3c3c74596fbc0fb1e9058301a3e0bd4
6
+ metadata.gz: 8337d0d4addebc3bd44412fd23d4433ebb6f17d53db5e63dcfe666b4dda6351de39450f9d48ef7fc225d62871b52d90082cefac7e6b705b38b185c1c2e9c7733
7
+ data.tar.gz: 77447d91b1a2d68dd7cbf44055188d5e2bb6ac45b3b8e17af5101b0ce04952f7c4accb25f394eca3e8ba4a5b51690faba9978c45619a42603a265a19acd3c040
data/README.md CHANGED
@@ -178,6 +178,7 @@ class ArtistsController < ApplicationController
178
178
  render :new
179
179
  end
180
180
  end
181
+ end
181
182
  ```
182
183
 
183
184
  ```ruby
@@ -45,6 +45,12 @@ module Yuba
45
45
  raise ArgumentError, "missing 'property :#{key}' in #{self.class.name} class"
46
46
  end
47
47
  end
48
+
49
+ required_keys = _required_properties.keys
50
+ missing_keys = required_keys - args.keys
51
+ unless missing_keys.empty?
52
+ raise ArgumentError, "missing required arguments: #{missing_keys.join(',')}"
53
+ end
48
54
  end
49
55
 
50
56
  def define_accessors(args)
@@ -56,5 +62,9 @@ module Yuba
56
62
  self.singleton_class.class_eval { private key.to_sym } unless public_method
57
63
  end
58
64
  end
65
+
66
+ def _required_properties
67
+ _properties.reject { |_, value| value[:optional] }
68
+ end
59
69
  end
60
70
  end
@@ -1,3 +1,3 @@
1
1
  module Yuba
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yuba
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - willnet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-30 00:00:00.000000000 Z
11
+ date: 2021-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.0
19
+ version: 5.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 4.2.0
26
+ version: 5.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: reform-rails
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -123,7 +123,7 @@ dependencies:
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
- name: chromedriver-helper
126
+ name: webdrivers
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - ">="
@@ -179,8 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  requirements: []
182
- rubyforge_project:
183
- rubygems_version: 2.7.6
182
+ rubygems_version: 3.1.2
184
183
  signing_key:
185
184
  specification_version: 4
186
185
  summary: Add New Layers to Rails