mixpanel_client 4.1.0 → 4.1.1

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: 2064a32d2001e146ea1f47b5b9ac83744c683a60
4
- data.tar.gz: 3033df250915740f19205d9c2864773b61acfc65
3
+ metadata.gz: fe03a5d7befa1a3d7803ed07df9c2b0abfac7935
4
+ data.tar.gz: ba03449f6c2a43694a123585e9906876d7049814
5
5
  SHA512:
6
- metadata.gz: ab6d79cdf8270ad2a721c95d690cc28bfb83562fc1519752c4e70206132bcb69f770a0eab04e2c490949272c01c504d7076a7f0079d3e3a8eaa5a9e2240d3552
7
- data.tar.gz: 34ea6268f37da906c193476b089bfa810dd1cd1bbcdd7d4659abd8120efee99b1086fc83990f6422c2622412e518f13bc55162103daf8f847ea88fa3f5241d51
6
+ metadata.gz: d87f9705275248dd99d57a9557894e82246bd8bcc3ec4f4cb8eb9b1c74d5556a5b7b8792afaf87fca241bd7debd6483d61d32e90bbb611b89074f8a6fc59c8f4
7
+ data.tar.gz: 9a2be53360f968d82e660e9102a8c7baad35d100635e0aa2c5ec18b2659215eb2d424fd8a9c4f04e3a4f4e6b48854cf49e7a235bd7aa99263a00a29e9a965797
data/changelog.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### v4.1.1
2
+ * Add raw response
3
+
1
4
  ### v4.1.0
2
5
  * Drop support for config keys to be strings. Use symbols instead
3
6
  * Fixed some rubocop offences
@@ -65,7 +65,7 @@ module Mixpanel
65
65
  def make_normal_request(resource)
66
66
  response = URI.get(@uri)
67
67
 
68
- if %w(export import).include?(resource)
68
+ if %w(export import).include?(resource) && @format != 'raw'
69
69
  response = %Q([#{response.split("\n").join(',')}])
70
70
  end
71
71
 
@@ -34,7 +34,7 @@ module Mixpanel
34
34
  # @param [String] data either CSV or JSON formatted
35
35
  # @return [JSON, String] data
36
36
  def self.to_hash(data, format)
37
- if format == 'csv'
37
+ if format == 'csv' || format == 'raw'
38
38
  data
39
39
  else
40
40
  begin
@@ -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.0'
13
+ VERSION = '4.1.1'
14
14
  end
15
15
  end
data/readme.md CHANGED
@@ -121,20 +121,8 @@ Run rubocop and fix offences.
121
121
 
122
122
 
123
123
  ## Collaborators and Maintainers
124
- Feel free to add your name and link here.
125
-
126
- [Keolo Keagy](http://github.com/keolo) (Author)
127
- [Hiroshige Umino](https://github.com/yaotti)
128
- [Gabor Ratky](https://github.com/rgabo)
129
- [Bill DeRusha](https://github.com/bderusha)
130
- [Jason Logsdon](https://github.com/jasonlogsdon)
131
- [James R](https://github.com/Cev)
132
- [Mike Ferrier](http://github.com/mferrier)
133
- [Grzegorz Forysinski](http://github.com/railwaymen)
134
- [Nathan Chong](http://github.com/paramaw)
135
- [Paul McMahon](http://github.com/pwim)
136
- [Chad Etzel](http://github.com/jazzychad)
137
- [Kevin Burnett](http://github.com/burnettk)
124
+ [Contributors](https://github.com/keolo/mixpanel_client/graphs/contributors)
125
+
138
126
 
139
127
  ## Copyright
140
128
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixpanel_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keolo Keagy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-09 00:00:00.000000000 Z
11
+ date: 2014-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus