active_shipping 0.1.4 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. data/CHANGELOG +2 -0
  2. data/README.markdown +0 -3
  3. data/lib/active_merchant/common.rb +14 -0
  4. data/lib/{active_shipping/lib → active_merchant/common}/connection.rb +2 -0
  5. data/lib/{active_shipping/lib → active_merchant/common}/country.rb +0 -0
  6. data/lib/active_merchant/common/error.rb +26 -0
  7. data/lib/active_merchant/common/post_data.rb +24 -0
  8. data/lib/{active_shipping/lib → active_merchant/common}/posts_data.rb +0 -0
  9. data/lib/{active_shipping/lib → active_merchant/common}/requires_parameters.rb +0 -0
  10. data/lib/{active_shipping/lib → active_merchant/common}/utils.rb +0 -0
  11. data/lib/{active_shipping/lib → active_merchant/common}/validateable.rb +0 -0
  12. data/lib/active_shipping.rb +10 -22
  13. data/lib/active_shipping/shipping/base.rb +2 -1
  14. data/lib/active_shipping/shipping/carrier.rb +0 -5
  15. data/lib/active_shipping/shipping/carriers.rb +2 -1
  16. data/lib/active_shipping/shipping/carriers/fedex.rb +7 -191
  17. data/lib/active_shipping/shipping/carriers/kunaki.rb +165 -0
  18. data/lib/active_shipping/shipping/carriers/ups.rb +2 -1
  19. data/lib/active_shipping/shipping/carriers/usps.rb +0 -85
  20. data/lib/active_shipping/shipping/location.rb +1 -4
  21. data/lib/active_shipping/shipping/response.rb +1 -4
  22. data/lib/active_shipping/version.rb +3 -0
  23. data/lib/vendor/quantified/lib/quantified.rb +5 -3
  24. metadata +68 -102
  25. data/.gitignore +0 -8
  26. data/Rakefile +0 -51
  27. data/VERSION +0 -1
  28. data/active_shipping.gemspec +0 -152
  29. data/init.rb +0 -1
  30. data/lib/active_shipping/lib/error.rb +0 -4
  31. data/lib/active_shipping/lib/post_data.rb +0 -22
  32. data/lib/active_shipping/shipping/contact.rb +0 -18
  33. data/lib/active_shipping/shipping/label.rb +0 -31
  34. data/lib/active_shipping/shipping/location_response.rb +0 -14
  35. data/lib/active_shipping/shipping/party.rb +0 -15
  36. data/lib/active_shipping/shipping/return_label_response.rb +0 -14
  37. data/lib/active_shipping/shipping/return_shipment.rb +0 -14
  38. data/lib/active_shipping/shipping/shipment.rb +0 -73
  39. data/test/fixtures.example.yml +0 -13
  40. data/test/fixtures/xml/fedex/ottawa_to_beverly_hills_rate_request.xml +0 -67
  41. data/test/fixtures/xml/fedex/ottawa_to_beverly_hills_rate_response.xml +0 -213
  42. data/test/fixtures/xml/fedex/tracking_request.xml +0 -27
  43. data/test/fixtures/xml/fedex/tracking_response.xml +0 -153
  44. data/test/fixtures/xml/shipwire/international_rates_response.xml +0 -17
  45. data/test/fixtures/xml/shipwire/invalid_credentials_response.xml +0 -4
  46. data/test/fixtures/xml/shipwire/new_carrier_rate_response.xml +0 -18
  47. data/test/fixtures/xml/shipwire/no_rates_response.xml +0 -7
  48. data/test/fixtures/xml/shipwire/rates_response.xml +0 -36
  49. data/test/fixtures/xml/ups/example_tracking_response.xml +0 -53
  50. data/test/fixtures/xml/ups/shipment_from_tiger_direct.xml +0 -222
  51. data/test/fixtures/xml/ups/test_real_home_as_residential_destination_response.xml +0 -1
  52. data/test/fixtures/xml/usps/beverly_hills_to_ottawa_book_rate_response.xml +0 -85
  53. data/test/fixtures/xml/usps/beverly_hills_to_ottawa_book_wii_rate_response.xml +0 -168
  54. data/test/fixtures/xml/usps/beverly_hills_to_ottawa_wii_rate_response.xml +0 -85
  55. data/test/fixtures/xml/usps/example_tracking_response.xml +0 -104
  56. data/test/fixtures/xml/usps/multi_tracking_example.xml +0 -105
  57. data/test/party_factory.rb +0 -29
  58. data/test/remote/fedex_test.rb +0 -160
  59. data/test/remote/shipwire_test.rb +0 -88
  60. data/test/remote/ups_test.rb +0 -207
  61. data/test/remote/usps_test.rb +0 -184
  62. data/test/shipment_factory.rb +0 -27
  63. data/test/test_helper.rb +0 -171
  64. data/test/unit/base_test.rb +0 -18
  65. data/test/unit/carriers/fedex_test.rb +0 -78
  66. data/test/unit/carriers/shipwire_test.rb +0 -130
  67. data/test/unit/carriers/ups_test.rb +0 -81
  68. data/test/unit/carriers/usps_test.rb +0 -206
  69. data/test/unit/location_test.rb +0 -46
  70. data/test/unit/package_test.rb +0 -65
  71. data/test/unit/party_test.rb +0 -20
  72. data/test/unit/response_test.rb +0 -10
  73. data/test/unit/shipment_test.rb +0 -43
