docile 1.4.0 → 1.4.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: f4c79b9041a97cfbf6ee0a6d93a9e98a30cc188918d0916ed6b1321f8ac9dca6
4
- data.tar.gz: 772048f651fadb4277aaa0cb0b91b45e1b95be9f36b3654a9eb5db1a0bb143ea
3
+ metadata.gz: 3ab78aa40ffa5d200278e0522b9d672df7cc994fcd657d778f7fba841366d28d
4
+ data.tar.gz: 9fca501288f9a9f21459d2c4ab2e0ff2cd7c5b2792f1a029987194d39d2bd448
5
5
  SHA512:
6
- metadata.gz: b4e3e7a9fcc953aed658c154dd6a4e43bc258e0895b6a5457f34a93dbcfd1d13808dc2a7d558b133515af695a9283f276d0f744dc57ed7caeae7394bb1ebe3c1
7
- data.tar.gz: 218c14f2cf80913d370376415f6c650e6c8d8eebfe8405f4529e820d3b2a46bf656ce45ca22ccb36a4409fffb31f823cea49515e1e21ed5c1584d66e55a9a550
6
+ metadata.gz: 62a9f3b52606c35f5f17891a8d7a4363e9af8aa6a02ae084abb2613a49a931dba48296c50810856aff35dfed68a901e1b6e7015d84fe27b13c80478356c44fe3
7
+ data.tar.gz: 618de21b012e6a6e34905536ad98d3edb1a4e99ffefbc2904e18e615fc4139dc8ae279eebeadf5bd0617da19a7f2c83ce553ead1226d7677aac292659b470134
@@ -14,18 +14,29 @@ jobs:
14
14
  matrix:
15
15
  os: [ubuntu-latest]
16
16
  # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
17
- ruby: [jruby, truffleruby, 2.5, 2.6, 2.7, '3.0', head]
17
+ ruby: [jruby, 2.7, '3.0', 3.1, 3.2, 3.3, head]
18
18
  runs-on: ${{ matrix.os }}
19
19
  steps:
20
- - uses: actions/checkout@v2.3.4
20
+ - uses: actions/checkout@v3.3.0
21
+
22
+ # Conditionally configure bundler via environment variables as advised
23
+ # * https://github.com/ruby/setup-ruby#bundle-config
24
+ - name: Set bundler environment variables
25
+ run: |
26
+ echo "BUNDLE_WITHOUT=checks" >> $GITHUB_ENV
27
+ if: matrix.ruby != 3.3
28
+
21
29
  - uses: ruby/setup-ruby@v1
22
30
  with:
23
31
  ruby-version: ${{ matrix.ruby }}
24
32
  bundler-cache: true
33
+
25
34
  - run: bundle exec rspec
26
- - uses: codecov/codecov-action@v1.5.0
35
+
36
+ - uses: codecov/codecov-action@v3.1.1
27
37
  with:
28
38
  name: ${{ matrix.ruby }}
29
39
  file: ./coverage/coverage.xml
40
+
30
41
  - run: bundle exec rubocop
31
- if: matrix.ruby == '3.0'
42
+ if: matrix.ruby == 3.3
data/.rubocop.yml CHANGED
@@ -1,2 +1,5 @@
1
1
  inherit_gem:
2
- panolint: rubocop.yml
2
+ panolint: panolint-rubocop.yml
3
+
4
+ require:
5
+ - rubocop-rake
data/Gemfile CHANGED
@@ -2,17 +2,17 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- # CI-only dependencies go here
6
- if ENV["CI"] == "true" # rubocop:disable Style/IfUnlessModifier
7
- gem "simplecov-cobertura", require: false, group: "test"
8
- end
9
-
10
- # Specify gem's dependencies in docile.gemspec
5
+ # Specify gem's runtime dependencies in docile.gemspec
11
6
  gemspec
12
7
 
13
8
  group :test do
