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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ropen_pi/config_helper.rb +7 -7
- data/lib/ropen_pi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05ded72d6db3776db71ff571aac767ae4f121897de69e0ad133766266617a78e
|
4
|
+
data.tar.gz: a912449691704d26ab33c6069aeb828ea8b8266cae52af161c1982a6d059e02c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a40ac712a173b34199502da1ffe0e348e1860411f038c5d47daab42e62f70ca715338ced601907de66079d14ec171009568002116eee61760469eb15e4499b20
|
7
|
+
data.tar.gz: 2555a06ed5f08c2dc4d86774a588e0ce32ab1dbe24ffa4ea311b0adc164593d5d61e286583f9c1f92ccb9d5b0db8ba614db6b02b132bc43175c8841770aaf63b
|
data/Gemfile.lock
CHANGED
@@ -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:
|
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:
|
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:
|
112
|
+
properties: { data: { type: 'array', items: { '$ref': ref } } }
|
113
113
|
}
|
114
114
|
}
|
115
115
|
}
|
data/lib/ropen_pi/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2020-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|