yaml 0.2.0 → 0.2.1

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: 6e6a2f22aae247b3218ae649b1deaab313db312f3f97857f79122b2bd9c782d5
4
- data.tar.gz: f1fd242c3e4699f88310faa8b41434d7739e820452c986427fcc6fbf31dec9a5
3
+ metadata.gz: 173972ebf3a985ecece1c627660d4d064aedcf85b25bbe3da707ab1cd9421581
4
+ data.tar.gz: eff61885260395c8bb27b60c13f267c6d065dcd7e16218a11f0e69705a5355da
5
5
  SHA512:
6
- metadata.gz: ea7c6c85d8bb976b949f0a96db1c9b3102132ad50333d7df9678eb77e9f78577ec549d9e91ea15a494dca0d2dbfa71f5e4dd24ad75dc15df4d11b34c320c7e00
7
- data.tar.gz: '05298e1632fb1a2cb3b76d31b17fa1af61710f25b28a07334fe97226b50c90a58ea7b3defad75f01bbda0fd97400bf5aab286d9268ec6ec3e72735ea44048ae7'
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,16 +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@v2
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: bundle install
19
+ bundler-cache: true
21
20
  - name: Run test
22
- 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/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.2.0"
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.2.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: 2021-10-14 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.3.0.dev
57
+ rubygems_version: 3.4.0.dev
57
58
  signing_key:
58
59
  specification_version: 4
59
60
  summary: YAML Ain't Markup Language