loadable_config 1.0.2 → 1.0.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: 2153b2961506934d27948af7660831a29ce3d85defb804c53324ab38ac5679a5
4
- data.tar.gz: a157cfebfc702502735a7688b378e73abfd1a9d65d9d9b13157291e7bbaad43c
3
+ metadata.gz: 33c373a5e0f4a214006136bab94ad6c340569d39243d42239aa6d585666b5504
4
+ data.tar.gz: 346a2170ef3e5c8c8c675ee63e725d775fe6b58918f37fb5cc90b720277cf7f9
5
5
  SHA512:
6
- metadata.gz: '097c1180bde429a02e888aee8d6576326a51801dc909fe079dc995c755c217133d1328b8996aa41d436cc3e59889716a772a9a14a8741d21c19cf41ef826e06b'
7
- data.tar.gz: 1ef8f315b273d1966d784c2ea1c3826eb4ce278e65c22913a0e8f9d3a1d9000d7bab8bfdb4b7d4e011858067999a6a5c45c05dd685657e167a98f7c6118bedec
6
+ metadata.gz: 2a7a4699f631c1929510007fb0bb2f57aedbe8b9dd948f2646fada1e5e1ab9ccad49fe33b5b801450658e667acf308c481e5222cb3c80ab7396c4f99ec4ad972
7
+ data.tar.gz: 444ed617779485ad69f4667c4be6d6781e57b304d1e7d24b9860c3f324d3f8fbc40f46f265d428bf131689228d1a8ea9c6d95240a5c9a26b648a93bad394af5a
data/.circleci/config.yml CHANGED
@@ -10,7 +10,7 @@ executors:
10
10
  type: string
11
11
  default: "Gemfile"
12
12
  docker:
13
- - image: circleci/ruby:<< parameters.ruby-version >>
13
+ - image: cimg/ruby:<< parameters.ruby-version >>
14
14
  environment:
15
15
  BUNDLE_JOBS: 3
16
16
  BUNDLE_RETRY: 3
@@ -81,20 +81,20 @@ workflows:
81
81
  version: 2.1
82
82
  build:
83
83
  jobs:
84
- - test:
85
- name: 'ruby 2.6'
86
- ruby-version: "2.6"
87
84
  - test:
88
85
  name: 'ruby 2.7'
89
86
  ruby-version: "2.7"
90
87
  - test:
91
88
  name: 'ruby 3.0'
92
89
  ruby-version: "3.0"
90
+ - test:
91
+ name: 'ruby 3.1'
92
+ ruby-version: "3.1"
93
93
  - publish:
94
94
  requires:
95
- - 'ruby 2.6'
96
95
  - 'ruby 2.7'
97
96
  - 'ruby 3.0'
97
+ - 'ruby 3.1'
98
98
  filters:
99
99
  branches:
100
100
  only: master
@@ -1,3 +1,3 @@
1
1
  class LoadableConfig
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  end
@@ -21,7 +21,7 @@ class LoadableConfig
21
21
  @_config_file = path
22
22
  end
23
23
 
24
- def attribute(attr, type: :string, schema: {}, optional: false, serializer: nil, default: nil)
24
+ def attribute(attr, type: :string, schema: {}, serializer: nil, default: nil, optional: !default.nil?)
25
25
  @_attributes ||= []
26
26
  attr = attr.to_sym
27
27
  if ATTRIBUTE_BLACKLIST.include?(attr)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loadable_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - iKnow Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-21 00:00:00.000000000 Z
11
+ date: 2022-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_schema
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  - !ruby/object:Gem::Version
107
107
  version: '0'
108
108
  requirements: []
109
- rubygems_version: 3.0.3.1
109
+ rubygems_version: 3.3.11
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: Simple declarative configuration files