sengiri_yaml 1.0.0.rc1 → 1.0.1
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 +4 -4
- data/.github/dependabot.yml +12 -0
- data/.github/workflows/pages.yml +59 -0
- data/.github/workflows/release_gem.yml +41 -0
- data/.github/workflows/test.yml +20 -42
- data/CHANGELOG.md +15 -0
- data/Gemfile +5 -0
- data/README.md +1 -1
- data/lib/sengiri_yaml/version.rb +1 -1
- data/sengiri_yaml.gemspec +3 -2
- data/spec/bin/sengitri_spec.rb +1 -1
- data/spec/sengiri_yaml/writer_spec.rb +4 -4
- data/spec/spec_helper.rb +0 -1
- metadata +16 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b251d41b3795fd1d76258cc7ea1af246a263513130c0e55a878f7f79aa6ac349
|
|
4
|
+
data.tar.gz: 3fffa2b37e6f4136dbb5b65d0b0a8a106b37a3275d00fdd039694e183faae357
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f6fa7a780c9ee3f71a96362ed82bbd8022d42b50d3f92cd49719cf6e40040523f24b509776539d23ed3253f91cf915ac06be8f80c50a10de900760f55da9e338
|
|
7
|
+
data.tar.gz: 2acc8cbf526596c8c41b68042d003141dd3fc6501e50ca377e0d50b8488a9b799302aa7dfecacff262cf046304c3730609ac2bdc415c770ce7ff20f6544d9d98
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# c.f. https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
|
2
|
+
version: 2
|
|
3
|
+
|
|
4
|
+
updates:
|
|
5
|
+
- package-ecosystem: github-actions
|
|
6
|
+
directory: /
|
|
7
|
+
schedule:
|
|
8
|
+
interval: weekly
|
|
9
|
+
cooldown:
|
|
10
|
+
default-days: 7
|
|
11
|
+
assignees:
|
|
12
|
+
- sue445
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Simple workflow for deploying static content to GitHub Pages
|
|
2
|
+
name: Deploy static content to Pages
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
# Runs on pushes targeting the default branch
|
|
6
|
+
push:
|
|
7
|
+
branches:
|
|
8
|
+
- master
|
|
9
|
+
|
|
10
|
+
# Allows you to run this workflow manually from the Actions tab
|
|
11
|
+
workflow_dispatch:
|
|
12
|
+
|
|
13
|
+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
pages: write
|
|
17
|
+
id-token: write
|
|
18
|
+
|
|
19
|
+
# Allow one concurrent deployment
|
|
20
|
+
concurrency:
|
|
21
|
+
group: "pages"
|
|
22
|
+
cancel-in-progress: true
|
|
23
|
+
|
|
24
|
+
jobs:
|
|
25
|
+
# Single deploy job since we're just deploying
|
|
26
|
+
deploy:
|
|
27
|
+
environment:
|
|
28
|
+
name: github-pages
|
|
29
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
30
|
+
runs-on: ubuntu-latest
|
|
31
|
+
steps:
|
|
32
|
+
- name: Checkout
|
|
33
|
+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
|
|
34
|
+
|
|
35
|
+
- uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
|
|
36
|
+
with:
|
|
37
|
+
ruby-version: ruby
|
|
38
|
+
bundler-cache: true
|
|
39
|
+
|
|
40
|
+
- run: bundle exec yard
|
|
41
|
+
|
|
42
|
+
- name: Setup Pages
|
|
43
|
+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
|
|
44
|
+
- name: Upload artifact
|
|
45
|
+
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
|
|
46
|
+
with:
|
|
47
|
+
# Upload entire repository
|
|
48
|
+
path: './doc'
|
|
49
|
+
- name: Deploy to GitHub Pages
|
|
50
|
+
id: deployment
|
|
51
|
+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
|
|
52
|
+
|
|
53
|
+
- name: Slack Notification (not success)
|
|
54
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
55
|
+
if: "! success()"
|
|
56
|
+
continue-on-error: true
|
|
57
|
+
with:
|
|
58
|
+
status: ${{ job.status }}
|
|
59
|
+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
name: Publish gem to rubygems.org
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
release:
|
|
8
|
+
if: github.repository == 'sue445/sengiri_yaml'
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
|
|
11
|
+
environment:
|
|
12
|
+
name: rubygems.org
|
|
13
|
+
url: https://rubygems.org/gems/sengiri_yaml
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: write
|
|
17
|
+
id-token: write
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- name: Harden Runner
|
|
21
|
+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
|
|
22
|
+
with:
|
|
23
|
+
egress-policy: audit
|
|
24
|
+
|
|
25
|
+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
26
|
+
|
|
27
|
+
- name: Set up Ruby
|
|
28
|
+
uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0
|
|
29
|
+
with:
|
|
30
|
+
bundler-cache: true
|
|
31
|
+
ruby-version: ruby
|
|
32
|
+
|
|
33
|
+
- name: Publish to RubyGems
|
|
34
|
+
uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1
|
|
35
|
+
|
|
36
|
+
- name: Create GitHub release
|
|
37
|
+
run: |
|
|
38
|
+
tag_name="$(git describe --tags --abbrev=0)"
|
|
39
|
+
gh release create "${tag_name}" --verify-tag --generate-notes
|
|
40
|
+
env:
|
|
41
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
data/.github/workflows/test.yml
CHANGED
|
@@ -16,58 +16,39 @@ jobs:
|
|
|
16
16
|
test:
|
|
17
17
|
runs-on: ubuntu-latest
|
|
18
18
|
|
|
19
|
-
container: ${{ matrix.ruby }}
|
|
20
|
-
|
|
21
19
|
strategy:
|
|
22
20
|
fail-fast: false
|
|
23
21
|
|
|
24
22
|
matrix:
|
|
25
23
|
ruby:
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
|
|
32
|
-
-
|
|
33
|
-
allow_failures: "true"
|
|
24
|
+
- "2.6"
|
|
25
|
+
- "2.7"
|
|
26
|
+
- "3.0"
|
|
27
|
+
- "3.1"
|
|
28
|
+
- "3.2"
|
|
29
|
+
- "3.3"
|
|
30
|
+
- "3.4"
|
|
34
31
|
|
|
35
32
|
steps:
|
|
36
|
-
- uses: actions/checkout@
|
|
33
|
+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
|
|
37
34
|
|
|
38
|
-
-
|
|
39
|
-
uses: actions/cache@v1
|
|
40
|
-
id: cache_gem
|
|
35
|
+
- uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
|
|
41
36
|
with:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
restore-keys: |
|
|
45
|
-
v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
|
|
46
|
-
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
|
37
|
+
ruby-version: ${{ matrix.ruby }}
|
|
38
|
+
bundler-cache: true
|
|
47
39
|
|
|
48
|
-
-
|
|
49
|
-
run: |
|
|
50
|
-
set -xe
|
|
51
|
-
bundle config path vendor/bundle
|
|
52
|
-
bundle update --jobs $(nproc) --retry 3
|
|
53
|
-
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
|
40
|
+
- run: bundle update --jobs $(nproc) --retry 3
|
|
54
41
|
|
|
55
|
-
-
|
|
56
|
-
run: |
|
|
57
|
-
set -xe
|
|
58
|
-
bundle exec rspec
|
|
59
|
-
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
|
42
|
+
- run: bundle exec rspec
|
|
60
43
|
|
|
61
44
|
- name: Slack Notification (not success)
|
|
62
|
-
uses:
|
|
45
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
63
46
|
if: "! success()"
|
|
64
47
|
continue-on-error: true
|
|
65
48
|
with:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
url: ${{ secrets.SLACK_WEBHOOK }}
|
|
70
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
49
|
+
status: ${{ job.status }}
|
|
50
|
+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
|
51
|
+
matrix: ${{ toJson(matrix) }}
|
|
71
52
|
|
|
72
53
|
notify:
|
|
73
54
|
needs:
|
|
@@ -77,12 +58,9 @@ jobs:
|
|
|
77
58
|
|
|
78
59
|
steps:
|
|
79
60
|
- name: Slack Notification (success)
|
|
80
|
-
uses:
|
|
61
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
81
62
|
if: always()
|
|
82
63
|
continue-on-error: true
|
|
83
64
|
with:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
icon_emoji: ":octocat:"
|
|
87
|
-
url: ${{ secrets.SLACK_WEBHOOK }}
|
|
88
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
65
|
+
status: ${{ job.status }}
|
|
66
|
+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## Unreleased
|
|
4
|
+
[Full Changelog](https://github.com/sue445/sengiri_yaml/compare/v1.0.1...master)
|
|
5
|
+
|
|
6
|
+
## [v1.0.1](https://github.com/sue445/sengiri_yaml/releases/tag/v1.0.1) (2025-11-30)
|
|
7
|
+
[Full Changelog](https://github.com/sue445/sengiri_yaml/compare/v1.0.0...v1.0.1)
|
|
8
|
+
|
|
9
|
+
* Release gem from GitHub Actions
|
|
10
|
+
* https://github.com/sue445/sengiri_yaml/pull/47
|
|
11
|
+
|
|
12
|
+
## [v1.0.0](https://github.com/sue445/sengiri_yaml/tree/v0.0.4) (2021-12-31)
|
|
13
|
+
[Full Changelog](https://github.com/sue445/sengiri_yaml/compare/v0.0.4...v1.0.0)
|
|
14
|
+
|
|
15
|
+
* **:bomb: [Breaking Change]** Use `permitted_classes` and `aliases` for Ruby 3.1+ and drop support ruby < 2.6
|
|
16
|
+
* https://github.com/sue445/sengiri_yaml/pull/26
|
|
17
|
+
|
|
3
18
|
## [v0.0.4](https://github.com/sue445/sengiri_yaml/tree/v0.0.4) (2021-11-20)
|
|
4
19
|
[Full Changelog](https://github.com/sue445/sengiri_yaml/compare/v0.0.3...v0.0.4)
|
|
5
20
|
|
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# SengiriYaml
|
|
2
2
|
|
|
3
3
|
[](http://badge.fury.io/rb/sengiri_yaml)
|
|
4
|
-
[](https://github.com/sue445/sengiri_yaml/actions/workflows/test.yml)
|
|
5
5
|
[](https://codeclimate.com/github/sue445/sengiri_yaml)
|
|
6
6
|
[](https://coveralls.io/r/sue445/sengiri_yaml)
|
|
7
7
|
|
data/lib/sengiri_yaml/version.rb
CHANGED
data/sengiri_yaml.gemspec
CHANGED
|
@@ -18,6 +18,7 @@ Gem::Specification.new do |spec|
|
|
|
18
18
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
19
19
|
spec.metadata["source_code_uri"] = spec.homepage
|
|
20
20
|
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
|
|
21
|
+
spec.metadata["documentation_uri"] = "https://sue445.github.io/sengiri_yaml/"
|
|
21
22
|
spec.metadata["rubygems_mfa_required"] = "true"
|
|
22
23
|
|
|
23
24
|
spec.files = `git ls-files -z`.split("\x0")
|
|
@@ -26,10 +27,10 @@ Gem::Specification.new do |spec|
|
|
|
26
27
|
spec.require_paths = ["lib"]
|
|
27
28
|
|
|
28
29
|
spec.add_development_dependency "bundler"
|
|
29
|
-
spec.add_development_dependency "
|
|
30
|
+
spec.add_development_dependency "coveralls_reborn"
|
|
30
31
|
spec.add_development_dependency "rake"
|
|
31
32
|
spec.add_development_dependency "rspec"
|
|
32
|
-
spec.add_development_dependency "rspec-power_assert"
|
|
33
33
|
spec.add_development_dependency "rspec-temp_dir"
|
|
34
|
+
spec.add_development_dependency "term-ansicolor", "!= 1.11.1" # ref. https://github.com/flori/term-ansicolor/issues/41
|
|
34
35
|
spec.add_development_dependency "yard"
|
|
35
36
|
end
|
data/spec/bin/sengitri_spec.rb
CHANGED
|
@@ -36,8 +36,8 @@ data2:
|
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
it{ should eq [data1_file, data2_file] }
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
it { expect(File.read(data1_file)).to eq data1_yml }
|
|
40
|
+
it { expect(File.read(data2_file)).to eq data2_yml }
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
describe "with array yaml" do
|
|
@@ -72,8 +72,8 @@ data2:
|
|
|
72
72
|
end
|
|
73
73
|
|
|
74
74
|
it{ should eq [data1_file, data2_file] }
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
it { expect(File.read(data1_file)).to eq data1_yml }
|
|
76
|
+
it { expect(File.read(data2_file)).to eq data2_yml }
|
|
77
77
|
end
|
|
78
78
|
end
|
|
79
79
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sengiri_yaml
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sue445
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: bundler
|
|
@@ -25,7 +24,7 @@ dependencies:
|
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
25
|
version: '0'
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
name:
|
|
27
|
+
name: coveralls_reborn
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
30
29
|
requirements:
|
|
31
30
|
- - ">="
|
|
@@ -67,7 +66,7 @@ dependencies:
|
|
|
67
66
|
- !ruby/object:Gem::Version
|
|
68
67
|
version: '0'
|
|
69
68
|
- !ruby/object:Gem::Dependency
|
|
70
|
-
name: rspec-
|
|
69
|
+
name: rspec-temp_dir
|
|
71
70
|
requirement: !ruby/object:Gem::Requirement
|
|
72
71
|
requirements:
|
|
73
72
|
- - ">="
|
|
@@ -81,19 +80,19 @@ dependencies:
|
|
|
81
80
|
- !ruby/object:Gem::Version
|
|
82
81
|
version: '0'
|
|
83
82
|
- !ruby/object:Gem::Dependency
|
|
84
|
-
name:
|
|
83
|
+
name: term-ansicolor
|
|
85
84
|
requirement: !ruby/object:Gem::Requirement
|
|
86
85
|
requirements:
|
|
87
|
-
- - "
|
|
86
|
+
- - "!="
|
|
88
87
|
- !ruby/object:Gem::Version
|
|
89
|
-
version:
|
|
88
|
+
version: 1.11.1
|
|
90
89
|
type: :development
|
|
91
90
|
prerelease: false
|
|
92
91
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
92
|
requirements:
|
|
94
|
-
- - "
|
|
93
|
+
- - "!="
|
|
95
94
|
- !ruby/object:Gem::Version
|
|
96
|
-
version:
|
|
95
|
+
version: 1.11.1
|
|
97
96
|
- !ruby/object:Gem::Dependency
|
|
98
97
|
name: yard
|
|
99
98
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -117,6 +116,9 @@ extensions: []
|
|
|
117
116
|
extra_rdoc_files: []
|
|
118
117
|
files:
|
|
119
118
|
- ".coveralls.yml"
|
|
119
|
+
- ".github/dependabot.yml"
|
|
120
|
+
- ".github/workflows/pages.yml"
|
|
121
|
+
- ".github/workflows/release_gem.yml"
|
|
120
122
|
- ".github/workflows/test.yml"
|
|
121
123
|
- ".gitignore"
|
|
122
124
|
- ".rspec"
|
|
@@ -147,8 +149,8 @@ metadata:
|
|
|
147
149
|
homepage_uri: https://github.com/sue445/sengiri_yaml
|
|
148
150
|
source_code_uri: https://github.com/sue445/sengiri_yaml
|
|
149
151
|
changelog_uri: https://github.com/sue445/sengiri_yaml/blob/master/CHANGELOG.md
|
|
152
|
+
documentation_uri: https://sue445.github.io/sengiri_yaml/
|
|
150
153
|
rubygems_mfa_required: 'true'
|
|
151
|
-
post_install_message:
|
|
152
154
|
rdoc_options: []
|
|
153
155
|
require_paths:
|
|
154
156
|
- lib
|
|
@@ -159,12 +161,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
159
161
|
version: '2.6'
|
|
160
162
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
163
|
requirements:
|
|
162
|
-
- - "
|
|
164
|
+
- - ">="
|
|
163
165
|
- !ruby/object:Gem::Version
|
|
164
|
-
version:
|
|
166
|
+
version: '0'
|
|
165
167
|
requirements: []
|
|
166
|
-
rubygems_version: 3.
|
|
167
|
-
signing_key:
|
|
168
|
+
rubygems_version: 3.6.7
|
|
168
169
|
specification_version: 4
|
|
169
170
|
summary: divide yaml file
|
|
170
171
|
test_files:
|