deep_unrest 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f251e8aee5961ebae0a57cedf79dc6ce424dc2d4
4
- data.tar.gz: a62e10cd9dfdc0f4e83dc31bef8d4bea68f5b479
3
+ metadata.gz: 732a5055bfa9528135c8255bf4a1376e4bfaa155
4
+ data.tar.gz: f51d7003fe5dac837a04b3ea6a974bd627200ccd
5
5
  SHA512:
6
- metadata.gz: e009d9471f9661b9c178fe3f0f3fc1cbf936cfeda8c009ce24354e69dc289d56e67886433480dbb7b846a9d7c70b2b7d0f0d38612e4dbf247924e1b8b6272136
7
- data.tar.gz: 6e577f6e6c8fb2ab6f5a5cf29d70d3255d52c9ab31644e124525acb8d497fe21212d1b5de918154d31dd7e88631c46463202bdb3c84425747e37a37d08cc0439
6
+ metadata.gz: e01a316a7d4642675afc82fc7b100f8fb26a2eb3513a4a2d3c1f64943bd395eed3a67a29dc6847c976f7ed6606d7e97a4c33dd9d5e3f372c9c63e1ee0be18a69
7
+ data.tar.gz: ed14c196af7608944502380d696e188a8e7603202695158c570bb72085854da536fe9f6f250d1281138461c354b0031266610126dcbee0fc1ac59ed364c174c4
@@ -2,6 +2,7 @@ require 'deep_unrest/authorization/base_strategy'
2
2
  require 'deep_unrest/authorization/none_strategy'
3
3
  require 'deep_unrest/authorization/pundit_strategy'
4
4
  require 'deep_unrest/concerns/null_concern'
5
+ require 'deep_merge/rails_compat'
5
6
 
6
7
  module DeepUnrest
7
8
  class Engine < ::Rails::Engine
@@ -1,3 +1,3 @@
1
1
  module DeepUnrest
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
data/lib/deep_unrest.rb CHANGED
@@ -275,6 +275,8 @@ module DeepUnrest
275
275
  item[:klass].update(id, action[:body])
276
276
  when :create
277
277
  item[:klass].create(action[:body])
278
+ when :destroy
279
+ item[:klass].destroy(id)
278
280
  end
279
281
  result = { record: record }
280
282
  if action[:temp_id]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deep_unrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lynn Hurley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-18 00:00:00.000000000 Z
11
+ date: 2017-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.9.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: deep_merge
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 1.1.1
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 1.1.1
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: sqlite3
57
71
  requirement: !ruby/object:Gem::Requirement