mixpanel_client 4.1.2 → 4.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66b9122cf4df7cee00f1163d70c01ef6dbf8e9cf
4
- data.tar.gz: 5a9f2fd41fc92fd431045e2df90565198267bcb9
3
+ metadata.gz: 16219b0342a1de3526173fec4cef7b177c7d3d90
4
+ data.tar.gz: d294629422b0281940850d1ae049d599f3d40bca
5
5
  SHA512:
6
- metadata.gz: 24a304c9e1a7ef58475919be09c2d53a70f5531df65ebc0407c1e4066f6b037400a0311600134fb6a5bd78d3e870ed0f1f42baad9e4a297cc7df45a44dcbaa36
7
- data.tar.gz: 87a627eb3480f9bcbb4da591aa03f50c49eda5d373ad126a6c557a0c99accf1a4edc307c28eca10b800faa6ba991238421b098ec01f33cd8b250907f3e1fdb68
6
+ metadata.gz: 54d1c6e37edcac2164bf8916c413e441dbf961fcb7f57ccb2e5a8deaf5f1937d2461f866e5ed38e6ada430a608ed3f3ceaed227a00bad3b86bad9ef77aeea216
7
+ data.tar.gz: a8c5fc45ecebb8ed674a99fd34c2aded7ae1af0764c4ed765139e3d039fde35b14d04346d014bbbb8aeefc432928ad83800655e94e063bdaba49c80940b8730f
@@ -1,3 +1,6 @@
1
+ ### v4.1.3
2
+ * Make request options optional. Closes #46.
3
+
1
4
  ### v4.1.2
2
5
  * Removes typhoeus version lock, fixes a "broken" test
3
6
 
@@ -91,7 +91,7 @@ module Mixpanel
91
91
  # @options [Hash] options variables used to make a specific request for
92
92
  # mixpanel data
93
93
  # @return [JSON, String] mixpanel response as a JSON object or CSV string
94
- def request_uri(resource, options)
94
+ def request_uri(resource, options = {} )
95
95
  @format = options[:format] || :json
96
96
  URI.mixpanel(resource, normalize_options(options))
97
97
  end
@@ -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 = '4.1.2'
13
+ VERSION = '4.1.3'
14
14
  end
15
15
  end
data/readme.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Mixpanel Data API Client
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/mixpanel_client.png)](http://badge.fury.io/rb/mixpanel_client)
3
+ [![Gem Version](https://badge.fury.io/rb/mixpanel_client.svg)](http://badge.fury.io/rb/mixpanel_client)
4
4
  [![Code Climate](https://codeclimate.com/github/keolo/mixpanel_client/badges/gpa.svg)](https://codeclimate.com/github/keolo/mixpanel_client)
5
5
 
6
6
  Ruby access to the [Mixpanel](http://mixpanel.com/) web analytics tool.
@@ -21,7 +21,7 @@ or if you use a Gemfile
21
21
  require 'mixpanel_client'
22
22
 
23
23
  client = Mixpanel::Client.new(
24
- api_key: 'changeme',
24
+ api_key: 'changeme',
25
25
  api_secret: 'changeme'
26
26
  )
27
27
 
@@ -68,7 +68,7 @@ You may also make requests in parallel by passing in the `parallel: true` option
68
68
  require 'mixpanel_client'
69
69
 
70
70
  client = Mixpanel::Client.new(
71
- api_key: 'changeme',
71
+ api_key: 'changeme',
72
72
  api_secret: 'changeme',
73
73
  parallel: true
74
74
  )
@@ -89,13 +89,13 @@ You may also make requests in parallel by passing in the `parallel: true` option
89
89
  )
90
90
 
91
91
  ...
92
-
92
+
93
93
  client.run_parallel_requests
94
-
94
+
95
95
  puts first_request.response.handled_response
96
96
  puts second_request.response.handled_response
97
- puts third_request.response.handled_response
98
-
97
+ puts third_request.response.handled_response
98
+
99
99
 
100
100
  ## Development
101
101
  List of rake tasks.
metadata CHANGED
@@ -1,153 +1,153 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixpanel_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.2
4
+ version: 4.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keolo Keagy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-01 00:00:00.000000000 Z
11
+ date: 2015-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.5.3
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.5.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: 10.1.1
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: 10.1.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rdoc
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: 4.1.1
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: 4.1.1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: 2.5.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: 2.5.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: webmock
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: 1.17.4
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: 1.17.4
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: pry
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: 0.9.12.6
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: 0.9.12.6
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: pry-byebug
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: 1.3.2
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: 1.3.2
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: pry-stack_explorer
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: 0.4.9
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: 0.4.9
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rubocop
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '>='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
145
  version: 0.19.0
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '>='
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: 0.19.0
153
153
  description: Simple ruby client interface to the Mixpanel Data API.
@@ -157,10 +157,10 @@ executables: []
157
157
  extensions: []
158
158
  extra_rdoc_files: []
159
159
  files:
160
- - .document
161
- - .gitignore
162
- - .rubocop.yml
163
- - .rvmrc
160
+ - ".document"
161
+ - ".gitignore"
162
+ - ".rubocop.yml"
163
+ - ".rvmrc"
164
164
  - Gemfile
165
165
  - Rakefile
166
166
  - changelog.md
@@ -191,17 +191,17 @@ require_paths:
191
191
  - lib
192
192
  required_ruby_version: !ruby/object:Gem::Requirement
193
193
  requirements:
194
- - - '>='
194
+ - - ">="
195
195
  - !ruby/object:Gem::Version
196
196
  version: '0'
197
197
  required_rubygems_version: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - '>='
199
+ - - ">="
200
200
  - !ruby/object:Gem::Version
201
201
  version: '0'
202
202
  requirements: []
203
203
  rubyforge_project: mixpanel_client
204
- rubygems_version: 2.2.2
204
+ rubygems_version: 2.4.8
205
205
  signing_key:
206
206
  specification_version: 4
207
207
  summary: Ruby Mixpanel API Client Library