lacerda 0.12.3 → 0.12.4

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: c31fe064c24ee9f4410ad51d8962bee3ec725ae9
4
- data.tar.gz: 41fa735f55f4baa1098cb6aed5e484291ab03edf
3
+ metadata.gz: 588430006c27bd1ea88993283adbc0eb49be000b
4
+ data.tar.gz: cc255e3eecb951c9037b35b10aea65cd7b7560b2
5
5
  SHA512:
6
- metadata.gz: 8a179e036756d7678636314287d6880b47567f2e7c7bae04e8fb4705e562b40e00dcbac83daacbd753230fa7927eff97757899fc5bd80b84e5142b0434a0079d
7
- data.tar.gz: 088b9671d452816e0cbe7e1635d3bd28ad7d9c2b342db3de33305f0b8680a9b9a6d0c62b9584af8b8795bdcd5e53d4c6674d2b7e8884cddff29149db02d1de85
6
+ metadata.gz: bd0795617cd98d03414c77d6c5ad3b17293003fc953ccd87dd036c6617b04b3b44c92334747140cc8ccef7e5ec731fecff98ebf0cd6fe19548560647efa84a90
7
+ data.tar.gz: 5c7ca3268b8abcf1643df2cc04deff7903b44d63c14e79a6265f45f5fb881e9350e05d56534554ff508149e2722e578bf061984050a3ddd5e875a30bfd0cf024
@@ -1,3 +1,6 @@
1
+ # 0.12.4
2
+ - fix https://github.com/moviepilot/lacerda/issues/17
3
+
1
4
  # 0.12.3
2
5
  - fix missing property descriptions in json schema conversion
3
6
 
@@ -27,9 +27,14 @@ module Lacerda
27
27
 
28
28
  def object(name)
29
29
  scoped_name = scopify_name(name)
30
- schema = @schema[:definitions][scoped_name]
31
- raise Lacerda::Service::InvalidObjectTypeError.new(scoped_name) unless schema
32
- Lacerda::PublishedObject.new(service, scoped_name, schema)
30
+ object_schema = @schema[:definitions][scoped_name]
31
+ raise Lacerda::Service::InvalidObjectTypeError.new(scoped_name) unless object_schema
32
+
33
+ # Copy the definitions of our schema into the schema for the
34
+ # object in case its properties include json pointers
35
+ object_schema[:definitions] = Lacerda.deep_copy(@schema[:definitions])
36
+
37
+ Lacerda::PublishedObject.new(service, scoped_name, object_schema)
33
38
  end
34
39
 
35
40
  private
@@ -1,3 +1,3 @@
1
1
  module Lacerda
2
- VERSION = '0.12.3'
2
+ VERSION = '0.12.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lacerda
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.3
4
+ version: 0.12.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jannis Hermanns
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-18 00:00:00.000000000 Z
11
+ date: 2015-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport