opushon 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
  SHA1:
3
- metadata.gz: 7a3cb8fd9120b42f1f8c2158cc41c7e740bb659c
4
- data.tar.gz: d6363f7c674d0efbfd668a8e10164e9623f2ab82
3
+ metadata.gz: 04f7e087af188ca2457a822bb5c427898f8f24c1
4
+ data.tar.gz: 4a5d0680343e9ce1ee25fdfbb45078fc8249ea7f
5
5
  SHA512:
6
- metadata.gz: 5889b5b0437163ec429e62377c13e30efd404b6fa1816d203b13655a9e658d4f6ea3efdb161feadebf6982403f2f6f2b94b04f2b40775c74e730c013e0283fd6
7
- data.tar.gz: c475f71d712b5a3bb4c10ebf73ef5eaa912857a8049bbfa3e3b6d1d29883fabe884064ce1fc55a95eb4883e99345ce7c6357d9ce2d688838106f1d4bad6d9bfa
6
+ metadata.gz: a34d5465e4665d012a49f3aadcb3135ab53e7a44ae968f656d42541367c4cc80dabd79202c8956eb1b4ff73a4a4143d4d65c824aa8740c1d483270547906871b
7
+ data.tar.gz: d69f4bcdc6579feafda7137fc91854d30bf1339d2bdafa5bbf8eef07f61623c1a3d0158318dc0eb611aa968d8509e718cbd3f976c403daaa428583451240b059
data/VERSION.semver CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -14,7 +14,7 @@ module Opushon
14
14
  end
15
15
 
16
16
  def to_sym
17
- self.class.name.split('::').last.downcase
17
+ self.class.name.split('::').last.downcase.to_sym
18
18
  end
19
19
 
20
20
  def constraints
@@ -28,7 +28,7 @@ describe Opushon::Parameter::Input do
28
28
 
29
29
  o.to_h.must_equal(title: '',
30
30
  description: '',
31
- type: 'string',
31
+ type: :string,
32
32
  nullifiable: true,
33
33
  query_string: true,
34
34
  restricted_values: nil,
@@ -44,7 +44,7 @@ describe Opushon::Parameter::Input do
44
44
 
45
45
  o.to_h.must_equal(title: '',
46
46
  description: '',
47
- type: 'string',
47
+ type: :string,
48
48
  nullifiable: true,
49
49
  query_string: true,
50
50
  restricted_values: nil,
@@ -60,7 +60,7 @@ describe Opushon::Parameter::Input do
60
60
 
61
61
  o.to_h.must_equal(title: '',
62
62
  description: '',
63
- type: 'number',
63
+ type: :number,
64
64
  nullifiable: true,
65
65
  query_string: true,
66
66
  restricted_values: nil,
@@ -75,7 +75,7 @@ describe Opushon::Parameter::Input do
75
75
 
76
76
  o.to_h.must_equal(title: '',
77
77
  description: '',
78
- type: 'boolean',
78
+ type: :boolean,
79
79
  nullifiable: true,
80
80
  query_string: true,
81
81
  restricted_values: nil)
@@ -88,7 +88,7 @@ describe Opushon::Parameter::Input do
88
88
 
89
89
  o.to_h.must_equal(title: '',
90
90
  description: '',
91
- type: 'array',
91
+ type: :array,
92
92
  nullifiable: true,
93
93
  query_string: true,
94
94
  restricted_values: nil)
@@ -101,7 +101,7 @@ describe Opushon::Parameter::Input do
101
101
 
102
102
  o.to_h.must_equal(title: '',
103
103
  description: '',
104
- type: 'hash',
104
+ type: :hash,
105
105
  nullifiable: true,
106
106
  query_string: true,
107
107
  restricted_values: nil)
@@ -135,7 +135,7 @@ describe Opushon::Parameter::Input do
135
135
 
136
136
  o.to_h.must_equal(title: '',
137
137
  description: 'State of the issues to return.',
138
- type: 'boolean',
138
+ type: :boolean,
139
139
  nullifiable: true,
140
140
  query_string: false,
141
141
  restricted_values: [
@@ -28,7 +28,7 @@ describe Opushon::Parameter::Output do
28
28
 
29
29
  o.to_h.must_equal(title: '',
30
30
  description: '',
31
- type: 'string',
31
+ type: :string,
32
32
  nullifiable: true)
33
33
  end
34
34
  end
@@ -39,7 +39,7 @@ describe Opushon::Parameter::Output do
39
39
 
40
40
  o.to_h.must_equal(title: '',
41
41
  description: '',
42
- type: 'string',
42
+ type: :string,
43
43
  nullifiable: true)
44
44
  end
45
45
  end
@@ -50,7 +50,7 @@ describe Opushon::Parameter::Output do
50
50
 
51
51
  o.to_h.must_equal(title: '',
52
52
  description: '',
53
- type: 'number',
53
+ type: :number,
54
54
  nullifiable: true)
55
55
  end
56
56
  end
@@ -61,7 +61,7 @@ describe Opushon::Parameter::Output do
61
61
 
62
62
  o.to_h.must_equal(title: '',
63
63
  description: '',
64
- type: 'boolean',
64
+ type: :boolean,
65
65
  nullifiable: true)
66
66
  end
67
67
  end
@@ -72,7 +72,7 @@ describe Opushon::Parameter::Output do
72
72
 
73
73
  o.to_h.must_equal(title: '',
74
74
  description: '',
75
- type: 'array',
75
+ type: :array,
76
76
  nullifiable: true)
77
77
  end
78
78
  end
@@ -83,7 +83,7 @@ describe Opushon::Parameter::Output do
83
83
 
84
84
  o.to_h.must_equal(title: '',
85
85
  description: '',
86
- type: 'hash',
86
+ type: :hash,
87
87
  nullifiable: true)
88
88
  end
89
89
  end
@@ -100,7 +100,7 @@ describe Opushon::Parameter::Output do
100
100
 
101
101
  o.to_h.must_equal(title: '',
102
102
  description: 'State of the issues to return.',
103
- type: 'boolean',
103
+ type: :boolean,
104
104
  nullifiable: true)
105
105
  end
106
106
  end
data/spec/opushon_spec.rb CHANGED
@@ -159,7 +159,7 @@ describe Opushon do
159
159
  :title=>"",
160
160
  :description=>"Identify the page to return.",
161
161
  :nullifiable=>true,
162
- :type=>"number",
162
+ :type=>:number,
163
163
  :min=>1,
164
164
  :max=>nil
165
165
  },
@@ -169,7 +169,7 @@ describe Opushon do
169
169
  :title=>"",
170
170
  :description=>"Indicate the number of issues per page.",
171
171
  :nullifiable=>true,
172
- :type=>"number",
172
+ :type=>:number,
173
173
  :min=>1,
174
174
  :max=>100
175
175
  },
@@ -195,7 +195,7 @@ describe Opushon do
195
195
  :title=>"",
196
196
  :description=>"Indicates the state of the issues to return.",
197
197
  :nullifiable=>true,
198
- :type=>"string",
198
+ :type=>:string,
199
199
  :minlen=>nil,
200
200
  :maxlen=>nil,
201
201
  :pattern=>nil
@@ -206,25 +206,25 @@ describe Opushon do
206
206
  :title=>"",
207
207
  :description=>"The datetime that the resource was created at.",
208
208
  :nullifiable=>false,
209
- :type=>"string"
209
+ :type=>:string
210
210
  },
211
211
  :title=>{
212
212
  :title=>"",
213
213
  :description=>"The title of the resource.",
214
214
  :nullifiable=>false,
215
- :type=>"string"
215
+ :type=>:string
216
216
  },
217
217
  :body=>{
218
218
  :title=>"",
219
219
  :description=>"The body of the resource.",
220
220
  :nullifiable=>true,
221
- :type=>"string"
221
+ :type=>:string
222
222
  },
223
223
  :state=>{
224
224
  :title=>"",
225
225
  :description=>"Indicates the state of the issue.",
226
226
  :nullifiable=>false,
227
- :type=>"string"
227
+ :type=>:string
228
228
  }
229
229
  }
230
230
  },
@@ -251,7 +251,7 @@ describe Opushon do
251
251
  :title=>"",
252
252
  :description=>"Issue title.",
253
253
  :nullifiable=>false,
254
- :type=>"string",
254
+ :type=>:string,
255
255
  :minlen=>nil,
256
256
  :maxlen=>255,
257
257
  :pattern=>nil
@@ -262,7 +262,7 @@ describe Opushon do
262
262
  :title=>"",
263
263
  :description=>"Issue body.",
264
264
  :nullifiable=>true,
265
- :type=>"string",
265
+ :type=>:string,
266
266
  :minlen=>nil,
267
267
  :maxlen=>nil,
268
268
  :pattern=>nil
@@ -289,7 +289,7 @@ describe Opushon do
289
289
  :title=>"",
290
290
  :description=>"Labels to associate with this issue.",
291
291
  :nullifiable=>true,
292
- :type=>"string",
292
+ :type=>:string,
293
293
  :minlen=>nil,
294
294
  :maxlen=>nil,
295
295
  :pattern=>nil
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opushon
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
  - Cyril Wack
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-10 00:00:00.000000000 Z
11
+ date: 2014-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler