infostrada 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0a3d137bf6f82cfd746ac65de4c0e7270fa33898
4
- data.tar.gz: 3feab50dac65658f1df1e0b7bc6ae0b8fdf400bd
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ M2MxZGQ4M2YwYTlmNTYzN2IxMjg0Yzk1NmRkMWUzNWVlMDEzMjY2ZA==
5
+ data.tar.gz: !binary |-
6
+ NzgxM2I1N2M0NWFiMGE3ZDgwMDRhOTI0OWZmOWQ2ZjcwYWU0OTRhZA==
5
7
  SHA512:
6
- metadata.gz: bd402dfafaea9e0722b5a1559ab224c4c1e1026e5d156086d68f74a705bd043e22afffbbfc11d43eab19534fe755e33ba25fb5550731d7567f8c554517e31711
7
- data.tar.gz: 794415fef5cca6a22a9391ad541e28dab1982210b28b3d50b1bb476898ad752df516123a0d27172487a06801b46fc93d30fd807343d963a8aa1caf8799eda92e
8
+ metadata.gz: !binary |-
9
+ YjVmNGJjYmEwODZkOGU2ZDI5OGNiYjNhZDc5MTM5NTJmYWY0M2RjMzNmMDM3
10
+ MWVlZmJkM2Y1MTk5NDFmZDQ2NzFiYWEzY2YyMGRhOGZhZWMxZTU4YzFlNjRh
11
+ MjU0YjdiOTM5ZDc5ODQ1Mzk5YjYxMWVkODZhNjMxYjU4YjVlMGE=
12
+ data.tar.gz: !binary |-
13
+ N2M4ODMyNWRhZDk5MmQ2MjU5MjlmMWYzNmIyZDYxYjZiOTQ2YjgyMzZhMzRl
14
+ NmUwY2I3ZmVmMGE0MmRjYTI4ZmM5ZGIwMTBlMTM5NDJkNTJjZDg0OGQ0Y2U4
15
+ NTYzN2NhNGRkM2E5MDUyMDcxOTlkZDdhYjcwNTA0MDI5ZjVmM2M=
data/.gitignore CHANGED
@@ -1,2 +1,4 @@
1
1
  *.gem
2
2
  *.pstore
3
+ .ruby-version
4
+ .ruby-gemset
data/Gemfile.lock CHANGED
@@ -1,27 +1,40 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- infostrada (0.1.3)
4
+ infostrada (0.1.10)
5
+ activemodel
5
6
  colored (~> 1.2)
6
7
  eventmachine (~> 1.0, >= 1.0.3)
7
8
  httparty (~> 0.13, >= 0.13.0)
8
- tzinfo (~> 0.3, >= 0.3.37)
9
+ tzinfo (>= 1.1.0)
9
10
 
10
11
  GEM
11
12
  remote: https://rubygems.org/
12
13
  specs:
13
- ast (1.1.0)
14
+ activemodel (4.1.0)
15
+ activesupport (= 4.1.0)
16
+ builder (~> 3.1)
17
+ activesupport (4.1.0)
18
+ i18n (~> 0.6, >= 0.6.9)
19
+ json (~> 1.7, >= 1.7.7)
20
+ minitest (~> 5.1)
21
+ thread_safe (~> 0.1)
22
+ tzinfo (~> 1.1)
23
+ ast (2.0.0)
24
+ builder (3.2.2)
14
25
  coderay (1.1.0)
15
26
  colored (1.2)
16
27
  eventmachine (1.0.3)
17
28
  httparty (0.13.1)
18
29
  json (~> 1.8)
19
30
  multi_xml (>= 0.5.2)
31
+ i18n (0.6.9)
20
32
  json (1.8.1)
21
33
  method_source (0.8.2)
34
+ minitest (5.3.3)
22
35
  multi_xml (0.5.5)
23
- parser (2.1.7)
24
- ast (~> 1.1)
36
+ parser (2.1.9)
37
+ ast (>= 1.1, < 3.0)
25
38
  slop (~> 3.4, >= 3.4.5)
26
39
  powerpack (0.0.9)
27
40
  pry (0.9.12.6)
@@ -29,15 +42,15 @@ GEM
29
42
  method_source (~> 0.8)
30
43
  slop (~> 3.4)
31
44
  rainbow (2.0.0)
32
- rake (10.2.2)
45
+ rake (10.3.1)
33
46
  reek (1.3.7)
34
47
  rainbow
35
48
  ruby2ruby (~> 2.0.8)
36
49
  ruby_parser (~> 3.3)
37
50
  sexp_processor
38
- rubocop (0.20.1)
51
+ rubocop (0.21.0)
39
52
  json (>= 1.7.7, < 2)
