keen 0.9.10 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -7
- data/README.md +4 -2
- data/keen.gemspec +15 -24
- data/lib/keen/client.rb +3 -3
- data/lib/keen/version.rb +1 -1
- data/spec/keen/scoped_key_old_spec.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea225965754dd52560665211c578bd3793bde5e2
|
4
|
+
data.tar.gz: 167256828b0989a4543a9c2ad8f6400dab0c565a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 272b9dab9b16c0cb8d6c9aa6e4a1caf40bff0e4e807619c3f884b814bbd0cf926d6cd6416a1dd337299b63c8ee99813649022f07a37d6347b75a60a0a98e3201
|
7
|
+
data.tar.gz: 1df6f05bb56a255fcc463b7bfe4420fc15e2c32bc38bb389d6ecdbd48f753cbf9a963d9c644e92121e8b36e6b4d4e2fd6abe3abbafff1ae675fece9f87f9cbef
|
data/.travis.yml
CHANGED
@@ -2,15 +2,14 @@ language: ruby
|
|
2
2
|
bundler_args: --without development
|
3
3
|
|
4
4
|
rvm:
|
5
|
-
- 1.
|
6
|
-
- 2.
|
7
|
-
- 2.
|
8
|
-
- 2.4.0
|
5
|
+
- 2.1.10
|
6
|
+
- 2.2.7
|
7
|
+
- 2.4.1
|
9
8
|
|
10
9
|
env:
|
11
|
-
|
12
|
-
|
13
|
-
|
10
|
+
matrix:
|
11
|
+
- PATTERN=keen
|
12
|
+
- PATTERN=synchrony
|
14
13
|
|
15
14
|
before_install:
|
16
15
|
- gem update bundler
|
data/README.md
CHANGED
@@ -70,8 +70,6 @@ Publishing events shouldn't slow your application down or make users wait longer
|
|
70
70
|
|
71
71
|
The Keen IO API is fast, but any synchronous network call you make will negatively impact response times. For this reason, we recommend you use the `publish_async` method to send events when latency is a concern. Alternatively, you can drop events into a background queue e.g. Delayed Jobs and publish synchronously from there.
|
72
72
|
|
73
|
-
To compare asychronous vs. synchronous performance, check out the [keen-gem-example](http://keen-gem-example.herokuapp.com/) app.
|
74
|
-
|
75
73
|
To publish asynchronously, first add
|
76
74
|
[em-http-request](https://github.com/igrigorik/em-http-request) to your Gemfile. Make sure it's version 1.0 or above.
|
77
75
|
|
@@ -419,6 +417,10 @@ If you want some bot protection, check out the [Voight-Kampff](https://github.co
|
|
419
417
|
|
420
418
|
### Changelog
|
421
419
|
|
420
|
+
##### 1.0.0
|
421
|
+
+ Remove support for ruby 1.9.3
|
422
|
+
+ Update a few dependencies
|
423
|
+
|
422
424
|
##### 0.9.10
|
423
425
|
+ Add ability to set the `open_time` setting for the http client.
|
424
426
|
|
data/keen.gemspec
CHANGED
@@ -12,34 +12,25 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.description = "Send events and build analytics features into your Ruby applications."
|
13
13
|
s.license = "MIT"
|
14
14
|
|
15
|
-
s.add_dependency "multi_json", "~> 1.
|
16
|
-
s.add_dependency "addressable", "~> 2.
|
17
|
-
s.add_dependency "jruby-openssl" if defined?(JRUBY_VERSION)
|
15
|
+
s.add_dependency "multi_json", "~> 1.12"
|
16
|
+
s.add_dependency "addressable", "~> 2.5"
|
18
17
|
|
19
18
|
s.add_dependency 'rubysl', '~> 2.0' if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
|
20
19
|
|
21
20
|
# guard
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
s.add_development_dependency 'rb-readline', '~> 0.5' # or compile ruby w/ readline
|
36
|
-
end
|
37
|
-
|
38
|
-
# debuggers
|
39
|
-
if /\Aruby/ === RUBY_DESCRIPTION
|
40
|
-
s.add_development_dependency 'ruby-debug' if RUBY_VERSION.start_with? '1.8'
|
41
|
-
s.add_development_dependency 'debugger' if RUBY_VERSION.start_with? '1.9'
|
42
|
-
end
|
21
|
+
s.add_development_dependency 'guard', '~> 2.14'
|
22
|
+
s.add_development_dependency 'guard-rspec', '~> 4.7'
|
23
|
+
|
24
|
+
# guard cross-platform listener trick
|
25
|
+
s.add_development_dependency 'rb-inotify', '~> 0.9'
|
26
|
+
s.add_development_dependency 'rb-fsevent', '~> 0.9'
|
27
|
+
s.add_development_dependency 'rb-fchange', '~> 0.0.6'
|
28
|
+
|
29
|
+
# guard notifications
|
30
|
+
s.add_development_dependency 'ruby_gntp', '~> 0.3'
|
31
|
+
|
32
|
+
# fix guard prompt
|
33
|
+
s.add_development_dependency 'rb-readline', '~> 0.5' # or compile ruby w/ readline
|
43
34
|
|
44
35
|
s.files = `git ls-files`.split("\n")
|
45
36
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
data/lib/keen/client.rb
CHANGED
@@ -103,9 +103,9 @@ module Keen
|
|
103
103
|
end
|
104
104
|
|
105
105
|
def api_event_collection_resource_path(event_collection)
|
106
|
-
|
107
|
-
|
108
|
-
|
106
|
+
encoded_collection_name = Addressable::URI.encode_component(event_collection.to_s)
|
107
|
+
encoded_collection_name.gsub! '/', '%2F'
|
108
|
+
"/#{api_version}/projects/#{project_id}/events/#{encoded_collection_name}"
|
109
109
|
end
|
110
110
|
|
111
111
|
def preprocess_params(params)
|
data/lib/keen/version.rb
CHANGED
@@ -57,7 +57,7 @@ describe Keen::ScopedKey do
|
|
57
57
|
it "should properly encrypt with master keys that are 32 characters long" do
|
58
58
|
master_key = "\0" * 32
|
59
59
|
scoped_key = Keen::ScopedKey.new(master_key, data).encrypt!
|
60
|
-
Keen::ScopedKey.decrypt!(master_key, scoped_key).data.
|
60
|
+
expect(Keen::ScopedKey.decrypt!(master_key, scoped_key).data).to eq(data)
|
61
61
|
end
|
62
62
|
end
|
63
63
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: keen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Kleissner
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-05-
|
12
|
+
date: 2017-05-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|
@@ -17,28 +17,28 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '1.
|
20
|
+
version: '1.12'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '1.
|
27
|
+
version: '1.12'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: addressable
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 2.
|
34
|
+
version: '2.5'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 2.
|
41
|
+
version: '2.5'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: guard
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|