@@ -175,6 +175,7 @@ module ActiveMerchant
175
175
  # * Shipment/DocumentsOnly element
176
176
 
177
177
  packages.each do |package|
178
+ debugger if package.nil?
178
179
 
179
180
 
180
181
  imperial = ['US','LR','MM'].include?(origin.country_code(:alpha2))
@@ -314,7 +315,7 @@ module ActiveMerchant
314
315
  time, date = time.to_s, date.to_s
315
316
  hour, minute, second = time.scan(/\d{2}/)
316
317
  year, month, day = date[0..3], date[4..5], date[6..7]
317
- Time.parse("#{date} {time} EST")
318
+ Time.utc(year, month, day, hour, minute, second)
318
319
  end
319
320
  location = location_from_address_node(activity.elements['ActivityLocation/Address'])
320
321
  ShipmentEvent.new(description, zoneless_time, location)
@@ -30,14 +30,12 @@ module ActiveMerchant
30
30
 
31
31
  API_CODES = {
32
32
  :us_rates => 'RateV3',
33
- :track => 'TrackV2',
34
33
  :world_rates => 'IntlRate',
35
34
  :test => 'CarrierPickupAvailability'
36
35
  }
37
36
  USE_SSL = {
38
37
  :us_rates => false,
39
38
  :world_rates => false,
40
- :track => false,
41
39
  :test => true
42
40
  }
43
41
  CONTAINERS = {
@@ -164,14 +162,6 @@ module ActiveMerchant
164
162
  end
165
163
  end
166
164
 
167
- def find_tracking_info(tracking_numbers, options={})
168
- options = @options.update(options)
169
- tracking_numbers = [tracking_numbers] unless tracking_numbers.is_a?(Array)
170
- tracking_request = build_tracking_request(tracking_numbers)
171
- response = commit(:track, save_request(tracking_request), (options[:test] || false))
172
- parse_tracking_response(response, options)
173
- end
174
-
175
165
  def valid_credentials?
176
166
  # Cannot test with find_rates because USPS doesn't allow that in test mode
177
167
  test_mode? ? canned_address_verification_works? : super
@@ -204,14 +194,6 @@ module ActiveMerchant
204
194
  xml.get_text('/CarrierPickupAvailabilityResponse/Address2').to_s == '1390 Market Street'
205
195
  end
206
196
 
207
- def build_tracking_request(tracking_numbers)
208
- request = XmlNode.new('TrackFieldRequest', :USERID => @options[:login]) do |tracking_request|
209
- tracking_numbers.each { |i| tracking_request << XmlNode.new('TrackID', :ID => i) }
210
- end
211
-
212
- URI.encode(save_request(request.to_s))
213
- end
214
-
215
197
  # options[:service] -- One of [:first_class, :priority, :express, :bpm, :parcel,
216
198
  # :media, :library, :all]. defaults to :all.
217
199
  # options[:container] -- One of [:envelope, :box]. defaults to neither (this field has
@@ -278,73 +260,6 @@ module ActiveMerchant
278
260
  URI.encode(save_request(request.to_s))
279
261
  end
280
262
 
281
- def parse_tracking_response(response, options = {})
282
- xml = REXML::Document.new(response)
283
- shipment_events = []
284
- if success = response_success?(xml)
285
- info = xml.root.get_elements('TrackInfo')
286
- unless info.empty?
287
- responses = info.map do |i|
288
- tracking_number = i.attributes['ID']
289
-
290
- track_details = i.get_elements('TrackDetail')
291
- unless track_details.empty?
292
- shipment_events = track_details.map do |track_detail|
293
- parse_shipment_event(track_detail)
294
- end
295
- end
296
-
297
- track_summary = i.get_elements('TrackSummary')[0]
298
- unless track_summary.nil?
299
- shipment_events ||= []
300
- shipment_events << parse_shipment_event(track_summary)
301
- end
302
- TrackingResponse.new(success, response_message(xml),
303
- Hash.from_xml(response).values.first,
304
- :xml => response,
305
- :request => last_request,
306
- :shipment_events => shipment_events,
307
- :tracking_number => tracking_number
308
- )
309
- end
310
- end
311
- end
312
- end
313
-
314
- def parse_shipment_event(track_detail)
315
- name = track_detail.get_text('Event').to_s
316
- if (time = track_detail.get_text('EventTime')) &&
317
- (date = track_detail.get_text('EventDate'))
318
-
319
- event_time = Time.parse("#{date} #{time} EST")
320
- end
321
-
322
- location = Location.new(
323
- :city => node_string_or_nil(track_detail.elements['EventCity']),
324
- :state => node_string_or_nil(track_detail.elements['EventState']),
325
- :postal_code => node_string_or_nil(track_detail.elements['EventZIPCode']),
326
- :country => node_string_or_nil(track_detail.elements['EventCountry'])
327
- )
328
-
329
- ShipmentEvent.new(name, event_time, location)
330
- end
331
-
332
-
333
-
334
- def response_success?(xml)
335
- xml.elements['/Error'].nil?
336
- end
337
-
338
- def response_message(xml)
339
- if error = xml.elements['/Error']
340
- message = error.elements['Description'].text
341
- else
342
- message = ''
343
- end
344
-
345
- message
346
- end
347
-
348
263
  def parse_rate_response(origin, destination, packages, response, options={})
349
264
  success = true
350
265
  message = ''
@@ -19,9 +19,6 @@ module ActiveMerchant #:nodoc:
19
19
  alias_method :state, :province
20
20
  alias_method :territory, :province
21
21
  alias_method :region, :province
22
-
23
- attr_accessor :valid
24
- attr_accessor :score
25
22
 
26
23
  def initialize(options = {})
27
24
  @country = (options[:country].nil? or options[:country].is_a?(ActiveMerchant::Country)) ?
@@ -100,4 +97,4 @@ module ActiveMerchant #:nodoc:
100
97
  end
101
98
 
102
99
  end
103
- end
100
+ end
@@ -1,8 +1,5 @@
1
1
  module ActiveMerchant #:nodoc:
2
-
3
- class ActiveMerchantError < StandardError #:nodoc:
4
- end
5
-
2
+
6
3
  module Shipping #:nodoc:
7
4
 
8
5
  class Error < ActiveMerchant::ActiveMerchantError
@@ -0,0 +1,3 @@
1
+ module ActiveShipping
2
+ VERSION = "0.9.1"
3
+ end
@@ -1,6 +1,8 @@
1
1
  $: << File.dirname(__FILE__)
2
- require 'rubygems'
3
- require 'active_support'
2
+
3
+ require 'active_support/all'
4
4
  require 'bigdecimal'
5
5
 
6
- require 'quantified/attribute'
6
+ require 'quantified/attribute'
7
+ require 'quantified/mass'
8
+ require 'quantified/length'
metadata CHANGED
@@ -1,185 +1,151 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_shipping
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 57
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
8
+ - 9
7
9
  - 1
8
- - 4
9
- version: 0.1.4
10
+ version: 0.9.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - James MacAulay
13
- - Tobias Luetke
14
+ - Tobi Lutke
14
15
  - Cody Fauser
15
16
  - Jimmy Baker
16
17
  autorequire:
17
18
  bindir: bin
18
19
  cert_chain: []
19
20
 
20
- date: 2010-04-20 00:00:00 -04:00
21
+ date: 2010-07-06 00:00:00 -04:00
21
22
  default_executable:
22
23
  dependencies:
23
24
  - !ruby/object:Gem::Dependency
24
25
  name: activesupport
25
26
  prerelease: false
26
27
  requirement: &id001 !ruby/object:Gem::Requirement
28
+ none: false
27
29
  requirements:
28
30
  - - ">="
29
31
  - !ruby/object:Gem::Version
32
+ hash: 9
30
33
  segments:
31
- - 0
32
- version: "0"
34
+ - 2
35
+ - 3
36
+ - 5
37
+ version: 2.3.5
33
38
  type: :runtime
34
39
  version_requirements: *id001
35
- description: Shipping API extension for Active Merchant.
36
- email: jmacaulay@gmail.com
40
+ - !ruby/object:Gem::Dependency
41
+ name: mocha
42
+ prerelease: false
43
+ requirement: &id002 !ruby/object:Gem::Requirement
44
+ none: false
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ hash: 3
49
+ segments:
50
+ - 0
51
+ version: "0"
52
+ type: :development
53
+ version_requirements: *id002
54
+ description: Get rates and tracking info from various shipping carriers.
55
+ email:
56
+ - james@shopify.com
37
57
  executables: []
38
58
 
39
59
  extensions: []
40
60
 
41
- extra_rdoc_files:
42
- - README.markdown
61
+ extra_rdoc_files: []
62
+
43
63
  files:
44
- - .gitignore
45
- - CHANGELOG
46
- - MIT-LICENSE
47
- - README.markdown
48
- - Rakefile
49
- - VERSION
50
- - active_shipping.gemspec
51
- - init.rb
52
- - lib/active_shipping.rb
53
- - lib/active_shipping/lib/connection.rb
54
- - lib/active_shipping/lib/country.rb
55
- - lib/active_shipping/lib/error.rb
56
- - lib/active_shipping/lib/post_data.rb
57
- - lib/active_shipping/lib/posts_data.rb
58
- - lib/active_shipping/lib/requires_parameters.rb
59
- - lib/active_shipping/lib/utils.rb
60
- - lib/active_shipping/lib/validateable.rb
64
+ - lib/active_merchant/common/connection.rb
65
+ - lib/active_merchant/common/country.rb
66
+ - lib/active_merchant/common/error.rb
67
+ - lib/active_merchant/common/post_data.rb
68
+ - lib/active_merchant/common/posts_data.rb
69
+ - lib/active_merchant/common/requires_parameters.rb
70
+ - lib/active_merchant/common/utils.rb
71
+ - lib/active_merchant/common/validateable.rb
72
+ - lib/active_merchant/common.rb
61
73
  - lib/active_shipping/shipping/base.rb
62
74
  - lib/active_shipping/shipping/carrier.rb
63
- - lib/active_shipping/shipping/carriers.rb
64
75
  - lib/active_shipping/shipping/carriers/bogus_carrier.rb
65
76
  - lib/active_shipping/shipping/carriers/fedex.rb
77
+ - lib/active_shipping/shipping/carriers/kunaki.rb
66
78
  - lib/active_shipping/shipping/carriers/shipwire.rb
67
79
  - lib/active_shipping/shipping/carriers/ups.rb
68
80
  - lib/active_shipping/shipping/carriers/usps.rb
69
- - lib/active_shipping/shipping/contact.rb
70
- - lib/active_shipping/shipping/label.rb
81
+ - lib/active_shipping/shipping/carriers.rb
71
82
  - lib/active_shipping/shipping/location.rb
72
- - lib/active_shipping/shipping/location_response.rb
73
83
  - lib/active_shipping/shipping/package.rb
74
- - lib/active_shipping/shipping/party.rb
75
84
  - lib/active_shipping/shipping/rate_estimate.rb
76
85
  - lib/active_shipping/shipping/rate_response.rb
77
86
  - lib/active_shipping/shipping/response.rb
78
- - lib/active_shipping/shipping/return_label_response.rb
79
- - lib/active_shipping/shipping/return_shipment.rb
80
- - lib/active_shipping/shipping/shipment.rb
81
87
  - lib/active_shipping/shipping/shipment_event.rb
82
88
  - lib/active_shipping/shipping/tracking_response.rb
89
+ - lib/active_shipping/version.rb
90
+ - lib/active_shipping.rb
83
91
  - lib/certs/cacert.pem
84
- - lib/vendor/quantified/MIT-LICENSE
85
- - lib/vendor/quantified/README.markdown
86
- - lib/vendor/quantified/Rakefile
87
92
  - lib/vendor/quantified/init.rb
88
- - lib/vendor/quantified/lib/quantified.rb
89
93
  - lib/vendor/quantified/lib/quantified/attribute.rb
90
94
  - lib/vendor/quantified/lib/quantified/length.rb
91
95
  - lib/vendor/quantified/lib/quantified/mass.rb
96
+ - lib/vendor/quantified/lib/quantified.rb
97
+ - lib/vendor/quantified/MIT-LICENSE
98
+ - lib/vendor/quantified/Rakefile
99
+ - lib/vendor/quantified/README.markdown
92
100
  - lib/vendor/quantified/test/length_test.rb
93
101
  - lib/vendor/quantified/test/mass_test.rb
94
102
  - lib/vendor/quantified/test/test_helper.rb
95
103
  - lib/vendor/test_helper.rb
96
- - lib/vendor/xml_node/README
97
- - lib/vendor/xml_node/Rakefile
98
104
  - lib/vendor/xml_node/benchmark/bench_generation.rb
99
105
  - lib/vendor/xml_node/init.rb
100
106
  - lib/vendor/xml_node/lib/xml_node.rb
107
+ - lib/vendor/xml_node/Rakefile
108
+ - lib/vendor/xml_node/README
101
109
  - lib/vendor/xml_node/test/test_generating.rb
102
110
  - lib/vendor/xml_node/test/test_parsing.rb
103
- - test/fixtures.example.yml
104
- - test/fixtures/xml/fedex/ottawa_to_beverly_hills_rate_request.xml
105
- - test/fixtures/xml/fedex/ottawa_to_beverly_hills_rate_response.xml
106
- - test/fixtures/xml/fedex/tracking_request.xml
107
- - test/fixtures/xml/fedex/tracking_response.xml
108
- - test/fixtures/xml/shipwire/international_rates_response.xml
109
- - test/fixtures/xml/shipwire/invalid_credentials_response.xml
110
- - test/fixtures/xml/shipwire/new_carrier_rate_response.xml
111
- - test/fixtures/xml/shipwire/no_rates_response.xml
112
- - test/fixtures/xml/shipwire/rates_response.xml
113
- - test/fixtures/xml/ups/example_tracking_response.xml
114
- - test/fixtures/xml/ups/shipment_from_tiger_direct.xml
115
- - test/fixtures/xml/ups/test_real_home_as_residential_destination_response.xml
116
- - test/fixtures/xml/usps/beverly_hills_to_ottawa_book_rate_response.xml
117
- - test/fixtures/xml/usps/beverly_hills_to_ottawa_book_wii_rate_response.xml
118
- - test/fixtures/xml/usps/beverly_hills_to_ottawa_wii_rate_response.xml
119
- - test/fixtures/xml/usps/example_tracking_response.xml
120
- - test/fixtures/xml/usps/multi_tracking_example.xml
121
- - test/party_factory.rb
122
- - test/remote/fedex_test.rb
123
- - test/remote/shipwire_test.rb
124
- - test/remote/ups_test.rb
125
- - test/remote/usps_test.rb
126
- - test/shipment_factory.rb
127
- - test/test_helper.rb
128
- - test/unit/base_test.rb
129
- - test/unit/carriers/fedex_test.rb
130
- - test/unit/carriers/shipwire_test.rb
131
- - test/unit/carriers/ups_test.rb
132
- - test/unit/carriers/usps_test.rb
133
- - test/unit/location_test.rb
134
- - test/unit/package_test.rb
135
- - test/unit/party_test.rb
136
- - test/unit/response_test.rb
137
- - test/unit/shipment_test.rb
111
+ - MIT-LICENSE
112
+ - README.markdown
113
+ - CHANGELOG
138
114
  has_rdoc: true
139
- homepage: http://github.com/Shopify/active_shipping
115
+ homepage: http://github.com/shopify/active_shipping
140
116
  licenses: []
141
117
 
142
118
  post_install_message:
143
- rdoc_options:
144
- - --charset=UTF-8
119
+ rdoc_options: []
120
+
145
121
  require_paths:
146
122
  - lib
147
123
  required_ruby_version: !ruby/object:Gem::Requirement
124
+ none: false
148
125
  requirements:
149
126
  - - ">="
150
127
  - !ruby/object:Gem::Version
128
+ hash: 3
151
129
  segments:
152
130
  - 0
153
131
  version: "0"
154
132
  required_rubygems_version: !ruby/object:Gem::Requirement
133
+ none: false
155
134
  requirements:
156
135
  - - ">="
157
136
  - !ruby/object:Gem::Version
137
+ hash: 23
158
138
  segments:
159
- - 0
160
- version: "0"
139
+ - 1
140
+ - 3
141
+ - 6
142
+ version: 1.3.6
161
143
  requirements: []
162
144
 
163
- rubyforge_project:
164
- rubygems_version: 1.3.6
145
+ rubyforge_project: active_shipping
146
+ rubygems_version: 1.3.7
165
147
  signing_key:
166
148
  specification_version: 3
167
- summary: Shipping API extension for Active Merchant.
168
- test_files:
169
- - test/party_factory.rb
170
- - test/remote/fedex_test.rb
171
- - test/remote/shipwire_test.rb
172
- - test/remote/ups_test.rb
173
- - test/remote/usps_test.rb
174
- - test/shipment_factory.rb
175
- - test/test_helper.rb
176
- - test/unit/base_test.rb
177
- - test/unit/carriers/fedex_test.rb
178
- - test/unit/carriers/shipwire_test.rb
179
- - test/unit/carriers/ups_test.rb
180
- - test/unit/carriers/usps_test.rb
181
- - test/unit/location_test.rb
182
- - test/unit/package_test.rb
183
- - test/unit/party_test.rb
184
- - test/unit/response_test.rb
185
- - test/unit/shipment_test.rb
149
+ summary: Shipping API extension for Active Merchant
150
+ test_files: []
151
+
data/.gitignore DELETED
@@ -1,8 +0,0 @@
1
- .DS_Store
2
- test.xml
3
- test/fixtures.yml
4
- sample.rb
5
- *.orig
6
- *.swp
7
- .dotest
8
- pkg
data/Rakefile DELETED
@@ -1,51 +0,0 @@
1
- require 'rubygems'
2
- require 'rake'
3
- require 'rake/testtask'
4
- require 'rake/rdoctask'
5
- require 'rake/gempackagetask'
6
- require 'rake/contrib/rubyforgepublisher'
7
-
8
- begin
9
- require 'jeweler'
10
- Jeweler::Tasks.new do |gem|
11
- gem.name = "active_shipping"
12
- gem.summary = %Q{Shipping API extension for Active Merchant.}
13
- gem.description = %Q{Shipping API extension for Active Merchant.}
14
- gem.email = "jmacaulay@gmail.com"
15
- gem.homepage = "http://github.com/Shopify/active_shipping"
16
- gem.authors = ["James MacAulay", "Tobias Luetke", "Cody Fauser", "Jimmy Baker"]
17
- gem.add_dependency "activesupport"
18
- end
19
- rescue LoadError
20
- puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
21
- end
22
-
23
-
24
- desc "Default Task"
25
- task :default => 'test:units'
26
- task :test => ['test:units','test:remote']
27
-
28
- # Run the unit tests
29
-
30
- namespace :test do
31
- Rake::TestTask.new(:units) do |t|
32
- t.pattern = 'test/unit/**/*_test.rb'
33
- t.ruby_opts << '-rubygems'
34
- t.verbose = true
35
- end
36
-
37
- Rake::TestTask.new(:remote) do |t|
38
- t.pattern = 'test/remote/*_test.rb'
39
- t.ruby_opts << '-rubygems'
40
- t.verbose = true
41
- end
42
- end
43
-
44
- # Genereate the RDoc documentation
45
- Rake::RDocTask.new do |rdoc|
46
- rdoc.rdoc_dir = 'doc'
47
- rdoc.title = "ActiveShipping library"
48
- rdoc.options << '--line-numbers' << '--inline-source'
49
- rdoc.rdoc_files.include('README', 'CHANGELOG')
50
- rdoc.rdoc_files.include('lib/**/*.rb')
51
- end