trax_controller 0.0.2

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
+ SHA1:
3
+ metadata.gz: 073eda93c53968cf904385eae5a197bc0f32163a
4
+ data.tar.gz: e3e923554c0072ee104eb984590706b103459850
5
+ SHA512:
6
+ metadata.gz: 81311299663e3952883c591f091e96fd749058088db5afc30fa3878f58c9778552eadbe6cb303c5b6c675e9553c44e8b00414b15e911b2932713651f2cbf964e
7
+ data.tar.gz: 46174f18c3e3f0bb6e9d648fb6443122e3a13b619ad7c6f2ee73c9e42e3fd97a3b8477400338e79394e0a989f2378c4ae95c4cbd51df338940cc300480028f37
data/.gitignore ADDED
@@ -0,0 +1,14 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.bundle
11
+ *.so
12
+ *.o
13
+ *.a
14
+ mkmf.log
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+
2
+ source 'https://rubygems.org'
3
+
4
+ # Specify your gem's dependencies in trax_controller.gemspec
5
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Jason Ayre
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,54 @@
1
+ # TraxController
2
+
3
+ Resourceful more standardized controllers. Uses inherited resources. Geared towards api driven apps.
4
+
5
+ ### Standards
6
+
7
+ More soon.
8
+
9
+
10
+
11
+ ``` ruby
12
+ class Admin::Api::WidgetsController < ::Admin::Api::BaseController
13
+ include ::Trax::Controller
14
+
15
+ defaults :resource_class => ::Widget
16
+
17
+ def resource_serializer
18
+ ::Admin::Api::WidgetSerializer
19
+ end
20
+
21
+ #normally same as above unless overridden
22
+ def collection_serializer
23
+ ::Admin::Api::WidgetSerializer
24
+ end
25
+ end
26
+ ```
27
+
28
+ ## Installation
29
+
30
+ Add this line to your application's Gemfile:
31
+
32
+ ```ruby
33
+ gem 'trax_controller'
34
+ ```
35
+
36
+ And then execute:
37
+
38
+ $ bundle
39
+
40
+ Or install it yourself as:
41
+
42
+ $ gem install trax_controller
43
+
44
+ ## Usage
45
+
46
+ TODO: Write usage instructions here
47
+
48
+ ## Contributing
49
+
50
+ 1. Fork it ( https://github.com/[my-github-username]/trax_controller/fork )
51
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
52
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
53
+ 4. Push to the branch (`git push origin my-new-feature`)
54
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,89 @@
1
+ module Trax
2
+ module Controller
3
+ module Actions
4
+ extend ::ActiveSupport::Concern
5
+
6
+ included do
7
+ respond_to :json
8
+ end
9
+
10
+ def index
11
+ render :json => collection,
12
+ :meta => collection_response_meta,
13
+ :each_serializer => collection_serializer,
14
+ :root => collection_root
15
+ end
16
+
17
+ def create
18
+ create! do |success, failure|
19
+ success.json do
20
+ render_resource(201)
21
+ end
22
+
23
+ failure.json do
24
+ render_errors(:unprocessable_entity, *resource.errors.full_messages)
25
+ end
26
+ end
27
+ end
28
+
29
+ def update
30
+ update! do |success, failure|
31
+ success.json do
32
+ render_resource
33
+ end
34
+
35
+ failure.json do
36
+ render_errors(:unprocessable_entity, *resource.errors.full_messages)
37
+ end
38
+ end
39
+ end
40
+
41
+ def destroy
42
+ destroy! do |success, failure|
43
+ success.json do
44
+ render_resource
45
+ end
46
+
47
+ failure.json do
48
+ render_errors(:method_not_allowed, *resource_response_meta[:errors])
49
+ end
50
+ end
51
+ end
52
+
53
+ def show
54
+ render_resource
55
+ end
56
+
57
+ private
58
+
59
+ def render_resource(status = :ok)
60
+ render json: resource, serializer: resource_serializer, meta: resource_response_meta, status: status, scope: serialization_scope
61
+ end
62
+
63
+ def render_errors(status, *errors)
64
+ errors = errors.map { |str| str.last == "." ? str : str << "." }
65
+ render json: { meta: { errors: errors } }, status: status, serializer: nil
66
+ end
67
+
68
+ def collection_serializer
69
+ resource_serializer
70
+ end
71
+
72
+ def resource_serializer
73
+ "#{resource_class.name.demodulize}Serializer".constantize
74
+ end
75
+
76
+ def collection_root
77
+ controller_name
78
+ end
79
+
80
+ def resource_root
81
+ collection_root.singularize
82
+ end
83
+
84
+ def serialized_resource
85
+ @serialized_resource ||= resource_serializer.new(resource, scope: serialization_scope)
86
+ end
87
+ end
88
+ end
89
+ end
@@ -0,0 +1,22 @@
1
+ module Trax
2
+ module Controller
3
+ module Collection
4
+ module Base
5
+ extend ::ActiveSupport::Concern
6
+
7
+ included do
8
+ class_attribute :collection_options
9
+ self.collection_options = ::ActiveSupport::OrderedOptions.new
10
+ end
11
+
12
+ module ClassMethods
13
+ def collection_defaults(options = {})
14
+ collection_options.merge!(options)
15
+ end
16
+ end
17
+
18
+ include ::Trax::Controller::Collection::ResponseMeta
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,19 @@
1
+ module Trax
2
+ module Controller
3
+ module Collection
4
+ module ResponseMeta
5
+ extend ::ActiveSupport::Concern
6
+
7
+ included do
8
+ helper_method :collection_response_meta
9
+ end
10
+
11
+ def collection_response_meta
12
+ @collection_response_meta ||= {
13
+ :json_root => collection_root
14
+ }
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,27 @@
1
+ module Trax
2
+ module Controller
3
+ module Collection
4
+ module Searchable
5
+ extend ::ActiveSupport::Concern
6
+
7
+ def search
8
+ render :json => search_collection,
9
+ :meta => collection_response_meta,
10
+ :each_serializer => collection_serializer,
11
+ :root => collection_root
12
+ end
13
+
14
+ def search_collection
15
+ @search_collection ||= begin
16
+ search_keys = self.class.scopes_configuration.keys
17
+
18
+ search_keys.inject(collection.all) do |result, key|
19
+ relation = params.has_key?("#{key}") ? result.__send__(key, params[key]) : result
20
+ relation
21
+ end.all
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,11 @@
1
+ module Trax
2
+ module Controller
3
+ module Collection
4
+ extend ::ActiveSupport::Autoload
5
+
6
+ autoload :Base
7
+ autoload :ResponseMeta
8
+ autoload :Searchable
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,13 @@
1
+ module Trax
2
+ module Controller
3
+ module InheritResources
4
+ extend ::ActiveSupport::Concern
5
+
6
+ included do
7
+ ::InheritedResources::Base.inherit_resources(self)
8
+ initialize_resources_class_accessors!
9
+ create_resources_url_helpers!
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,16 @@
1
+ module Trax
2
+ module Controller
3
+ module Resource
4
+ module Base
5
+ extend ::ActiveSupport::Concern
6
+
7
+ included do
8
+ class_attribute :resource_options
9
+ end
10
+
11
+ include ::Trax::Controller::Resource::ResponseMeta
12
+ include ::Trax::Controller::Resource::Errors
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,21 @@
1
+ module Trax
2
+ module Controller
3
+ module Resource
4
+ module Errors
5
+ extend ::ActiveSupport::Concern
6
+
7
+ def resource_errors?
8
+ resource.errors.any?
9
+ end
10
+
11
+ def resource_response_meta
12
+ if resource_action? && resource_errors?
13
+ super.merge!(:errors => resource.errors.messages)
14
+ else
15
+ super
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,19 @@
1
+ module Trax
2
+ module Controller
3
+ module Resource
4
+ module ResponseMeta
5
+ extend ::ActiveSupport::Concern
6
+
7
+ included do
8
+ helper_method :resource_response_meta
9
+ end
10
+
11
+ def resource_response_meta
12
+ @resource_response_meta ||= {
13
+ :json_root => resource_root
14
+ }
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,11 @@
1
+ module Trax
2
+ module Controller
3
+ module Resource
4
+ extend ::ActiveSupport::Autoload
5
+
6
+ autoload :Base
7
+ autoload :Errors
8
+ autoload :ResponseMeta
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,35 @@
1
+ require 'hashie/dash'
2
+ require 'hashie/mash'
3
+ require 'trax_core'
4
+ require 'inherited_resources'
5
+
6
+ module Trax
7
+ module Controller
8
+ extend ::ActiveSupport::Concern
9
+ extend ::ActiveSupport::Autoload
10
+
11
+ included do
12
+ inherit_resources
13
+ end
14
+
15
+ autoload :Actions
16
+ autoload :Collection
17
+ autoload :Resource
18
+ autoload :InheritResources
19
+
20
+ include ::Trax::Controller::InheritResources
21
+ include ::Trax::Controller::Collection::Base
22
+ include ::Trax::Controller::Resource::Base
23
+ include ::Trax::Controller::Actions
24
+
25
+ # inherit_resources
26
+
27
+
28
+
29
+ # included do
30
+ # inherit_resources
31
+ # end
32
+
33
+
34
+ end
35
+ end
data/lib/trax.rb ADDED
@@ -0,0 +1,3 @@
1
+ require 'trax/controller'
2
+
3
+ module Trax; end
@@ -0,0 +1,3 @@
1
+ module TraxController
2
+ VERSION = "0.0.2"
3
+ end
@@ -0,0 +1,5 @@
1
+ require_relative './trax'
2
+
3
+ module TraxController
4
+ # Your code goes here...
5
+ end
@@ -0,0 +1,18 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ require 'simplecov'
4
+ require 'pry'
5
+ require 'trax_controller'
6
+
7
+ SimpleCov.start do
8
+ add_filter '/spec/'
9
+ end
10
+
11
+ RSpec.configure do |config|
12
+ config.before(:suite) do
13
+ end
14
+ end
15
+
16
+ Bundler.require(:default, :development, :test)
17
+
18
+ ::Dir["#{::File.dirname(__FILE__)}/support/*.rb"].each {|f| require f }
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe ::Trax::Controller do
4
+ it {
5
+ should respond_to(:defaults)
6
+ }
7
+ end
@@ -0,0 +1,38 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'trax_controller/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "trax_controller"
8
+ spec.version = TraxController::VERSION
9
+ spec.authors = ["Jason Ayre"]
10
+ spec.email = ["jasonayre@gmail.com"]
11
+ spec.summary = %q{Resourceful, standardized controllers}
12
+ spec.description = %q{Resourceful, standardized controllers}
13
+ spec.homepage = "http://www.github.com/jasonayre"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_dependency "trax_core"
22
+ spec.add_development_dependency "rails"
23
+ spec.add_development_dependency "inherited_resources"
24
+ spec.add_development_dependency "bundler", "~> 1.6"
25
+ spec.add_development_dependency "rake"
26
+ spec.add_development_dependency "sqlite3"
27
+ spec.add_development_dependency "rspec"
28
+ spec.add_development_dependency "rspec-pride"
29
+ spec.add_development_dependency "pry-nav"
30
+ spec.add_development_dependency "simplecov"
31
+ spec.add_development_dependency 'rspec-its', '~> 1'
32
+ spec.add_development_dependency 'rspec-collection_matchers', '~> 1'
33
+ spec.add_development_dependency 'guard', '~> 2'
34
+ spec.add_development_dependency 'guard-rspec', '~> 4'
35
+ spec.add_development_dependency 'guard-bundler', '~> 2'
36
+ spec.add_development_dependency 'rb-fsevent'
37
+ spec.add_development_dependency 'terminal-notifier-guard'
38
+ end
metadata ADDED
@@ -0,0 +1,306 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: trax_controller
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Jason Ayre
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-12-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: trax_core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
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: rails
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: inherited_resources
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: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.6'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.6'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: sqlite3
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rspec-pride
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: pry-nav
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: simplecov
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rspec-its
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '1'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '1'
167
+ - !ruby/object:Gem::Dependency
168
+ name: rspec-collection_matchers
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '1'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '1'
181
+ - !ruby/object:Gem::Dependency
182
+ name: guard
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '2'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '2'
195
+ - !ruby/object:Gem::Dependency
196
+ name: guard-rspec
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: '4'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: '4'
209
+ - !ruby/object:Gem::Dependency
210
+ name: guard-bundler
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: '2'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - "~>"
221
+ - !ruby/object:Gem::Version
222
+ version: '2'
223
+ - !ruby/object:Gem::Dependency
224
+ name: rb-fsevent
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
+ - !ruby/object:Gem::Dependency
238
+ name: terminal-notifier-guard
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
244
+ type: :development
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: '0'
251
+ description: Resourceful, standardized controllers
252
+ email:
253
+ - jasonayre@gmail.com
254
+ executables: []
255
+ extensions: []
256
+ extra_rdoc_files: []
257
+ files:
258
+ - ".gitignore"
259
+ - Gemfile
260
+ - LICENSE.txt
261
+ - README.md
262
+ - Rakefile
263
+ - lib/trax.rb
264
+ - lib/trax/controller.rb
265
+ - lib/trax/controller/actions.rb
266
+ - lib/trax/controller/collection.rb
267
+ - lib/trax/controller/collection/base.rb
268
+ - lib/trax/controller/collection/response_meta.rb
269
+ - lib/trax/controller/collection/searchable.rb
270
+ - lib/trax/controller/inherit_resources.rb
271
+ - lib/trax/controller/resource.rb
272
+ - lib/trax/controller/resource/base.rb
273
+ - lib/trax/controller/resource/errors.rb
274
+ - lib/trax/controller/resource/response_meta.rb
275
+ - lib/trax_controller.rb
276
+ - lib/trax_controller/version.rb
277
+ - spec/spec_helper.rb
278
+ - spec/trax/controller_spec.rb
279
+ - trax_controller.gemspec
280
+ homepage: http://www.github.com/jasonayre
281
+ licenses:
282
+ - MIT
283
+ metadata: {}
284
+ post_install_message:
285
+ rdoc_options: []
286
+ require_paths:
287
+ - lib
288
+ required_ruby_version: !ruby/object:Gem::Requirement
289
+ requirements:
290
+ - - ">="
291
+ - !ruby/object:Gem::Version
292
+ version: '0'
293
+ required_rubygems_version: !ruby/object:Gem::Requirement
294
+ requirements:
295
+ - - ">="
296
+ - !ruby/object:Gem::Version
297
+ version: '0'
298
+ requirements: []
299
+ rubyforge_project:
300
+ rubygems_version: 2.4.3
301
+ signing_key:
302
+ specification_version: 4
303
+ summary: Resourceful, standardized controllers
304
+ test_files:
305
+ - spec/spec_helper.rb
306
+ - spec/trax/controller_spec.rb