keen 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :minor: 1
3
3
  :build:
4
- :patch: 11
4
+ :patch: 12
5
5
  :major: 0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{keen}
8
- s.version = "0.1.11"
8
+ s.version = "0.1.12"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["dorkitude"]
12
- s.date = %q{2012-06-20}
12
+ s.date = %q{2012-06-22}
13
13
  s.description = %q{See the github repo or examples.rb for usage information.}
14
14
  s.email = %q{kyle@keen.io}
15
15
  s.extra_rdoc_files = [
@@ -7,7 +7,7 @@ module Keen
7
7
  class BaseStorageHandler
8
8
 
9
9
  def initialize(client)
10
- @logging = client.options[:logging]
10
+ @logging = client.logging
11
11
  @client = client
12
12
  end
13
13
 
@@ -48,6 +48,9 @@ module Keen
48
48
  responses.push @client.send_batch(events)
49
49
  end
50
50
 
51
+ if @client.logging
52
+ puts responses
53
+ end
51
54
 
52
55
  responses
53
56
 
@@ -9,7 +9,7 @@ module Keen
9
9
 
10
10
  class Client
11
11
 
12
- attr_accessor :storage_handler, :project_id, :auth_token, :options
12
+ attr_accessor :storage_handler, :project_id, :auth_token, :options, :logging
13
13
 
14
14
  def base_url
15
15
  if @options[:base_url]
@@ -149,6 +149,10 @@ module Keen
149
149
 
150
150
  resp = http.request(request)
151
151
 
152
+ if @logging
153
+ puts resp.body
154
+ end
155
+
152
156
  return JSON.parse resp.body
153
157
 
154
158
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keen
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 11
10
- version: 0.1.11
9
+ - 12
10
+ version: 0.1.12
11
11
  platform: ruby
12
12
  authors:
13
13
  - dorkitude
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-06-20 00:00:00 -07:00
18
+ date: 2012-06-22 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency