mataki-subdomain_routes 0.3.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.
- data/LICENSE +20 -0
- data/README.textile +421 -0
- data/Rakefile +58 -0
- data/VERSION.yml +4 -0
- data/lib/subdomain_routes.rb +13 -0
- data/lib/subdomain_routes/assertions.rb +68 -0
- data/lib/subdomain_routes/config.rb +5 -0
- data/lib/subdomain_routes/mapper.rb +43 -0
- data/lib/subdomain_routes/request.rb +11 -0
- data/lib/subdomain_routes/resources.rb +49 -0
- data/lib/subdomain_routes/routes.rb +97 -0
- data/lib/subdomain_routes/split_host.rb +32 -0
- data/lib/subdomain_routes/url_writer.rb +92 -0
- data/lib/subdomain_routes/validations.rb +42 -0
- data/rails/init.rb +1 -0
- data/spec/assertions_spec.rb +193 -0
- data/spec/extraction_spec.rb +73 -0
- data/spec/mapping_spec.rb +168 -0
- data/spec/recognition_spec.rb +78 -0
- data/spec/resources_spec.rb +33 -0
- data/spec/routes_spec.rb +13 -0
- data/spec/spec_helper.rb +77 -0
- data/spec/test_unit_matcher.rb +46 -0
- data/spec/url_writing_spec.rb +262 -0
- data/spec/validations_spec.rb +27 -0
- metadata +97 -0
metadata
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mataki-subdomain_routes
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Matthew Hollingworth
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-09-05 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: actionpack
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 2.2.1
|
24
|
+
version:
|
25
|
+
description: SubdomainRoutes add subdomain conditions to the Rails routing system. Routes may be restricted to one or many specified subdomains. An URL will be recognised only if the host subdomain matches the subdomain specified in the route. Route generation is also enhanced, so that the subdomain of a generated URL (or path) will be changed if the requested route has a different subdomain to that of the current request. Model-based subdomain routes can also be defined.
|
26
|
+
email: mdholling@gmail.com
|
27
|
+
executables: []
|
28
|
+
|
29
|
+
extensions: []
|
30
|
+
|
31
|
+
extra_rdoc_files:
|
32
|
+
- LICENSE
|
33
|
+
- README.textile
|
34
|
+
files:
|
35
|
+
- LICENSE
|
36
|
+
- README.textile
|
37
|
+
- Rakefile
|
38
|
+
- VERSION.yml
|
39
|
+
- lib/subdomain_routes.rb
|
40
|
+
- lib/subdomain_routes/assertions.rb
|
41
|
+
- lib/subdomain_routes/config.rb
|
42
|
+
- lib/subdomain_routes/mapper.rb
|
43
|
+
- lib/subdomain_routes/request.rb
|
44
|
+
- lib/subdomain_routes/resources.rb
|
45
|
+
- lib/subdomain_routes/routes.rb
|
46
|
+
- lib/subdomain_routes/split_host.rb
|
47
|
+
- lib/subdomain_routes/url_writer.rb
|
48
|
+
- lib/subdomain_routes/validations.rb
|
49
|
+
- rails/init.rb
|
50
|
+
- spec/assertions_spec.rb
|
51
|
+
- spec/extraction_spec.rb
|
52
|
+
- spec/mapping_spec.rb
|
53
|
+
- spec/recognition_spec.rb
|
54
|
+
- spec/resources_spec.rb
|
55
|
+
- spec/routes_spec.rb
|
56
|
+
- spec/spec_helper.rb
|
57
|
+
- spec/test_unit_matcher.rb
|
58
|
+
- spec/url_writing_spec.rb
|
59
|
+
- spec/validations_spec.rb
|
60
|
+
has_rdoc: false
|
61
|
+
homepage: http://github.com/mholling/subdomain_routes
|
62
|
+
licenses:
|
63
|
+
post_install_message:
|
64
|
+
rdoc_options:
|
65
|
+
- --charset=UTF-8
|
66
|
+
require_paths:
|
67
|
+
- lib
|
68
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
69
|
+
requirements:
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: "0"
|
73
|
+
version:
|
74
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: "0"
|
79
|
+
version:
|
80
|
+
requirements: []
|
81
|
+
|
82
|
+
rubyforge_project:
|
83
|
+
rubygems_version: 1.3.5
|
84
|
+
signing_key:
|
85
|
+
specification_version: 2
|
86
|
+
summary: A Rails library for incorporating subdomains into route generation and recognition.
|
87
|
+
test_files:
|
88
|
+
- spec/assertions_spec.rb
|
89
|
+
- spec/extraction_spec.rb
|
90
|
+
- spec/mapping_spec.rb
|
91
|
+
- spec/recognition_spec.rb
|
92
|
+
- spec/resources_spec.rb
|
93
|
+
- spec/routes_spec.rb
|
94
|
+
- spec/spec_helper.rb
|
95
|
+
- spec/test_unit_matcher.rb
|
96
|
+
- spec/url_writing_spec.rb
|
97
|
+
- spec/validations_spec.rb
|