google_distance_matrix 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rbenv-version +1 -1
- data/.travis.yml +1 -0
- data/CHANGELOG.md +5 -0
- data/google_distance_matrix.gemspec +4 -4
- data/lib/google_distance_matrix/log_subscriber.rb +4 -5
- data/lib/google_distance_matrix/version.rb +1 -1
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4c5c17b6616af54d419e2b0f6f85523d8a4ebe1
|
4
|
+
data.tar.gz: f18ea665fad497fb1fa28d2c921d30ef5694fe1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5910a57ea3553961ea64002ed443074fe0c4c78fb1fe456da6f166f10afc826eb0fefde78feb78c5bbf93c2c5a5ab19785fb9714d540d74c605141ebc6477eb
|
7
|
+
data.tar.gz: 9addf61add0c61ccb6122e1d29d54c749dd04a89b7e3e118492d8c906f36c5991e9a1d56149f30fc8616f647a5311b08301eb5e1690c33049f56cc3e80899e4a
|
data/.rbenv-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.5
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
## v.0.1.2
|
2
|
+
* Allowed for ActiveSupport and ActiveModel up 4.2.x.
|
3
|
+
* Fixed 'ArgumentError: wrong number of arguments (2 for 0..1)' when gem tried to log event to
|
4
|
+
log event via log subscriber with Rails 4.2.
|
5
|
+
|
1
6
|
## v.0.1.1
|
2
7
|
* Allowed for ActiveSupport and ActiveModel up until 4.2. (by mask8)
|
3
8
|
|
@@ -18,12 +18,12 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency "activesupport", [">= 3.2.13", "
|
22
|
-
spec.add_dependency "activemodel", [">= 3.2.13", "
|
23
|
-
spec.add_dependency "google_business_api_url_signer", "~> 0.1.
|
21
|
+
spec.add_dependency "activesupport", [">= 3.2.13", "~> 4.2.0"]
|
22
|
+
spec.add_dependency "activemodel", [">= 3.2.13", "~> 4.2.0"]
|
23
|
+
spec.add_dependency "google_business_api_url_signer", "~> 0.1.2"
|
24
24
|
|
25
25
|
spec.add_development_dependency "bundler"
|
26
|
-
spec.add_development_dependency "rspec", "~> 3.
|
26
|
+
spec.add_development_dependency "rspec", "~> 3.1.0"
|
27
27
|
spec.add_development_dependency "shoulda-matchers", "~> 2.6.2"
|
28
28
|
spec.add_development_dependency "webmock", "~> 1.18.0"
|
29
29
|
spec.add_development_dependency "rake"
|
@@ -1,14 +1,13 @@
|
|
1
1
|
module GoogleDistanceMatrix
|
2
2
|
class LogSubscriber < ActiveSupport::LogSubscriber
|
3
|
-
def self.logger
|
4
|
-
GoogleDistanceMatrix.logger
|
5
|
-
end
|
6
|
-
|
7
3
|
def client_request_matrix_data(event)
|
8
4
|
logger.info "(#{event.duration}ms) (elements: #{event.payload[:elements]}) GET #{event.payload[:url]}", tag: :client
|
9
5
|
end
|
6
|
+
|
7
|
+
def logger
|
8
|
+
GoogleDistanceMatrix.logger
|
9
|
+
end
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
13
13
|
GoogleDistanceMatrix::LogSubscriber.attach_to "google_distance_matrix"
|
14
|
-
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google_distance_matrix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thorbjørn Hermansen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -17,9 +17,9 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 3.2.13
|
20
|
-
- - "
|
20
|
+
- - "~>"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: 4.2.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,9 +27,9 @@ dependencies:
|
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: 3.2.13
|
30
|
-
- - "
|
30
|
+
- - "~>"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: 4.2.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: activemodel
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -37,9 +37,9 @@ dependencies:
|
|
37
37
|
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: 3.2.13
|
40
|
-
- - "
|
40
|
+
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
42
|
+
version: 4.2.0
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -47,23 +47,23 @@ dependencies:
|
|
47
47
|
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: 3.2.13
|
50
|
-
- - "
|
50
|
+
- - "~>"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version:
|
52
|
+
version: 4.2.0
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: google_business_api_url_signer
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
57
|
- - "~>"
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version: 0.1.
|
59
|
+
version: 0.1.2
|
60
60
|
type: :runtime
|
61
61
|
prerelease: false
|
62
62
|
version_requirements: !ruby/object:Gem::Requirement
|
63
63
|
requirements:
|
64
64
|
- - "~>"
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: 0.1.
|
66
|
+
version: 0.1.2
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: bundler
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,14 +84,14 @@ dependencies:
|
|
84
84
|
requirements:
|
85
85
|
- - "~>"
|
86
86
|
- !ruby/object:Gem::Version
|
87
|
-
version: 3.
|
87
|
+
version: 3.1.0
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
90
|
version_requirements: !ruby/object:Gem::Requirement
|
91
91
|
requirements:
|
92
92
|
- - "~>"
|
93
93
|
- !ruby/object:Gem::Version
|
94
|
-
version: 3.
|
94
|
+
version: 3.1.0
|
95
95
|
- !ruby/object:Gem::Dependency
|
96
96
|
name: shoulda-matchers
|
97
97
|
requirement: !ruby/object:Gem::Requirement
|