fake_rails3_routes 1.0.2 → 1.0.3
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.
data/lib/fake_rails3_routes.rb
CHANGED
@@ -29,9 +29,6 @@ module FakeRails3Routes
|
|
29
29
|
def add_route(conditions = {}, requirements = {}, defaults = {}, name = nil, anchor = true)
|
30
30
|
defaults = defaults.merge(requirements)
|
31
31
|
path = conditions.delete(:path_info)
|
32
|
-
if defaults[:format]
|
33
|
-
path.sub!("(.:format)", '')
|
34
|
-
end
|
35
32
|
if name == 'root'
|
36
33
|
@map.send(name, defaults)
|
37
34
|
elsif name
|
@@ -1169,10 +1169,6 @@ module FakeRails3Routes
|
|
1169
1169
|
raise ArgumentError, "Unknown scope #{on.inspect} given to :on"
|
1170
1170
|
end
|
1171
1171
|
|
1172
|
-
if !options.key?(:format)
|
1173
|
-
options[:format] = false
|
1174
|
-
end
|
1175
|
-
|
1176
1172
|
paths.each { |_path| decomposed_match(_path, options.dup) }
|
1177
1173
|
self
|
1178
1174
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fake_rails3_routes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -90,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
90
90
|
version: '0'
|
91
91
|
segments:
|
92
92
|
- 0
|
93
|
-
hash:
|
93
|
+
hash: 2821807348743011221
|
94
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
95
|
none: false
|
96
96
|
requirements:
|
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
99
|
version: '0'
|
100
100
|
segments:
|
101
101
|
- 0
|
102
|
-
hash:
|
102
|
+
hash: 2821807348743011221
|
103
103
|
requirements: []
|
104
104
|
rubyforge_project:
|
105
105
|
rubygems_version: 1.8.23
|