api_me 0.9.4 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +16 -39
  3. data/lib/api_me.rb +12 -10
  4. data/lib/api_me/base_filter.rb +2 -0
  5. data/lib/api_me/engine.rb +5 -0
  6. data/lib/api_me/model.rb +2 -0
  7. data/lib/api_me/pagination.rb +28 -11
  8. data/lib/api_me/sorting.rb +24 -11
  9. data/lib/api_me/version.rb +3 -1
  10. data/lib/generators/api_me/controller/controller_generator.rb +8 -6
  11. data/lib/generators/api_me/filter/filter_generator.rb +2 -0
  12. data/lib/generators/api_me/install_generator.rb +2 -0
  13. data/lib/generators/api_me/policy/policy_generator.rb +2 -0
  14. data/lib/generators/api_me/resource/resource_generator.rb +2 -0
  15. metadata +25 -92
  16. data/.editorconfig +0 -41
  17. data/.gitignore +0 -3
  18. data/.rubocop.yml +0 -8
  19. data/.ruby-version +0 -1
  20. data/.travis.yml +0 -4
  21. data/Gemfile +0 -11
  22. data/Gemfile.lock +0 -153
  23. data/LICENSE +0 -20
  24. data/README.md +0 -194
  25. data/api_me.gemspec +0 -33
  26. data/config.ru +0 -7
  27. data/spec/acceptance/api/v1/fails_spec.rb +0 -12
  28. data/spec/acceptance/api/v1/posts_spec.rb +0 -154
  29. data/spec/acceptance/api/v1/users_spec.rb +0 -96
  30. data/spec/acceptance/multi_word_resource_spec.rb +0 -12
  31. data/spec/internal/app/controllers/api/v1/fails_controller.rb +0 -11
  32. data/spec/internal/app/controllers/api/v1/multi_word_resources_controller.rb +0 -6
  33. data/spec/internal/app/controllers/api/v1/posts_controller.rb +0 -3
  34. data/spec/internal/app/controllers/api/v1/users_controller.rb +0 -3
  35. data/spec/internal/app/controllers/application_controller.rb +0 -12
  36. data/spec/internal/app/filters/user_filter.rb +0 -7
  37. data/spec/internal/app/models/post.rb +0 -3
  38. data/spec/internal/app/models/test_model.rb +0 -21
  39. data/spec/internal/app/models/user.rb +0 -3
  40. data/spec/internal/app/policies/application_policy.rb +0 -65
  41. data/spec/internal/app/policies/post_policy.rb +0 -4
  42. data/spec/internal/app/policies/test_model_policy.rb +0 -5
  43. data/spec/internal/app/policies/user_policy.rb +0 -8
  44. data/spec/internal/app/serializers/post_serializer.rb +0 -5
  45. data/spec/internal/app/serializers/test_model_serializer.rb +0 -5
  46. data/spec/internal/app/serializers/user_serializer.rb +0 -3
  47. data/spec/internal/config/database.yml +0 -3
  48. data/spec/internal/config/initializers/active_model_serializers.rb +0 -1
  49. data/spec/internal/config/routes.rb +0 -10
  50. data/spec/internal/db/schema.rb +0 -12
  51. data/spec/internal/log/.gitignore +0 -1
  52. data/spec/internal/public/favicon.ico +0 -0
  53. data/spec/spec_helper.rb +0 -24
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aed5d142524f6fbf74249ad247e7570f6043bf46fab0d142025333464c95b615
4
- data.tar.gz: 5533d6ed2788081506b6ab79f448ae58e91bc4cdada605e9e086d2875ffe3ed6
3
+ metadata.gz: c865a6d591537309fab8c8666c2658139342f734a310156a2bd8fd81d6a20af1
4
+ data.tar.gz: f2e237e7d61c826fff1c3aca80823d832afacb0b13f05718cf42ccdac28bfd90
5
5
  SHA512:
6
- metadata.gz: 18c8ffeed181d5346baddf0e705e4a5507222fc65248f90d12ff845bde6d3b223a54ec740c99a29e53f151d29c0a26acbacb498f0fafd896b718b6185a35633b
7
- data.tar.gz: 2041df09681bb28d2c87b31993ad6917a5c6c778657fa28330ea629e1f3ef4ea9b87886212e0a049267127cde0b1aec4efb5a9dd3e5dfc7ba0e86a1e511ea655
6
+ metadata.gz: 2a9c0877833ec920f12236d8f9b6e930410a61424b66b63861db34a583b94c6506b65db699ed16491b93b33ea440610a687da28c50a95bf06176f0e309def9c0
7
+ data.tar.gz: 39084c49436008008519afe2b2e11a734577019849f96e5849c0dc5c4bc150b210d4312b3e65f09d31fa071d6e433919cd00ca780df59bcee04d7a9edc6b4b62
data/Rakefile CHANGED
@@ -1,44 +1,21 @@
1
- require 'bundler'
2
- require 'rspec/core/rake_task'
3
- require 'rake/notes/rake_task'
4
-
5
- RSpec::Core::RakeTask.new(:spec)
6
-
7
- Bundler::GemHelper.install_tasks
8
-
9
- task :console do
10
- require 'irb'
11
- require 'irb/completion'
12
- require 'api_me' # You know what to do.
13
- ARGV.clear
14
- IRB.start
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
15
5
  end
16
6
 
17
- task default: 'reports:all'
7
+ require 'rdoc/task'
18
8
 
19
- namespace :reports do
20
- task all: %i[fixme_notes rubocop spec]
21
-
22
- task :rubocop do
23
- system 'bundle exec rubocop --rails --display-cop-names'
24
- end
9
+ RDoc::Task.new(:rdoc) do |rdoc|
10
+ rdoc.rdoc_dir = 'rdoc'
11
+ rdoc.title = 'ApiMe'
12
+ rdoc.options << '--line-numbers'
13
+ rdoc.rdoc_files.include('README.rdoc')
14
+ rdoc.rdoc_files.include('lib/**/*.rb')
15
+ end
25
16
 
26
- desc 'Create a report on all notes'
27
- task :notes do
28
- puts "\nCollecting all of the standard code notes..."
29
- system 'bundle exec rake notes'
30
- puts "\nCollecting all HACK code notes..."
31
- system 'bundle exec rake notes:custom ANNOTATION=HACK'
32
- puts "\nCollecting all spec code notes..."
33
- system "grep -rnE 'OPTIMIZE:|OPTIMIZE|FIXME:|FIXME|TODO:|TODO|HACK:|HACK'"\
34
- ' spec'
35
- end
17
+ APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
18
+ load 'rails/tasks/engine.rake'
19
+ load 'rails/tasks/statistics.rake'
36
20
 
37
- desc 'Print only FIXME notes'
38
- task :fixme_notes do
39
- puts "\nFIXME Notes (These should all be fixed before merging to master):"
40
- system 'bundle exec rake notes:fixme'
41
- system "grep -rnE 'FIXME:|FIXME'"\
42
- ' spec'
43
- end
44
- end
21
+ Bundler::GemHelper.install_tasks
data/lib/api_me.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support/concern'
2
4
  require 'pundit'
3
5
  require 'search_object'
@@ -71,7 +73,7 @@ module ApiMe
71
73
  @sorted_scope = sort_scope(@filter_scope)
72
74
  @pagination_object = paginate_scope(@sorted_scope, page_params)
73
75
 
74
- render json: @pagination_object.results, root: collection_root_key, each_serializer: serializer_klass, meta: { page: @pagination_object.page_meta }
76
+ render json: @pagination_object.results, root: collection_root_key, each_serializer: serializer_klass, meta: { page: @pagination_object.page_meta } # rubocop:disable Metrics/LineLength
75
77
  end
76
78
 
77
79
  def show
@@ -95,7 +97,7 @@ module ApiMe
95
97
 
96
98
  render status: 201, json: @object, root: singular_root_key, serializer: serializer_klass
97
99
  rescue ActiveRecord::RecordInvalid => e
98
- handle_errors(e)
100
+ handle_active_record_errors(e)
99
101
  end
100
102
 
101
103
  def edit
@@ -112,7 +114,7 @@ module ApiMe
112
114
 
113
115
  head 204
114
116
  rescue ActiveRecord::RecordInvalid => e
115
- handle_errors(e)
117
+ handle_active_record_errors(e)
116
118
  end
117
119
 
118
120
  def destroy