14
9
  gem "rspec", "~> 3.10"
15
10
  gem "simplecov", require: false
11
+
12
+ # CI-only test dependencies go here
13
+ if ENV.fetch("CI", nil) == "true"
14
+ gem "simplecov-cobertura", require: false, group: "test"
15
+ end
16
16
  end
17
17
 
18
18
  # Excluded from CI except on latest MRI Ruby, to reduce compatibility burden
data/HISTORY.md CHANGED
@@ -1,6 +1,13 @@
1
1
  # HISTORY
2
2
 
3
- ## [Unreleased changes](http://github.com/ms-ati/docile/compare/v1.4.0...main)
3
+ ## [Unreleased changes](http://github.com/ms-ati/docile/compare/v1.4.1...main)
4
+
5
+ ## [v1.4.1 (May 12, 2021)](http://github.com/ms-ati/docile/compare/v1.4.0...v1.4.1)
6
+
7
+ - Special thanks to Mamoru TASAKA (@mtasaka):
8
+ - Starting point for a fix on the tests to pass on Ruby 3.3
9
+ - Added support for Ruby 3.2 and 3.3
10
+ - Removed support for Rubies below 2.7
4
11
 
5
12
  ## [v1.4.0 (May 12, 2021)](http://github.com/ms-ati/docile/compare/v1.3.5...v1.4.0)
6
13
 
@@ -11,7 +18,7 @@
11
18
  - Renamed default branch from master to main, see: https://github.com/github/renaming
12
19
  - Temporarily removed YARD doc configuration, to replace after
13
20
  migration to Github Actions
14
- - Removed support for all EOL Rubies < 2.6
21
+ - Removed support for all EOL Rubies < 2.5
15
22
  - Migrated CI from Travis to Github Actions
16
23
  - Special thanks (again!) to Taichi Ishitani (@taichi-ishitani):
17
24
  - Use more reliable codecov github action (via simplecov-cobertura)
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2012-2021 Marc Siegel
3
+ Copyright (c) 2012-2024 Marc Siegel
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -5,7 +5,6 @@
5
5
 
