object_identifier 0.4.0 → 0.4.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: bbab525606ca826781627ff66be0e57229d14be19e2d19d562f5f73d7b2b7a5d
4
- data.tar.gz: b266c154b7c283721b335d752b40705b3ba9000ad46d0ad8689a1f7654249c54
3
+ metadata.gz: c0a0e09332282b492a3c9e83f9ab59a319a421c9ed3e83c2bfa87f6bfe20e6bd
4
+ data.tar.gz: 7b27cf091a8ecfd1c747fb75918f4b88aabd725dba3221489021aa2f5d24138a
5
5
  SHA512:
6
- metadata.gz: b83e5d96392c489dd19a32d265602161069db563c7bda67a4aa88eb28eca6ea26ffdf3641b52a060482493717c1f652b190b6545547b6ae4cadfa1cee3360451
7
- data.tar.gz: 26f3c65910cd39d01e51af199b57f5a8fee3d1ddbe79f67b69552b0abf9c5f9da9752e8947afa0f663aa53e84f0968940cae59d9735a9f5c3745329ad778839d
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.0)
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.1)
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.3.2)
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.14.2)
18
- minitest-reporters (1.4.2)
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.19.2)
24
- parser (2.7.1.4)
24
+ parallel (1.22.1)
25
+ parser (3.1.3.0)
25
26
  ast (~> 2.4.1)
26
- pry (0.13.1)
27
+ pry (0.14.1)
27
28
  coderay (~> 1.1)
28
29
  method_source (~> 1.0)
29
- pry-byebug (3.9.0)
30
+ pry-byebug (3.10.1)
30
31
  byebug (~> 11.0)
31
- pry (~> 0.13.0)
32
- psych (3.1.0)
33
- rainbow (3.0.0)
34
- rake (13.0.1)
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 (>= 2.5.0.0, < 2.8, != 2.5.1.1)
38
- psych (~> 3.1.0)
37
+ parser (~> 3.1.0)
39
38
  rainbow (>= 2.0, < 4.0)
40
- regexp_parser (1.7.1)
41
- rexml (3.2.4)
42
- rubocop (0.90.0)
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 (>= 2.7.1.1)
44
+ parser (>= 3.1.2.1)
45
45
  rainbow (>= 2.2.2, < 4.0)
46
- regexp_parser (>= 1.7)
47
- rexml
48
- rubocop-ast (>= 0.3.0, < 1.0)
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, < 2.0)
51
- rubocop-ast (0.3.0)
52
- parser (>= 2.7.1.4)
53
- ruby-progressbar (1.10.1)
54
- simplecov (0.19.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
- simplecov-html (0.12.2)
58
- unicode-display_width (1.7.0)
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.4
79
+ 2.4.1
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2018 Paul Dobbins
3
+ Copyright (c) 2022 Paul DobbinSchmaltz
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
@@ -1,7 +1,6 @@
1
1
  # Object Identifier
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/object_identifier.svg)](https://badge.fury.io/rb/object_identifier)
4
- [![Build Status](https://travis-ci.org/pdobb/object_identifier.svg?branch=master)](https://travis-ci.org/pdobb/object_identifier)
5
4
  [![Test Coverage](https://api.codeclimate.com/v1/badges/0b737a72d16ec755c1ff/test_coverage)](https://codeclimate.com/github/pdobb/object_identifier/test_coverage)
6
5
  [![Maintainability](https://api.codeclimate.com/v1/badges/0b737a72d16ec755c1ff/maintainability)](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`. 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).
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
@@ -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(object, *args)
43
- new(object, *args).to_s
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ObjectIdentifier
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  end
@@ -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 Dobbins", "Evan Sherwood"]
11
- spec.email = ["paul.dobbins@icloud.com"]
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.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
- - Paul Dobbins
7
+ - Paul DobbinSchmaltz
8
8
  - Evan Sherwood
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-09-01 00:00:00.000000000 Z
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
- - paul.dobbins@icloud.com
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.4
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