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 CHANGED
@@ -1 +1 @@
1
- 0.1.3
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{pwnalytics_client}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Victor Costan"]
@@ -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=AB&names%5B%5D=C+D').
17
+ 'names%5B%5D=ab&names%5B%5D=C+D').
18
18
  and_return({})
19
- site.events(:names => ['AB', 'C D']).should be_empty
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: 29
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Victor Costan