40
- parser (~> 2.1.7)
53
+ parser (~> 2.1.9)
41
54
  powerpack (~> 0.0.6)
42
55
  rainbow (>= 1.99.1, < 3.0)
43
56
  ruby-progressbar (~> 1.4)
@@ -45,11 +58,13 @@ GEM
45
58
  ruby2ruby (2.0.8)
46
59
  ruby_parser (~> 3.1)
47
60
  sexp_processor (~> 4.0)
48
- ruby_parser (3.5.0)
61
+ ruby_parser (3.6.0)
49
62
  sexp_processor (~> 4.1)
50
63
  sexp_processor (4.4.3)
51
64
  slop (3.5.0)
52
- tzinfo (0.3.39)
65
+ thread_safe (0.3.3)
66
+ tzinfo (1.1.0)
67
+ thread_safe (~> 0.1)
53
68
 
54
69
  PLATFORMS
55
70
  ruby
data/infostrada.gemspec CHANGED
@@ -26,6 +26,7 @@ Gem::Specification.new do |spec|
26
26
 
27
27
  spec.add_dependency 'httparty', '~> 0.13', '>= 0.13.0'
28
28
  spec.add_dependency 'colored', '~> 1.2'
29
- spec.add_dependency 'tzinfo', '>= 1.1.0'
29
+ spec.add_dependency 'tzinfo', '~> 1.1', '>= 1.1.0'
30
30
  spec.add_dependency 'eventmachine', '~> 1.0', '>= 1.0.3'
31
+ spec.add_dependency 'activemodel', '~> 4.1', '>= 4.1.0'
31
32
  end
@@ -53,5 +53,15 @@ module Infostrada
53
53
 
54
54
  self
55
55
  end
56
+
57
+ def attributes=(hash)
58
+ hash.each do |key, value|
59
+ send("#{key}=", value)
60
+ end
61
+ end
62
+
63
+ def attributes
64
+ instance_values
65
+ end
56
66
  end
57
67
  end
@@ -1,3 +1,3 @@
1
1
  module Infostrada
2
- VERSION = '0.1.9'
2
+ VERSION = '0.1.10'
3
3
  end
data/lib/infostrada.rb CHANGED
@@ -1,10 +1,13 @@
1
1
  require 'rubygems'
2
2
  require 'httparty'
3
+ require 'active_model'
3
4
 
4
5
  require 'infostrada/core_ext/string'
5
6
  require 'infostrada/base_request'
6
7
 
7
8
  module Infostrada
9
+ extend ActiveModel::Serializers::JSON
10
+
8
11
  # The configuration of the API requests.
9
12
  class Configuration
10
13
  attr_reader :username, :password, :timeout, :base_uri
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infostrada
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Otero
@@ -14,164 +14,190 @@ dependencies:
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.5'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.2'
34
- - - ">="
34
+ - - ! '>='
35
35
  - !ruby/object:Gem::Version
36
36
  version: 10.2.2
37
37
  type: :development
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - "~>"
41
+ - - ~>
42
42
  - !ruby/object:Gem::Version
43
43
  version: '10.2'
44
- - - ">="
44
+ - - ! '>='
45
45
  - !ruby/object:Gem::Version
46
46
  version: 10.2.2
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: reek
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - "~>"
51
+ - - ~>
52
52
  - !ruby/object:Gem::Version
53
53
  version: '1.3'
54
- - - ">="
54
+ - - ! '>='
55
55
  - !ruby/object:Gem::Version
56
56
  version: 1.3.7
57
57
  type: :development
58
58
  prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - "~>"
61
+ - - ~>
62
62
  - !ruby/object:Gem::Version
63
63
  version: '1.3'
64
- - - ">="
64
+ - - ! '>='
65
65
  - !ruby/object:Gem::Version
66
66
  version: 1.3.7
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: rubocop
69
69
  requirement: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - "~>"
71
+ - - ~>
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0.20'
74
- - - ">="
74
+ - - ! '>='
75
75
  - !ruby/object:Gem::Version
76
76
  version: 0.20.1
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - "~>"
81
+ - - ~>
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0.20'
84
- - - ">="
84
+ - - ! '>='
85
85
  - !ruby/object:Gem::Version
86
86
  version: 0.20.1
87
87
  - !ruby/object:Gem::Dependency
88
88
  name: pry
89
89
  requirement: !ruby/object:Gem::Requirement
90
90
  requirements:
91
- - - "~>"
91
+ - - ~>
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0.9'
94
- - - ">="
94
+ - - ! '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: 0.9.12
97
97
  type: :development
98
98
  prerelease: false
99
99
  version_requirements: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ~>
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0.9'
104
- - - ">="
104
+ - - ! '>='
105
105
  - !ruby/object:Gem::Version
106
106
  version: 0.9.12
107
107
  - !ruby/object:Gem::Dependency
108
108
  name: httparty
109
109
  requirement: !ruby/object:Gem::Requirement
110
110
  requirements:
111
- - - "~>"
111
+ - - ~>
112
112
  - !ruby/object:Gem::Version
113
113
  version: '0.13'
114
- - - ">="
114
+ - - ! '>='
115
115
  - !ruby/object:Gem::Version
116
116
  version: 0.13.0
117
117
  type: :runtime
118
118
  prerelease: false
119
119
  version_requirements: !ruby/object:Gem::Requirement
120
120
  requirements:
121
- - - "~>"
121
+ - - ~>
122
122
  - !ruby/object:Gem::Version
123
123
  version: '0.13'
124
- - - ">="
124
+ - - ! '>='
125
125
  - !ruby/object:Gem::Version
126
126
  version: 0.13.0
127
127
  - !ruby/object:Gem::Dependency
128
128
  name: colored
129
129
  requirement: !ruby/object:Gem::Requirement
130
130
  requirements:
131
- - - "~>"
131
+ - - ~>
132
132
  - !ruby/object:Gem::Version
133
133
  version: '1.2'
134
134
  type: :runtime
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  requirements:
138
- - - "~>"
138
+ - - ~>
139
139
  - !ruby/object:Gem::Version
140
140
  version: '1.2'
141
141
  - !ruby/object:Gem::Dependency
142
142
  name: tzinfo
143
143
  requirement: !ruby/object:Gem::Requirement
144
144
  requirements:
145
- - - ">="
145
+ - - ~>
146
+ - !ruby/object:Gem::Version
147
+ version: '1.1'
148
+ - - ! '>='
146
149
  - !ruby/object:Gem::Version
147
150
  version: 1.1.0
148
151
  type: :runtime
149
152
  prerelease: false
150
153
  version_requirements: !ruby/object:Gem::Requirement
151
154
  requirements:
152
- - - ">="
155
+ - - ~>
156
+ - !ruby/object:Gem::Version
157
+ version: '1.1'
158
+ - - ! '>='
153
159
  - !ruby/object:Gem::Version
154
160
  version: 1.1.0
155
161
  - !ruby/object:Gem::Dependency
156
162
  name: eventmachine
157
163
  requirement: !ruby/object:Gem::Requirement
158
164
  requirements:
159
- - - "~>"
165
+ - - ~>
160
166
  - !ruby/object:Gem::Version
161
167
  version: '1.0'
162
- - - ">="
168
+ - - ! '>='
163
169
  - !ruby/object:Gem::Version
164
170
  version: 1.0.3
165
171
  type: :runtime
166
172
  prerelease: false
167
173
  version_requirements: !ruby/object:Gem::Requirement
168
174
  requirements:
169
- - - "~>"
175
+ - - ~>
170
176
  - !ruby/object:Gem::Version
171
177
  version: '1.0'
172
- - - ">="
178
+ - - ! '>='
173
179
  - !ruby/object:Gem::Version
174
180
  version: 1.0.3
181
+ - !ruby/object:Gem::Dependency
182
+ name: activemodel
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ~>
186
+ - !ruby/object:Gem::Version
187
+ version: '4.1'
188
+ - - ! '>='
189
+ - !ruby/object:Gem::Version
190
+ version: 4.1.0
191
+ type: :runtime
192
+ prerelease: false
193
+ version_requirements: !ruby/object:Gem::Requirement
194
+ requirements:
195
+ - - ~>
196
+ - !ruby/object:Gem::Version
197
+ version: '4.1'
198
+ - - ! '>='
199
+ - !ruby/object:Gem::Version
200
+ version: 4.1.0
175
201
  description: Wrapper for the Infostrada Football API using httparty.
176
202
  email:
177
203
  - oterosantos@gmail.com
@@ -180,7 +206,7 @@ executables:
180
206
  extensions: []
181
207
  extra_rdoc_files: []
182
208
  files:
183
- - ".gitignore"
209
+ - .gitignore
184
210
  - Gemfile
185
211
  - Gemfile.lock
186
212
  - README.md
@@ -221,12 +247,12 @@ require_paths:
221
247
  - lib
222
248
  required_ruby_version: !ruby/object:Gem::Requirement
223
249
  requirements:
224
- - - ">="
250
+ - - ! '>='
225
251
  - !ruby/object:Gem::Version
226
252
  version: '0'
227
253
  required_rubygems_version: !ruby/object:Gem::Requirement
228
254
  requirements:
229
- - - ">="
255
+ - - ! '>='
230
256
  - !ruby/object:Gem::Version
231
257
  version: '0'
232
258
  requirements: []