fingerprintable 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +15 -0
- data/.rspec +3 -0
- data/.travis.yml +8 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +41 -0
- data/LICENSE.txt +21 -0
- data/README.md +66 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/fingerprintable.gemspec +33 -0
- data/lib/fingerprintable/debug.rb +16 -0
- data/lib/fingerprintable/fingerprinter.rb +89 -0
- data/lib/fingerprintable/mixin.rb +43 -0
- data/lib/fingerprintable/version.rb +3 -0
- data/lib/fingerprintable.rb +11 -0
- data/release.sh +8 -0
- metadata +146 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6a8d276e78f3b729a591c448b1e901639c0c21de05fa6e1090eb2c44e65c1686
|
4
|
+
data.tar.gz: 32b209a44af07d2f04164e3085a3a41a71ee9d7fe5dfb6092ef8211a38ecced4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: eff34aeaa0d42acf25b9cbce80e413ed0024a11c525ab719a5c6c2a4797b813c664d7c860b6f2c3ad686140fafe431d78be7b58950717e9c12c257c05071cc88
|
7
|
+
data.tar.gz: 22872f8ccf70d43b2729a4e4ede25f66ae8e93eef8449464f46712861281876c0af35a00377d24c88dd4c582651bb61a6fab7052800be24fd629cce276ecb8ec
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at ryanwjackson@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
fingerprintable (1.0.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
awesome_print (1.8.0)
|
10
|
+
byebug (11.0.1)
|
11
|
+
colorize (0.8.1)
|
12
|
+
diff-lcs (1.3)
|
13
|
+
rake (10.5.0)
|
14
|
+
rspec (3.8.0)
|
15
|
+
rspec-core (~> 3.8.0)
|
16
|
+
rspec-expectations (~> 3.8.0)
|
17
|
+
rspec-mocks (~> 3.8.0)
|
18
|
+
rspec-core (3.8.0)
|
19
|
+
rspec-support (~> 3.8.0)
|
20
|
+
rspec-expectations (3.8.3)
|
21
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
22
|
+
rspec-support (~> 3.8.0)
|
23
|
+
rspec-mocks (3.8.0)
|
24
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
25
|
+
rspec-support (~> 3.8.0)
|
26
|
+
rspec-support (3.8.0)
|
27
|
+
|
28
|
+
PLATFORMS
|
29
|
+
ruby
|
30
|
+
|
31
|
+
DEPENDENCIES
|
32
|
+
awesome_print
|
33
|
+
bundler (~> 2.0)
|
34
|
+
byebug
|
35
|
+
colorize
|
36
|
+
fingerprintable!
|
37
|
+
rake (~> 10.0)
|
38
|
+
rspec (~> 3.0)
|
39
|
+
|
40
|
+
BUNDLED WITH
|
41
|
+
2.0.1
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Ryan Jackson
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
# Fingerprintable
|
2
|
+
|
3
|
+
Fingerprintable is an easy way to fingerprint any object in Ruby. It handles cycles and allows you to override what attributes you want to include in the fingerprint.
|
4
|
+
|
5
|
+
By default, Fingerprintable will use all instance variables of an object.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'fingerprintable'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install fingerprintable
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
You can call `Fingerprintable::Fingerprinter` directly, or you can add `Fingerprintable::Mixin` to any class like so:
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
module Fingerprintable
|
29
|
+
class MixinTestObject
|
30
|
+
include Fingerprintable::Mixin
|
31
|
+
|
32
|
+
attr_accessor :foo, :bar
|
33
|
+
|
34
|
+
fingerprint :baz,
|
35
|
+
ignore: :bar
|
36
|
+
|
37
|
+
fingerprint :asdf
|
38
|
+
|
39
|
+
def initialize(foo = nil)
|
40
|
+
self.foo = foo
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
```
|
45
|
+
|
46
|
+
This results in a fingerprint being generated for these attributes: `[:@foo, :asdf, :baz]`
|
47
|
+
|
48
|
+
To get a fingerprint of any instance, just call `.fingerprint`.
|
49
|
+
|
50
|
+
## Development
|
51
|
+
|
52
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bundle exec rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
53
|
+
|
54
|
+
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).
|
55
|
+
|
56
|
+
## Contributing
|
57
|
+
|
58
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/ryanwjackson/fingerprintable. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
59
|
+
|
60
|
+
## License
|
61
|
+
|
62
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
63
|
+
|
64
|
+
## Code of Conduct
|
65
|
+
|
66
|
+
Everyone interacting in the Fingerprintable project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/ryanwjackson/fingerprintable/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "fingerprintable"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require 'fingerprintable/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = 'fingerprintable'
|
9
|
+
spec.version = Fingerprintable::VERSION
|
10
|
+
spec.authors = ['Ryan Jackson']
|
11
|
+
spec.email = ['ryanwjackson@gmail.com']
|
12
|
+
|
13
|
+
spec.summary = 'Fingerprintable makes it easy to fingerprint an instance of any object.'
|
14
|
+
spec.description = 'Fingerprintable adds a way to fingerprint an instance of any object, with ability to easily add or ignore attributes.'
|
15
|
+
spec.homepage = 'https://www.github.com/ryanwjackson/fingerprintable'
|
16
|
+
spec.license = 'MIT'
|
17
|
+
|
18
|
+
# Specify which files should be added to the gem when it is released.
|
19
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
20
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
21
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
|
+
end
|
23
|
+
spec.bindir = 'exe'
|
24
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
|
+
spec.require_paths = ['lib']
|
26
|
+
|
27
|
+
spec.add_development_dependency 'awesome_print'
|
28
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
29
|
+
spec.add_development_dependency 'byebug'
|
30
|
+
spec.add_development_dependency 'colorize'
|
31
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
32
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
33
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# TODO: Remove if we don't want this in production?
|
2
|
+
def pdb(thing = nil, backtrace_offset: 0, **keywords)
|
3
|
+
backtrace_line = caller[backtrace_offset].split(':')[0..1].join(':')
|
4
|
+
thing = keywords if thing.eql?(nil) && keywords.any?
|
5
|
+
thing = thing.inspect unless thing.is_a?(String)
|
6
|
+
|
7
|
+
puts(
|
8
|
+
(
|
9
|
+
'PDB' + ': ' + thing
|
10
|
+
).colorize(color: :black, background: :light_white) +
|
11
|
+
" @ #{backtrace_line}".colorize(color: :blue, background: :light_white)
|
12
|
+
|
13
|
+
)
|
14
|
+
puts "\n"
|
15
|
+
thing
|
16
|
+
end
|
@@ -0,0 +1,89 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Fingerprintable
|
4
|
+
class Fingerprinter
|
5
|
+
attr_reader :attributes,
|
6
|
+
:cache,
|
7
|
+
:fallback_to_string,
|
8
|
+
:ignore,
|
9
|
+
:object
|
10
|
+
|
11
|
+
def initialize(
|
12
|
+
attributes: [],
|
13
|
+
cache: {},
|
14
|
+
fallback_to_string: false,
|
15
|
+
ignore: [],
|
16
|
+
object:
|
17
|
+
)
|
18
|
+
@fallback_to_string = fallback_to_string
|
19
|
+
@ignore = ignore | ignore.map { |e| "@#{e}".to_sym }
|
20
|
+
@object = object
|
21
|
+
@attributes = ((object.instance_variables | attributes) - ignore).map(&:to_sym).sort
|
22
|
+
@cache = cache || {}
|
23
|
+
@cache[object] = next_cache_id
|
24
|
+
end
|
25
|
+
|
26
|
+
def deep_convert_and_sort(obj)
|
27
|
+
case obj
|
28
|
+
when nil
|
29
|
+
''
|
30
|
+
when String
|
31
|
+
obj.to_s
|
32
|
+
when FalseClass, Float, Integer, Symbol, TrueClass
|
33
|
+
obj.to_s
|
34
|
+
when Array
|
35
|
+
obj.map { |v| deep_convert_and_sort(v) }.sort.to_s
|
36
|
+
when Hash
|
37
|
+
Hash[obj.map { |k, v| [k, deep_convert_and_sort(v)] }].sort.to_s
|
38
|
+
when Module
|
39
|
+
obj.name
|
40
|
+
else
|
41
|
+
fingerprint_object(obj)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
def fingerprint
|
46
|
+
@fingerprint ||= begin
|
47
|
+
Digest::MD5.hexdigest(to_s)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
def to_s
|
52
|
+
@to_s ||= deep_convert_and_sort(object_value_hash).to_s
|
53
|
+
end
|
54
|
+
|
55
|
+
private
|
56
|
+
|
57
|
+
def fingerprint_object(use_object)
|
58
|
+
return cache[use_object] if cache.include?(use_object)
|
59
|
+
|
60
|
+
fingerprinter = if use_object.respond_to?(:fingerprint)
|
61
|
+
use_object.fingerprinter(cache: @cache)
|
62
|
+
elsif use_object.respond_to?(:instance_variables)
|
63
|
+
Fingerprinter.new(cache: cache, object: use_object)
|
64
|
+
end
|
65
|
+
|
66
|
+
if fingerprinter.nil?
|
67
|
+
raise "Do not know how to fingerprint #{use_object.class.name}. Did you mean to add Fingerprintable to this object?" unless fallback_to_string
|
68
|
+
raise "#{use_object.class.name} does not respond to to_s. Did you mean to add Fingerprintable to this object?" unless use_object.respond_to?(:to_s)
|
69
|
+
|
70
|
+
use_object.to_s
|
71
|
+
end
|
72
|
+
|
73
|
+
ret = fingerprinter.fingerprint
|
74
|
+
cache.merge!(fingerprinter.cache)
|
75
|
+
ret
|
76
|
+
end
|
77
|
+
|
78
|
+
def next_cache_id
|
79
|
+
# "#{SecureRandom.uuid}-#{@cache.count}"
|
80
|
+
@cache.count
|
81
|
+
end
|
82
|
+
|
83
|
+
def object_value_hash
|
84
|
+
Hash[attributes.map do |attr|
|
85
|
+
[attr, object.instance_variable_get(attr)]
|
86
|
+
end]
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
module Fingerprintable
|
2
|
+
module Mixin
|
3
|
+
module ClassMethods
|
4
|
+
def inherited(subclass)
|
5
|
+
subclass.fingerprint(*fingerprintable_attributes)
|
6
|
+
super(subclass)
|
7
|
+
end
|
8
|
+
|
9
|
+
def fingerprint(*attrs, ignore: [])
|
10
|
+
@fingerprintable_attributes = fingerprintable_attributes | attrs
|
11
|
+
ignore = [ignore] if ignore.is_a?(String) || ignore.is_a?(Symbol)
|
12
|
+
fingerprintable_config[:ignore] |= ignore
|
13
|
+
end
|
14
|
+
|
15
|
+
def fingerprintable_attributes
|
16
|
+
@fingerprintable_attributes ||= []
|
17
|
+
end
|
18
|
+
|
19
|
+
def fingerprintable_config
|
20
|
+
@fingerprintable_config ||= {
|
21
|
+
ignore: []
|
22
|
+
}
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.included(base)
|
27
|
+
base.extend(ClassMethods)
|
28
|
+
end
|
29
|
+
|
30
|
+
def fingerprint(*args)
|
31
|
+
fingerprinter.fingerprint(*args)
|
32
|
+
end
|
33
|
+
|
34
|
+
def fingerprinter(*attrs, cache: {})
|
35
|
+
Fingerprinter.new(
|
36
|
+
attributes: self.class.fingerprintable_attributes | attrs,
|
37
|
+
cache: cache,
|
38
|
+
object: self,
|
39
|
+
**self.class.fingerprintable_config
|
40
|
+
)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
data/release.sh
ADDED
metadata
ADDED
@@ -0,0 +1,146 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: fingerprintable
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ryan Jackson
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-06-16 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: awesome_print
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: byebug
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: colorize
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '10.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '10.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.0'
|
97
|
+
description: Fingerprintable adds a way to fingerprint an instance of any object,
|
98
|
+
with ability to easily add or ignore attributes.
|
99
|
+
email:
|
100
|
+
- ryanwjackson@gmail.com
|
101
|
+
executables: []
|
102
|
+
extensions: []
|
103
|
+
extra_rdoc_files: []
|
104
|
+
files:
|
105
|
+
- ".gitignore"
|
106
|
+
- ".rspec"
|
107
|
+
- ".travis.yml"
|
108
|
+
- CODE_OF_CONDUCT.md
|
109
|
+
- Gemfile
|
110
|
+
- Gemfile.lock
|
111
|
+
- LICENSE.txt
|
112
|
+
- README.md
|
113
|
+
- Rakefile
|
114
|
+
- bin/console
|
115
|
+
- bin/setup
|
116
|
+
- fingerprintable.gemspec
|
117
|
+
- lib/fingerprintable.rb
|
118
|
+
- lib/fingerprintable/debug.rb
|
119
|
+
- lib/fingerprintable/fingerprinter.rb
|
120
|
+
- lib/fingerprintable/mixin.rb
|
121
|
+
- lib/fingerprintable/version.rb
|
122
|
+
- release.sh
|
123
|
+
homepage: https://www.github.com/ryanwjackson/fingerprintable
|
124
|
+
licenses:
|
125
|
+
- MIT
|
126
|
+
metadata: {}
|
127
|
+
post_install_message:
|
128
|
+
rdoc_options: []
|
129
|
+
require_paths:
|
130
|
+
- lib
|
131
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
132
|
+
requirements:
|
133
|
+
- - ">="
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '0'
|
136
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '0'
|
141
|
+
requirements: []
|
142
|
+
rubygems_version: 3.0.3
|
143
|
+
signing_key:
|
144
|
+
specification_version: 4
|
145
|
+
summary: Fingerprintable makes it easy to fingerprint an instance of any object.
|
146
|
+
test_files: []
|