keen 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/keen.gemspec +2 -2
- data/lib/keen/async/storage/base_storage_handler.rb +1 -1
- data/lib/keen/async/worker.rb +3 -0
- data/lib/keen/client.rb +5 -1
- metadata +4 -4
data/VERSION.yml
CHANGED
data/keen.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{keen}
|
8
|
-
s.version = "0.1.
|
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-
|
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 = [
|
data/lib/keen/async/worker.rb
CHANGED
data/lib/keen/client.rb
CHANGED
@@ -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:
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
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-
|
18
|
+
date: 2012-06-22 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|