super_mapper 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 9c8708895d430471f74f3998da88485ace1e1eea65c58ee66fd4756e49b6505c
4
+ data.tar.gz: c8ed0be6ecdddb1c52cf5695a2e0d8a4293c51faad1db6ca8255c23f61a9e74c
5
+ SHA512:
6
+ metadata.gz: 8efc972d561e8dfe6bde294c00aea2ddea5d32428adeb23947956463bb55dd225cfaec65d6aa241fecd183fa77decebee0cc5401b2eccd35ded8916865bbc390
7
+ data.tar.gz: 6f0ceed9b068f6e764fc37114f094c434d988e1d0668397cab1da507bdb201e35c65ce858f478c7f711dc42f07a067adbce3690c279f4bbb0d33ecc705f529d4
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,186 @@
1
+
2
+ AllCops:
3
+ # Cop names are not displayed in offense messages by default. Change behavior
4
+ # by overriding DisplayCopNames, or by giving the `-D/--display-cop-names`
5
+ # option.
6
+ DisplayCopNames: true
7
+
8
+ # Style guide URLs are not displayed in offense messages by default. Change
9
+ # behavior by overriding `DisplayStyleGuide`, or by giving the
10
+ # `-S/--display-style-guide` option.
11
+ DisplayStyleGuide: true
12
+
13
+ # Extra details are not displayed in offense messages by default. Change
14
+ # behavior by overriding ExtraDetails, or by giving the
15
+ # `-E/--extra-details` option.
16
+ ExtraDetails: true
17
+
18
+ # What MRI version of the Ruby interpreter is the inspected code intended to
19
+ # run on? (If there is more than one, set this to the lowest version.)
20
+ # If a value is specified for TargetRubyVersion then it is used.
21
+ # Else if .ruby-version exists and it contains an MRI version it is used.
22
+ # Otherwise we fallback to the oldest officially supported Ruby version (2.1).
23
+ TargetRubyVersion: 2.5.1
24
+ TargetRailsVersion: 5.2.1
25
+ Exclude:
26
+ - db/**
27
+
28
+ # Align the elements of a hash literal if they span more than one line.
29
+ Layout/AlignHash:
30
+ # Alignment of entries using hash rocket as separator. Valid values are:
31
+ #
32
+ # key - left alignment of keys
33
+ # 'a' => 2
34
+ # 'bb' => 3
35
+ # separator - alignment of hash rockets, keys are right aligned
36
+ # 'a' => 2
37
+ # 'bb' => 3
38
+ # table - left alignment of keys, hash rockets, and values
39
+ # 'a' => 2
40
+ # 'bb' => 3
41
+ EnforcedHashRocketStyle: table
42
+ SupportedHashRocketStyles:
43
+ - key
44
+ - separator
45
+ - table
46
+ # Alignment of entries using colon as separator. Valid values are:
47
+ #
48
+ # key - left alignment of keys
49
+ # a: 0
50
+ # bb: 1
51
+ # separator - alignment of colons, keys are right aligned
52
+ # a: 0
53
+ # bb: 1
54
+ # table - left alignment of keys and values
55
+ # a: 0
56
+ # bb: 1
57
+ EnforcedColonStyle: table
58
+ SupportedColonStyles:
59
+ - key
60
+ - separator
61
+ - table
62
+ # Select whether hashes that are the last argument in a method call should be
63
+ # inspected? Valid values are:
64
+ #
65
+ # always_inspect - Inspect both implicit and explicit hashes.
66
+ # Registers an offense for:
67
+ # function(a: 1,
68
+ # b: 2)
69
+ # Registers an offense for:
70
+ # function({a: 1,
71
+ # b: 2})
72
+ # always_ignore - Ignore both implicit and explicit hashes.
73
+ # Accepts:
74
+ # function(a: 1,
75
+ # b: 2)
76
+ # Accepts:
77
+ # function({a: 1,
78
+ # b: 2})
79
+ # ignore_implicit - Ignore only implicit hashes.
80
+ # Accepts:
81
+ # function(a: 1,
82
+ # b: 2)
83
+ # Registers an offense for:
84
+ # function({a: 1,
85
+ # b: 2})
86
+ # ignore_explicit - Ignore only explicit hashes.
87
+ # Accepts:
88
+ # function({a: 1,
89
+ # b: 2})
90
+ # Registers an offense for:
91
+ # function(a: 1,
92
+ # b: 2)
93
+ EnforcedLastArgumentHashStyle: ignore_implicit
94
+ SupportedLastArgumentHashStyles:
95
+ - always_inspect
96
+ - always_ignore
97
+ - ignore_implicit
98
+ - ignore_explicit
99
+
100
+ Layout/EndOfLine:
101
+ # The `native` style means that CR+LF (Carriage Return + Line Feed) is
102
+ # enforced on Windows, and LF is enforced on other platforms. The other styles
103
+ # mean LF and CR+LF, respectively.
104
+ EnforcedStyle: lf
105
+ SupportedStyles:
106
+ - native
107
+ - lf
108
+ - crlf
109
+
110
+ Style/BlockDelimiters:
111
+ EnforcedStyle: braces_for_chaining
112
+ SupportedStyles:
113
+ # The `line_count_based` style enforces braces around single line blocks and
114
+ # do..end around multi-line blocks.
115
+ - line_count_based
116
+ # The `semantic` style enforces braces around functional blocks, where the
117
+ # primary purpose of the block is to return a value and do..end for
118
+ # procedural blocks, where the primary purpose of the block is its
119
+ # side-effects.
120
+ #
121
+ # This looks at the usage of a block's method to determine its type (e.g. is
122
+ # the result of a `map` assigned to a variable or passed to another
123
+ # method) but exceptions are permitted in the `ProceduralMethods`,
124
+ # `FunctionalMethods` and `IgnoredMethods` sections below.
125
+ - semantic
126
+ # The `braces_for_chaining` style enforces braces around single line blocks
127
+ # and do..end around multi-line blocks, except for multi-line blocks whose
128
+ # return value is being chained with another method (in which case braces
129
+ # are enforced).
130
+ - braces_for_chaining
131
+
132
+ Style/Documentation:
133
+ Enabled: false
134
+
135
+ Style/MethodDefParentheses:
136
+ EnforcedStyle: require_no_parentheses
137
+ SupportedStyles:
138
+ - require_parentheses
139
+ - require_no_parentheses
140
+ - require_no_parentheses_except_multiline
141
+
142
+ Style/RedundantReturn:
143
+ # When `true` allows code like `return x, y`.
144
+ AllowMultipleReturnValues: true
145
+
146
+ Style/Semicolon:
147
+ # Allow `;` to separate several expressions on the same line.
148
+ AllowAsExpressionSeparator: true
149
+
150
+ Metrics/BlockLength:
151
+ Exclude:
152
+ - "**/*_spec.rb"
153
+
154
+ Metrics/LineLength:
155
+ Max: 110
156
+ # To make it possible to copy or click on URIs in the code, we allow lines
157
+ # containing a URI to be longer than Max.
158
+ AllowHeredoc: true
159
+ AllowURI: true
160
+ URISchemes:
161
+ - http
162
+ - https
163
+ - ftp
164
+ # The IgnoreCopDirectives option causes the LineLength rule to ignore cop
165
+ # directives like '# rubocop: enable ...' when calculating a line's length.
166
+ IgnoreCopDirectives: false
167
+ # The IgnoredPatterns option is a list of !ruby/regexp and/or string
168
+ # elements. Strings will be converted to Regexp objects. A line that matches
169
+ # any regular expression listed in this option will be ignored by LineLength.
170
+ IgnoredPatterns: []
171
+
172
+ # Align ends correctly.
173
+ Layout/EndAlignment:
174
+ # The value `keyword` means that `end` should be aligned with the matching
175
+ # keyword (`if`, `while`, etc.).
176
+ # The value `variable` means that in assignments, `end` should be aligned
177
+ # with the start of the variable on the left hand side of `=`. In all other
178
+ # situations, `end` should still be aligned with the keyword.
179
+ # The value `start_of_line` means that `end` should be aligned with the start
180
+ # of the line which the matching keyword appears on.
181
+ EnforcedStyleAlignWith: variable
182
+ SupportedStylesAlignWith:
183
+ - keyword
184
+ - variable
185
+ - start_of_line
186
+ AutoCorrect: false
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ super_mapper
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-2.6.1
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.5.1
7
+ before_install: gem install bundler -v 2.0.1
@@ -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 matteo.joliveau@mikamai.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
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in super_mapper.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,53 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ super_mapper (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ ast (2.4.0)
10
+ diff-lcs (1.3)
11
+ jaro_winkler (1.5.2)
12
+ parallel (1.13.0)
13
+ parser (2.6.0.0)
14
+ ast (~> 2.4.0)
15
+ powerpack (0.1.2)
16
+ rainbow (3.0.0)
17
+ rake (10.5.0)
18
+ rspec (3.8.0)
19
+ rspec-core (~> 3.8.0)
20
+ rspec-expectations (~> 3.8.0)
21
+ rspec-mocks (~> 3.8.0)
22
+ rspec-core (3.8.0)
23
+ rspec-support (~> 3.8.0)
24
+ rspec-expectations (3.8.2)
25
+ diff-lcs (>= 1.2.0, < 2.0)
26
+ rspec-support (~> 3.8.0)
27
+ rspec-mocks (3.8.0)
28
+ diff-lcs (>= 1.2.0, < 2.0)
29
+ rspec-support (~> 3.8.0)
30
+ rspec-support (3.8.0)
31
+ rubocop (0.63.1)
32
+ jaro_winkler (~> 1.5.1)
33
+ parallel (~> 1.10)
34
+ parser (>= 2.5, != 2.5.1.1)
35
+ powerpack (~> 0.1)
36
+ rainbow (>= 2.2.2, < 4.0)
37
+ ruby-progressbar (~> 1.7)
38
+ unicode-display_width (~> 1.4.0)
39
+ ruby-progressbar (1.10.0)
40
+ unicode-display_width (1.4.1)
41
+
42
+ PLATFORMS
43
+ ruby
44
+
45
+ DEPENDENCIES
46
+ bundler (~> 2.0)
47
+ rake (~> 10.0)
48
+ rspec (~> 3.0)
49
+ rubocop (~> 0.63.1)
50
+ super_mapper!
51
+
52
+ BUNDLED WITH
53
+ 2.0.1
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Matteo Joliveau
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,84 @@
1
+ # SuperMapper
2
+
3
+ **SuperMapper** is a quick and simple mapper between Ruby object.
4
+ Define a mapping between attribute readers and writers and automatically convert classes.
5
+
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'super_mapper'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install super_mapper
22
+
23
+ ## Usage
24
+
25
+ ### Defining mapping
26
+
27
+ Create a new Mapper instance, then start describing mapping to a specific class
28
+ ```ruby
29
+ mapper = SuperMapper.new
30
+
31
+ # Define a mapping from a User to a UserStruct
32
+ mapper.define_mapping User, UserStruct do |user, user_struct|
33
+ user_struct.first_name = user.first_name
34
+
35
+ # Apply transformations
36
+ user_struct.username = user.username.downcase
37
+
38
+ # Generate new values
39
+ user_struct.created_at = Time.now
40
+ end
41
+ ```
42
+
43
+ ### Apply conversions
44
+
45
+ ```ruby
46
+ user = User.first
47
+
48
+ # With target classes
49
+ user_struct = mapper.map user, UserStruct
50
+
51
+ # With existing target objects (target is modified in place)
52
+ mapper.map user, user_struct
53
+
54
+ # Multiple mappings can be applied to the same target.
55
+ # Later ones override previously set value if conflicts occur.
56
+
57
+ some_other_user_representation = context[:current_user]
58
+
59
+ mapper.map user, user_struct
60
+ mapper.map some_other_user_representation, user_struct
61
+
62
+ # +user_struct+ now has fields from both User and the other representation
63
+ ```
64
+
65
+
66
+ If using target classes, they MUST implement a no-args constructor because new instances are created via `target_class.new`.
67
+
68
+ ## Development
69
+
70
+ 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.
71
+
72
+ 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).
73
+
74
+ ## Contributing
75
+
76
+ Bug reports and pull requests are welcome on GitHub at https://github.com/matteojoliveau/super_mapper. 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.
77
+
78
+ ## License
79
+
80
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
81
+
82
+ ## Code of Conduct
83
+
84
+ Everyone interacting in the SuperMapper project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/super_mapper/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'super_mapper'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require 'irb'
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class SuperMapper
4
+ VERSION = '0.1.0'
5
+ end
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'super_mapper/version'
4
+
5
+ class SuperMapper
6
+
7
+ ##
8
+ # Define a new mapping schema from a source class, mapping getters to setters
9
+ #
10
+ # @param [Class] source_class the class that will act as the source for this mapping definition
11
+ def define_mapping source_class, target_class, &block
12
+ mapping_registry["#{source_class}-#{target_class}"] = block
13
+ end
14
+
15
+ ##
16
+ # Maps a source object to a target object using previously registered mappings
17
+ #
18
+ # @param [Object] source the source object
19
+ # @param [Object | Class] target the target object or class. If a class is given, it should have a no-args constructor since the new instance will be created calling +target.new+
20
+ # @return [Object] the target object, or a new instance of the target class, filled with values coming from the source
21
+ def map source, target
22
+ target.is_a?(Class) ? map_object(source, target.new) : map_object(source, target)
23
+ end
24
+
25
+ private
26
+
27
+ def mapping_registry
28
+ @mapping_registry ||= {}
29
+ end
30
+
31
+ def map_object source, target
32
+ mapping_proc = mapping_registry["#{source.class}-#{target.class}"]
33
+ mapping_proc.call source, target
34
+ target
35
+ end
36
+
37
+ class Error < StandardError;
38
+ end
39
+ end
@@ -0,0 +1,46 @@
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 'super_mapper/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'super_mapper'
9
+ spec.version = SuperMapper::VERSION
10
+ spec.authors = ['Matteo Joliveau']
11
+ spec.email = ['matteojoliveau@gmail.com']
12
+
13
+ spec.summary = 'Quick and simple mapping between Ruby classes'
14
+ spec.description = <<~DESCRIPTION
15
+ SuperMapper is a quick and simple mapper between Ruby object.
16
+ Define a mapping between attribute readers and writers and automatically convert classes
17
+ DESCRIPTION
18
+ spec.homepage = 'https://github.com/matteojoliveau/super_mapper'
19
+ spec.license = 'MIT'
20
+
21
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
22
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
23
+ if spec.respond_to?(:metadata)
24
+ spec.metadata['allowed_push_host'] = "https://rubygems.org"
25
+
26
+ spec.metadata['homepage_uri'] = spec.homepage
27
+ spec.metadata['source_code_uri'] = 'https://github.com/matteojoliveau/super_mapper'
28
+ else
29
+ raise 'RubyGems 2.0 or newer is required to protect against ' \
30
+ 'public gem pushes.'
31
+ end
32
+
33
+ # Specify which files should be added to the gem when it is released.
34
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
35
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
36
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
37
+ end
38
+ spec.bindir = 'exe'
39
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
40
+ spec.require_paths = ['lib']
41
+
42
+ spec.add_development_dependency 'bundler', '~> 2.0'
43
+ spec.add_development_dependency 'rake', '~> 10.0'
44
+ spec.add_development_dependency 'rspec', '~> 3.0'
45
+ spec.add_development_dependency 'rubocop', '~> 0.63.1'
46
+ end
metadata ADDED
@@ -0,0 +1,121 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: super_mapper
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Matteo Joliveau
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-02-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.63.1
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.63.1
69
+ description: |
70
+ SuperMapper is a quick and simple mapper between Ruby object.
71
+ Define a mapping between attribute readers and writers and automatically convert classes
72
+ email:
73
+ - matteojoliveau@gmail.com
74
+ executables: []
75
+ extensions: []
76
+ extra_rdoc_files: []
77
+ files:
78
+ - ".gitignore"
79
+ - ".rspec"
80
+ - ".rubocop.yml"
81
+ - ".ruby-gemset"
82
+ - ".ruby-version"
83
+ - ".travis.yml"
84
+ - CODE_OF_CONDUCT.md
85
+ - Gemfile
86
+ - Gemfile.lock
87
+ - LICENSE.txt
88
+ - README.md
89
+ - Rakefile
90
+ - bin/console
91
+ - bin/setup
92
+ - lib/super_mapper.rb
93
+ - lib/super_mapper/version.rb
94
+ - super_mapper.gemspec
95
+ homepage: https://github.com/matteojoliveau/super_mapper
96
+ licenses:
97
+ - MIT
98
+ metadata:
99
+ allowed_push_host: https://rubygems.org
100
+ homepage_uri: https://github.com/matteojoliveau/super_mapper
101
+ source_code_uri: https://github.com/matteojoliveau/super_mapper
102
+ post_install_message:
103
+ rdoc_options: []
104
+ require_paths:
105
+ - lib
106
+ required_ruby_version: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ required_rubygems_version: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
116
+ requirements: []
117
+ rubygems_version: 3.0.1
118
+ signing_key:
119
+ specification_version: 4
120
+ summary: Quick and simple mapping between Ruby classes
121
+ test_files: []