openstax_api 6.1.5 → 7.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,14 +7,15 @@ module OpenStax
7
7
  let!(:controller) { OpenStax::Api::V1::ApiController.new }
8
8
 
9
9
  it 'adds methods to ApiController instance' do
10
+ expect(controller).to respond_to(:standard_index)
10
11
  expect(controller).to respond_to(:standard_search)
11
12
  expect(controller).to respond_to(:standard_create)
13
+ expect(controller).to respond_to(:standard_nested_create)
12
14
  expect(controller).to respond_to(:standard_read)
13
15
  expect(controller).to respond_to(:standard_update)
14
16
  expect(controller).to respond_to(:standard_destroy)
15
- expect(controller).to respond_to(:standard_index)
17
+ expect(controller).to respond_to(:standard_restore)
16
18
  expect(controller).to respond_to(:standard_sort)
17
- expect(controller).to respond_to(:standard_nested_create)
18
19
  expect(controller).to respond_to(:render_api_errors)
19
20
  end
20
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstax_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.5
4
+ version: 7.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dante Soares
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-05-05 00:00:00.000000000 Z
12
+ date: 2016-05-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -248,7 +248,7 @@ files:
248
248
  - lib/openstax/api/doorkeeper_application_includes.rb
249
249
  - lib/openstax/api/engine.rb
250
250
  - lib/openstax/api/representable_schema_printer.rb
251
- - lib/openstax/api/responder_with_put_content.rb
251
+ - lib/openstax/api/responder_with_put_patch_delete_content.rb
252
252
  - lib/openstax/api/roar.rb
253
253
  - lib/openstax/api/routing_mapper_includes.rb
254
254
  - lib/openstax/api/rspec_helpers.rb
@@ -1,9 +0,0 @@
1
- # http://stackoverflow.com/a/27413178
2
-
3
- class ResponderWithPutContent < Roar::Rails::Responder
4
- def api_behavior(*args, &block)
5
- return display resource, :status => :ok if put? || \
6
- (respond_to?(:patch?) && patch?)
7
- super
8
- end
9
- end