cwsrb 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/cwsrb/api.rb +4 -1
- data/lib/cwsrb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58e7e97678bb29181c0e9896d5c49784f1fda65a
|
4
|
+
data.tar.gz: cd4d7c60ed5ecc989707554c43cb46fc7096c590
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 227da836fffb103857684c14537ec8b627ee184fb3188de541d83070533332512cdac1d0d193d3b2912a1b72ac8445e475e2d662c3cf6918adc9e993908605d4
|
7
|
+
data.tar.gz: 406a4beeb8b8716736c77d8efd3a5bdb77c81cba45a1a84535b00d3f914fb8d87f7c079ee15511809c713e4a05410e76ab6a6d577dc9999ccfc8ad2666a674a8
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.4.1
|
4
|
+
* Fixed an error with the URIs not being encoded
|
5
|
+
|
3
6
|
## 0.4.0
|
4
7
|
* Add new `Language` class and related subclasses `Type` and `Status` that are returned for calls to `API#get_lang`,
|
5
8
|
`API#get_lang_type` and `API#get_lang_status`, respectively
|
data/lib/cwsrb/api.rb
CHANGED
@@ -24,7 +24,7 @@ module Cwsrb
|
|
24
24
|
# @return [User] The user queried for
|
25
25
|
# @raise [APIError] If any error ocurred while querying for that user
|
26
26
|
def get_user(val)
|
27
|
-
usr = Cwsrb::Helpers.resolve(val)
|
27
|
+
usr = URI.encode(Cwsrb::Helpers.resolve(val))
|
28
28
|
|
29
29
|
# First general info
|
30
30
|
response = self.class.get("/api/USER/#{usr}")
|
@@ -46,6 +46,7 @@ module Cwsrb
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def get_lang(val)
|
49
|
+
val = URI.encode(val)
|
49
50
|
response = self.class.get("/api/LANG/#{val}")
|
50
51
|
|
51
52
|
Cwsrb::Helpers.check_for_errors(response)
|
@@ -69,6 +70,7 @@ module Cwsrb
|
|
69
70
|
end
|
70
71
|
|
71
72
|
def get_lang_type(val)
|
73
|
+
val = URI.encode(val)
|
72
74
|
response = self.class.get("/api/LANG/TYPE/#{val}")
|
73
75
|
|
74
76
|
Cwsrb::Helpers.check_for_errors(response)
|
@@ -83,6 +85,7 @@ module Cwsrb
|
|
83
85
|
end
|
84
86
|
|
85
87
|
def get_lang_status(val)
|
88
|
+
val = URI.encode(val)
|
86
89
|
response = self.class.get("/api/LANG/STATUS/#{val}")
|
87
90
|
|
88
91
|
Cwsrb::Helpers.check_for_errors(response)
|
data/lib/cwsrb/version.rb
CHANGED