ratis 3.3.7 → 3.4.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: 63bc8b3066b080ec3f2706b9cd8efed6aa3e3e86
4
- data.tar.gz: c5f42c32ff8c73e273837051041e12fabab12ebe
3
+ metadata.gz: fc760d75d735d5a85fee0a26d4574a9161028611
4
+ data.tar.gz: 03ca9d47a0fea473b9709d6ab73673dfd946968d
5
5
  SHA512:
6
- metadata.gz: 4639c70cb1ef9e3afda8c01156f30d36d5af366cefa037ac9baaccf69642dfb26a9f8c8295a14f0330260433604155bbe033ece07fb35ecea0612be909b1ec40
7
- data.tar.gz: 3284568935fce3919221bae7a30159126ffe76c2e5b490bde313df460627364ece0d7fb49de934383eb2dd59dd16c0a9c1adacf13fd7a5020f58c862b410f21c
6
+ metadata.gz: 55b885137bcbe1c5248d8e80eb4e5c9d25acde2c5ecfeb66748b147490cc15ba47bf6316c012967103b175804258c18edebe08427e7f3d5d39f8aad455891e6e
7
+ data.tar.gz: cb73eaeb031d2e3ec43f40bb56ce072e8400d40e08c5dc5d6638522b4cea70588894f6f24492f4126a2bfd58f384da8e7f270763f020bfd3d0a7053cb54fcc5d
data/.rvmrc CHANGED
@@ -1 +1 @@
1
- rvm use ruby-2.0.0-p0@ratis --create
1
+ rvm use ruby-2.0.0-p353@ratis --create
data/CHANGELOG CHANGED
@@ -41,4 +41,8 @@
41
41
  - fixes for failing tests
42
42
  - changed itinerary_spec to plantrip_spec
43
43
  - created new empty itinerary_spec as stub