@@ -122,7 +124,7 @@ module ApiMe
122
124
 
123
125
  head 204
124
126
  rescue ActiveRecord::RecordInvalid => e
125
- handle_errors(e)
127
+ handle_active_record_errors(e)
126
128
  end
127
129
 
128
130
  protected
@@ -151,9 +153,9 @@ module ApiMe
151
153
  render(json: { errors: errors }, status: status)
152
154
  end
153
155
 
154
- def handle_errors(e)
155
- Rails.logger.debug "ERROR: #{e}"
156
- render_errors(e.record.errors.messages)
156
+ def handle_active_record_errors(active_record_error)
157
+ Rails.logger.debug "ERROR: #{active_record_error}"
158
+ render_errors(active_record_error.record.errors.messages)
157
159
  end
158
160
 
159
161
  def user_not_authorized
@@ -192,10 +194,10 @@ module ApiMe
192
194
  ).results
193
195
  end
194
196
 
195
- def sort_scope(scope, sortable_params=sort_params)
197
+ def sort_scope(scope, sortable_params = sort_params)
196
198
  sort_klass.new(
197
- scope: scope,
198
- sort_params: sortable_params
199
+ scope: scope,
200
+ sort_params: sortable_params
199
201
  ).results
200
202
  end
201
203
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ApiMe
2
4
  class BaseFilter
3
5
  include SearchObject.module
data/lib/api_me/engine.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  begin
2
4
  require 'active_model_serializers'
3
5
  rescue LoadError
@@ -7,5 +9,8 @@ end
7
9
 
8
10
  module ApiMe
9
11
  class Engine < ::Rails::Engine
12
+ config.generators do |g|
13
+ g.test_framework :rspec
14
+ end
10
15
  end
11
16
  end
data/lib/api_me/model.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_model_serializers/model'
2
4
 
3
5
  module ApiMe
@@ -1,39 +1,56 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ApiMe
2
4
  class Pagination
3
5
  attr_accessor :page_size, :page_offset, :scope
4
6
 
5
7
  def initialize(scope:, page_params:)
6
8
  self.scope = scope
7
-
8
- if page_params
9
- self.page_size = page_params[:size]
10
- self.page_offset = page_params[:offset]
11
- end
9
+ return unless page_params
10
+ self.page_size = page_params[:size]
11
+ self.page_offset = page_params[:offset]
12
12
  end
13
13
 
14
14
  def results
15
15
  paging? ? page.per.scope : scope
16
16
  end
17
17
 
18
- def page_meta
18
+ def page_meta # rubocop:disable Metrics/MethodLength
19
19
  return {} unless paging?
20
- iteration_count_start = (page_size.to_i * (page_offset.to_i - 1)) + 1
21
- iteration_count_end = page_size.to_i * page_offset.to_i
22
- iteration_count_offset = scope.total_count < iteration_count_end ? scope.total_count : iteration_count_end
23
20
  {
24
- size: page_size.nil? ? default_page_size : page_size,
21
+ size: page_meta_size,
25
22
  offset: page_offset,
26
23
  record_count: scope.size,
27
24
  total_records: scope.total_count,
28
25
  total_pages: scope.total_pages,
29
26
  iteration_count_start: iteration_count_start,
30
27
  iteration_count_end: iteration_count_end,
31
- current_iteration_count: iteration_count_start - iteration_count_offset
28
+ current_iteration_count: current_iteration_count
32
29
  }
33
30
  end
34
31
 
35
32
  protected
36
33
 
34
+ def iteration_count_start
35
+ (page_size.to_i * (page_offset.to_i - 1)) + 1
36
+ end
37
+
38
+ def iteration_count_end
39
+ page_size.to_i * page_offset.to_i
40
+ end
41
+
42
+ def iteration_count_offset
43
+ scope.total_count < iteration_count_end ? scope.total_count : iteration_count_end
44
+ end
45
+
46
+ def current_iteration_count
47
+ iteration_count_start - iteration_count_offset
48
+ end
49
+
50
+ def page_meta_size
51
+ page_size.nil? ? default_page_size : page_size
52
+ end
53
+
37
54
  def page
38
55
  self.scope = scope.page(page_offset ? page_offset : 1)
39
56
  self
@@ -1,13 +1,14 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ApiMe
2
4
  class Sorting
