infostrada 0.1.19 → 0.1.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/infostrada/endpoint.rb +14 -8
- data/lib/infostrada/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDkxMTEwYzNiMTcyNWIzYTkxMGNjM2UwMzNjZjhjZTJlZDQ2MzFiYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTNmZTQ1ZjU2NmFjZWIyMmM0Y2Y2MDYxM2MyZTg5N2NmZGE5MDg2Yw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTI4MTMzN2E5NTAzMDNiM2JlOGFhNDc4ODUxMTI1NDdlZjVhZDU0ODg4MDE3
|
10
|
+
YTdjNDM2NWMwMjlmNjY2YzdiNjllOTRmM2I1OWIzMWQ0MTRjZTg0Y2YzOWJm
|
11
|
+
NzIwYjBhMzBiNmUxN2NhYWMxNWE5ZTg4NDJjMWU2NGVkOGRkNzk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTJkNmJkZGIyMmRmNTZiZWI5MDNjZGNlMGMxMWQxOTYyYjc4ODYwZWIyNTYw
|
14
|
+
ZmNlODU1Yzk1MTk3MjMxZTk3MTZiYjJiNmNkNmVkOTFlZDFiZmQwYjMzNWVm
|
15
|
+
ZGI1ZDA2NjBhMDFiYmM4YjJlOGVhNDlmNTNlYzk3OTI3MzU2Y2M=
|
data/lib/infostrada/endpoint.rb
CHANGED
@@ -10,16 +10,22 @@ module Infostrada
|
|
10
10
|
self
|
11
11
|
end
|
12
12
|
|
13
|
-
#
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
# Defines methods for parameter ids on the c_QueryString. These can be match_id, phase_id,
|
14
|
+
# edition_id or team_id.
|
15
|
+
%w(match phase edition team).each do |param|
|
16
|
+
define_method("#{param}_id") do
|
17
|
+
scan_id(param)
|
18
|
+
end
|
17
19
|
end
|
18
20
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
21
|
+
private
|
22
|
+
|
23
|
+
# Scans for the id of a given parameter in the c_QueryString. Returns the id for the parameter.
|
24
|
+
#
|
25
|
+
# Example
|
26
|
+
# => scan_id('edition') # will scan editionid number
|
27
|
+
def scan_id(param)
|
28
|
+
@query_string.match(/#{param}id=(\d+)/).captures.first
|
23
29
|
end
|
24
30
|
end
|
25
31
|
end
|
data/lib/infostrada/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infostrada
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ricardo Otero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|