minimum-term 0.2.1 → 0.2.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: 30209807ad2ee5a4eaf45521202334f1eca06c5c
4
- data.tar.gz: 568caddb9d7f929e9dfba7b6b27b2840c36ad302
3
+ metadata.gz: d00cfb058534de45750322a23caa34a4ec250e22
4
+ data.tar.gz: 9b5a47d2c08c605c2fe7b984a3c206d8d4d472a3
5
5
  SHA512:
6
- metadata.gz: 0cb4f3aa6c7f29d4a2f05f82a961a298943801a528da3915e77d7fd1fc5ab85a514427da879520b1d6e844457b91f6fb7f61017feb43f898d0e0d8648f145f97
7
- data.tar.gz: d782d81469c340aa3cd3016b4e83041eaf45f3ff1d14201471a7aec1ab3d696f4ec83490cf82bc75aa0c08e4882b752c20dc2c00fdf55659a4d3f3885e66ecdf
6
+ metadata.gz: 73454fb46034bf3b3a3797775e49bc2df28179feb2d1a9fcccf9e2581661b58ff0ba20ae7a5ab2beb60048ef3e903cfea35e4dff8e76ee9f2baffdbf0a78e931
7
+ data.tar.gz: f66f5ae1e7be3fc040f675b02366323466de77ea123342faa172a8706a64507d1c48686f54003282579ef46808f8871760c1335aece51132a2215e9cb144d19c
@@ -0,0 +1,3 @@
1
+ 0.2.2
2
+ =====
3
+ - allow missing property type in MSON and default to 'object'
@@ -71,6 +71,8 @@ module MinimumTerm
71
71
  end
72
72
 
73
73
  def primitive_or_reference(type)
74
+ return { 'type' => 'object' } if type.blank?
75
+
74
76
  if PRIMITIVES.include?(type)
75
77
  { 'type' => type }
76
78
  else
@@ -1,3 +1,3 @@
1
1
  module MinimumTerm
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minimum-term
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
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-10-21 00:00:00.000000000 Z
11
+ date: 2015-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -190,6 +190,7 @@ files:
190
190
  - ".rspec"
191
191
  - ".ruby-gemset"
192
192
  - ".ruby-version"
193
+ - CHANGELOG.markdown
193
194
  - Gemfile
194
195
  - Guardfile
195
196
  - README.markdown