forest_liana 1.3.5 → 1.3.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 510493ee8b42af060952ba2a63bb67110336931c
4
- data.tar.gz: b0afd3b44813fa4c795d292da2e7e495fec8ae8e
3
+ metadata.gz: 64dba93b341a2fa7398bb85fd96c958533a2aa76
4
+ data.tar.gz: a4116b669724904d2fe5babec9475e9fa6f4a5af
5
5
  SHA512:
6
- metadata.gz: 7a8d6bfac9968155e2f87c7ecf3293900c0c02a8183d6dab510557b1300947957e8a8d73190ef7755c45cb4b45dbd88daa022c434a747d6cc3d4d155d97d1e00
7
- data.tar.gz: a75d39f6b3486435a0e73ae58a24bfee768565a44e12b0928e2158026129eb8ab2727c8f94cc4e649d3f7deb113cc3766572360f36103d124bf3c4bbea3d39ce
6
+ metadata.gz: 4bee192cf12a7fc29d930e25af600e96df5cfe49323d71a2140520544993e185ae473866270a627e5f6aebd28f14eb9f20f4fcd10a6a523d9e38be9acc5eaea2
7
+ data.tar.gz: 29c05d9eb49e074f3c28d400dfe2a782de740338aa4c37a00ce0f4d121eedd9e99fd073598f2f358c3b1538f49657eb13a8b83b0cfa4e78fb523dc0a7d249444
@@ -9,7 +9,7 @@ class ForestLiana::ActivityLogger
9
9
 
10
10
  http.start do |client|
11
11
  request = Net::HTTP::Post.new(uri.path)
12
- request['Content-Type'] = 'application/vnd.api+json'
12
+ request['Content-Type'] = 'application/json'
13
13
  request['forest-secret-key'] = ForestLiana.secret_key
14
14
  request.body = {
15
15
  action: action,
@@ -8,12 +8,7 @@ module ForestLiana
8
8
  end
9
9
 
10
10
  def perform
11
- if @resource.method(:create).parameters.length < 2
12
- @record = @resource.create(resource_params)
13
- else
14
- @record = @resource.create(resource_params, without_protection: true)
15
- end
16
-
11
+ @record = @resource.create(resource_params)
17
12
  set_has_many_relationships
18
13
  end
19
14
 
@@ -9,13 +9,7 @@ module ForestLiana
9
9
 
10
10
  def perform
11
11
  @record = @resource.find(@params[:id])
12
-
13
- if @resource.instance_method(:update_attributes!).arity == 1
14
- @record.update_attributes!(resource_params)
15
- else
16
- @record.update_attributes!(resource_params, without_protection: true)
17
- end
18
-
12
+ @record.update_attributes!(resource_params)
19
13
  set_has_many_relationships
20
14
  end
21
15
 
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "1.3.5"
2
+ VERSION = "1.3.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_liana
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.5
4
+ version: 1.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Munda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-18 00:00:00.000000000 Z
11
+ date: 2016-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails