sengiri_yaml 0.0.4 → 1.0.0.rc1

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: 1bc9b7b545e4caeffc7a768c2e7780cc384c569e9263b969da6274d2d5fafdae
4
- data.tar.gz: 8d0895a01e0258d5a8cf9913a2600383e71339ca42a3a3e3d737366626ba50bc
3
+ metadata.gz: 7bd8b9cce07c06c68b1afe9572d7ed0e37679dfb172a2cf7e673107d43d3e1e8
4
+ data.tar.gz: 5fe177fcc8b1d4aa661e83bd4b8754828c10d7a598f046877f36acd3bdf01cf1
5
5
  SHA512:
6
- metadata.gz: 435f2940fcbd337b8e7738c8e0970cb30e7d1ce750494e72c490ee7b59d0a6547718d62bd6679befa3f6a52e4e84fd636011ac42d6fb337a91a8f73e6c6f8afc
7
- data.tar.gz: 15eea172ff624a0f195262caddd537b1374d8c72b9d20b6d7ccd44f4d6d4a9a68dfc5494619151d95526feb0288cb5ec6f40d3552cf4339e2580d6e92370fa0a
6
+ metadata.gz: b0e10879374694eb46a7013a2fb43756b950935e14985531d2a4e74650bee7bae5aad5dfc5f35aaef75d927908fc6e7cf242b9d09e42c95391ef988a71782fb5
7
+ data.tar.gz: f171330249493e1aec31d6a1a4bc13f2e6a6f30344f5b6ee89e68fbd677b238dfed7bec7000f8a8d70b0c7b5290327c114edf311b912984bc75d3d895f96dc04
@@ -12,9 +12,6 @@ on:
12
12
  schedule:
13
13
  - cron: "0 10 * * 5" # JST 19:00 (Fri)
14
14
 
15
- env:
16
- CI: "true"
17
-
18
15
  jobs:
19
16
  test:
20
17
  runs-on: ubuntu-latest
@@ -26,14 +23,10 @@ jobs:
26
23
 
27
24
  matrix:
28
25
  ruby:
29
- - ruby:2.1
30
- - ruby:2.2
31
- - ruby:2.3
32
- - ruby:2.4
33
- - ruby:2.5
34
26
  - ruby:2.6
35
27
  - ruby:2.7
36
28
  - ruby:3.0
29
+ - ruby:3.1
37
30
  - rubylang/ruby:master-nightly-bionic
38
31
  include:
39
32
  - ruby: rubylang/ruby:master-nightly-bionic
@@ -42,7 +35,6 @@ jobs:
42
35
  steps:
43
36
  - uses: actions/checkout@v2
44
37
 
45
-
46
38
  - name: Cache vendor/bundle
47
39
  uses: actions/cache@v1
48
40
  id: cache_gem
@@ -6,7 +6,7 @@ module SengiriYaml
6
6
  # load divided yaml files
7
7
  # @param src_dir [String] divided yaml dir
8
8
  # @return [Hash] merged yaml hash
9
- def load_dir(src_dir)
9
+ def load_dir(src_dir, permitted_classes: [], aliases: false)
10
10
  merged_content = ""
11
11
 
12
12
  Pathname.glob("#{src_dir}/*.yml").sort.each do |yaml_path|
@@ -14,7 +14,7 @@ module SengiriYaml
14
14
  merged_content << content
15
15
  end
16
16
 
17
- YAML.load(merged_content)
17
+ YAML.safe_load(merged_content, permitted_classes: permitted_classes, aliases: aliases)
18
18
  end
19
19
  end
20
20
  end
@@ -1,3 +1,3 @@
1
1
  module SengiriYaml
2
- VERSION = "0.0.4"
2
+ VERSION = "1.0.0.rc1"
3
3
  end
data/lib/sengiri_yaml.rb CHANGED
@@ -7,7 +7,7 @@ module SengiriYaml
7
7
 
8
8
  # load divided yaml files
9
9
  # @see SengiriYaml::Loader#load_dir
10
- def load_dir(src_dir)
11
- SengiriYaml::Loader.new.load_dir(src_dir)
10
+ def load_dir(src_dir, permitted_classes: [], aliases: false)
11
+ SengiriYaml::Loader.new.load_dir(src_dir, permitted_classes: permitted_classes, aliases: aliases)
12
12
  end
13
13
  end
data/sengiri_yaml.gemspec CHANGED
@@ -13,6 +13,8 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = "https://github.com/sue445/sengiri_yaml"
14
14
  spec.license = "MIT"
15
15
 
16
+ spec.required_ruby_version = ">= 2.6"
17
+
16
18
  spec.metadata["homepage_uri"] = spec.homepage
17
19
  spec.metadata["source_code_uri"] = spec.homepage
18
20
  spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sengiri_yaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 1.0.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-20 00:00:00.000000000 Z
11
+ date: 2021-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -156,14 +156,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - ">="
158
158
  - !ruby/object:Gem::Version
159
- version: '0'
159
+ version: '2.6'
160
160
  required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  requirements:
162
- - - ">="
162
+ - - ">"
163
163
  - !ruby/object:Gem::Version
164
- version: '0'
164
+ version: 1.3.1
165
165
  requirements: []
166
- rubygems_version: 3.2.22
166
+ rubygems_version: 3.3.3
167
167
  signing_key:
168
168
  specification_version: 4
169
169
  summary: divide yaml file