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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e480ce2b302b1c4176b0d7af6860fdcadab0d18c
4
- data.tar.gz: 9e6563894e8ca2c84e6e1812e251d3ad4c792bcd
3
+ metadata.gz: ea225965754dd52560665211c578bd3793bde5e2
4
+ data.tar.gz: 167256828b0989a4543a9c2ad8f6400dab0c565a
5
5
  SHA512:
6
- metadata.gz: be393227858df11b2ef2f8a1b87326747e13285d318d9fc627ebd8449e816ec80788a19ca70c576599b6be201cfddb45617572d773dc2fa2c7da4b92d8f1ea26
7
- data.tar.gz: 33fa125a869b6969587a0f5e32c0e09b665f98b1f8e3ea7342c3d1d11e1f7ce3c5361edd8e2db5a919060325e8464e0c727bceac74348b492eb8e27d30613380
6
+ metadata.gz: 272b9dab9b16c0cb8d6c9aa6e4a1caf40bff0e4e807619c3f884b814bbd0cf926d6cd6416a1dd337299b63c8ee99813649022f07a37d6347b75a60a0a98e3201
7
+ data.tar.gz: 1df6f05bb56a255fcc463b7bfe4420fc15e2c32bc38bb389d6ecdbd48f753cbf9a963d9c644e92121e8b36e6b4d4e2fd6abe3abbafff1ae675fece9f87f9cbef
@@ -2,15 +2,14 @@ language: ruby
2
2
  bundler_args: --without development
3
3
 
4
4
  rvm:
5
- - 1.9.3
6
- - 2.0.0
7
- - 2.2.2
8
- - 2.4.0
5
+ - 2.1.10
6
+ - 2.2.7
7
+ - 2.4.1
9
8
 
10
9
  env:
11
- - PATTERN=keen
12
- #- PATTERN=integration KEEN_MASTER_KEY=f806128f31c349fda124b62d1f4cf4b2 KEEN_WRITE_KEY=f806128f31c349fda124b62d1f4cf4b2 KEEN_READ_KEY=f806128f31c349fda124b62d1f4cf4b2 KEEN_PROJECT_ID=50e5ffa6897a2c319b000000
13
- - PATTERN=synchrony
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
 
@@ -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.3"
16
- s.add_dependency "addressable", "~> 2.3.5"
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
- unless RUBY_VERSION.start_with? '1.8'
23
- s.add_development_dependency 'guard', '~> 2.14'
24
- s.add_development_dependency 'guard-rspec', '~> 4.7'
25
-
26
- # guard cross-platform listener trick
27
- s.add_development_dependency 'rb-inotify', '~> 0.9'
28
- s.add_development_dependency 'rb-fsevent', '~> 0.9'
29
- s.add_development_dependency 'rb-fchange', '~> 0.0.6'
30
-
31
- # guard notifications
32
- s.add_development_dependency 'ruby_gntp', '~> 0.3'
33
-
34
- # fix guard prompt
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")
@@ -103,9 +103,9 @@ module Keen
103
103
  end
104
104
 
105
105
  def api_event_collection_resource_path(event_collection)
106
- encoded_collection_name = Addressable::URI.escape(event_collection.to_s)
107
- encoded_collection_name.gsub! '/', '%2F'
108
- "/#{api_version}/projects/#{project_id}/events/#{encoded_collection_name}"
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)
@@ -1,3 +1,3 @@
1
1
  module Keen
2
- VERSION = "0.9.10"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -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.should == 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.9.10
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-04 00:00:00.000000000 Z
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.3'
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.3'
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.3.5
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.3.5
41
+ version: '2.5'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: guard
44
44
  requirement: !ruby/object:Gem::Requirement