ropen_pi 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: 9ed201aed79928374da37653c14019706345495402dbc9cd11c464c043fde791
4
- data.tar.gz: fe9a1aed75f2ce592596d7b21de36fd42c82c6927c0494a238a3747de20698f7
3
+ metadata.gz: 05ded72d6db3776db71ff571aac767ae4f121897de69e0ad133766266617a78e
4
+ data.tar.gz: a912449691704d26ab33c6069aeb828ea8b8266cae52af161c1982a6d059e02c
5
5
  SHA512:
6
- metadata.gz: 4801d56ed4928a7e2f640030e0e31aca5a4d79f0c19c574506a66a25bc95aacbf3c67dbb0e72c873abffff4c51b4e8ccb8cd21c986ef74ae6e869142b1e1aba7
7
- data.tar.gz: 19332beddfe0c78a379fb76127318d1521346efe80261a222fec780f6725b1d1babf6d64f15c0bd2d86696643c7ee7c53080d08c91e2991d3c6d6d446096cd01
6
+ metadata.gz: a40ac712a173b34199502da1ffe0e348e1860411f038c5d47daab42e62f70ca715338ced601907de66079d14ec171009568002116eee61760469eb15e4499b20
7
+ data.tar.gz: 2555a06ed5f08c2dc4d86774a588e0ce32ab1dbe24ffa4ea311b0adc164593d5d61e286583f9c1f92ccb9d5b0db8ba614db6b02b132bc43175c8841770aaf63b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ropen_pi (0.1.0)
4
+ ropen_pi (0.1.1)
5
5
  hashie
6
6
  json-schema
7
7
 
@@ -29,7 +29,7 @@ module RopenPi
29
29
  def self.param_in_path(name, schema_type, fmt: nil, desc: 'tba', opts: {})
30
30
  param(name, schema_type, fmt: fmt, desc: desc, opts: opts)
31
31
  .merge(
32
- in: :path,
32
+ in: 'path',
33
33
  required: true
34
34
  )
35
35
  .merge(opts)
@@ -39,21 +39,21 @@ module RopenPi
39
39
  {
40
40
  name: name.to_s,
41
41
  description: desc,
42
- in: :query,
42
+ in: 'query',
43
43
  schema: schema(schema_type, fmt: fmt)
44
44
  }.merge(opts)
45
45
  end
46
46
 
47
47
  def self.schema(type, fmt: nil)
48
48
  {}.tap do |schema|
49
- schema[:type] = type
50
- schema[:format] = fmt if fmt.present?
49
+ schema[:type] = type.to_s
50
+ schema[:format] = fmt.to_s if fmt.present?
51
51
  end
52
52
  end
53
53
 
54
54
  def self.schema_enum(values, type: :string)
55
55
  {
56
- type: type,
56
+ type: type.to_s,
57
57
  enum: values
58
58
  }
59
59
  end
@@ -85,7 +85,7 @@ module RopenPi
85
85
  end
86
86
 
87
87
  def self.type(thing, opts = {})
88
- { type: thing }.merge(opts)
88
+ { type: thing.to_s }.merge(opts)
89
89
  end
90
90
 
91
91
  def self.string_array_type(opts = {})
@@ -109,7 +109,7 @@ module RopenPi
109
109
  type => {
110
110
  schema: {
111
111
  type: 'object',
112
- properties: { data: { type: :array, items: { '$ref': ref } } }
112
+ properties: { data: { type: 'array', items: { '$ref': ref } } }
113
113
  }
114
114
  }
115
115
  }
@@ -1,4 +1,4 @@
1
1
  module RopenPi
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  APP_JSON = 'application/json'.freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ropen_pi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Ruck
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-20 00:00:00.000000000 Z
11
+ date: 2020-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler