version_serializers 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +19 -0
- data/Gemfile.lock +209 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/version_serializer.rb +7 -0
- data/lib/version_serializer/base.rb +10 -0
- data/lib/version_serializer/controller_additions.rb +12 -0
- data/lib/version_serializer/version.rb +3 -0
- data/lib/version_serializer/versioner.rb +32 -0
- data/version_serializer.gemspec +29 -0
- metadata +115 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4bf4626dd5994c2299ff928d747b685c768eaff5
|
4
|
+
data.tar.gz: 6a5e3409873d134c10bf338b1bfa1932a199df12
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 43f84e896d62273f9dde2779a84087aab67ae7242e26374ec3a6c85b88d33b288ee9cb05faf9d7b395e07174333ec79e9e246a3407b80fb9c374089360a307f3
|
7
|
+
data.tar.gz: 32c0a6527fa992b6ed42bcda5368b5b00bf854d59f65d2c95e66258346b81bf29281c080691fbb7a634d12947acbcc225a45577242cd51214c19187f64bff152
|
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
pkg
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at ben.dangelo2@gmail.com. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
# Specify your gem's dependencies in version_serializer.gemspec
|
4
|
+
gemspec
|
5
|
+
|
6
|
+
|
7
|
+
gem "rails", github: "rails/rails"
|
8
|
+
gem "arel", github: "rails/arel"
|
9
|
+
gem "rack", github: "rack/rack"
|
10
|
+
|
11
|
+
git 'https://github.com/rails/rails.git' do
|
12
|
+
gem 'railties'
|
13
|
+
gem 'activesupport'
|
14
|
+
gem 'activemodel'
|
15
|
+
gem 'actionpack'
|
16
|
+
gem 'activerecord', group: :test
|
17
|
+
# Rails 5
|
18
|
+
gem 'actionview'
|
19
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,209 @@
|
|
1
|
+
GIT
|
2
|
+
remote: git://github.com/rack/rack.git
|
3
|
+
revision: 545532b01d332325c913808b7c2047a9256ed551
|
4
|
+
specs:
|
5
|
+
rack (2.0.0.alpha)
|
6
|
+
json
|
7
|
+
|
8
|
+
GIT
|
9
|
+
remote: git://github.com/rails/arel.git
|
10
|
+
revision: 63ea665c8083f8069a0d05d4f15cf19e08e470a6
|
11
|
+
specs:
|
12
|
+
arel (7.0.0)
|
13
|
+
|
14
|
+
GIT
|
15
|
+
remote: git://github.com/rails/rails.git
|
16
|
+
revision: f5ab4055b909e7b325304c5a7e414c28bbe441b7
|
17
|
+
specs:
|
18
|
+
rails (5.0.0.beta1)
|
19
|
+
actioncable (= 5.0.0.beta1)
|
20
|
+
actionmailer (= 5.0.0.beta1)
|
21
|
+
actionpack (= 5.0.0.beta1)
|
22
|
+
actionview (= 5.0.0.beta1)
|
23
|
+
activejob (= 5.0.0.beta1)
|
24
|
+
activemodel (= 5.0.0.beta1)
|
25
|
+
activerecord (= 5.0.0.beta1)
|
26
|
+
activesupport (= 5.0.0.beta1)
|
27
|
+
bundler (>= 1.3.0, < 2.0)
|
28
|
+
railties (= 5.0.0.beta1)
|
29
|
+
sprockets-rails (>= 2.0.0)
|
30
|
+
|
31
|
+
GIT
|
32
|
+
remote: https://github.com/rails/rails.git
|
33
|
+
revision: f5ab4055b909e7b325304c5a7e414c28bbe441b7
|
34
|
+
specs:
|
35
|
+
actioncable (5.0.0.beta1)
|
36
|
+
actionpack (= 5.0.0.beta1)
|
37
|
+
celluloid (~> 0.17.2)
|
38
|
+
coffee-rails (~> 4.1.0)
|
39
|
+
em-hiredis (~> 0.3.0)
|
40
|
+
faye-websocket (~> 0.10.0)
|
41
|
+
redis (~> 3.0)
|
42
|
+
websocket-driver (~> 0.6.1)
|
43
|
+
actionmailer (5.0.0.beta1)
|
44
|
+
actionpack (= 5.0.0.beta1)
|
45
|
+
actionview (= 5.0.0.beta1)
|
46
|
+
activejob (= 5.0.0.beta1)
|
47
|
+
mail (~> 2.5, >= 2.5.4)
|
48
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
49
|
+
actionpack (5.0.0.beta1)
|
50
|
+
actionview (= 5.0.0.beta1)
|
51
|
+
activesupport (= 5.0.0.beta1)
|
52
|
+
rack (~> 2.x)
|
53
|
+
rack-test (~> 0.6.3)
|
54
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
55
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
56
|
+
actionview (5.0.0.beta1)
|
57
|
+
activesupport (= 5.0.0.beta1)
|
58
|
+
builder (~> 3.1)
|
59
|
+
erubis (~> 2.7.0)
|
60
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
61
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
62
|
+
activejob (5.0.0.beta1)
|
63
|
+
activesupport (= 5.0.0.beta1)
|
64
|
+
globalid (>= 0.3.6)
|
65
|
+
activemodel (5.0.0.beta1)
|
66
|
+
activesupport (= 5.0.0.beta1)
|
67
|
+
activerecord (5.0.0.beta1)
|
68
|
+
activemodel (= 5.0.0.beta1)
|
69
|
+
activesupport (= 5.0.0.beta1)
|
70
|
+
arel (~> 7.0)
|
71
|
+
activesupport (5.0.0.beta1)
|
72
|
+
concurrent-ruby (~> 1.0)
|
73
|
+
i18n (~> 0.7)
|
74
|
+
json (~> 1.7, >= 1.7.7)
|
75
|
+
method_source
|
76
|
+
minitest (~> 5.1)
|
77
|
+
tzinfo (~> 1.1)
|
78
|
+
railties (5.0.0.beta1)
|
79
|
+
actionpack (= 5.0.0.beta1)
|
80
|
+
activesupport (= 5.0.0.beta1)
|
81
|
+
method_source
|
82
|
+
rake (>= 0.8.7)
|
83
|
+
thor (>= 0.18.1, < 2.0)
|
84
|
+
|
85
|
+
PATH
|
86
|
+
remote: .
|
87
|
+
specs:
|
88
|
+
version_serializers (0.1.0)
|
89
|
+
active_model_serializers (= 0.10.0.rc2)
|
90
|
+
|
91
|
+
GEM
|
92
|
+
remote: https://rubygems.org/
|
93
|
+
specs:
|
94
|
+
active_model_serializers (0.10.0.rc2)
|
95
|
+
activemodel (>= 4.0)
|
96
|
+
builder (3.2.2)
|
97
|
+
celluloid (0.17.2)
|
98
|
+
celluloid-essentials
|
99
|
+
celluloid-extras
|
100
|
+
celluloid-fsm
|
101
|
+
celluloid-pool
|
102
|
+
celluloid-supervision
|
103
|
+
timers (>= 4.1.1)
|
104
|
+
celluloid-essentials (0.20.5)
|
105
|
+
timers (>= 4.1.1)
|
106
|
+
celluloid-extras (0.20.5)
|
107
|
+
timers (>= 4.1.1)
|
108
|
+
celluloid-fsm (0.20.5)
|
109
|
+
timers (>= 4.1.1)
|
110
|
+
celluloid-pool (0.20.5)
|
111
|
+
timers (>= 4.1.1)
|
112
|
+
celluloid-supervision (0.20.5)
|
113
|
+
timers (>= 4.1.1)
|
114
|
+
coffee-rails (4.1.1)
|
115
|
+
coffee-script (>= 2.2.0)
|
116
|
+
railties (>= 4.0.0, < 5.1.x)
|
117
|
+
coffee-script (2.4.1)
|
118
|
+
coffee-script-source
|
119
|
+
execjs
|
120
|
+
coffee-script-source (1.10.0)
|
121
|
+
concurrent-ruby (1.0.0)
|
122
|
+
diff-lcs (1.2.5)
|
123
|
+
em-hiredis (0.3.0)
|
124
|
+
eventmachine (~> 1.0)
|
125
|
+
hiredis (~> 0.5.0)
|
126
|
+
erubis (2.7.0)
|
127
|
+
eventmachine (1.0.9)
|
128
|
+
execjs (2.6.0)
|
129
|
+
faye-websocket (0.10.2)
|
130
|
+
eventmachine (>= 0.12.0)
|
131
|
+
websocket-driver (>= 0.5.1)
|
132
|
+
globalid (0.3.6)
|
133
|
+
activesupport (>= 4.1.0)
|
134
|
+
hiredis (0.5.2)
|
135
|
+
hitimes (1.2.3)
|
136
|
+
i18n (0.7.0)
|
137
|
+
json (1.8.3)
|
138
|
+
loofah (2.0.3)
|
139
|
+
nokogiri (>= 1.5.9)
|
140
|
+
mail (2.6.3)
|
141
|
+
mime-types (>= 1.16, < 3)
|
142
|
+
method_source (0.8.2)
|
143
|
+
mime-types (2.99)
|
144
|
+
mini_portile2 (2.0.0)
|
145
|
+
minitest (5.8.3)
|
146
|
+
nokogiri (1.6.7.1)
|
147
|
+
mini_portile2 (~> 2.0.0.rc2)
|
148
|
+
rack-test (0.6.3)
|
149
|
+
rack (>= 1.0)
|
150
|
+
rails-deprecated_sanitizer (1.0.3)
|
151
|
+
activesupport (>= 4.2.0.alpha)
|
152
|
+
rails-dom-testing (1.0.7)
|
153
|
+
activesupport (>= 4.2.0.beta, < 5.0)
|
154
|
+
nokogiri (~> 1.6.0)
|
155
|
+
rails-deprecated_sanitizer (>= 1.0.1)
|
156
|
+
rails-html-sanitizer (1.0.2)
|
157
|
+
loofah (~> 2.0)
|
158
|
+
rake (10.5.0)
|
159
|
+
redis (3.2.2)
|
160
|
+
rspec (3.4.0)
|
161
|
+
rspec-core (~> 3.4.0)
|
162
|
+
rspec-expectations (~> 3.4.0)
|
163
|
+
rspec-mocks (~> 3.4.0)
|
164
|
+
rspec-core (3.4.1)
|
165
|
+
rspec-support (~> 3.4.0)
|
166
|
+
rspec-expectations (3.4.0)
|
167
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
168
|
+
rspec-support (~> 3.4.0)
|
169
|
+
rspec-mocks (3.4.1)
|
170
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
171
|
+
rspec-support (~> 3.4.0)
|
172
|
+
rspec-support (3.4.1)
|
173
|
+
sprockets (3.5.2)
|
174
|
+
concurrent-ruby (~> 1.0)
|
175
|
+
rack (> 1, < 3)
|
176
|
+
sprockets-rails (3.0.0)
|
177
|
+
actionpack (>= 4.0)
|
178
|
+
activesupport (>= 4.0)
|
179
|
+
sprockets (>= 3.0.0)
|
180
|
+
thor (0.19.1)
|
181
|
+
thread_safe (0.3.5)
|
182
|
+
timers (4.1.1)
|
183
|
+
hitimes
|
184
|
+
tzinfo (1.2.2)
|
185
|
+
thread_safe (~> 0.1)
|
186
|
+
websocket-driver (0.6.3)
|
187
|
+
websocket-extensions (>= 0.1.0)
|
188
|
+
websocket-extensions (0.1.2)
|
189
|
+
|
190
|
+
PLATFORMS
|
191
|
+
ruby
|
192
|
+
|
193
|
+
DEPENDENCIES
|
194
|
+
actionpack!
|
195
|
+
actionview!
|
196
|
+
activemodel!
|
197
|
+
activerecord!
|
198
|
+
activesupport!
|
199
|
+
arel!
|
200
|
+
bundler (~> 1.11)
|
201
|
+
rack!
|
202
|
+
rails!
|
203
|
+
railties!
|
204
|
+
rake (~> 10.0)
|
205
|
+
rspec (~> 3.0)
|
206
|
+
version_serializers!
|
207
|
+
|
208
|
+
BUNDLED WITH
|
209
|
+
1.11.2
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Ben D'Angelo
|
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,39 @@
|
|
1
|
+
# VersionSerializer
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/version_serializer`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'version_serializer'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install version_serializer
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
TODO: Write usage instructions here
|
24
|
+
|
25
|
+
## Development
|
26
|
+
|
27
|
+
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.
|
28
|
+
|
29
|
+
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).
|
30
|
+
|
31
|
+
## Contributing
|
32
|
+
|
33
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/version_serializer. 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.
|
34
|
+
|
35
|
+
|
36
|
+
## License
|
37
|
+
|
38
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
39
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "version_serializer"
|
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
|
data/bin/setup
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
class VersionSerializer::Base < ActiveModel::Serializer
|
2
|
+
[:belongs_to, :has_one, :has_many].each do |meth|
|
3
|
+
define_singleton_method(meth) do |resource, opts = {}|
|
4
|
+
opts.merge!(
|
5
|
+
serializer: VersionSerializer::Versioner.get_serializer(resource.to_s.singularize, name.deconstantize[1])
|
6
|
+
)
|
7
|
+
super(resource, opts)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module VersionSerializer::ControllerAdditions
|
2
|
+
|
3
|
+
def serialized_render(resource, opts = {})
|
4
|
+
render VersionSerializer::Versioner.get_rendering_opts(resource, request_version, opts)
|
5
|
+
end
|
6
|
+
|
7
|
+
def get_serializer_for(class_name)
|
8
|
+
VersionSerializer::Versioner.get_serializer(class_name, request_version)
|
9
|
+
end
|
10
|
+
|
11
|
+
end
|
12
|
+
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module VersionSerializer
|
2
|
+
|
3
|
+
class Versioner
|
4
|
+
attr_accessor :request_version, :class_name
|
5
|
+
|
6
|
+
def self.get_serializer(name, version)
|
7
|
+
send(:new, version, "#{name}_serializer".classify).get
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.get_rendering_opts(resource, version, opts)
|
11
|
+
resource_class_name = resource.class.to_s.split("::")[0]
|
12
|
+
serializer_class = get_serializer(resource_class_name, version)
|
13
|
+
key = resource.is_a?(ActiveRecord::Relation) ? :each_serializer : :serializer
|
14
|
+
opts.merge!(json: resource, key => serializer_class)
|
15
|
+
end
|
16
|
+
|
17
|
+
def get
|
18
|
+
"V#{request_version}::#{class_name}".constantize
|
19
|
+
rescue NameError
|
20
|
+
previous_version = request_version.to_i - 1
|
21
|
+
previous_version == 0 ? raise(NameError) : self.class.new(previous_version, class_name).get
|
22
|
+
end
|
23
|
+
|
24
|
+
private
|
25
|
+
|
26
|
+
def initialize(request_version, class_name)
|
27
|
+
@request_version = request_version
|
28
|
+
@class_name = class_name
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'version_serializer/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "version_serializers"
|
8
|
+
spec.version = VersionSerializer::VERSION
|
9
|
+
spec.authors = ["Ben D'Angelo"]
|
10
|
+
spec.email = ["bdangelo@fundthrough.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Allows versioning of active model serializers}
|
13
|
+
spec.description = %q{Allows versioning of active model serializers}
|
14
|
+
spec.homepage = "https://www.fundthrough.com"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = "exe"
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.add_runtime_dependency "active_model_serializers", "0.10.0.rc2"
|
23
|
+
|
24
|
+
spec.required_ruby_version = '>= 2.0.0'
|
25
|
+
|
26
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
27
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
28
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
29
|
+
end
|
metadata
ADDED
@@ -0,0 +1,115 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: version_serializers
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ben D'Angelo
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-01-13 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: active_model_serializers
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.10.0.rc2
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.10.0.rc2
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.11'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.11'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.0'
|
69
|
+
description: Allows versioning of active model serializers
|
70
|
+
email:
|
71
|
+
- bdangelo@fundthrough.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- CODE_OF_CONDUCT.md
|
78
|
+
- Gemfile
|
79
|
+
- Gemfile.lock
|
80
|
+
- LICENSE.txt
|
81
|
+
- README.md
|
82
|
+
- Rakefile
|
83
|
+
- bin/console
|
84
|
+
- bin/setup
|
85
|
+
- lib/version_serializer.rb
|
86
|
+
- lib/version_serializer/base.rb
|
87
|
+
- lib/version_serializer/controller_additions.rb
|
88
|
+
- lib/version_serializer/version.rb
|
89
|
+
- lib/version_serializer/versioner.rb
|
90
|
+
- version_serializer.gemspec
|
91
|
+
homepage: https://www.fundthrough.com
|
92
|
+
licenses:
|
93
|
+
- MIT
|
94
|
+
metadata: {}
|
95
|
+
post_install_message:
|
96
|
+
rdoc_options: []
|
97
|
+
require_paths:
|
98
|
+
- lib
|
99
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 2.0.0
|
104
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0'
|
109
|
+
requirements: []
|
110
|
+
rubyforge_project:
|
111
|
+
rubygems_version: 2.5.1
|
112
|
+
signing_key:
|
113
|
+
specification_version: 4
|
114
|
+
summary: Allows versioning of active model serializers
|
115
|
+
test_files: []
|