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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce73fc65acb52c904267c4af3e3faa3097cfc5f2
4
- data.tar.gz: d8a3da3eaa0be9baaf22d3d62cc9aff02463ce18
3
+ metadata.gz: d4c5c17b6616af54d419e2b0f6f85523d8a4ebe1
4
+ data.tar.gz: f18ea665fad497fb1fa28d2c921d30ef5694fe1a
5
5
  SHA512:
6
- metadata.gz: 02f17923aa9de03b3d455fafef30c38e18ed4dc4f37aa938f0a3cabe0fecd22944e7156d60d8679e57f545ac7ed45318abc698673fbd24c73b04b1c44fa67691
7
- data.tar.gz: defae239cb0f6a29f10aa853b965d2a840bf0b2f16dd5569d87bcc476513575db7631c7e0d0e87e4f8cfb456a663f566725690c199574fb36fa50046ad2efab9
6
+ metadata.gz: b5910a57ea3553961ea64002ed443074fe0c4c78fb1fe456da6f166f10afc826eb0fefde78feb78c5bbf93c2c5a5ab19785fb9714d540d74c605141ebc6477eb
7
+ data.tar.gz: 9addf61add0c61ccb6122e1d29d54c749dd04a89b7e3e118492d8c906f36c5991e9a1d56149f30fc8616f647a5311b08301eb5e1690c33049f56cc3e80899e4a
@@ -1 +1 @@
1
- 2.1.2
1
+ 2.1.5
@@ -3,6 +3,7 @@ rvm:
3
3
  - 2.0.0
4
4
  - 2.1.0
5
5
  - 2.1.2
6
+ - 2.1.5
6
7
  - ruby-head
7
8
  - jruby-19mode
8
9
  - jruby
@@ -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", "< 4.2"]
22
- spec.add_dependency "activemodel", [">= 3.2.13", "< 4.2"]
23
- spec.add_dependency "google_business_api_url_signer", "~> 0.1.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.0.0"
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
-
@@ -1,3 +1,3 @@
1
1
  module GoogleDistanceMatrix
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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: 2014-09-15 00:00:00.000000000 Z
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: '4.2'
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: '4.2'
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: '4.2'
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: '4.2'
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.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.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.0.0
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.0.0
94
+ version: 3.1.0
95
95
  - !ruby/object:Gem::Dependency
96
96
  name: shoulda-matchers
97
97
  requirement: !ruby/object:Gem::Requirement