object_identifier 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop +4 -0
- data/.rubocop.yml +104 -0
- data/.travis.yml +3 -3
- data/CHANGELOG.md +4 -4
- data/Gemfile +2 -0
- data/Gemfile.lock +66 -21
- data/Rakefile +3 -1
- data/bin/console +1 -0
- data/lib/{object_identifier/core_ext → core_ext}/big_decimal.rb +3 -0
- data/lib/{object_identifier/core_ext → core_ext}/object.rb +5 -2
- data/lib/{object_identifier/core_ext → core_ext}/string.rb +4 -1
- data/lib/{object_identifier/core_ext → core_ext}/symbol.rb +4 -1
- data/lib/object_identifier.rb +9 -4
- data/lib/object_identifier/identifier.rb +12 -7
- data/lib/object_identifier/version.rb +3 -1
- data/object_identifier.gemspec +15 -11
- metadata +74 -45
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77d6e1f8ef633b10528e06579380cf1468dc01705c32350702a36ef9321395f3
|
4
|
+
data.tar.gz: 81aa2e24d3841f808d45ae99475ee03b61059cf9fae257d7ba500aa65dead707
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d451cc0865b0f20dab46fe597c99e53b0bdf6860866f9795f0d821e8196fbbb2a380bb6768b2e521adb8d06790d0f7aefeb8983d580c786992dd7d0e18a75979
|
7
|
+
data.tar.gz: 0a73803a835c0baae80edd149cf009a13075a72eb6f2b3fbfe79d81e74e6d82deef1d27aa7a6f37e7f84012b01c671987a32fb510ea7cf7b73ced5f2ae4ad1c6
|
data/.rubocop
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,104 @@
|
|
1
|
+
AllCops:
|
2
|
+
UseCache: true
|
3
|
+
DisplayCopNames: true
|
4
|
+
DisplayStyleGuide: true
|
5
|
+
ExtraDetails: false
|
6
|
+
TargetRubyVersion: 2.5.3
|
7
|
+
|
8
|
+
Layout/DotPosition:
|
9
|
+
EnforcedStyle: trailing
|
10
|
+
|
11
|
+
Layout/EndOfLine:
|
12
|
+
EnforcedStyle: lf
|
13
|
+
|
14
|
+
Layout/FirstParameterIndentation:
|
15
|
+
EnforcedStyle: consistent_relative_to_receiver
|
16
|
+
|
17
|
+
Layout/IndentArray:
|
18
|
+
EnforcedStyle: consistent
|
19
|
+
|
20
|
+
Layout/IndentHash:
|
21
|
+
EnforcedStyle: consistent
|
22
|
+
|
23
|
+
Layout/MultilineMethodCallBraceLayout:
|
24
|
+
EnforcedStyle: same_line
|
25
|
+
|
26
|
+
Layout/MultilineMethodCallIndentation:
|
27
|
+
EnforcedStyle: indented_relative_to_receiver
|
28
|
+
|
29
|
+
Layout/MultilineMethodDefinitionBraceLayout:
|
30
|
+
EnforcedStyle: same_line
|
31
|
+
|
32
|
+
Layout/MultilineOperationIndentation:
|
33
|
+
Enabled: false # Waiting for e.g. `indented_relative_to_receiver`.
|
34
|
+
|
35
|
+
Lint/AmbiguousOperator:
|
36
|
+
Enabled: false # Conflicts with other rules.
|
37
|
+
|
38
|
+
Lint/AmbiguousRegexpLiteral:
|
39
|
+
Enabled: false # Conflicts with other rules.
|
40
|
+
|
41
|
+
Lint/SplatKeywordArguments:
|
42
|
+
Enabled: false # Removed from Rubocop; Remove this after upgrade.
|
43
|
+
|
44
|
+
Lint/Void:
|
45
|
+
CheckForMethodsWithNoSideEffects: true
|
46
|
+
|
47
|
+
Metrics/BlockLength:
|
48
|
+
ExcludedMethods:
|
49
|
+
- describe
|
50
|
+
- context
|
51
|
+
- ips # Benchmarking
|
52
|
+
|
53
|
+
Metrics/ClassLength:
|
54
|
+
Exclude:
|
55
|
+
- "test/**/*"
|
56
|
+
|
57
|
+
Metrics/LineLength:
|
58
|
+
Max: 80
|
59
|
+
Exclude:
|
60
|
+
- "object_identifier.gemspec"
|
61
|
+
|
62
|
+
Naming/UncommunicativeMethodParamName:
|
63
|
+
AllowedNames:
|
64
|
+
- a
|
65
|
+
- b
|
66
|
+
|
67
|
+
Style/Alias:
|
68
|
+
EnforcedStyle: prefer_alias_method
|
69
|
+
|
70
|
+
Style/BlockDelimiters:
|
71
|
+
Enabled: false # Reconsider later.
|
72
|
+
|
73
|
+
Style/EmptyElse:
|
74
|
+
# It"s helpful to show intent by including a comment in an else block.
|
75
|
+
Enabled: false
|
76
|
+
|
77
|
+
Style/EmptyMethod:
|
78
|
+
EnforcedStyle: expanded
|
79
|
+
|
80
|
+
Style/ExpandPathArguments:
|
81
|
+
Exclude:
|
82
|
+
- "object_inspector.gemspec"
|
83
|
+
|
84
|
+
Style/FormatString:
|
85
|
+
Enabled: false # % notation with an Array just reads better sometimes.
|
86
|
+
|
87
|
+
Style/Lambda:
|
88
|
+
EnforcedStyle: literal
|
89
|
+
|
90
|
+
Style/RegexpLiteral:
|
91
|
+
EnforcedStyle: mixed
|
92
|
+
|
93
|
+
Style/RescueStandardError:
|
94
|
+
EnforcedStyle: implicit
|
95
|
+
|
96
|
+
Style/SingleLineMethods:
|
97
|
+
Exclude:
|
98
|
+
- "test/**/*_test.rb"
|
99
|
+
|
100
|
+
Style/StringLiterals:
|
101
|
+
EnforcedStyle: double_quotes
|
102
|
+
|
103
|
+
Style/StringLiteralsInInterpolation:
|
104
|
+
EnforcedStyle: double_quotes
|
data/.travis.yml
CHANGED
@@ -4,14 +4,14 @@ env:
|
|
4
4
|
sudo: false
|
5
5
|
language: ruby
|
6
6
|
rvm:
|
7
|
-
- 2.2.10
|
8
7
|
- 2.3.7
|
9
8
|
- 2.4.4
|
10
|
-
- 2.5.
|
9
|
+
- 2.5.3
|
10
|
+
- 2.6.2
|
11
11
|
- ruby-head
|
12
12
|
notifications:
|
13
13
|
email: false
|
14
|
-
before_install: gem install bundler -v
|
14
|
+
before_install: gem install bundler -v 2.0.1
|
15
15
|
cache: bundler
|
16
16
|
before_script:
|
17
17
|
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
### 0.1.0 - 2018-04-14
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
- Revamp gem.
|
4
|
+
- Update gem dependencies.
|
5
|
+
- Now returns "[no objects]" even if given a :klass option.
|
6
6
|
|
7
7
|
|
8
8
|
### 0.0.6 - 2016-02-06
|
9
9
|
|
10
|
-
|
10
|
+
- Fix: identify method now supports private & protected methods.
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,51 +1,96 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
object_identifier (0.
|
4
|
+
object_identifier (0.2.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
9
|
ansi (1.5.0)
|
10
|
+
ast (2.4.0)
|
11
|
+
axiom-types (0.1.1)
|
12
|
+
descendants_tracker (~> 0.0.4)
|
13
|
+
ice_nine (~> 0.11.0)
|
14
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
10
15
|
builder (3.2.3)
|
11
|
-
byebug (
|
16
|
+
byebug (11.0.0)
|
17
|
+
codeclimate-engine-rb (0.4.1)
|
18
|
+
virtus (~> 1.0)
|
12
19
|
coderay (1.1.2)
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
20
|
+
coercible (1.0.0)
|
21
|
+
descendants_tracker (~> 0.0.1)
|
22
|
+
descendants_tracker (0.0.4)
|
23
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
24
|
+
docile (1.3.1)
|
25
|
+
equalizer (0.0.11)
|
26
|
+
ice_nine (0.11.2)
|
27
|
+
jaro_winkler (1.5.2)
|
28
|
+
json (2.2.0)
|
29
|
+
kwalify (0.7.2)
|
30
|
+
method_source (0.9.2)
|
31
|
+
minitest (5.11.3)
|
32
|
+
minitest-reporters (1.3.6)
|
18
33
|
ansi
|
19
34
|
builder
|
20
35
|
minitest (>= 5.0)
|
21
36
|
ruby-progressbar
|
22
|
-
|
37
|
+
parallel (1.13.0)
|
38
|
+
parser (2.6.0.0)
|
39
|
+
ast (~> 2.4.0)
|
40
|
+
powerpack (0.1.2)
|
41
|
+
pry (0.12.2)
|
23
42
|
coderay (~> 1.1.0)
|
24
43
|
method_source (~> 0.9.0)
|
25
|
-
pry-byebug (3.
|
26
|
-
byebug (~>
|
44
|
+
pry-byebug (3.7.0)
|
45
|
+
byebug (~> 11.0)
|
27
46
|
pry (~> 0.10)
|
28
|
-
|
29
|
-
|
47
|
+
psych (3.1.0)
|
48
|
+
rainbow (3.0.0)
|
49
|
+
rake (12.3.2)
|
50
|
+
reek (5.3.1)
|
51
|
+
codeclimate-engine-rb (~> 0.4.0)
|
52
|
+
kwalify (~> 0.7.0)
|
53
|
+
parser (>= 2.5.0.0, < 2.7, != 2.5.1.1)
|
54
|
+
psych (~> 3.1.0)
|
55
|
+
rainbow (>= 2.0, < 4.0)
|
56
|
+
rubocop (0.65.0)
|
57
|
+
jaro_winkler (~> 1.5.1)
|
58
|
+
parallel (~> 1.10)
|
59
|
+
parser (>= 2.5, != 2.5.1.1)
|
60
|
+
powerpack (~> 0.1)
|
61
|
+
psych (>= 3.1.0)
|
62
|
+
rainbow (>= 2.2.2, < 4.0)
|
63
|
+
ruby-progressbar (~> 1.7)
|
64
|
+
unicode-display_width (~> 1.4.0)
|
65
|
+
ruby-progressbar (1.10.0)
|
30
66
|
simplecov (0.16.1)
|
31
67
|
docile (~> 1.1)
|
32
68
|
json (>= 1.8, < 3)
|
33
69
|
simplecov-html (~> 0.10.0)
|
34
70
|
simplecov-html (0.10.2)
|
71
|
+
thread_safe (0.3.6)
|
72
|
+
unicode-display_width (1.4.1)
|
73
|
+
virtus (1.0.5)
|
74
|
+
axiom-types (~> 0.1)
|
75
|
+
coercible (~> 1.0)
|
76
|
+
descendants_tracker (~> 0.0, >= 0.0.3)
|
77
|
+
equalizer (~> 0.0, >= 0.0.9)
|
35
78
|
|
36
79
|
PLATFORMS
|
37
80
|
ruby
|
38
81
|
|
39
82
|
DEPENDENCIES
|
40
|
-
bundler
|
41
|
-
byebug
|
42
|
-
minitest
|
43
|
-
minitest-reporters
|
83
|
+
bundler
|
84
|
+
byebug
|
85
|
+
minitest
|
86
|
+
minitest-reporters
|
44
87
|
object_identifier!
|
45
|
-
pry
|
46
|
-
pry-byebug
|
47
|
-
rake
|
48
|
-
|
88
|
+
pry
|
89
|
+
pry-byebug
|
90
|
+
rake
|
91
|
+
reek
|
92
|
+
rubocop
|
93
|
+
simplecov
|
49
94
|
|
50
95
|
BUNDLED WITH
|
51
|
-
|
96
|
+
2.0.1
|
data/Rakefile
CHANGED
data/bin/console
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Reopen the core Object class to add {#identify} to all objects.
|
1
4
|
class Object
|
2
5
|
# Standard #inspect for any object that doesn't override this method. This
|
3
6
|
# method is meant to make an object's type inherently obvious inspected.
|
@@ -31,8 +34,8 @@ class Object
|
|
31
34
|
# 1.identify(:to_s) # => "Integer[to_s:\"1\"]"
|
32
35
|
# nil.identify # => "[no objects]"
|
33
36
|
#
|
34
|
-
# %w(1 2
|
35
|
-
# # => "String[to_i:1, to_f:1.0], String[to_i:2, to_f:2.0]
|
37
|
+
# %w(1 2).identify(:to_i, :to_f)
|
38
|
+
# # => "String[to_i:1, to_f:1.0], String[to_i:2, to_f:2.0]"
|
36
39
|
#
|
37
40
|
# (1..10).to_a.identify(:to_f, limit: 2)
|
38
41
|
# # => "Integer[to_f:1.0], Integer[to_f:2.0], ... (8 more)"
|
@@ -1,3 +1,6 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Reopen the core String class to represent {#inspect_lit}.
|
1
4
|
class String
|
2
5
|
# Formats self to look like a String literal so that object type will be
|
3
6
|
# inherently obvious when inspected.
|
@@ -9,6 +12,6 @@ class String
|
|
9
12
|
# "1".inspect_lit # => "\"1\"" (i.e. '"1"')
|
10
13
|
# "12.3".inspect_lit # => "\"12.3\"" (i.e. '"12.3"')
|
11
14
|
def inspect_lit
|
12
|
-
%("#{
|
15
|
+
%("#{self}")
|
13
16
|
end
|
14
17
|
end
|
@@ -1,3 +1,6 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Reopen the core Symbol class to represent {#inspect_lit}.
|
1
4
|
class Symbol
|
2
5
|
# Formats this symbol to look like a symbol literal so that object type will
|
3
6
|
# be inherently obvious when used in logging methods, etc.
|
@@ -8,6 +11,6 @@ class Symbol
|
|
8
11
|
# :test.inspect_lit # => ":\"test\"" (or ':"test"')
|
9
12
|
# :"ta-da!".inspect_lit # => ":\"ta-da!\"" (or ':"ta-da!"')
|
10
13
|
def inspect_lit
|
11
|
-
%(:"#{
|
14
|
+
%(:"#{self}")
|
12
15
|
end
|
13
16
|
end
|
data/lib/object_identifier.rb
CHANGED
@@ -1,8 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# ObjectIdentifier is the base namespace for all modules/classes related to the
|
4
|
+
# object_identifier gem.
|
1
5
|
module ObjectIdentifier
|
2
6
|
end
|
3
7
|
|
8
|
+
require "object_identifier/version"
|
4
9
|
require "object_identifier/identifier"
|
5
|
-
require "
|
6
|
-
require "
|
7
|
-
require "
|
8
|
-
require "
|
10
|
+
require "core_ext/object"
|
11
|
+
require "core_ext/string"
|
12
|
+
require "core_ext/symbol"
|
13
|
+
require "core_ext/big_decimal"
|
@@ -1,6 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module ObjectIdentifier
|
4
|
+
# ObjectIdentifier::Identifier manages construction of the inspect String.
|
2
5
|
class Identifier
|
3
|
-
NO_OBJECTS_INDICATOR = "[no objects]"
|
6
|
+
NO_OBJECTS_INDICATOR = "[no objects]"
|
4
7
|
|
5
8
|
# Class method for constructing a self-identifying string for any given
|
6
9
|
# object or collection of objects.
|
@@ -26,8 +29,10 @@ module ObjectIdentifier
|
|
26
29
|
# OpenStruct.new(a: 1, b: '2', c: :"3"), :a, :b, :c)
|
27
30
|
# # => "OpenStruct[a:1, b:\"2\", c::\"3\"]"
|
28
31
|
#
|
29
|
-
# ObjectIdentifier::Identifier.identify(1, :to_s)
|
30
|
-
#
|
32
|
+
# ObjectIdentifier::Identifier.identify(1, :to_s)
|
33
|
+
# # => "Integer[to_s:\"1\"]"
|
34
|
+
# ObjectIdentifier::Identifier.identify(nil)
|
35
|
+
# # => "[no objects]"
|
31
36
|
#
|
32
37
|
# ObjectIdentifier::Identifier.identify(%w(1 2), :to_i, :to_f)
|
33
38
|
# # => "String[to_i:1, to_f:1.0], String[to_i:2, to_f:2.0]"
|
@@ -59,15 +64,13 @@ module ObjectIdentifier
|
|
59
64
|
end
|
60
65
|
end
|
61
66
|
|
62
|
-
|
67
|
+
private
|
63
68
|
|
64
69
|
def format_multiple_objects
|
65
70
|
objects =
|
66
71
|
@objects.first(@limit).map { |obj| format(obj) }
|
67
72
|
|
68
|
-
if truncated?
|
69
|
-
objects << "... (#{truncated_objects_count} more)"
|
70
|
-
end
|
73
|
+
objects << "... (#{truncated_objects_count} more)" if truncated?
|
71
74
|
|
72
75
|
objects.join(", ")
|
73
76
|
end
|
@@ -97,6 +100,8 @@ module ObjectIdentifier
|
|
97
100
|
@attributes.each_with_object({}) { |key, acc|
|
98
101
|
if object.respond_to?(key, :include_private)
|
99
102
|
acc[key] = object.send(key)
|
103
|
+
elsif key.to_s.start_with?("@")
|
104
|
+
acc[key] = object.instance_variable_get(key)
|
100
105
|
end
|
101
106
|
}
|
102
107
|
end
|
data/object_identifier.gemspec
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path("lib", __dir__)
|
2
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
5
|
require "object_identifier/version"
|
4
6
|
|
@@ -8,8 +10,8 @@ Gem::Specification.new do |spec|
|
|
8
10
|
spec.authors = ["Paul Dobbins", "Evan Sherwood"]
|
9
11
|
spec.email = ["paul.dobbins@icloud.com"]
|
10
12
|
|
11
|
-
spec.summary =
|
12
|
-
spec.description =
|
13
|
+
spec.summary = "ObjectIdentifier identifies an object by its class name and attributes."
|
14
|
+
spec.description = "Object Identifier allows quick, easy, and uniform identification of an object by inspecting its class name and outputting any desirable attributes/methods. It is great for logging, sending descriptive notification messages, etc."
|
13
15
|
spec.homepage = "https://github.com/pdobb/object_identifier"
|
14
16
|
spec.license = "MIT"
|
15
17
|
|
@@ -29,12 +31,14 @@ Gem::Specification.new do |spec|
|
|
29
31
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
30
32
|
spec.require_paths = ["lib"]
|
31
33
|
|
32
|
-
spec.add_development_dependency "bundler"
|
33
|
-
spec.add_development_dependency "
|
34
|
-
spec.add_development_dependency "minitest"
|
35
|
-
spec.add_development_dependency "minitest-reporters"
|
36
|
-
spec.add_development_dependency "
|
37
|
-
spec.add_development_dependency "byebug"
|
38
|
-
spec.add_development_dependency "
|
39
|
-
spec.add_development_dependency "
|
34
|
+
spec.add_development_dependency "bundler"
|
35
|
+
spec.add_development_dependency "byebug"
|
36
|
+
spec.add_development_dependency "minitest"
|
37
|
+
spec.add_development_dependency "minitest-reporters"
|
38
|
+
spec.add_development_dependency "pry"
|
39
|
+
spec.add_development_dependency "pry-byebug"
|
40
|
+
spec.add_development_dependency "rake"
|
41
|
+
spec.add_development_dependency "reek"
|
42
|
+
spec.add_development_dependency "rubocop"
|
43
|
+
spec.add_development_dependency "simplecov"
|
40
44
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: object_identifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Dobbins
|
@@ -9,120 +9,148 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-02-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '0'
|
21
21
|
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
27
|
+
version: '0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
|
-
name:
|
29
|
+
name: byebug
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - "
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
34
|
+
version: '0'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - "
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
41
|
+
version: '0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: minitest
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- - "
|
46
|
+
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '
|
48
|
+
version: '0'
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- - "
|
53
|
+
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: '
|
55
|
+
version: '0'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: minitest-reporters
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- - "
|
60
|
+
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '
|
62
|
+
version: '0'
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - "
|
67
|
+
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
69
|
+
version: '0'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
|
-
name:
|
71
|
+
name: pry
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- - "
|
74
|
+
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: '0
|
76
|
+
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- - "
|
81
|
+
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '0
|
83
|
+
version: '0'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
|
-
name: byebug
|
85
|
+
name: pry-byebug
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- - "
|
88
|
+
- - ">="
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: '
|
90
|
+
version: '0'
|
91
91
|
type: :development
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- - "
|
95
|
+
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: '
|
97
|
+
version: '0'
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
|
-
name:
|
99
|
+
name: rake
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- - "
|
102
|
+
- - ">="
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version: '0
|
104
|
+
version: '0'
|
105
105
|
type: :development
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
|
-
- - "
|
109
|
+
- - ">="
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version: '0
|
111
|
+
version: '0'
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
|
-
name:
|
113
|
+
name: reek
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: rubocop
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
133
|
+
type: :development
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '0'
|
140
|
+
- !ruby/object:Gem::Dependency
|
141
|
+
name: simplecov
|
114
142
|
requirement: !ruby/object:Gem::Requirement
|
115
143
|
requirements:
|
116
|
-
- - "
|
144
|
+
- - ">="
|
117
145
|
- !ruby/object:Gem::Version
|
118
|
-
version: '
|
146
|
+
version: '0'
|
119
147
|
type: :development
|
120
148
|
prerelease: false
|
121
149
|
version_requirements: !ruby/object:Gem::Requirement
|
122
150
|
requirements:
|
123
|
-
- - "
|
151
|
+
- - ">="
|
124
152
|
- !ruby/object:Gem::Version
|
125
|
-
version: '
|
153
|
+
version: '0'
|
126
154
|
description: Object Identifier allows quick, easy, and uniform identification of an
|
127
155
|
object by inspecting its class name and outputting any desirable attributes/methods.
|
128
156
|
It is great for logging, sending descriptive notification messages, etc.
|
@@ -133,6 +161,8 @@ extensions: []
|
|
133
161
|
extra_rdoc_files: []
|
134
162
|
files:
|
135
163
|
- ".gitignore"
|
164
|
+
- ".rubocop"
|
165
|
+
- ".rubocop.yml"
|
136
166
|
- ".travis.yml"
|
137
167
|
- CHANGELOG.md
|
138
168
|
- Gemfile
|
@@ -142,11 +172,11 @@ files:
|
|
142
172
|
- Rakefile
|
143
173
|
- bin/console
|
144
174
|
- bin/setup
|
175
|
+
- lib/core_ext/big_decimal.rb
|
176
|
+
- lib/core_ext/object.rb
|
177
|
+
- lib/core_ext/string.rb
|
178
|
+
- lib/core_ext/symbol.rb
|
145
179
|
- lib/object_identifier.rb
|
146
|
-
- lib/object_identifier/core_ext/big_decimal.rb
|
147
|
-
- lib/object_identifier/core_ext/object.rb
|
148
|
-
- lib/object_identifier/core_ext/string.rb
|
149
|
-
- lib/object_identifier/core_ext/symbol.rb
|
150
180
|
- lib/object_identifier/identifier.rb
|
151
181
|
- lib/object_identifier/version.rb
|
152
182
|
- object_identifier.gemspec
|
@@ -169,8 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
199
|
- !ruby/object:Gem::Version
|
170
200
|
version: '0'
|
171
201
|
requirements: []
|
172
|
-
|
173
|
-
rubygems_version: 2.7.6
|
202
|
+
rubygems_version: 3.0.2
|
174
203
|
signing_key:
|
175
204
|
specification_version: 4
|
176
205
|
summary: ObjectIdentifier identifies an object by its class name and attributes.
|