3
5
  attr_accessor :sort_criteria, :sort_reverse, :scope
4
6
 
5
7
  def initialize(scope:, sort_params:)
6
8
  self.scope = scope
7
- if sort_params
8
- self.sort_criteria = sort_params[:criteria] || default_sort_criteria
9
- self.sort_reverse = sort_params[:reverse]
10
- end
9
+ return unless sort_params
10
+ self.sort_criteria = sort_params[:criteria] || default_sort_criteria
11
+ self.sort_reverse = sort_params[:reverse]
11
12
  end
12
13
 
13
14
  def results
@@ -17,7 +18,7 @@ module ApiMe
17
18
  def sort_meta
18
19
  return {} unless sorting?
19
20
  {
20
- criteria: sort_criteria.is_blank? || sort_criteria === '' ? default_sort_criteria : sort_criteria,
21
+ criteria: sort_meta_criteria,
21
22
  reverse: sort_reverse,
22
23
  record_count: scope.size,
23
24
  total_records: scope.total_count
@@ -26,19 +27,31 @@ module ApiMe
26
27
 
27
28
  protected
28
29
 
30
+ def sort_meta_criteria
31
+ if sort_criteria.blank?
32
+ default_sort_criteria
33
+ else
34
+ sort_criteria
35
+ end
36
+ end
37
+
29
38
  def sort(criteria = default_sort_criteria)
30
- self.scope = if sort_reverse === 'true'
31
- scope.order(criteria => :desc)
32
- else
33
- scope.order(criteria => :asc)
34
- end
39
+ self.scope = sorted_scope(criteria)
35
40
  self
36
41
  end
37
42
 
43
+ def sorted_scope(criteria)
44
+ if sort_reverse === 'true'
45
+ scope.order(criteria => :desc)
46
+ else
47
+ scope.order(criteria => :asc)
48
+ end
49
+ end
50
+
38
51
  private
39
52
 
40
53
  def default_sort_criteria
41
- sort_criteria = 'id'
54
+ 'id'
42
55
  end
43
56
 
44
57
  def sorting?
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ApiMe
2
- VERSION = '0.9.4'.freeze
4
+ VERSION = '0.10.0'
3
5
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ApiMe
2
4
  module Generators
3
5
  class ControllerGenerator < ::Rails::Generators::NamedBase
@@ -76,7 +78,7 @@ module ApiMe
76
78
  in_root do
77
79
  insert_into_file(
78
80
  'config/routes.rb',
79
- " resources :#{resource_name}, only: [:show, :index, :create, :update, :destroy]\n",
81
+ " resources :#{resource_name}, only: [:show, :index, :create, :update, :destroy]\n", # rubocop:disable Metrics/LineLength
80
82
  after: "namespace :#{controllers_api_version} do\n"
81
83
  )
82
84
  end
@@ -85,11 +87,11 @@ module ApiMe
85
87
  def maybe_create_api_v1_namespace
86
88
  in_root do
87
89
  unless File.readlines('config/routes.rb').grep("namespace #{controllers_namespace} do")
88
- route <<-ROUTE
89
- namespace :#{controllers_namespace} do
90
- namespace :#{controllers_api_version} do
91
- end
92
- end
90
+ route <<~ROUTE
91
+ namespace :#{controllers_namespace} do
92
+ namespace :#{controllers_api_version} do
93
+ end
94
+ end
93
95
  ROUTE
94
96
  end
95
97
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ApiMe
2
4
  module Generators
3
5
  class FilterGenerator < ::Rails::Generators::NamedBase
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ApiMe
2
4
  module Generators
3
5
  class InstallGenerator < Rails::Generators::Base
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ApiMe
2
4
  module Generators
3
5
  class PolicyGenerator < ::Rails::Generators::NamedBase
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ApiMe
2
4
  module Generators
3
5
  class ResourceGenerator < Rails::Generators::Base
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_me
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Clopton
@@ -9,64 +9,50 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-09-27 00:00:00.000000000 Z
12
+ date: 2018-11-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: activerecord
15
+ name: rails
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ">="
19
- - !ruby/object:Gem::Version
20
- version: 4.1.16
21
- type: :runtime
22
- prerelease: false
23
- version_requirements: !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- version: 4.1.16
28
- - !ruby/object:Gem::Dependency
29
- name: activesupport
30
- requirement: !ruby/object:Gem::Requirement
31
- requirements:
32
- - - ">="
18
+ - - "~>"
33
19
  - !ruby/object:Gem::Version
34
- version: 4.1.16
20
+ version: '4.2'
35
21
  type: :runtime
36
22
  prerelease: false
37
23
  version_requirements: !ruby/object:Gem::Requirement
38
24
  requirements:
39
- - - ">="
25
+ - - "~>"
40
26
  - !ruby/object:Gem::Version
41
- version: 4.1.16
27
+ version: '4.2'
42
28
  - !ruby/object:Gem::Dependency
43
29
  name: pundit
44
30
  requirement: !ruby/object:Gem::Requirement
45
31
  requirements:
46
32
  - - "~>"
47
33
  - !ruby/object:Gem::Version
48
- version: 1.1.0
34
+ version: '1.0'
49
35
  type: :runtime
50
36
  prerelease: false
51
37
  version_requirements: !ruby/object:Gem::Requirement
52
38
  requirements:
53
39
  - - "~>"
54
40
  - !ruby/object:Gem::Version
55
- version: 1.1.0
41
+ version: '1.0'
56
42
  - !ruby/object:Gem::Dependency
57
43
  name: active_model_serializers
58
44
  requirement: !ruby/object:Gem::Requirement
59
45
  requirements:
60
46
  - - "~>"
61
47
  - !ruby/object:Gem::Version
62
- version: 0.10.0
48
+ version: 0.10.6
63
49
  type: :runtime
64
50
  prerelease: false
65
51
  version_requirements: !ruby/object:Gem::Requirement
66
52
  requirements:
67
53
  - - "~>"
68
54
  - !ruby/object:Gem::Version
69
- version: 0.10.0
55
+ version: 0.10.6
70
56
  - !ruby/object:Gem::Dependency
71
57
  name: search_object
72
58
  requirement: !ruby/object:Gem::Requirement
@@ -87,84 +73,70 @@ dependencies:
87
73
  requirements:
88
74
  - - "~>"
89
75
  - !ruby/object:Gem::Version
90
- version: 0.16.3
76
+ version: 0.17.0
91
77
  type: :runtime
92
78
  prerelease: false
93
79
  version_requirements: !ruby/object:Gem::Requirement
94
80
  requirements:
95
81
  - - "~>"
96
82
  - !ruby/object:Gem::Version
97
- version: 0.16.3
83
+ version: 0.17.0
98
84
  - !ruby/object:Gem::Dependency
99
- name: combustion
85
+ name: rspec-rails
100
86
  requirement: !ruby/object:Gem::Requirement
101
87
  requirements:
102
88
  - - "~>"
103
89
  - !ruby/object:Gem::Version
104
- version: 0.5.1
90
+ version: 3.6.1
105
91
  type: :development
106
92
  prerelease: false
107
93
  version_requirements: !ruby/object:Gem::Requirement
108
94
  requirements:
109
95
  - - "~>"
110
96
  - !ruby/object:Gem::Version
111
- version: 0.5.1
97
+ version: 3.6.1
112
98
  - !ruby/object:Gem::Dependency
113
- name: rspec-rails
99
+ name: factory_girl_rails
114
100
  requirement: !ruby/object:Gem::Requirement
115
101
  requirements:
116
102
  - - "~>"
117
103
  - !ruby/object:Gem::Version
118
- version: '3'
104
+ version: 4.8.0
119
105
  type: :development
120
106
  prerelease: false
121
107
  version_requirements: !ruby/object:Gem::Requirement
122
108
  requirements:
123
109
  - - "~>"
124
110
  - !ruby/object:Gem::Version
125
- version: '3'
111
+ version: 4.8.0
126
112
  - !ruby/object:Gem::Dependency
127
113
  name: sqlite3
128
114
  requirement: !ruby/object:Gem::Requirement
129
115
  requirements:
130
- - - "~>"
116
+ - - ">="
131
117
  - !ruby/object:Gem::Version
132
- version: 1.3.7
118
+ version: '0'
133
119
  type: :development
134
120
  prerelease: false
135
121
  version_requirements: !ruby/object:Gem::Requirement
136
122
  requirements:
137
- - - "~>"
123
+ - - ">="
138
124
  - !ruby/object:Gem::Version
139
- version: 1.3.7
125
+ version: '0'
140
126
  - !ruby/object:Gem::Dependency
141
127
  name: rubocop
142
- requirement: !ruby/object:Gem::Requirement
143
- requirements:
144
- - - "~>"
145
- - !ruby/object:Gem::Version
146
- version: '0.49'
147
- type: :development
148
- prerelease: false
149
- version_requirements: !ruby/object:Gem::Requirement
150
- requirements:
151
- - - "~>"
152
- - !ruby/object:Gem::Version
153
- version: '0.49'
154
- - !ruby/object:Gem::Dependency
155
- name: rake-notes
156
128
  requirement: !ruby/object:Gem::Requirement
157
129
  requirements:
158
130
  - - ">="
159
131
  - !ruby/object:Gem::Version
160
- version: 0.2.0
132
+ version: 0.27.0
161
133
  type: :development
162
134
  prerelease: false
163
135
  version_requirements: !ruby/object:Gem::Requirement
164
136
  requirements:
165
137
  - - ">="
166
138
  - !ruby/object:Gem::Version
167
- version: 0.2.0
139
+ version: 0.27.0
168
140
  description: This friendly library gives you helpers and generators to assist building
169
141
  RESTful API's in your Rails app.
170
142
  email:
@@ -173,18 +145,7 @@ executables: []
173
145
  extensions: []
174
146
  extra_rdoc_files: []
175
147
  files:
176
- - ".editorconfig"
177
- - ".gitignore"
178
- - ".rubocop.yml"
179
- - ".ruby-version"
180
- - ".travis.yml"
181
- - Gemfile
182
- - Gemfile.lock
183
- - LICENSE
184
- - README.md
185
148
  - Rakefile
186
- - api_me.gemspec
187
- - config.ru
188
149
  - lib/api_me.rb
189
150
  - lib/api_me/base_filter.rb
190
151
  - lib/api_me/engine.rb
@@ -204,33 +165,6 @@ files:
204
165
  - lib/generators/api_me/policy/templates/policy.rb
205
166
  - lib/generators/api_me/resource/USAGE
206
167
  - lib/generators/api_me/resource/resource_generator.rb
207
- - spec/acceptance/api/v1/fails_spec.rb
208
- - spec/acceptance/api/v1/posts_spec.rb
209
- - spec/acceptance/api/v1/users_spec.rb
210
- - spec/acceptance/multi_word_resource_spec.rb
211
- - spec/internal/app/controllers/api/v1/fails_controller.rb
212
- - spec/internal/app/controllers/api/v1/multi_word_resources_controller.rb
213
- - spec/internal/app/controllers/api/v1/posts_controller.rb
214
- - spec/internal/app/controllers/api/v1/users_controller.rb
215
- - spec/internal/app/controllers/application_controller.rb
216
- - spec/internal/app/filters/user_filter.rb
217
- - spec/internal/app/models/post.rb
218
- - spec/internal/app/models/test_model.rb
219
- - spec/internal/app/models/user.rb
220
- - spec/internal/app/policies/application_policy.rb
221
- - spec/internal/app/policies/post_policy.rb
222
- - spec/internal/app/policies/test_model_policy.rb
223
- - spec/internal/app/policies/user_policy.rb
224
- - spec/internal/app/serializers/post_serializer.rb
225
- - spec/internal/app/serializers/test_model_serializer.rb
226
- - spec/internal/app/serializers/user_serializer.rb
227
- - spec/internal/config/database.yml
228
- - spec/internal/config/initializers/active_model_serializers.rb
229
- - spec/internal/config/routes.rb
230
- - spec/internal/db/schema.rb
231
- - spec/internal/log/.gitignore
232
- - spec/internal/public/favicon.ico
233
- - spec/spec_helper.rb
234
168
  homepage: https://github.com/wildland/api_me
235
169
  licenses:
236
170
  - MIT
@@ -239,7 +173,6 @@ post_install_message:
239
173
  rdoc_options: []
240
174
  require_paths:
241
175
  - lib
242
- - app
243
176
  required_ruby_version: !ruby/object:Gem::Requirement
244
177
  requirements:
245
178
  - - ">="