simply_serializable 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 +43 -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/lib/simply_serializable.rb +7 -0
- data/lib/simply_serializable/debug.rb +16 -0
- data/lib/simply_serializable/mixin.rb +46 -0
- data/lib/simply_serializable/serializer.rb +117 -0
- data/lib/simply_serializable/version.rb +3 -0
- data/release.sh +8 -0
- data/simply_serializable.gemspec +33 -0
- metadata +148 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f0e5cf747f846f0e973a742bad9f9d7a84cf2d38a34934cb0afb699788b5eba0
|
4
|
+
data.tar.gz: d7a352c4f0b1bdc93aa12f95e08c55393c888b686617d6bfa00ac4f5ac17a46f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1f4bcc121ae695663a649b7ea4e4494ce558289c3ac247b1c88faa6f8842989454e86056b1c03b1d21a29448ae8a66f65788c0d067e54eac2677438c662f0184
|
7
|
+
data.tar.gz: 594ef6dfa2623ac994286e2888498013d397c2410509c2c523894982a1c0525a07baf8696bdea4b3cdc809b05bfb7e2caf1ef65011e00b2a8d483e4eacd018e1
|
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,43 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
simply_serializable (1.0.0)
|
5
|
+
fingerprintable (>= 1.2.1)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
awesome_print (1.8.0)
|
11
|
+
byebug (11.0.1)
|
12
|
+
colorize (0.8.1)
|
13
|
+
diff-lcs (1.3)
|
14
|
+
fingerprintable (1.2.1)
|
15
|
+
colorize
|
16
|
+
rake (10.5.0)
|
17
|
+
rspec (3.8.0)
|
18
|
+
rspec-core (~> 3.8.0)
|
19
|
+
rspec-expectations (~> 3.8.0)
|
20
|
+
rspec-mocks (~> 3.8.0)
|
21
|
+
rspec-core (3.8.0)
|
22
|
+
rspec-support (~> 3.8.0)
|
23
|
+
rspec-expectations (3.8.3)
|
24
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
25
|
+
rspec-support (~> 3.8.0)
|
26
|
+
rspec-mocks (3.8.0)
|
27
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
28
|
+
rspec-support (~> 3.8.0)
|
29
|
+
rspec-support (3.8.0)
|
30
|
+
|
31
|
+
PLATFORMS
|
32
|
+
ruby
|
33
|
+
|
34
|
+
DEPENDENCIES
|
35
|
+
awesome_print
|
36
|
+
bundler (~> 2.0)
|
37
|
+
byebug
|
38
|
+
rake (~> 10.0)
|
39
|
+
rspec (~> 3.0)
|
40
|
+
simply_serializable!
|
41
|
+
|
42
|
+
BUNDLED WITH
|
43
|
+
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
|
+
# SimplySerializable
|
2
|
+
|
3
|
+
SimplySerializable (SS) is a lightweight gem for serializing objects. It does not follow the JSON API structure, so as to optimizing for cycles and speed.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'simply_serializable'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install simply_serializable
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
You can call `SimplySerializable::Serializer` directly or using the mixin on any object like so:
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
module SimplySerializable
|
27
|
+
class MixinTestObject
|
28
|
+
include SimplySerializable::Mixin
|
29
|
+
|
30
|
+
attr_reader :it_will_use_this_attr
|
31
|
+
|
32
|
+
serialize attributes: %i[foo],
|
33
|
+
except: %i[bar]
|
34
|
+
|
35
|
+
def initialize
|
36
|
+
@it_will_use_this_attr = 'This will be included in serialization.'
|
37
|
+
end
|
38
|
+
|
39
|
+
def bar
|
40
|
+
'This IS NOT included via `except` above.'
|
41
|
+
end
|
42
|
+
|
43
|
+
def foo
|
44
|
+
'This is included via `attributes` above.'
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
```
|
49
|
+
|
50
|
+
## Development
|
51
|
+
|
52
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` 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/simply_serializable. 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 SimplySerializable project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/ryanwjackson/simply_serializable/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 "simply_serializable"
|
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,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,46 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module SimplySerializable
|
4
|
+
module Mixin
|
5
|
+
module ClassMethods
|
6
|
+
def inherited(subclass)
|
7
|
+
subclass.serializes()
|
8
|
+
super(subclass)
|
9
|
+
end
|
10
|
+
|
11
|
+
def serialize(**config)
|
12
|
+
@serializable_config = config
|
13
|
+
end
|
14
|
+
|
15
|
+
def serializable_config
|
16
|
+
@serializable_config ||= {}
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.included(base)
|
21
|
+
base.include(Fingerprintable::Mixin)
|
22
|
+
base.extend(ClassMethods)
|
23
|
+
end
|
24
|
+
|
25
|
+
def serialize(cache: {})
|
26
|
+
serializer(cache: cache).serialize
|
27
|
+
end
|
28
|
+
|
29
|
+
def serializer(cache: {})
|
30
|
+
Serializer.new(
|
31
|
+
self.class.serializable_config.merge(
|
32
|
+
cache: cache,
|
33
|
+
object: self
|
34
|
+
)
|
35
|
+
)
|
36
|
+
end
|
37
|
+
|
38
|
+
def serializable_id
|
39
|
+
"#{serializable_type}/#{fingerprint}"
|
40
|
+
end
|
41
|
+
|
42
|
+
def serializable_type
|
43
|
+
self.class.name
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,117 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module SimplySerializable
|
4
|
+
class Serializer
|
5
|
+
attr_reader :attributes,
|
6
|
+
:except,
|
7
|
+
:object,
|
8
|
+
:only
|
9
|
+
|
10
|
+
def initialize(
|
11
|
+
attributes: [],
|
12
|
+
cache: {},
|
13
|
+
except: [],
|
14
|
+
include_readable_instance_variables: true,
|
15
|
+
method_prefix: :serialize,
|
16
|
+
object:,
|
17
|
+
only: []
|
18
|
+
)
|
19
|
+
@object = object
|
20
|
+
@attributes = attributes
|
21
|
+
@include_readable_instance_variables = include_readable_instance_variables
|
22
|
+
@except = except.map(&:to_sym)
|
23
|
+
@only = only.map(&:to_sym)
|
24
|
+
@method_prefix = method_prefix
|
25
|
+
@cache = cache
|
26
|
+
@cache[cache_key] = nil
|
27
|
+
@serialized = false
|
28
|
+
|
29
|
+
populate_attributes
|
30
|
+
end
|
31
|
+
|
32
|
+
def cache
|
33
|
+
serialize unless @serialized
|
34
|
+
@cache
|
35
|
+
end
|
36
|
+
|
37
|
+
def deep_serialize(obj)
|
38
|
+
case obj
|
39
|
+
when FalseClass, Float, nil, Integer, String, Symbol, TrueClass
|
40
|
+
obj
|
41
|
+
when Array
|
42
|
+
obj.map { |v| deep_serialize(v) }
|
43
|
+
when Hash
|
44
|
+
Hash[obj.map { |k, v| [deep_serialize(k), deep_serialize(v)] }]
|
45
|
+
when Module
|
46
|
+
obj.name
|
47
|
+
else
|
48
|
+
serialize_object(obj)
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
def serialize
|
53
|
+
@serialize ||= begin
|
54
|
+
@serialized = true
|
55
|
+
ret = deep_serialize(object_value_hash)
|
56
|
+
|
57
|
+
cache[cache_key] = ret
|
58
|
+
{
|
59
|
+
root: cache_key,
|
60
|
+
objects: cache
|
61
|
+
}
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
def to_s
|
66
|
+
@to_s ||= serialize.to_s
|
67
|
+
end
|
68
|
+
|
69
|
+
private
|
70
|
+
|
71
|
+
def instance_vars_with_readers
|
72
|
+
instance_variables = Hash[object.instance_variables.map { |e| [e, 1] }]
|
73
|
+
ret = object.class.instance_methods.select do |method|
|
74
|
+
instance_variables.key?("@#{method}".to_sym)
|
75
|
+
end
|
76
|
+
ret.map(&:to_sym)
|
77
|
+
end
|
78
|
+
|
79
|
+
def serialize_object(use_object)
|
80
|
+
use_object_cache_key = cache_key(use_object)
|
81
|
+
return use_object_cache_key if cache.key?(use_object_cache_key)
|
82
|
+
raise "#{use_object.class.name} does not respond to serialize. Did you mean to include Serializable in this class?" unless use_object.respond_to?(:serialize)
|
83
|
+
|
84
|
+
serializer = use_object.serializer(cache: cache)
|
85
|
+
cache.merge!(serializer.cache)
|
86
|
+
use_object_cache_key
|
87
|
+
end
|
88
|
+
|
89
|
+
def cache_key(obj = object)
|
90
|
+
obj.serializable_id
|
91
|
+
end
|
92
|
+
|
93
|
+
def populate_attributes
|
94
|
+
raise 'You cannot pass only and except values. Please choose one.' if only.any? && except.any?
|
95
|
+
|
96
|
+
@attributes |= instance_vars_with_readers if @include_readable_instance_variables
|
97
|
+
|
98
|
+
@attributes = attributes & only if only.any?
|
99
|
+
@attributes = attributes - except if except.any?
|
100
|
+
attributes
|
101
|
+
end
|
102
|
+
|
103
|
+
def method_for_attribute(attr)
|
104
|
+
if object.class.instance_methods.include?("#{@method_prefix}_#{attr}".to_sym)
|
105
|
+
"#{@method_prefix}_#{attr}"
|
106
|
+
else
|
107
|
+
attr
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
def object_value_hash
|
112
|
+
Hash[attributes.map do |attr|
|
113
|
+
[attr, object.send(method_for_attribute(attr))]
|
114
|
+
end]
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
data/release.sh
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 'simply_serializable/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = 'simply_serializable'
|
9
|
+
spec.version = SimplySerializable::VERSION
|
10
|
+
spec.authors = ['Ryan Jackson']
|
11
|
+
spec.email = ['ryanwjackson@gmail.com']
|
12
|
+
|
13
|
+
spec.summary = 'Simply Serializable makes it easy to serialize any object.'
|
14
|
+
spec.description = 'Simply Serializable makes it easy to serialize any object. It provides a configuratable way to serialize the attributes you want and ignore the ones you don\'t.'
|
15
|
+
spec.homepage = 'https://www.github.com/ryanwjackson/simply_serializable'
|
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_dependency 'fingerprintable', '>= 1.2.1'
|
28
|
+
spec.add_development_dependency 'awesome_print'
|
29
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
30
|
+
spec.add_development_dependency 'byebug', '>= 0'
|
31
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
32
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
33
|
+
end
|
metadata
ADDED
@@ -0,0 +1,148 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: simply_serializable
|
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-17 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: fingerprintable
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.2.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.2.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: awesome_print
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: byebug
|
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: Simply Serializable makes it easy to serialize any object. It provides
|
98
|
+
a configuratable way to serialize the attributes you want and ignore the ones you
|
99
|
+
don't.
|
100
|
+
email:
|
101
|
+
- ryanwjackson@gmail.com
|
102
|
+
executables: []
|
103
|
+
extensions: []
|
104
|
+
extra_rdoc_files: []
|
105
|
+
files:
|
106
|
+
- ".byebug_history"
|
107
|
+
- ".gitignore"
|
108
|
+
- ".rspec"
|
109
|
+
- ".travis.yml"
|
110
|
+
- CODE_OF_CONDUCT.md
|
111
|
+
- Gemfile
|
112
|
+
- Gemfile.lock
|
113
|
+
- LICENSE.txt
|
114
|
+
- README.md
|
115
|
+
- Rakefile
|
116
|
+
- bin/console
|
117
|
+
- bin/setup
|
118
|
+
- lib/simply_serializable.rb
|
119
|
+
- lib/simply_serializable/debug.rb
|
120
|
+
- lib/simply_serializable/mixin.rb
|
121
|
+
- lib/simply_serializable/serializer.rb
|
122
|
+
- lib/simply_serializable/version.rb
|
123
|
+
- release.sh
|
124
|
+
- simply_serializable.gemspec
|
125
|
+
homepage: https://www.github.com/ryanwjackson/simply_serializable
|
126
|
+
licenses:
|
127
|
+
- MIT
|
128
|
+
metadata: {}
|
129
|
+
post_install_message:
|
130
|
+
rdoc_options: []
|
131
|
+
require_paths:
|
132
|
+
- lib
|
133
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0'
|
138
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
|
+
requirements:
|
140
|
+
- - ">="
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '0'
|
143
|
+
requirements: []
|
144
|
+
rubygems_version: 3.0.3
|
145
|
+
signing_key:
|
146
|
+
specification_version: 4
|
147
|
+
summary: Simply Serializable makes it easy to serialize any object.
|
148
|
+
test_files: []
|