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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 565bcdd1deae9611ca074484b22f758c3f5fc330ac293c98f091dfae1cfe23bc
4
- data.tar.gz: 04f1e3e2a0f10df43ed7129e2858a7cd863a29e08eb0220f2abd5348adbe6f6c
3
+ metadata.gz: 173972ebf3a985ecece1c627660d4d064aedcf85b25bbe3da707ab1cd9421581
4
+ data.tar.gz: eff61885260395c8bb27b60c13f267c6d065dcd7e16218a11f0e69705a5355da
5
5
  SHA512:
6
- metadata.gz: 1454f9a253109365062a44c7b3060b6da35af57e321ae262b8ee38881b69c92a5075a90fb838eb819acdfec3e000f90b66fb1d8c9ae9394a8aa7e3b3a5261a51
7
- data.tar.gz: 7b46318d4966fd1c006be99d61e4d46edc4a478e9d2c5c18d390c098722572b4a6f22cd4468ff6cd1c394a747af08fdd82d069a76230484c18fb70f3e284dba7
6
+ metadata.gz: 4e38d75d7ae6fc2a2acfb77dde60ba1f41ecaf5f6a023f1de18d97ce4689852dbb4f02171082bf92cf340cae4ff6d3e157901737e2caa7cd9945950dc97f46fb
7
+ data.tar.gz: '0864745483a5368e93c888b4b1b619b2fc07c6339f255ae6a14f7b665c438c00524095247298fa411a9994f90f2eae84d2a2ae77a6870c1bda0bb800c9eb6f74'
@@ -0,0 +1,6 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: 'github-actions'
4
+ directory: '/'
5
+ schedule:
6
+ interval: 'weekly'
@@ -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@master
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
- - name: Install dependencies
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
@@ -1,9 +1,12 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gemspec
4
-
5
3
  group :development do
6
4
  gem "bundler"
7
5
  gem "rake"
8
6
  gem "test-unit"
7
+
8
+ # Workaround for `unsafe_load`
9
+ if "3.0" > RUBY_VERSION
10
+ gem "psych", ">= 4.0"
11
+ end
9
12
  end
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 \YAML module is an alias for
6
- {Psych}[https://ruby-doc.org/stdlib/libdoc/psych/rdoc/index.html],
7
- the \YAML engine for Ruby.
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
- {Psych}[https://ruby-doc.org/stdlib/libdoc/psych/rdoc/index.html].
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/test/unit/core_assertions.rb", "./test/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
@@ -65,7 +65,7 @@ class YAML::Store < PStore
65
65
  end
66
66
 
67
67
  def load(content)
68
- table = YAML.load(content)
68
+ table = YAML.unsafe_load(content)
69
69
  if table == false
70
70
  {}
71
71
  else
data/lib/yaml.rb CHANGED
@@ -3,9 +3,17 @@
3
3
  begin
4
4
  require 'psych'
5
5
  rescue LoadError
6
- warn "It seems your ruby installation is missing psych (for YAML output).\n" \
7
- "To eliminate this warning, please install libyaml and reinstall your ruby.\n",
8
- uplevel: 1
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "yaml"
3
- spec.version = "0.1.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
 
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.1.1
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: 2020-12-22 00:00:00.000000000 Z
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.2.2
57
+ rubygems_version: 3.4.0.dev
57
58
  signing_key:
58
59
  specification_version: 4
59
60
  summary: YAML Ain't Markup Language