object_identifier 0.4.0 → 0.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +33 -31
- data/LICENSE.txt +1 -1
- data/README.md +4 -2
- data/lib/core_ext/object.rb +2 -2
- data/lib/object_identifier/identifier.rb +2 -2
- data/lib/object_identifier/version.rb +1 -1
- data/object_identifier.gemspec +2 -2
- metadata +5 -6
- data/.travis.yml +0 -19
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c0a0e09332282b492a3c9e83f9ab59a319a421c9ed3e83c2bfa87f6bfe20e6bd
|
|
4
|
+
data.tar.gz: 7b27cf091a8ecfd1c747fb75918f4b88aabd725dba3221489021aa2f5d24138a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6b1150c07800795094a4f15e475ba180187c51e248f0a5cfb385030b9720c4b2e3000692974f89eecc211b223778159b3041b358957265ae7e2e55b2835f8e47
|
|
7
|
+
data.tar.gz: 75b8bc577271cfe6b8a58ec5ec8a7d65c1e308aee3dfef8481e65869ac4e749ff9725f7f0d4fa752b391638c0e4b0003cafd2cd91ff352514fa03301df7931e8
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
### 0.4.1 - 2022-12-?
|
|
2
|
+
- Make compatible with Ruby 3.2 (and likely Ruby 3.0 and 3.1 as well).
|
|
3
|
+
- Update development dependencies.
|
|
4
|
+
|
|
1
5
|
### 0.4.0 - 2020-09-01
|
|
2
6
|
- [#4](https://github.com/pdobb/object_identifier/pull/4) Only show attribute names if identifying more than one attribute.
|
|
3
7
|
- Update development dependencies.
|
data/Gemfile.lock
CHANGED
|
@@ -1,61 +1,63 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
object_identifier (0.4.
|
|
4
|
+
object_identifier (0.4.1)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
8
8
|
specs:
|
|
9
9
|
ansi (1.5.0)
|
|
10
|
-
ast (2.4.
|
|
10
|
+
ast (2.4.2)
|
|
11
11
|
builder (3.2.4)
|
|
12
12
|
byebug (11.1.3)
|
|
13
13
|
coderay (1.1.3)
|
|
14
|
-
docile (1.
|
|
14
|
+
docile (1.4.0)
|
|
15
|
+
json (2.6.3)
|
|
15
16
|
kwalify (0.7.2)
|
|
16
17
|
method_source (1.0.0)
|
|
17
|
-
minitest (5.
|
|
18
|
-
minitest-reporters (1.
|
|
18
|
+
minitest (5.16.3)
|
|
19
|
+
minitest-reporters (1.5.0)
|
|
19
20
|
ansi
|
|
20
21
|
builder
|
|
21
22
|
minitest (>= 5.0)
|
|
22
23
|
ruby-progressbar
|
|
23
|
-
parallel (1.
|
|
24
|
-
parser (
|
|
24
|
+
parallel (1.22.1)
|
|
25
|
+
parser (3.1.3.0)
|
|
25
26
|
ast (~> 2.4.1)
|
|
26
|
-
pry (0.
|
|
27
|
+
pry (0.14.1)
|
|
27
28
|
coderay (~> 1.1)
|
|
28
29
|
method_source (~> 1.0)
|
|
29
|
-
pry-byebug (3.
|
|
30
|
+
pry-byebug (3.10.1)
|
|
30
31
|
byebug (~> 11.0)
|
|
31
|
-
pry (
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
reek (6.0.1)
|
|
32
|
+
pry (>= 0.13, < 0.15)
|
|
33
|
+
rainbow (3.1.1)
|
|
34
|
+
rake (13.0.6)
|
|
35
|
+
reek (6.1.3)
|
|
36
36
|
kwalify (~> 0.7.0)
|
|
37
|
-
parser (
|
|
38
|
-
psych (~> 3.1.0)
|
|
37
|
+
parser (~> 3.1.0)
|
|
39
38
|
rainbow (>= 2.0, < 4.0)
|
|
40
|
-
regexp_parser (
|
|
41
|
-
rexml (3.2.
|
|
42
|
-
rubocop (
|
|
39
|
+
regexp_parser (2.6.1)
|
|
40
|
+
rexml (3.2.5)
|
|
41
|
+
rubocop (1.41.1)
|
|
42
|
+
json (~> 2.3)
|
|
43
43
|
parallel (~> 1.10)
|
|
44
|
-
parser (>=
|
|
44
|
+
parser (>= 3.1.2.1)
|
|
45
45
|
rainbow (>= 2.2.2, < 4.0)
|
|
46
|
-
regexp_parser (>= 1.
|
|
47
|
-
rexml
|
|
48
|
-
rubocop-ast (>=
|
|
46
|
+
regexp_parser (>= 1.8, < 3.0)
|
|
47
|
+
rexml (>= 3.2.5, < 4.0)
|
|
48
|
+
rubocop-ast (>= 1.23.0, < 2.0)
|
|
49
49
|
ruby-progressbar (~> 1.7)
|
|
50
|
-
unicode-display_width (>= 1.4.0, <
|
|
51
|
-
rubocop-ast (
|
|
52
|
-
parser (>=
|
|
53
|
-
ruby-progressbar (1.
|
|
54
|
-
simplecov (0.
|
|
50
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
|
51
|
+
rubocop-ast (1.24.1)
|
|
52
|
+
parser (>= 3.1.1.0)
|
|
53
|
+
ruby-progressbar (1.11.0)
|
|
54
|
+
simplecov (0.22.0)
|
|
55
55
|
docile (~> 1.1)
|
|
56
56
|
simplecov-html (~> 0.11)
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
simplecov_json_formatter (~> 0.1)
|
|
58
|
+
simplecov-html (0.12.3)
|
|
59
|
+
simplecov_json_formatter (0.1.4)
|
|
60
|
+
unicode-display_width (2.3.0)
|
|
59
61
|
|
|
60
62
|
PLATFORMS
|
|
61
63
|
ruby
|
|
@@ -74,4 +76,4 @@ DEPENDENCIES
|
|
|
74
76
|
simplecov
|
|
75
77
|
|
|
76
78
|
BUNDLED WITH
|
|
77
|
-
2.1
|
|
79
|
+
2.4.1
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
# Object Identifier
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/rb/object_identifier)
|
|
4
|
-
[](https://travis-ci.org/pdobb/object_identifier)
|
|
5
4
|
[](https://codeclimate.com/github/pdobb/object_identifier/test_coverage)
|
|
6
5
|
[](https://codeclimate.com/github/pdobb/object_identifier/maintainability)
|
|
7
6
|
|
|
@@ -40,6 +39,7 @@ Or install it yourself as:
|
|
|
40
39
|
## Compatibility
|
|
41
40
|
|
|
42
41
|
Tested MRI Ruby Versions:
|
|
42
|
+
* 3.2.0
|
|
43
43
|
* 2.4.9
|
|
44
44
|
* 2.5.8
|
|
45
45
|
* 2.6.6
|
|
@@ -156,7 +156,9 @@ ObjectIdentifier works great with the [ObjectInspector](https://github.com/pdobb
|
|
|
156
156
|
|
|
157
157
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
158
158
|
|
|
159
|
-
To install this gem onto your local machine, run `bundle exec rake install`.
|
|
159
|
+
To install this gem onto your local machine, run `bundle exec rake install`.
|
|
160
|
+
|
|
161
|
+
To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
160
162
|
|
|
161
163
|
|
|
162
164
|
## Contributing
|
data/lib/core_ext/object.rb
CHANGED
|
@@ -39,7 +39,7 @@ class Object
|
|
|
39
39
|
#
|
|
40
40
|
# (1..10).to_a.identify(:to_f, limit: 2)
|
|
41
41
|
# # => "Integer[to_f:1.0], Integer[to_f:2.0], ... (8 more)"
|
|
42
|
-
def identify(*args)
|
|
43
|
-
ObjectIdentifier::Identifier.identify(self, *args)
|
|
42
|
+
def identify(*args, **kargs)
|
|
43
|
+
ObjectIdentifier::Identifier.identify(self, *args, **kargs)
|
|
44
44
|
end
|
|
45
45
|
end
|
|
@@ -39,8 +39,8 @@ module ObjectIdentifier
|
|
|
39
39
|
#
|
|
40
40
|
# ObjectIdentifier::Identifier.identify((1..10).to_a, :to_f, limit: 2)
|
|
41
41
|
# # => "Integer[to_f:1.0], Integer[to_f:2.0], ... (8 more)"
|
|
42
|
-
def self.identify(
|
|
43
|
-
new(
|
|
42
|
+
def self.identify(*args, **kargs)
|
|
43
|
+
new(*args, **kargs).to_s
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
def initialize(objects, *args, limit: nil, klass: :not_given)
|
data/object_identifier.gemspec
CHANGED
|
@@ -7,8 +7,8 @@ require "object_identifier/version"
|
|
|
7
7
|
Gem::Specification.new do |spec|
|
|
8
8
|
spec.name = "object_identifier"
|
|
9
9
|
spec.version = ObjectIdentifier::VERSION
|
|
10
|
-
spec.authors = ["Paul
|
|
11
|
-
spec.email = ["
|
|
10
|
+
spec.authors = ["Paul DobbinSchmaltz", "Evan Sherwood"]
|
|
11
|
+
spec.email = ["p.dobbinschmaltz@icloud.com"]
|
|
12
12
|
spec.required_ruby_version = ">= 2.4.0"
|
|
13
13
|
|
|
14
14
|
spec.summary = "ObjectIdentifier identifies an object by its class name and attributes."
|
metadata
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: object_identifier
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
- Paul
|
|
7
|
+
- Paul DobbinSchmaltz
|
|
8
8
|
- Evan Sherwood
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2022-12-30 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|
|
@@ -155,7 +155,7 @@ description: Object Identifier allows quick, easy, and uniform identification of
|
|
|
155
155
|
object by inspecting its class name and outputting any desirable attributes/methods.
|
|
156
156
|
It is great for logging, sending descriptive notification messages, etc.
|
|
157
157
|
email:
|
|
158
|
-
-
|
|
158
|
+
- p.dobbinschmaltz@icloud.com
|
|
159
159
|
executables: []
|
|
160
160
|
extensions: []
|
|
161
161
|
extra_rdoc_files: []
|
|
@@ -163,7 +163,6 @@ files:
|
|
|
163
163
|
- ".gitignore"
|
|
164
164
|
- ".rubocop"
|
|
165
165
|
- ".rubocop.yml"
|
|
166
|
-
- ".travis.yml"
|
|
167
166
|
- CHANGELOG.md
|
|
168
167
|
- Gemfile
|
|
169
168
|
- Gemfile.lock
|
|
@@ -199,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
199
198
|
- !ruby/object:Gem::Version
|
|
200
199
|
version: '0'
|
|
201
200
|
requirements: []
|
|
202
|
-
rubygems_version: 3.1
|
|
201
|
+
rubygems_version: 3.4.1
|
|
203
202
|
signing_key:
|
|
204
203
|
specification_version: 4
|
|
205
204
|
summary: ObjectIdentifier identifies an object by its class name and attributes.
|
data/.travis.yml
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
env:
|
|
2
|
-
global:
|
|
3
|
-
- CC_TEST_REPORTER_ID=3b57e55dcd3cc40ee073715e7d75fa80ab7b7687cb8a420eac500d27b5cb28db
|
|
4
|
-
sudo: false
|
|
5
|
-
language: ruby
|
|
6
|
-
rvm:
|
|
7
|
-
- 2.4.9
|
|
8
|
-
- 2.5.8
|
|
9
|
-
- 2.6.6
|
|
10
|
-
notifications:
|
|
11
|
-
email: false
|
|
12
|
-
before_install: gem install bundler -v 2.1.4
|
|
13
|
-
cache: bundler
|
|
14
|
-
before_script:
|
|
15
|
-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
|
16
|
-
- chmod +x ./cc-test-reporter
|
|
17
|
-
- ./cc-test-reporter before-build
|
|
18
|
-
after_script:
|
|
19
|
-
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|