yaml 0.1.0 → 0.2.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 +6 -0
- data/.github/workflows/test.yml +21 -0
- data/Gemfile +5 -2
- data/README.md +5 -3
- data/Rakefile +7 -0
- data/lib/yaml/store.rb +1 -1
- data/lib/yaml.rb +12 -4
- data/yaml.gemspec +3 -3
- metadata +9 -9
- data/.github/workflows/macos.yml +0 -22
- data/.github/workflows/ubuntu-rvm.yml +0 -33
- data/.github/workflows/ubuntu.yml +0 -22
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 173972ebf3a985ecece1c627660d4d064aedcf85b25bbe3da707ab1cd9421581
|
|
4
|
+
data.tar.gz: eff61885260395c8bb27b60c13f267c6d065dcd7e16218a11f0e69705a5355da
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4e38d75d7ae6fc2a2acfb77dde60ba1f41ecaf5f6a023f1de18d97ce4689852dbb4f02171082bf92cf340cae4ff6d3e157901737e2caa7cd9945950dc97f46fb
|
|
7
|
+
data.tar.gz: '0864745483a5368e93c888b4b1b619b2fc07c6339f255ae6a14f7b665c438c00524095247298fa411a9994f90f2eae84d2a2ae77a6870c1bda0bb800c9eb6f74'
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: ubuntu
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
|
|
8
|
+
strategy:
|
|
9
|
+
matrix:
|
|
10
|
+
ruby: [ '3.0', 2.7, 2.6, 2.5, 2.4, head ]
|
|
11
|
+
os: [ ubuntu-latest, macos-latest ]
|
|
12
|
+
runs-on: ${{ matrix.os }}
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v3.1.0
|
|
15
|
+
- name: Set up Ruby
|
|
16
|
+
uses: ruby/setup-ruby@v1
|
|
17
|
+
with:
|
|
18
|
+
ruby-version: ${{ matrix.ruby }}
|
|
19
|
+
bundler-cache: true
|
|
20
|
+
- name: Run test
|
|
21
|
+
run: bundle exec rake test
|
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
This module provides a Ruby interface for data serialization in YAML format.
|
|
4
4
|
|
|
5
|
-
The YAML module is an alias
|
|
5
|
+
The `YAML` module is an alias for
|
|
6
|
+
[Psych](https://ruby-doc.org/stdlib/libdoc/psych/rdoc/index.html),
|
|
7
|
+
the `YAML` engine for Ruby.
|
|
6
8
|
|
|
7
9
|
## Installation
|
|
8
10
|
|
|
@@ -35,8 +37,8 @@ YAML.dump("foo") # => "--- foo\n...\n"
|
|
|
35
37
|
{ :a => 'b'}.to_yaml # => "---\n:a: b\n"
|
|
36
38
|
```
|
|
37
39
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
For detailed documentation, see
|
|
41
|
+
[Psych](https://ruby-doc.org/stdlib/libdoc/psych/rdoc/index.html).
|
|
40
42
|
|
|
41
43
|
## Security
|
|
42
44
|
|
data/Rakefile
CHANGED
|
@@ -7,4 +7,11 @@ Rake::TestTask.new(:test) do |t|
|
|
|
7
7
|
t.test_files = FileList["test/**/test_*.rb"]
|
|
8
8
|
end
|
|
9
9
|
|
|
10
|
+
task :sync_tool do
|
|
11
|
+
require 'fileutils'
|
|
12
|
+
FileUtils.cp "../ruby/tool/lib/core_assertions.rb", "./test/lib"
|
|
13
|
+
FileUtils.cp "../ruby/tool/lib/envutil.rb", "./test/lib"
|
|
14
|
+
FileUtils.cp "../ruby/tool/lib/find_executable.rb", "./test/lib"
|
|
15
|
+
end
|
|
16
|
+
|
|
10
17
|
task :default => :test
|
data/lib/yaml/store.rb
CHANGED
data/lib/yaml.rb
CHANGED
|
@@ -3,9 +3,17 @@
|
|
|
3
3
|
begin
|
|
4
4
|
require 'psych'
|
|
5
5
|
rescue LoadError
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
case RUBY_ENGINE
|
|
7
|
+
when 'jruby'
|
|
8
|
+
warn "The Psych YAML extension failed to load.\n" \
|
|
9
|
+
"Check your env for conflicting versions of SnakeYAML\n" \
|
|
10
|
+
"See https://github.com/jruby/jruby/wiki/FAQs#why-does-the-psych-yaml-extension-fail-to-load-in-my-environment",
|
|
11
|
+
uplevel: 1
|
|
12
|
+
else
|
|
13
|
+
warn "It seems your ruby installation is missing psych (for YAML output).\n" \
|
|
14
|
+
"To eliminate this warning, please install libyaml and reinstall your ruby.\n",
|
|
15
|
+
uplevel: 1
|
|
16
|
+
end
|
|
9
17
|
raise
|
|
10
18
|
end
|
|
11
19
|
|
|
@@ -40,7 +48,7 @@ YAML = Psych # :nodoc:
|
|
|
40
48
|
#
|
|
41
49
|
# == History
|
|
42
50
|
#
|
|
43
|
-
# Syck was the original
|
|
51
|
+
# Syck was the original YAML implementation in Ruby's standard library
|
|
44
52
|
# developed by why the lucky stiff.
|
|
45
53
|
#
|
|
46
54
|
# You can still use Syck, if you prefer, for parsing and emitting YAML, but you
|
data/yaml.gemspec
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Gem::Specification.new do |spec|
|
|
2
2
|
spec.name = "yaml"
|
|
3
|
-
spec.version = "0.1
|
|
3
|
+
spec.version = "0.2.1"
|
|
4
4
|
spec.authors = ["Aaron Patterson", "SHIBATA Hiroshi"]
|
|
5
5
|
spec.email = ["aaron@tenderlovemaking.com", "hsbt@ruby-lang.org"]
|
|
6
6
|
|
|
7
7
|
spec.summary = "YAML Ain't Markup Language"
|
|
8
8
|
spec.description = spec.summary
|
|
9
9
|
spec.homepage = "https://github.com/ruby/yaml"
|
|
10
|
-
spec.
|
|
10
|
+
spec.licenses = ["Ruby", "BSD-2-Clause"]
|
|
11
11
|
|
|
12
12
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
13
13
|
spec.metadata["source_code_uri"] = spec.homepage
|
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
|
15
15
|
# Specify which files should be added to the gem when it is released.
|
|
16
16
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
17
17
|
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
|
18
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
18
|
+
`git ls-files -z 2>/dev/null`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
19
19
|
end
|
|
20
20
|
spec.bindir = "exe"
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
metadata
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: yaml
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Aaron Patterson
|
|
8
8
|
- SHIBATA Hiroshi
|
|
9
|
-
autorequire:
|
|
9
|
+
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2022-12-05 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: YAML Ain't Markup Language
|
|
15
15
|
email:
|
|
@@ -19,9 +19,8 @@ executables: []
|
|
|
19
19
|
extensions: []
|
|
20
20
|
extra_rdoc_files: []
|
|
21
21
|
files:
|
|
22
|
-
- ".github/
|
|
23
|
-
- ".github/workflows/
|
|
24
|
-
- ".github/workflows/ubuntu.yml"
|
|
22
|
+
- ".github/dependabot.yml"
|
|
23
|
+
- ".github/workflows/test.yml"
|
|
25
24
|
- ".gitignore"
|
|
26
25
|
- Gemfile
|
|
27
26
|
- LICENSE.txt
|
|
@@ -35,11 +34,12 @@ files:
|
|
|
35
34
|
- yaml.gemspec
|
|
36
35
|
homepage: https://github.com/ruby/yaml
|
|
37
36
|
licenses:
|
|
37
|
+
- Ruby
|
|
38
38
|
- BSD-2-Clause
|
|
39
39
|
metadata:
|
|
40
40
|
homepage_uri: https://github.com/ruby/yaml
|
|
41
41
|
source_code_uri: https://github.com/ruby/yaml
|
|
42
|
-
post_install_message:
|
|
42
|
+
post_install_message:
|
|
43
43
|
rdoc_options: []
|
|
44
44
|
require_paths:
|
|
45
45
|
- lib
|
|
@@ -54,8 +54,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
55
|
version: '0'
|
|
56
56
|
requirements: []
|
|
57
|
-
rubygems_version: 3.
|
|
58
|
-
signing_key:
|
|
57
|
+
rubygems_version: 3.4.0.dev
|
|
58
|
+
signing_key:
|
|
59
59
|
specification_version: 4
|
|
60
60
|
summary: YAML Ain't Markup Language
|
|
61
61
|
test_files: []
|
data/.github/workflows/macos.yml
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
name: macos
|
|
2
|
-
|
|
3
|
-
on: [push, pull_request]
|
|
4
|
-
|
|
5
|
-
jobs:
|
|
6
|
-
build:
|
|
7
|
-
runs-on: macos-latest
|
|
8
|
-
strategy:
|
|
9
|
-
matrix:
|
|
10
|
-
ruby: [ '2.6.x', '2.5.x', '2.4.x' ]
|
|
11
|
-
steps:
|
|
12
|
-
- uses: actions/checkout@master
|
|
13
|
-
- name: Set up Ruby
|
|
14
|
-
uses: actions/setup-ruby@v1
|
|
15
|
-
with:
|
|
16
|
-
ruby-version: ${{ matrix.ruby }}
|
|
17
|
-
- name: Set up Bundler
|
|
18
|
-
run: gem install bundler --no-document
|
|
19
|
-
- name: Install dependencies
|
|
20
|
-
run: bundle install
|
|
21
|
-
- name: Run test
|
|
22
|
-
run: rake
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
name: ubuntu-rvm
|
|
2
|
-
|
|
3
|
-
on: [push, pull_request]
|
|
4
|
-
|
|
5
|
-
jobs:
|
|
6
|
-
build:
|
|
7
|
-
runs-on: ubuntu-latest
|
|
8
|
-
strategy:
|
|
9
|
-
matrix:
|
|
10
|
-
ruby: [ 'ruby-head' ]
|
|
11
|
-
fail-fast: false
|
|
12
|
-
steps:
|
|
13
|
-
- uses: actions/checkout@master
|
|
14
|
-
- name: Set up RVM
|
|
15
|
-
run: |
|
|
16
|
-
curl -sSL https://get.rvm.io | bash
|
|
17
|
-
- name: Set up Ruby
|
|
18
|
-
run: |
|
|
19
|
-
source $HOME/.rvm/scripts/rvm
|
|
20
|
-
rvm install ${{ matrix.ruby }} --binary
|
|
21
|
-
rvm --default use ${{ matrix.ruby }}
|
|
22
|
-
- name: Set up Bundler
|
|
23
|
-
run: |
|
|
24
|
-
source $HOME/.rvm/scripts/rvm
|
|
25
|
-
gem install bundler --no-document
|
|
26
|
-
- name: Install dependencies
|
|
27
|
-
run: |
|
|
28
|
-
source $HOME/.rvm/scripts/rvm
|
|
29
|
-
bundle install
|
|
30
|
-
- name: Run test
|
|
31
|
-
run: |
|
|
32
|
-
source $HOME/.rvm/scripts/rvm
|
|
33
|
-
rake
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
name: ubuntu
|
|
2
|
-
|
|
3
|
-
on: [push, pull_request]
|
|
4
|
-
|
|
5
|
-
jobs:
|
|
6
|
-
build:
|
|
7
|
-
runs-on: ubuntu-latest
|
|
8
|
-
strategy:
|
|
9
|
-
matrix:
|
|
10
|
-
ruby: [ '2.6.x', '2.5.x', '2.4.x' ]
|
|
11
|
-
steps:
|
|
12
|
-
- uses: actions/checkout@master
|
|
13
|
-
- name: Set up Ruby
|
|
14
|
-
uses: actions/setup-ruby@v1
|
|
15
|
-
with:
|
|
16
|
-
ruby-version: ${{ matrix.ruby }}
|
|
17
|
-
- name: Set up Bundler
|
|
18
|
-
run: gem install bundler --no-document
|
|
19
|
-
- name: Install dependencies
|
|
20
|
-
run: bundle install
|
|
21
|
-
- name: Run test
|
|
22
|
-
run: rake
|