mixpanel_client 3.1.1 → 3.1.2

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/.gitignore CHANGED
@@ -31,3 +31,4 @@ tmp/
31
31
  .bundle
32
32
  Gemfile.lock
33
33
  pkg/*
34
+ bin/*
data/.rvmrc CHANGED
@@ -1,14 +1,10 @@
1
1
  # Create the gemset if it does not exist
2
+ #
2
3
  rvm_gemset_create_on_use_flag=1
3
4
 
4
5
  # Switch to default ruby version when exiting directory
5
6
  rvm_project_rvmrc_default=1
6
7
 
7
8
  # Use rvm with a specific version of ruby and gemset
8
- if [[ `ruby -v` =~ '1.8.7' ]]; then
9
- rvm use ruby-1.8.7
10
- rvm gemset use mixpanel_client_1.8.7
11
- else
12
- rvm use ruby-1.9.2
13
- rvm gemset use mixpanel_client_1.9.2
14
- fi
9
+ rvm use ruby-1.9.3-p392
10
+ rvm gemset use mixpanel_client_1.9.3-p392
data/README.md CHANGED
@@ -94,6 +94,9 @@ Create tag v2.0.2 and build and push mixpanel_client-2.0.2.gem to Rubygems
94
94
 
95
95
  ## Changelog
96
96
 
97
+ ### v3.1.2
98
+ * Gem updates
99
+
97
100
  ### v3.1.1
98
101
  * Avoid overriding the arg of client.request
99
102
  * Allow retrieving the request_uri of a Mixpanel request
@@ -101,17 +104,17 @@ Create tag v2.0.2 and build and push mixpanel_client-2.0.2.gem to Rubygems
101
104
  ### v3.1.0
102
105
  * Parallel requests option.
103
106
 
104
- ### v.3.0.0
107
+ ### v3.0.0
105
108
  * NOTE: This version breaks backwards compatibility.
106
109
  * Use a regular ruby hash instead of metaprogramming for mixpanel options.
107
110
 
108
- ### v.2.2.3
111
+ ### v2.2.3
109
112
  * Added some more options.
110
113
 
111
- ### v.2.2.2
114
+ ### v2.2.2
112
115
  * Added some more options.
113
116
 
114
- ### v.2.2.1
117
+ ### v2.2.1
115
118
  * Added support for the raw data export API.
116
119
 
117
120
  ### v2.2.0
@@ -152,8 +155,8 @@ Create tag v2.0.2 and build and push mixpanel_client-2.0.2.gem to Rubygems
152
155
  Feel free to add your name and link here.
153
156
 
154
157
  [Keolo Keagy](http://github.com/keolo) (Author)
155
- [Hiroshige Umino](https://github.com/yaotti)
156
- [Gabor Ratky](https://github.com/rgabo)
158
+ [Hiroshige Umino](https://github.com/yaotti)
159
+ [Gabor Ratky](https://github.com/rgabo)
157
160
  [Bill DeRusha](https://github.com/bderusha)
158
161
  [Jason Logsdon](https://github.com/jasonlogsdon)
159
162
  [James R](https://github.com/Cev)
@@ -10,6 +10,6 @@ module Mixpanel
10
10
  # Return metrics from Mixpanel Data API
11
11
  class Client
12
12
  # Mixpanel::Client library version
13
- VERSION = '3.1.1'
13
+ VERSION = '3.1.2'
14
14
  end
15
15
  end
@@ -8,7 +8,7 @@ describe Mixpanel::Client do
8
8
 
9
9
  context 'when initializing a new Mixpanel::Client' do
10
10
  it 'should not raise an exception if a hash is given' do
11
- Mixpanel::Client.new('api_key' => 'test_key', 'api_secret' => 'test_secret').should_not raise_error(ArgumentError)
11
+ Mixpanel::Client.new('api_key' => 'test_key', 'api_secret' => 'test_secret').should_not{raise_error}
12
12
  end
13
13
 
14
14
  it 'should set a parallel option as false by default' do
@@ -88,15 +88,15 @@ describe Mixpanel::Client do
88
88
  end
89
89
 
90
90
  describe '#hydra' do
91
- it 'should return a Typhoeus::Hydra object' do
92
- @parallel_client.hydra.should be_a Typhoeus::Hydra
93
- end
91
+ it 'should return a Typhoeus::Hydra object' do
92
+ @parallel_client.hydra.should be_a Typhoeus::Hydra
93
+ end
94
94
  end
95
95
 
96
96
  describe '#run_parallel_requests' do
97
97
  it 'should run queued requests' do
98
98
  # Stub Mixpanel request
99
- stub_request(:any, /^#{@uri}.*/).to_return(:body => '{"legend_size": 1, "data": {"series": ["2010-05-29","2010-05-30","2010-05-31"],
99
+ stub_request(:any, /^#{@uri}.*/).to_return(:body => '{"legend_size": 1, "data": {"series": ["2010-05-29","2010-05-30","2010-05-31"],
100
100
  "values": {
101
101
  "account-page": {"2010-05-30": 1},
102
102
  "splash features": {"2010-05-29": 6,
@@ -108,7 +108,7 @@ describe Mixpanel::Client do
108
108
  }')
109
109
 
110
110
 
111
- stub_request(:any, /^#{@uri}.*secondevent.*/).to_return(:body => '{"legend_size": 2, "data": {"series": ["2010-05-29","2010-05-30","2010-05-31"],
111
+ stub_request(:any, /^#{@uri}.*secondevent.*/).to_return(:body => '{"legend_size": 2, "data": {"series": ["2010-05-29","2010-05-30","2010-05-31"],
112
112
  "values": {
113
113
  "account-page": {"2010-05-30": 2},
114
114
  "splash features": {"2010-05-29": 8,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixpanel_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2013-08-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: typhoeus
16
- requirement: &70281989507260 !ruby/object:Gem::Requirement
16
+ requirement: &70317251021340 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.5.4
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70281989507260
24
+ version_requirements: *70317251021340
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &70281989506700 !ruby/object:Gem::Requirement
27
+ requirement: &70317251020820 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '1.2'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70281989506700
35
+ version_requirements: *70317251020820
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
- requirement: &70281989506160 !ruby/object:Gem::Requirement
38
+ requirement: &70317251020360 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.9.2.2
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70281989506160
46
+ version_requirements: *70317251020360
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rdoc
49
- requirement: &70281989505660 !ruby/object:Gem::Requirement
49
+ requirement: &70317251019820 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '3.11'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70281989505660
57
+ version_requirements: *70317251019820
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rspec
60
- requirement: &70281989505140 !ruby/object:Gem::Requirement
60
+ requirement: &70317251019120 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 2.5.0
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70281989505140
68
+ version_requirements: *70317251019120
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: webmock
71
- requirement: &70281989504660 !ruby/object:Gem::Requirement
71
+ requirement: &70317251018440 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,17 +76,11 @@ dependencies:
76
76
  version: 1.9.0
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70281989504660
79
+ version_requirements: *70317251018440
80
80
  description: Simple ruby client interface to the Mixpanel API.
81
81
  email:
82
82
  - keolo@dreampointmedia.com
83
- executables:
84
- - autospec
85
- - htmldiff
86
- - ldiff
87
- - rake
88
- - ri
89
- - rspec
83
+ executables: []
90
84
  extensions: []
91
85
  extra_rdoc_files: []
92
86
  files:
@@ -97,12 +91,6 @@ files:
97
91
  - LICENSE
98
92
  - README.md
99
93
  - Rakefile
100
- - bin/autospec
101
- - bin/htmldiff
102
- - bin/ldiff
103
- - bin/rake
104
- - bin/ri
105
- - bin/rspec
106
94
  - config/mixpanel.template.yml
107
95
  - lib/mixpanel/client.rb
108
96
  - lib/mixpanel/exceptions.rb
data/bin/autospec DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'autospec' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('rspec-core', 'autospec')
data/bin/htmldiff DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'htmldiff' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('diff-lcs', 'htmldiff')
data/bin/ldiff DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'ldiff' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('diff-lcs', 'ldiff')
data/bin/rake DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'rake' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('rake', 'rake')
data/bin/ri DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'ri' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('rdoc', 'ri')
data/bin/rspec DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'rspec' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('rspec-core', 'rspec')