logical_model 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
data/lib/logical_model.rb CHANGED
@@ -450,7 +450,9 @@ class LogicalModel
450
450
  end
451
451
  if response.code == 201
452
452
  log_ok(response)
453
- self.id = ActiveSupport::JSON.decode(response.body)["id"]
453
+ if self.class.attribute_keys.include?(:id)
454
+ self.id = ActiveSupport::JSON.decode(response.body)["id"]
455
+ end
454
456
  elsif response.code == 400
455
457
  log_failed(response)
456
458
  ws_errors = ActiveSupport::JSON.decode(response.body)["errors"]
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "logical_model"
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dwayne Macgowan"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logical_model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -329,7 +329,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
329
329
  version: '0'
330
330
  segments:
331
331
  - 0
332
- hash: 649922867
332
+ hash: 649076499
333
333
  required_rubygems_version: !ruby/object:Gem::Requirement
334
334
  none: false
335
335
  requirements: