enigma_io 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rubocop.yml +5 -2
- data/lib/enigma/endpoint.rb +2 -0
- data/lib/enigma/version.rb +1 -1
- data/test/endpoint_test.rb +5 -0
- metadata +24 -43
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 73060a713b2c7c3f6b0ab2fba935b94ae0833113
|
4
|
+
data.tar.gz: ff631614d254b6443b820f0b5f02306806175b37
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0a0259dd0b09f59ab179451dbc249e76473596d9a2f0f7f77818ede09edc57ded6ef5f74d7c6d771f0bafeb2043eef3b7a8dd342f99e32a406a41a11273e8ec3
|
7
|
+
data.tar.gz: 7b21195ff07b82260251cea50f7abdbfa95d33e60e498b87e06aa73cfcb5429c5f54bcb1ba288acda79d7d89bb98a0f2bd1726131f953441a04c530acd2e9430
|
data/.rubocop.yml
CHANGED
data/lib/enigma/endpoint.rb
CHANGED
@@ -29,6 +29,8 @@ module Enigma
|
|
29
29
|
@params[:where] = serialize_where(@params[:where]) if @params[:where]
|
30
30
|
@params[:search] = serialize_search(@params[:search]) if @params[:search]
|
31
31
|
@params[:select] = serialize_select(@params[:select]) if @params[:select]
|
32
|
+
@params[:limit] = serialize_select(@params[:limit]) if @params[:limit]
|
33
|
+
@params[:page] = serialize_select(@params[:page]) if @params[:page]
|
32
34
|
@params
|
33
35
|
end
|
34
36
|
|
data/lib/enigma/version.rb
CHANGED
data/test/endpoint_test.rb
CHANGED
@@ -20,6 +20,11 @@ class EndpointTest < Test::Unit::TestCase
|
|
20
20
|
assert_equal({ limit: 100 }, ep.params)
|
21
21
|
end
|
22
22
|
|
23
|
+
def test_query_params_includes_page
|
24
|
+
ep = Enigma::Endpoint.new(@datapath, page: 2)
|
25
|
+
assert_equal({ page: 2 }, ep.params)
|
26
|
+
end
|
27
|
+
|
23
28
|
def test_has_descendants
|
24
29
|
assert Enigma::Endpoint.descendants.include? Enigma::Meta
|
25
30
|
end
|
metadata
CHANGED
@@ -1,126 +1,111 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enigma_io
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Stephen Pike
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2014-
|
11
|
+
date: 2014-08-25 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '1.3'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- - ~>
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '1.3'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rake
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rubocop
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - ">="
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - ">="
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: yard
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - ">="
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: '0'
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - ">="
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: '0'
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: typhoeus
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- -
|
73
|
+
- - ">="
|
84
74
|
- !ruby/object:Gem::Version
|
85
75
|
version: '0'
|
86
76
|
type: :runtime
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
|
-
- -
|
80
|
+
- - ">="
|
92
81
|
- !ruby/object:Gem::Version
|
93
82
|
version: '0'
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: hashie
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
|
-
- -
|
87
|
+
- - ">="
|
100
88
|
- !ruby/object:Gem::Version
|
101
89
|
version: '0'
|
102
90
|
type: :runtime
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
|
-
- -
|
94
|
+
- - ">="
|
108
95
|
- !ruby/object:Gem::Version
|
109
96
|
version: '0'
|
110
97
|
- !ruby/object:Gem::Dependency
|
111
98
|
name: rubyzip
|
112
99
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
100
|
requirements:
|
115
|
-
- -
|
101
|
+
- - ">="
|
116
102
|
- !ruby/object:Gem::Version
|
117
103
|
version: 1.0.0
|
118
104
|
type: :runtime
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
107
|
requirements:
|
123
|
-
- -
|
108
|
+
- - ">="
|
124
109
|
- !ruby/object:Gem::Version
|
125
110
|
version: 1.0.0
|
126
111
|
description: Ruby client for the Enigma API
|
@@ -130,9 +115,9 @@ executables: []
|
|
130
115
|
extensions: []
|
131
116
|
extra_rdoc_files: []
|
132
117
|
files:
|
133
|
-
- .gitignore
|
134
|
-
- .rubocop.yml
|
135
|
-
- .travis.yml
|
118
|
+
- ".gitignore"
|
119
|
+
- ".rubocop.yml"
|
120
|
+
- ".travis.yml"
|
136
121
|
- Gemfile
|
137
122
|
- LICENSE.txt
|
138
123
|
- README.md
|
@@ -175,30 +160,26 @@ files:
|
|
175
160
|
homepage: https://github.com/scpike/enigma
|
176
161
|
licenses:
|
177
162
|
- MIT
|
163
|
+
metadata: {}
|
178
164
|
post_install_message:
|
179
165
|
rdoc_options: []
|
180
166
|
require_paths:
|
181
167
|
- lib
|
182
168
|
required_ruby_version: !ruby/object:Gem::Requirement
|
183
|
-
none: false
|
184
169
|
requirements:
|
185
|
-
- -
|
170
|
+
- - ">="
|
186
171
|
- !ruby/object:Gem::Version
|
187
172
|
version: 1.9.3
|
188
173
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
|
-
none: false
|
190
174
|
requirements:
|
191
|
-
- -
|
175
|
+
- - ">="
|
192
176
|
- !ruby/object:Gem::Version
|
193
177
|
version: '0'
|
194
|
-
segments:
|
195
|
-
- 0
|
196
|
-
hash: -2110614023640464768
|
197
178
|
requirements: []
|
198
179
|
rubyforge_project:
|
199
|
-
rubygems_version:
|
180
|
+
rubygems_version: 2.2.2
|
200
181
|
signing_key:
|
201
|
-
specification_version:
|
182
|
+
specification_version: 4
|
202
183
|
summary: Ruby client for the Enigma API
|
203
184
|
test_files:
|
204
185
|
- test/client_test.rb
|