apipie-bindings 0.6.0 → 0.7.0

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: 7a72210de6a88e0e439158f565d71b121f2f375d730924256318ebd0ae53c7f7
4
- data.tar.gz: 8aeb8cc14f9901452ab26a408a4db348fa7babeb874eab5b097e3811d1341245
3
+ metadata.gz: a1dac72aa071655b62cddd5af0507737f77d801ccd30ee2b8795865d0bf988f3
4
+ data.tar.gz: 5e8efe150202ef7770d1ece51b8aef315151fe2d60df5d78f9888423c30e332c
5
5
  SHA512:
6
- metadata.gz: 31c03299a7adbc40fb3f3678160a0b132993ff065c111de6d38f8d2e22013b0ca1700ca72127098f14691c19848cc35ef9057c2024021090d8a7c6e19c7033ea
7
- data.tar.gz: 9b729a79631b955e8d99fb2d1e1c3546add63fa582d436cd059884c8b1f7a46b08f6cb3bf333e16ad4d05ee839b1f6efb51e068b324a1f1eb10dc48448c3cf3b
6
+ metadata.gz: 480406f6fcfa4e5ec244cbcf58fd177d56f2bef5a7da14e467f528d17aad7e6a998c43a91e5a25bac013b0698d9c4d45bbb63f4cc2326c15153b90c143484d0f
7
+ data.tar.gz: f8cb185f99df445af3982b01495f8ada42b8fc008c02f350a936668e78b94f9fcd5afebd0f206502f08ea9a4c063014ffb5ba47dbb6a4828652f9c5216ac96c3
data/doc/release_notes.md CHANGED
@@ -1,5 +1,12 @@
1
1
  Release notes
2
2
  =============
3
+ ### 0.7.0 (2025-01-08)
4
+ * Add show? method to param description ([PR #84](https://github.com/Apipie/apipie-bindings/pull/84))
5
+ * Make dependencies stricter
6
+ * Disable Ruby warnings in tests
7
+ * Update dependencies
8
+ * Use GHA instead of Travis
9
+
3
10
  ### 0.6.0 (2023-02-10)
4
11
  * Add basic auth external ([PR #82](https://github.com/Apipie/apipie-bindings/pull/82))
5
12
 
@@ -13,12 +13,18 @@ module ApipieBindings
13
13
  @description = param[:description].gsub(/<\/?[^>]+?>/, "")
14
14
  @required = !!param[:required]
15
15
  @validator = param[:validator]
16
+ # We expect a value from API param docs, but in case it's not there, we want to show it in help by default
17
+ @show = param[:show].nil? ? true : param[:show]
16
18
  end
17
19
 
18
20
  def required?
19
21
  @required
20
22
  end
21
23
 
24
+ def show?
25
+ @show
26
+ end
27
+
22
28
  def to_s
23
29
  "<Param #{ required? ? '*' : '' }#{@name} (#{@expected_type.to_s.capitalize})>"
24
30
  end
@@ -1,5 +1,5 @@
1
1
  module ApipieBindings
2
2
  def self.version
3
- @version ||= Gem::Version.new '0.6.0'
3
+ @version ||= Gem::Version.new '0.7.0'
4
4
  end
5
5
  end
@@ -16,7 +16,18 @@ describe ApipieBindings::Param do
16
16
  "full_name" => "architecture[name]",
17
17
  "name" => "name",
18
18
  "required" => false,
19
- "validator" => "Must be String"
19
+ "validator" => "Must be String",
20
+ "show" => true
21
+ },
22
+ {
23
+ "allow_nil" => false,
24
+ "description" => "",
25
+ "expected_type" => "integer",
26
+ "full_name" => "architecture[hidden]",
27
+ "name" => "hidden",
28
+ "required" => false,
29
+ "validator" => "Must be Integer",
30
+ "show" => false
20
31
  }
21
32
 
22
33
  ],
@@ -54,4 +65,9 @@ describe ApipieBindings::Param do
54
65
  param.inspect.must_equal "<Param *architecture (Hash)>"
55
66
  end
56
67
 
68
+ it "should have show?" do
69
+ param.show?.must_equal true
70
+ param.params.first.show?.must_equal true
71
+ param.params.last.show?.must_equal false
72
+ end
57
73
  end
metadata CHANGED
@@ -1,185 +1,131 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apipie-bindings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Bačovský
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-10 00:00:00.000000000 Z
11
+ date: 2025-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: json
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 1.2.1
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: 1.2.1
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rest-client
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 1.6.5
34
- - - "<"
17
+ - - "~>"
35
18
  - !ruby/object:Gem::Version
36
- version: 3.0.0
19
+ version: '2.0'
37
20
  type: :runtime
38
21
  prerelease: false
39
22
  version_requirements: !ruby/object:Gem::Requirement
40
23
  requirements:
41
- - - ">="
24
+ - - "~>"
42
25
  - !ruby/object:Gem::Version
43
- version: 1.6.5
44
- - - "<"
45
- - !ruby/object:Gem::Version
46
- version: 3.0.0
26
+ version: '2.0'
47
27
  - !ruby/object:Gem::Dependency
48
28
  name: oauth
49
29
  requirement: !ruby/object:Gem::Requirement
50
30
  requirements:
51
- - - ">="
31
+ - - "~>"
52
32
  - !ruby/object:Gem::Version
53
- version: '0'
33
+ version: '1.1'
54
34
  type: :runtime
55
35
  prerelease: false
56
36
  version_requirements: !ruby/object:Gem::Requirement
57
37
  requirements:
58
- - - ">="
38
+ - - "~>"
59
39
  - !ruby/object:Gem::Version
60
- version: '0'
40
+ version: '1.1'
61
41
  - !ruby/object:Gem::Dependency
62
42
  name: gssapi
63
43
  requirement: !ruby/object:Gem::Requirement
64
44
  requirements:
65
- - - ">="
45
+ - - "~>"
66
46
  - !ruby/object:Gem::Version
67
- version: '0'
47
+ version: '1.3'
68
48
  type: :runtime
69
49
  prerelease: false
70
50
  version_requirements: !ruby/object:Gem::Requirement
71
51
  requirements:
72
- - - ">="
52
+ - - "~>"
73
53
  - !ruby/object:Gem::Version
74
- version: '0'
54
+ version: '1.3'
75
55
  - !ruby/object:Gem::Dependency
76
56
  name: rake
77
57
  requirement: !ruby/object:Gem::Requirement
78
58
  requirements:
79
- - - ">="
59
+ - - "~>"
80
60
  - !ruby/object:Gem::Version
81
- version: 12.3.3
61
+ version: '13.0'
82
62
  type: :development
83
63
  prerelease: false
84
64
  version_requirements: !ruby/object:Gem::Requirement
85
65
  requirements:
86
- - - ">="
66
+ - - "~>"
87
67
  - !ruby/object:Gem::Version
88
- version: 12.3.3
89
- - !ruby/object:Gem::Dependency
90
- name: thor
91
- requirement: !ruby/object:Gem::Requirement
92
- requirements:
93
- - - ">="
94
- - !ruby/object:Gem::Version
95
- version: '0'
96
- type: :development
97
- prerelease: false
98
- version_requirements: !ruby/object:Gem::Requirement
99
- requirements:
100
- - - ">="
101
- - !ruby/object:Gem::Version
102
- version: '0'
68
+ version: '13.0'
103
69
  - !ruby/object:Gem::Dependency
104
70
  name: minitest
105
71
  requirement: !ruby/object:Gem::Requirement
106
72
  requirements:
107
- - - '='
73
+ - - "~>"
108
74
  - !ruby/object:Gem::Version
109
- version: 4.7.4
75
+ version: '4.7'
110
76
  type: :development
111
77
  prerelease: false
112
78
  version_requirements: !ruby/object:Gem::Requirement
113
79
  requirements:
114
- - - '='
80
+ - - "~>"
115
81
  - !ruby/object:Gem::Version
116
- version: 4.7.4
82
+ version: '4.7'
117
83
  - !ruby/object:Gem::Dependency
118
84
  name: minitest-spec-context
119
85
  requirement: !ruby/object:Gem::Requirement
120
86
  requirements:
121
- - - ">="
87
+ - - "~>"
122
88
  - !ruby/object:Gem::Version
123
- version: '0'
89
+ version: 0.0.5
124
90
  type: :development
125
91
  prerelease: false
126
92
  version_requirements: !ruby/object:Gem::Requirement
127
93
  requirements:
128
- - - ">="
94
+ - - "~>"
129
95
  - !ruby/object:Gem::Version
130
- version: '0'
96
+ version: 0.0.5
131
97
  - !ruby/object:Gem::Dependency
132
98
  name: simplecov
133
99
  requirement: !ruby/object:Gem::Requirement
134
100
  requirements:
135
- - - ">="
101
+ - - "~>"
136
102
  - !ruby/object:Gem::Version
137
- version: '0'
103
+ version: '0.22'
138
104
  type: :development
139
105
  prerelease: false
140
106
  version_requirements: !ruby/object:Gem::Requirement
141
107
  requirements:
142
- - - ">="
108
+ - - "~>"
143
109
  - !ruby/object:Gem::Version
144
- version: '0'
110
+ version: '0.22'
145
111
  - !ruby/object:Gem::Dependency
146
112
  name: mocha
147
113
  requirement: !ruby/object:Gem::Requirement
148
114
  requirements:
149
- - - ">="
115
+ - - "~>"
150
116
  - !ruby/object:Gem::Version
151
- version: '0'
117
+ version: '2.7'
152
118
  type: :development
153
119
  prerelease: false
154
120
  version_requirements: !ruby/object:Gem::Requirement
155
121
  requirements:
156
- - - ">="
157
- - !ruby/object:Gem::Version
158
- version: '0'
159
- - !ruby/object:Gem::Dependency
160
- name: ci_reporter
161
- requirement: !ruby/object:Gem::Requirement
162
- requirements:
163
- - - ">="
164
- - !ruby/object:Gem::Version
165
- version: 1.6.3
166
- - - "<"
167
- - !ruby/object:Gem::Version
168
- version: 2.0.0
169
- type: :development
170
- prerelease: false
171
- version_requirements: !ruby/object:Gem::Requirement
172
- requirements:
173
- - - ">="
174
- - !ruby/object:Gem::Version
175
- version: 1.6.3
176
- - - "<"
122
+ - - "~>"
177
123
  - !ruby/object:Gem::Version
178
- version: 2.0.0
124
+ version: '2.7'
179
125
  description: 'Bindings for API calls that are documented with Apipie. Bindings are
180
126
  generated on the fly.
181
127
 
182
- '
128
+ '
183
129
  email: mbacovsk@redhat.com
184
130
  executables: []
185
131
  extensions: []
@@ -257,7 +203,7 @@ homepage: http://github.com/Apipie/apipie-bindings
257
203
  licenses:
258
204
  - MIT
259
205
  metadata: {}
260
- post_install_message:
206
+ post_install_message:
261
207
  rdoc_options: []
262
208
  require_paths:
263
209
  - lib
@@ -265,15 +211,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
265
211
  requirements:
266
212
  - - ">="
267
213
  - !ruby/object:Gem::Version
268
- version: 2.0.0
214
+ version: 2.7.0
269
215
  required_rubygems_version: !ruby/object:Gem::Requirement
270
216
  requirements:
271
217
  - - ">="
272
218
  - !ruby/object:Gem::Version
273
219
  version: '0'
274
220
  requirements: []
275
- rubygems_version: 3.1.6
276
- signing_key:
221
+ rubygems_version: 3.2.33
222
+ signing_key:
277
223
  specification_version: 4
278
224
  summary: The Ruby bindings for Apipie documented APIs
279
225
  test_files: