google_distance_matrix 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,13 @@
1
+ rvm:
2
+ - 1.9.3
3
+ - 2.0.0
4
+ - 2.1.0
5
+ - 2.1.2
6
+ - ruby-head
7
+ - jruby-19mode
8
+ - jruby
9
+ - jruby-head
10
+ matrix:
11
+ allow_failures:
12
+ - rvm: jruby-head
13
+ - rvm: ruby-head
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## v.0.0.3
2
+ * Bumped version of google_business_api_url_signer to get Ruby 2 support.
3
+
1
4
  ## v.0.0.2
2
5
 
3
6
  * Renamed RequestError to ServerError.
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # GoogleDistanceMatrix
2
2
 
3
+ [![Build Status](https://travis-ci.org/Skalar/google_distance_matrix.svg?branch=master)](https://travis-ci.org/Skalar/google_distance_matrix)
4
+
3
5
  Ruby client for The Google Distance Matrix API.
4
6
 
5
7
  This lib makes Google's distance matrix API easy to work with,
@@ -105,7 +107,7 @@ Or install it yourself as:
105
107
  ### Request cache
106
108
 
107
109
  Given Google's limit to the service you may have the need to cache requests. This is done by simply
108
- using URL as cache keys. Cache we'll accept should provide a default ActiveSupport::Chache::Store interface.
110
+ using URL as cache keys. Cache we'll accept should provide a default ActiveSupport::Cache::Store interface.
109
111
 
110
112
  GoogleDistanceMatrix.default_configuration do |config|
111
113
  config.cache = ActiveSupport::Cache.lookup_store :your_store, {
data/Rakefile CHANGED
@@ -1 +1,9 @@
1
1
  require "bundler/gem_tasks"
2
+
3
+ require "rspec/core/rake_task"
4
+ RSpec::Core::RakeTask.new(:spec) do |t|
5
+ t.rspec_opts = ["-c", "-f progress", "-r ./spec/spec_helper.rb"]
6
+ t.pattern = 'spec/**/*_spec.rb'
7
+ end
8
+
9
+ task default: :spec
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_dependency "activesupport", "~> 3.2.13"
22
22
  spec.add_dependency "activemodel", "~> 3.2.13"
23
- spec.add_dependency "google_business_api_url_signer", "~> 0.0.1"
23
+ spec.add_dependency "google_business_api_url_signer", "~> 0.0.2"
24
24
 
25
25
  spec.add_development_dependency "bundler", "~> 1.3"
26
26
  spec.add_development_dependency "rspec", "~> 2.13"
@@ -1,3 +1,3 @@
1
1
  module GoogleDistanceMatrix
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -88,7 +88,7 @@ describe GoogleDistanceMatrix::UrlBuilder do
88
88
  before do
89
89
  matrix.configure do |config|
90
90
  config.google_business_api_client_id = "123"
91
- config.google_business_api_private_key = "secret"
91
+ config.google_business_api_private_key = "c2VjcmV0"
92
92
  end
93
93
  end
94
94
 
@@ -97,7 +97,7 @@ describe GoogleDistanceMatrix::UrlBuilder do
97
97
  end
98
98
 
99
99
  it "has signature" do
100
- expect(subject.url).to include "signature=gskXXJxOmPDXE1jAwafNGM2CVTI"
100
+ expect(subject.url).to include "signature=R6dKSHc7EZ7uzmpXKngJCX9i2_E="
101
101
  end
102
102
  end
103
103
  end
metadata CHANGED
@@ -2,25 +2,25 @@
2
2
  name: google_distance_matrix
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Thorbjørn Hermansen
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-12 00:00:00.000000000 Z
12
+ date: 2014-08-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
+ prerelease: false
16
+ name: activesupport
17
+ type: :runtime
15
18
  version_requirements: !ruby/object:Gem::Requirement
16
19
  requirements:
17
20
  - - ~>
18
21
  - !ruby/object:Gem::Version
19
22
  version: 3.2.13
20
23
  none: false
21
- name: activesupport
22
- type: :runtime
23
- prerelease: false
24
24
  requirement: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - ~>
@@ -28,15 +28,15 @@ dependencies:
28
28
  version: 3.2.13
29
29
  none: false
30
30
  - !ruby/object:Gem::Dependency
31
+ prerelease: false
32
+ name: activemodel
33
+ type: :runtime
31
34
  version_requirements: !ruby/object:Gem::Requirement
32
35
  requirements:
33
36
  - - ~>
34
37
  - !ruby/object:Gem::Version
35
38
  version: 3.2.13
36
39
  none: false
37
- name: activemodel
38
- type: :runtime
39
- prerelease: false
40
40
  requirement: !ruby/object:Gem::Requirement
41
41
  requirements:
42
42
  - - ~>
@@ -44,31 +44,31 @@ dependencies:
44
44
  version: 3.2.13
45
45
  none: false
46
46
  - !ruby/object:Gem::Dependency
47
+ prerelease: false
48
+ name: google_business_api_url_signer
49
+ type: :runtime
47
50
  version_requirements: !ruby/object:Gem::Requirement
48
51
  requirements:
49
52
  - - ~>
50
53
  - !ruby/object:Gem::Version
51
- version: 0.0.1
54
+ version: 0.0.2
52
55
  none: false
53
- name: google_business_api_url_signer
54
- type: :runtime
55
- prerelease: false
56
56
  requirement: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - ~>
59
59
  - !ruby/object:Gem::Version
60
- version: 0.0.1
60
+ version: 0.0.2
61
61
  none: false
62
62
  - !ruby/object:Gem::Dependency
63
+ prerelease: false
64
+ name: bundler
65
+ type: :development
63
66
  version_requirements: !ruby/object:Gem::Requirement
64
67
  requirements:
65
68
  - - ~>
66
69
  - !ruby/object:Gem::Version
67
70
  version: '1.3'
68
71
  none: false
69
- name: bundler
70
- type: :development
71
- prerelease: false
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - ~>
@@ -76,15 +76,15 @@ dependencies:
76
76
  version: '1.3'
77
77
  none: false
78
78
  - !ruby/object:Gem::Dependency
79
+ prerelease: false
80
+ name: rspec
81
+ type: :development
79
82
  version_requirements: !ruby/object:Gem::Requirement
80
83
  requirements:
81
84
  - - ~>
82
85
  - !ruby/object:Gem::Version
83
86
  version: '2.13'
84
87
  none: false
85
- name: rspec
86
- type: :development
87
- prerelease: false
88
88
  requirement: !ruby/object:Gem::Requirement
89
89
  requirements:
90
90
  - - ~>
@@ -92,15 +92,15 @@ dependencies:
92
92
  version: '2.13'
93
93
  none: false
94
94
  - !ruby/object:Gem::Dependency
95
+ prerelease: false
96
+ name: shoulda-matchers
97
+ type: :development
95
98
  version_requirements: !ruby/object:Gem::Requirement
96
99
  requirements:
97
100
  - - ~>
98
101
  - !ruby/object:Gem::Version
99
102
  version: 2.0.0
100
103
  none: false
101
- name: shoulda-matchers
102
- type: :development
103
- prerelease: false
104
104
  requirement: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - ~>
@@ -108,15 +108,15 @@ dependencies:
108
108
  version: 2.0.0
109
109
  none: false
110
110
  - !ruby/object:Gem::Dependency
111
+ prerelease: false
112
+ name: webmock
113
+ type: :development
111
114
  version_requirements: !ruby/object:Gem::Requirement
112
115
  requirements:
113
116
  - - ~>
114
117
  - !ruby/object:Gem::Version
115
118
  version: '1.11'
116
119
  none: false
117
- name: webmock
118
- type: :development
119
- prerelease: false
120
120
  requirement: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - ~>
@@ -124,15 +124,15 @@ dependencies:
124
124
  version: '1.11'
125
125
  none: false
126
126
  - !ruby/object:Gem::Dependency
127
+ prerelease: false
128
+ name: rake
129
+ type: :development
127
130
  version_requirements: !ruby/object:Gem::Requirement
128
131
  requirements:
129
132
  - - ! '>='
130
133
  - !ruby/object:Gem::Version
131
134
  version: '0'
132
135
  none: false
133
- name: rake
134
- type: :development
135
- prerelease: false
136
136
  requirement: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - - ! '>='
@@ -148,6 +148,7 @@ extra_rdoc_files: []
148
148
  files:
149
149
  - .gitignore
150
150
  - .rbenv-version
151
+ - .travis.yml
151
152
  - CHANGELOG.md
152
153
  - Gemfile
153
154
  - LICENSE.txt
@@ -193,12 +194,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
193
194
  requirements:
194
195
  - - ! '>='
195
196
  - !ruby/object:Gem::Version
197
+ segments:
198
+ - 0
199
+ hash: 4095186925905366277
196
200
  version: '0'
197
201
  none: false
198
202
  required_rubygems_version: !ruby/object:Gem::Requirement
199
203
  requirements:
200
204
  - - ! '>='
201
205
  - !ruby/object:Gem::Version
206
+ segments:
207
+ - 0
208
+ hash: 4095186925905366277
202
209
  version: '0'
203
210
  none: false
204
211
  requirements: []