yaml 0.1.1 → 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 +4 -7
- data/Gemfile +5 -2
- data/README.md +4 -4
- data/Rakefile +1 -1
- data/lib/yaml/store.rb +1 -1
- data/lib/yaml.rb +11 -3
- data/yaml.gemspec +1 -1
- metadata +4 -3
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'
|
data/.github/workflows/test.yml
CHANGED
@@ -7,18 +7,15 @@ jobs:
|
|
7
7
|
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
|
8
8
|
strategy:
|
9
9
|
matrix:
|
10
|
-
ruby: [ 2.7, 2.6, 2.5, 2.4, head ]
|
10
|
+
ruby: [ '3.0', 2.7, 2.6, 2.5, 2.4, head ]
|
11
11
|
os: [ ubuntu-latest, macos-latest ]
|
12
12
|
runs-on: ${{ matrix.os }}
|
13
13
|
steps:
|
14
|
-
- uses: actions/checkout@
|
14
|
+
- uses: actions/checkout@v3.1.0
|
15
15
|
- name: Set up Ruby
|
16
16
|
uses: ruby/setup-ruby@v1
|
17
17
|
with:
|
18
18
|
ruby-version: ${{ matrix.ruby }}
|
19
|
-
|
20
|
-
run: |
|
21
|
-
gem install bundler --no-document
|
22
|
-
bundle install
|
19
|
+
bundler-cache: true
|
23
20
|
- name: Run test
|
24
|
-
run: rake test
|
21
|
+
run: bundle exec rake test
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
This module provides a Ruby interface for data serialization in YAML format.
|
4
4
|
|
5
|
-
The
|
6
|
-
|
7
|
-
the
|
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.
|
8
8
|
|
9
9
|
## Installation
|
10
10
|
|
@@ -38,7 +38,7 @@ YAML.dump("foo") # => "--- foo\n...\n"
|
|
38
38
|
```
|
39
39
|
|
40
40
|
For detailed documentation, see
|
41
|
-
|
41
|
+
[Psych](https://ruby-doc.org/stdlib/libdoc/psych/rdoc/index.html).
|
42
42
|
|
43
43
|
## Security
|
44
44
|
|
data/Rakefile
CHANGED
@@ -9,7 +9,7 @@ end
|
|
9
9
|
|
10
10
|
task :sync_tool do
|
11
11
|
require 'fileutils'
|
12
|
-
FileUtils.cp "../ruby/tool/lib/
|
12
|
+
FileUtils.cp "../ruby/tool/lib/core_assertions.rb", "./test/lib"
|
13
13
|
FileUtils.cp "../ruby/tool/lib/envutil.rb", "./test/lib"
|
14
14
|
FileUtils.cp "../ruby/tool/lib/find_executable.rb", "./test/lib"
|
15
15
|
end
|
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
|
|
data/yaml.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yaml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Patterson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
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,6 +19,7 @@ executables: []
|
|
19
19
|
extensions: []
|
20
20
|
extra_rdoc_files: []
|
21
21
|
files:
|
22
|
+
- ".github/dependabot.yml"
|
22
23
|
- ".github/workflows/test.yml"
|
23
24
|
- ".gitignore"
|
24
25
|
- Gemfile
|
@@ -53,7 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
54
|
- !ruby/object:Gem::Version
|
54
55
|
version: '0'
|
55
56
|
requirements: []
|
56
|
-
rubygems_version: 3.
|
57
|
+
rubygems_version: 3.4.0.dev
|
57
58
|
signing_key:
|
58
59
|
specification_version: 4
|
59
60
|
summary: YAML Ain't Markup Language
|