Updated to use latest version of Addressable gem #6

Merged
merged 1 commit into from Sep 28, 2012
View
@@ -1,9 +1,6 @@
require 'bundler'
Bundler::GemHelper.install_tasks
-require 'rspec'
require 'rspec/core/rake_task'
-Rspec::Core::RakeTask.new do |t|
- t.rspec_opts = '--color'
-end
+Rspec::Core::RakeTask.new(:spec)
View
@@ -164,7 +164,7 @@ def c18n(uri, opts = {})
u = parse(uri, opts)
u = embedded(u)
- if q = u.query_values(:notation => :flat_array)
+ if q = u.query_values(Array)
q.delete_if { |k,v| C18N[:global].include?(k) }
q.delete_if { |k,v| C18N[:hosts].find {|r,p| u.host =~ r && p.include?(k) } }
end
@@ -230,4 +230,3 @@ def valid?(uri)
end
end
end
-
View
@@ -1,4 +1,7 @@
require 'bundler'
Bundler.setup
-require 'lib/postrank-uri'
+$LOAD_PATH.unshift(File.dirname(__FILE__))
+$LOAD_PATH.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')), __FILE__)
+
+require 'postrank-uri'