raml-rb 1.2.0 → 1.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb18b7b77f78ac8857fe24b1cd2598fb933f3c7f
4
- data.tar.gz: bd3d2ede8d4787891127ec0b35d87fa4126cf908
3
+ metadata.gz: '08476c355b9ca320a69c248ab96dd5f07f350f13'
4
+ data.tar.gz: c6ef4050cf12c90bdd4853d24cdb791d0a78664e
5
5
  SHA512:
6
- metadata.gz: d463caf00820bf1597a8bd6582dca28e13d66a591baf648e8066ea83b168fb2532b0dd8d49955fd2fc7feb7af92ace928e48540cbb6190cd807ea94b8434ac05
7
- data.tar.gz: be936860bf9499b467c97861768ef6ebc515c711273a15f20de559e5110d75ff7c319b3fbbb52a84aea7e56faf7b393b79225879abc4c9b2f8d01a3978100c64
6
+ metadata.gz: 23a4c085aa5777e8b2f4831d30cb8cfb82e312c090b5f21989bf001ca20ce4a4776143a3beb013f97021d7fab652dff1871b8b8ae082a2b92dabe1927dfb5fda
7
+ data.tar.gz: a5f7887e72a21b3559bbe919418bca98584306b3b1c1349f24810376f99bb1f1cbd8e5440a06e164df1605612a37296a57e7b5887d563cfdda96abd393f32576
@@ -11,7 +11,8 @@ module Raml
11
11
 
12
12
  def initialize
13
13
  Psych.add_domain_type 'include', 'include' do |_, value|
14
- File.read(value)
14
+ raw = File.read(value)
15
+ YAML.load(raw)
15
16
  end
16
17
  end
17
18
 
@@ -8,6 +8,7 @@ module Raml
8
8
  include Raml::Parser::Util
9
9
 
10
10
  BASIC_ATTRIBUTES = %w[schema example type]
11
+ IGNORED_ATTRIBUTES = %w[properties default]
11
12
 
12
13
  attr_accessor :body, :attributes
13
14
 
@@ -25,6 +26,8 @@ module Raml
25
26
  def parse_attributes
26
27
  attributes.each do |key, value|
27
28
  case key
29
+ when *IGNORED_ATTRIBUTES
30
+ # nothing
28
31
  when *BASIC_ATTRIBUTES
29
32
  body.send("#{key}=".to_sym, value)
30
33
  else
@@ -8,6 +8,7 @@ module Raml
8
8
  include Raml::Parser::Util
9
9
 
10
10
  BASIC_ATTRIBUTES = %w[description type example required]
11
+ IGNORED_ATTRIBUTES = %w[properties default]
11
12
 
12
13
  attr_accessor :query_parameter, :attributes
13
14
 
@@ -26,6 +27,8 @@ module Raml
26
27
  attributes.each do |key, value|
27
28
  key = underscore(key)
28
29
  case key
30
+ when *IGNORED_ATTRIBUTES
31
+ # nothing
29
32
  when *BASIC_ATTRIBUTES
30
33
  query_parameter.send("#{key}=".to_sym, value)
31
34
  else
@@ -1,3 +1,3 @@
1
1
  module Raml
2
- VERSION = '1.2.0'
2
+ VERSION = '1.2.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raml-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Brennan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-01 00:00:00.000000000 Z
11
+ date: 2018-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler