pwnalytics_client 0.1.3 → 0.1.4
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.
- data/VERSION +1 -1
- data/lib/pwnalytics_client/site.rb +1 -1
- data/pwnalytics_client.gemspec +1 -1
- data/spec/lib/pwnalytics_client/site_spec.rb +2 -2
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.4
|
|
@@ -39,7 +39,7 @@ class Site
|
|
|
39
39
|
|
|
40
40
|
if options[:names]
|
|
41
41
|
request << options[:names].
|
|
42
|
-
map { |name| '&names%5B%5D=' + CGI.escape(name) }.join('')
|
|
42
|
+
map { |name| '&names%5B%5D=' + CGI.escape(name.to_s) }.join('')
|
|
43
43
|
end
|
|
44
44
|
@client.request(request).map { |data| Event.new self, data }
|
|
45
45
|
end
|
data/pwnalytics_client.gemspec
CHANGED
|
@@ -14,9 +14,9 @@ describe PwnalyticsClient::Site do
|
|
|
14
14
|
it 'should encode name filter if given' do
|
|
15
15
|
client.should_receive(:request).
|
|
16
16
|
with('/web_properties/AA/events.json?limit=no&' +
|
|
17
|
-
'names%5B%5D=
|
|
17
|
+
'names%5B%5D=ab&names%5B%5D=C+D').
|
|
18
18
|
and_return({})
|
|
19
|
-
site.events(:names => [
|
|
19
|
+
site.events(:names => [:ab, 'C D']).should be_empty
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
it 'should encode limit filter if given' do
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pwnalytics_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 19
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 4
|
|
10
|
+
version: 0.1.4
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Victor Costan
|