44
- - changed walk_spec to walkstop_spec
44
+ - changed walk_spec to walkstop_spec
45
+
46
+ 3.3.8 (3/11/14)
47
+ - added location type ahead support
48
+ - added test spec for location type ahead support
@@ -1,31 +1,30 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ratis (3.3.6)
4
+ ratis (3.4.0)
5
5
  savon (< 2.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activesupport (3.2.16)
10
+ activesupport (3.2.17)
11
11
  i18n (~> 0.6, >= 0.6.4)
12
12
  multi_json (~> 1.0)
13
13
  addressable (2.3.5)
14
- akami (1.2.0)
14
+ akami (1.2.1)
15
15
  gyoku (>= 0.4.0)
16
- nokogiri (>= 1.4.0)
16
+ nokogiri
17
17
  builder (3.2.2)
18
+ byebug (2.7.0)
19
+ columnize (~> 0.3)
20
+ debugger-linecache (~> 1.2)
18
21
  chronic (0.10.2)
19
22
  columnize (0.3.6)
20
- crack (0.4.1)
21
- safe_yaml (~> 0.9.0)
22
- debugger (1.6.5)
23
- columnize (>= 0.3.1)
24
- debugger-linecache (~> 1.2.0)
25
- debugger-ruby_core_source (~> 1.3.1)
23
+ crack (0.4.2)
24
+ safe_yaml (~> 1.0.0)
26
25
  debugger-linecache (1.2.0)
27
- debugger-ruby_core_source (1.3.1)
28
26
  diff-lcs (1.2.5)
27
+ docile (1.1.3)
29
28
  gyoku (0.4.6)
30
29
  builder (>= 2.1.2)
31
30
  hashdiff (0.1.1)
@@ -33,7 +32,7 @@ GEM
33
32
  rack
34
33
  i18n (0.6.9)
35
34
  mini_portile (0.5.2)
36
- multi_json (1.8.2)
35
+ multi_json (1.9.0)
37
36
  nokogiri (1.6.1)
38
37
  mini_portile (~> 0.5.0)
39
38
  nori (1.1.5)
@@ -44,12 +43,12 @@ GEM
44
43
  rspec-core (~> 2.14.0)
45
44
  rspec-expectations (~> 2.14.0)
46
45
  rspec-mocks (~> 2.14.0)
47
- rspec-core (2.14.7)
48
- rspec-expectations (2.14.4)
46
+ rspec-core (2.14.8)
47
+ rspec-expectations (2.14.5)
49
48
  diff-lcs (>= 1.1.3, < 2.0)
50
49
  rspec-instafail (0.2.4)
51
- rspec-mocks (2.14.4)
52
- safe_yaml (0.9.7)
50
+ rspec-mocks (2.14.6)
51
+ safe_yaml (1.0.1)
53
52
  savon (1.2.0)
54
53
  akami (~> 1.2.0)
55
54
  builder (>= 2.1.2)
@@ -58,11 +57,16 @@ GEM
58
57
  nokogiri (>= 1.4.0)
59
58
  nori (~> 1.1.0)
60
59
  wasabi (~> 2.5.0)
60
+ simplecov (0.8.2)
61
+ docile (~> 1.1.0)
62
+ multi_json
63
+ simplecov-html (~> 0.8.0)
64
+ simplecov-html (0.8.0)
61
65
  vcr (2.8.0)
62
66
  wasabi (2.5.1)
63
67
  httpi (~> 1.0)
64
68
  nokogiri (>= 1.4.0)
65
- webmock (1.16.1)
69
+ webmock (1.17.4)
66
70
  addressable (>= 2.2.7)
67
71
  crack (>= 0.3.2)
68
72
 
@@ -71,15 +75,16 @@ PLATFORMS
71
75
 
72
76
  DEPENDENCIES
73
77
  activesupport (< 4.0)
74
- bundler (>= 1.0.0)
75
- chronic
76
- debugger
77
- hashdiff
78
- nokogiri (> 1.6.0)
79
- rake
78
+ bundler (~> 1.5)
79
+ byebug (~> 2.7)
80
+ chronic (~> 0.10)
81
+ hashdiff (~> 0.1)
82
+ nokogiri (~> 1.6)
83
+ rake (~> 10.1)
80
84
  ratis!
81
- redcarpet (~> 2.1.1)
82
- rspec (~> 2.14.0)
83
- rspec-instafail
84
- vcr
85
- webmock
85
+ redcarpet (~> 2.1)
86
+ rspec (~> 2.14)
87
+ rspec-instafail (~> 0.2)
88
+ simplecov (~> 0.8)
89
+ vcr (~> 2.8)
90
+ webmock (~> 1.17)
@@ -9,6 +9,8 @@ require 'ratis/itinerary'
9
9
  require 'ratis/landmark'
10
10
  require 'ratis/landmark_category'
11
11
  require 'ratis/location'
12
+ require 'ratis/location_type_ahead'
13
+ require 'ratis/location_type_ahead_item'
12
14
  require 'ratis/next_bus'
13
15
  require 'ratis/next_bus2'
14
16
  require 'ratis/pattern'
@@ -5,7 +5,7 @@ module Ratis
5
5
  def version
6
6
  @version ||= begin
7
7
 
8
- string = '3.3.7'
8
+ string = '3.4.0'
9
9
 
10
10
  def string.parts
11
11
  split('.').map { |p| p.to_i }
@@ -17,16 +17,16 @@ Gem::Specification.new do |s|
17
17
  s.add_dependency 'savon', '<2.0'
18
18
 
19
19
  s.add_development_dependency 'activesupport', '< 4.0'
20
- s.add_development_dependency 'bundler', '>= 1.0.0'
21
- s.add_development_dependency 'chronic'
22
- s.add_development_dependency 'hashdiff'
23
- s.add_development_dependency 'rake'
24
- s.add_development_dependency 'redcarpet', '~> 2.1.1'
25
- s.add_development_dependency 'rspec', '~> 2.14.0'
26
- s.add_development_dependency 'rspec-instafail'
27
- s.add_development_dependency 'debugger'
28
- s.add_development_dependency 'nokogiri', '> 1.6.0'
29
- # s.add_development_dependency 'simplecov'
30
- s.add_development_dependency 'vcr'
31
- s.add_development_dependency 'webmock'
20
+ s.add_development_dependency 'bundler', '~> 1.5'
21
+ s.add_development_dependency 'chronic', '~> 0.10'
22
+ s.add_development_dependency 'hashdiff', '~> 0.1'
23
+ s.add_development_dependency 'rake', '~> 10.1'
24
+ s.add_development_dependency 'redcarpet', '~> 2.1'
25
+ s.add_development_dependency 'rspec', '~> 2.14'
26
+ s.add_development_dependency 'rspec-instafail','~> 0.2'
27
+ s.add_development_dependency 'byebug', '~> 2.7'
28
+ s.add_development_dependency 'nokogiri', '~> 1.6'
29
+ s.add_development_dependency 'simplecov', '~> 0.8'
30
+ s.add_development_dependency 'vcr', '~> 2.8'
31
+ s.add_development_dependency 'webmock', '~> 1.17'
32
32
  end
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe Config do
3
+ describe Ratis::Config do
4
4
 
5
5
  context 'with an endpoint and namespace set' do
6
6
 
@@ -3,12 +3,26 @@ require 'spec_helper'
3
3
  describe Ratis::Landmark do
4
4
 
5
5
  before do
6
- # @landmarks = Ratis::Landmark.where :type => :all
6
+ Ratis.reset
7
+ Ratis.configure do |config|
8
+ config.endpoint = 'http://soap.valleymetro.org/cgi-bin-soap-web-262/soap.cgi'
9
+ config.namespace = 'PX_WEB'
10
+ end
7
11
  end
8
12
 
9
- it 'only makes one request' do
10
- pending
11
- an_atis_request.should have_been_made.times 1
13
+ describe "#where" do
14
+ before do
15
+ @conditions = {:type => 'all',
16
+ :zipcode => '85224'}
17
+ end
18
+
19
+ it 'only makes one request' do
20
+ pending 'Need method turned on in ATIS'
21
+
22
+ # false just to stop further processing of response
23
+ Ratis::Request.should_receive(:get).once.and_call_original
24
+ Ratis::Landmark.where(@conditions.dup)
25
+ end
12
26
  end
13
27
 
14
28
  it 'requests the correct SOAP action' do
@@ -1,8 +1,4 @@
1
- # require 'simplecov'
2
- # SimpleCov.start
3
-
4
- project_root = File.expand_path(File.dirname(__FILE__) + "/..")
5
-
1
+ require 'simplecov'
6
2
  require 'active_support/core_ext'
7
3
  require 'chronic'
8
4
  require 'hashdiff'
@@ -10,6 +6,13 @@ require 'ratis'
10
6
  require 'rspec'
11
7
  require 'vcr'
12
8
  require 'webmock/rspec'
9
+ require 'byebug'
10
+
11
+ I18n.enforce_available_locales = false
12
+
13
+ SimpleCov.start
14
+
15
+ project_root = File.expand_path(File.dirname(__FILE__) + "/..")
13
16
 
14
17
  require "#{project_root}/lib/ratis.rb"
15
18
  Dir[("#{project_root}/spec/support/**/*.rb")].each { |f| require f }
@@ -17,7 +20,6 @@ Dir[("#{project_root}/spec/support/**/*.rb")].each { |f| require f }
17
20
  RSpec.configure do |config|
18
21
  config.mock_with :rspec
19
22
  config.include RatisHelpers
20
- config.extend VCR::RSpec::Macros
21
23
  config.treat_symbols_as_metadata_keys_with_true_values = true
22
24
 
23
25
  # Run specs in random order to surface order dependencies. If you find an
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ratis
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.7
4
+ version: 3.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Burst Software
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-07 00:00:00.000000000 Z
11
+ date: 2014-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon
@@ -42,156 +42,170 @@ dependencies:
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: 1.0.0
47
+ version: '1.5'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 1.0.0
54
+ version: '1.5'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: chronic
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '0.10'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '0.10'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: hashdiff
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ~>
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '0.1'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ~>
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: '0.1'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ~>
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: '10.1'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ~>
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: '10.1'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: redcarpet
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ~>
102
102
  - !ruby/object:Gem::Version
103
- version: 2.1.1
103
+ version: '2.1'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - ~>
109
109
  - !ruby/object:Gem::Version
110
- version: 2.1.1
110
+ version: '2.1'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rspec
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ~>
116
116
  - !ruby/object:Gem::Version
117
- version: 2.14.0
117
+ version: '2.14'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - ~>
123
123
  - !ruby/object:Gem::Version
124
- version: 2.14.0
124
+ version: '2.14'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rspec-instafail
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ~>
130
130
  - !ruby/object:Gem::Version
131
- version: '0'
131
+ version: '0.2'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ~>
137
137
  - !ruby/object:Gem::Version
138
- version: '0'
138
+ version: '0.2'
139
139
  - !ruby/object:Gem::Dependency
140
- name: debugger
140
+ name: byebug
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '>='
143
+ - - ~>
144
144
  - !ruby/object:Gem::Version
145
- version: '0'
145
+ version: '2.7'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '>='
150
+ - - ~>
151
151
  - !ruby/object:Gem::Version
152
- version: '0'
152
+ version: '2.7'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: nokogiri
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - '>'
157
+ - - ~>
158
158
  - !ruby/object:Gem::Version
159
- version: 1.6.0
159
+ version: '1.6'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - '>'
164
+ - - ~>
165
165
  - !ruby/object:Gem::Version
166
- version: 1.6.0
166
+ version: '1.6'
167
+ - !ruby/object:Gem::Dependency
168
+ name: simplecov
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ~>
172
+ - !ruby/object:Gem::Version
173
+ version: '0.8'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ~>
179
+ - !ruby/object:Gem::Version
180
+ version: '0.8'
167
181
  - !ruby/object:Gem::Dependency
168
182
  name: vcr
169
183
  requirement: !ruby/object:Gem::Requirement
170
184
  requirements:
171
- - - '>='
185
+ - - ~>
172
186
  - !ruby/object:Gem::Version
173
- version: '0'
187
+ version: '2.8'
174
188
  type: :development
175
189
  prerelease: false
176
190
  version_requirements: !ruby/object:Gem::Requirement
177
191
  requirements:
178
- - - '>='
192
+ - - ~>
179
193
  - !ruby/object:Gem::Version
180
- version: '0'
194
+ version: '2.8'
181
195
  - !ruby/object:Gem::Dependency
182
196
  name: webmock
183
197
  requirement: !ruby/object:Gem::Requirement
184
198
  requirements:
185
- - - '>='
199
+ - - ~>
186
200
  - !ruby/object:Gem::Version
187
- version: '0'
201
+ version: '1.17'
188
202
  type: :development
189
203
  prerelease: false
190
204
  version_requirements: !ruby/object:Gem::Requirement
191
205
  requirements:
192
- - - '>='
206
+ - - ~>
193
207
  - !ruby/object:Gem::Version
194
- version: '0'
208
+ version: '1.17'
195
209
  description:
196
210
  email: irish@burstdev.com
197
211
  executables: []
@@ -358,7 +372,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
358
372
  version: '0'
359
373
  requirements: []
360
374
  rubyforge_project:
361
- rubygems_version: 2.0.3
375
+ rubygems_version: 2.2.2
362
376
  signing_key:
363
377
  specification_version: 4
364
378
  summary: A Ruby wrapper around the ATIS SOAP Interface