6
6
  [![Join the chat at https://gitter.im/ms-ati/docile](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ms-ati/docile?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
7
7
  [![Yard Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://rubydoc.info/github/ms-ati/docile)
8
- [![Docs Coverage](http://inch-ci.org/github/ms-ati/docile.png)](http://inch-ci.org/github/ms-ati/docile)
9
8
 
10
9
  [![Build Status](https://github.com/ms-ati/docile/actions/workflows/main.yml/badge.svg)](https://github.com/ms-ati/docile/actions/workflows/main.yml)
11
10
  [![Code Coverage](https://img.shields.io/codecov/c/github/ms-ati/docile.svg)](https://codecov.io/github/ms-ati/docile)
@@ -380,7 +379,7 @@ Docile releases follow
380
379
 
381
380
  ## Releasing
382
381
 
383
- To make a new release of `Dile` to
382
+ To make a new release of `Docile` to
384
383
  [RubyGems](https://rubygems.org/gems/docile), first install the release
385
384
  dependencies (e.g. `rake`) as follows:
386
385
 
@@ -404,7 +403,7 @@ Then carry out these steps:
404
403
 
405
404
  ## Copyright & License
406
405
 
407
- Copyright (c) 2012-2021 Marc Siegel.
406
+ Copyright (c) 2012-2024 Marc Siegel.
408
407
 
409
408
  Licensed under the [MIT License](http://choosealicense.com/licenses/mit/),
410
409
  see [LICENSE](LICENSE) for details.
data/SECURITY.md CHANGED
@@ -7,6 +7,7 @@ currently being supported with security updates.
7
7
 
8
8
  | Version | Supported |
9
9
  | ------- | ------------------ |
10
+ | 1.4.x | :white_check_mark: |
10
11
  | 1.3.x | :white_check_mark: |
11
12
  | < 1.3 | :x: |
12
13
 
data/docile.gemspec CHANGED
@@ -9,12 +9,12 @@ Gem::Specification.new do |s|
9
9
  s.email = "marc@usainnov.com"
10
10
  s.homepage = "https://ms-ati.github.io/docile/"
11
11
  s.summary = "Docile keeps your Ruby DSLs tame and well-behaved."
12
- s.description = "Docile treats the methods of a given ruby object as a DSL " \
13
- "(domain specific language) within a given block. \n\n" \
14
- "Killer feature: you can also reference methods, instance " \
12
+ s.description = "Docile treats the methods of a given ruby object as a DSL "\
13
+ "(domain specific language) within a given block. \n\n"\
14
+ "Killer feature: you can also reference methods, instance "\
15
15
  "variables, and local variables from the original (non-DSL) "\
16
- "context within the block. \n\n" \
17
- "Docile releases follow Semantic Versioning as defined at " \
16
+ "context within the block. \n\n"\
17
+ "Docile releases follow Semantic Versioning as defined at "\
18
18
  "semver.org."
19
19
  s.license = "MIT"
20
20
 
@@ -26,4 +26,11 @@ Gem::Specification.new do |s|
26
26
  f.match(%r{^(test|spec|features)/})
27
27
  end
28
28
  s.require_paths = ["lib"]
29
+
30
+ s.metadata = {
31
+ "homepage_uri" => "https://ms-ati.github.io/docile/",
32
+ "changelog_uri" => "https://github.com/ms-ati/docile/blob/main/HISTORY.md",
33
+ "source_code_uri" => "https://github.com/ms-ati/docile",
34
+ "rubygems_mfa_required" => "true",
35
+ }
29
36
  end
@@ -12,7 +12,7 @@ module Docile
12
12
  FILTER_PATTERN = %r{/lib/docile/}.freeze
13
13
 
14
14
  def backtrace
15
- super.reject { |trace| trace =~ FILTER_PATTERN }
15
+ super.grep_v(FILTER_PATTERN)
16
16
  end
17
17
 
18
18
  if ::Exception.public_method_defined?(:backtrace_locations)
@@ -18,7 +18,7 @@ module Docile
18
18
  # Proxy methods as in {FallbackContextProxy#method_missing}, replacing
19
19
  # `receiver` with the returned value.
20
20
  def method_missing(method, *args, &block)
21
- @__receiver__ = super(method, *args, &block)
21
+ @__receiver__ = super
22
22
  end
23
23
 
24
24
  ruby2_keywords :method_missing if respond_to?(:ruby2_keywords, true)
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Docile
4
4
  # The current version of this library
5
- VERSION = "1.4.0"
5
+ VERSION = "1.4.1"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docile
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc Siegel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-12 00:00:00.000000000 Z
11
+ date: 2024-07-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: "Docile treats the methods of a given ruby object as a DSL (domain specific
14
14
  language) within a given block. \n\nKiller feature: you can also reference methods,
@@ -41,7 +41,11 @@ files:
41
41
  homepage: https://ms-ati.github.io/docile/
42
42
  licenses:
43
43
  - MIT
44
- metadata: {}
44
+ metadata:
45
+ homepage_uri: https://ms-ati.github.io/docile/
46
+ changelog_uri: https://github.com/ms-ati/docile/blob/main/HISTORY.md
47
+ source_code_uri: https://github.com/ms-ati/docile
48
+ rubygems_mfa_required: 'true'
45
49
  post_install_message:
46
50
  rdoc_options: []
47
51
  require_paths:
@@ -57,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
61
  - !ruby/object:Gem::Version
58
62
  version: '0'
59
63
  requirements: []
60
- rubygems_version: 3.2.3
64
+ rubygems_version: 3.5.9
61
65
  signing_key:
62
66
  specification_version: 4
63
67
  summary: Docile keeps your Ruby DSLs tame and well-behaved.