trusty-multi-site-extension 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. data/README.markdown +116 -0
  2. data/Rakefile +120 -0
  3. data/app/assets/images/admin/move_higher.png +0 -0
  4. data/app/assets/images/admin/move_lower.png +0 -0
  5. data/app/assets/images/admin/move_to_bottom.png +0 -0
  6. data/app/assets/images/admin/move_to_top.png +0 -0
  7. data/app/assets/images/admin/remove.png +0 -0
  8. data/app/assets/stylesheets/admin/multi_site.scss +121 -0
  9. data/app/assets/stylesheets/admin/site_chooser.scss +0 -0
  10. data/app/controllers/admin/sites_controller.rb +14 -0
  11. data/app/helpers/scoped_helper.rb +19 -0
  12. data/app/helpers/sites_helper.rb +10 -0
  13. data/app/models/site.rb +86 -0
  14. data/app/views/admin/layouts/_choose_site.html.haml +8 -0
  15. data/app/views/admin/layouts/_site_chooser.html.haml +2 -0
  16. data/app/views/admin/sites/_form.haml +43 -0
  17. data/app/views/admin/sites/edit.haml +7 -0
  18. data/app/views/admin/sites/index.haml +43 -0
  19. data/app/views/admin/sites/new.haml +7 -0
  20. data/app/views/admin/snippets/_choose_site.html.haml +6 -0
  21. data/app/views/admin/users/_choose_site.html.haml +8 -0
  22. data/app/views/site/not_configured.html.haml +7 -0
  23. data/config/initializers/radiant_config.rb +5 -0
  24. data/config/routes.rb +13 -0
  25. data/db/migrate/001_create_sites.rb +13 -0
  26. data/db/migrate/002_add_order_to_sites.rb +9 -0
  27. data/db/migrate/003_add_base_domain_to_sites.rb +9 -0
  28. data/db/migrate/004_add_admin_fields_to_sites.rb +17 -0
  29. data/db/migrate/005_add_sites.rb +13 -0
  30. data/db/migrate/006_remove_user_login_index.rb +8 -0
  31. data/db/migrate/20090810145840_site_abbreviation.rb +9 -0
  32. data/db/migrate/201411031415046078_recreate_non_unique_index_on_snippets_name.rb +11 -0
  33. data/lib/multi_site/admin_ui.rb +46 -0
  34. data/lib/multi_site/application_controller_extensions.rb +40 -0
  35. data/lib/multi_site/application_controller_filter_extensions.rb +21 -0
  36. data/lib/multi_site/engine.rb +5 -0
  37. data/lib/multi_site/page_extensions.rb +43 -0
  38. data/lib/multi_site/pages_controller_extensions.rb +48 -0
  39. data/lib/multi_site/resource_controller_extensions.rb +41 -0
  40. data/lib/multi_site/route_extensions.rb +21 -0
  41. data/lib/multi_site/route_set_extensions.rb +16 -0
  42. data/lib/multi_site/scoped_model.rb +145 -0
  43. data/lib/multi_site/scoped_validation.rb +32 -0
  44. data/lib/multi_site/site_chooser_helper.rb +14 -0
  45. data/lib/multi_site/site_controller_extensions.rb +12 -0
  46. data/lib/tasks/multi_site_extension_tasks.rake +28 -0
  47. data/lib/tasks/scoped_admin_extension_tasks.rake +28 -0
  48. data/lib/trusty-multi-site-extension.rb +1 -0
  49. data/multi_site_extension.rb +66 -0
  50. data/spec/controllers/extended_site_controller_spec.rb +61 -0
  51. data/spec/datasets/site_pages_dataset.rb +13 -0
  52. data/spec/datasets/sites_dataset.rb +10 -0
  53. data/spec/functional/multi_site_routing_spec.rb +37 -0
  54. data/spec/lib/multi_site/admin_ui_spec.rb +35 -0
  55. data/spec/lib/multi_site/scoped_model_spec.rb +182 -0
  56. data/spec/matchers/route_matcher.rb +38 -0
  57. data/spec/models/extended_page_spec.rb +48 -0
  58. data/spec/models/site_spec.rb +83 -0
  59. data/spec/spec.opts +6 -0
  60. data/spec/spec_helper.rb +36 -0
  61. data/trusty-multi-site-extension.gemspec +28 -0
  62. metadata +164 -0
metadata ADDED
@@ -0,0 +1,164 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: trusty-multi-site-extension
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Eric Sipple
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-10-07 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: acts_as_list
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - '='
20
+ - !ruby/object:Gem::Version
21
+ version: 0.4.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - '='
28
+ - !ruby/object:Gem::Version
29
+ version: 0.4.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: trusty-snippets-extension
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 1.0.0
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 1.0.0
46
+ - !ruby/object:Gem::Dependency
47
+ name: trusty-cms
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 1.0.1
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 1.0.1
62
+ description: Extends Trusty CMS Layouts to support multiple sites, defined by domain
63
+ email: sipple@trustarts.org
64
+ executables: []
65
+ extensions: []
66
+ extra_rdoc_files: []
67
+ files:
68
+ - app/assets/images/admin/move_higher.png
69
+ - app/assets/images/admin/move_lower.png
70
+ - app/assets/images/admin/move_to_bottom.png
71
+ - app/assets/images/admin/move_to_top.png
72
+ - app/assets/images/admin/remove.png
73
+ - app/assets/stylesheets/admin/multi_site.scss
74
+ - app/assets/stylesheets/admin/site_chooser.scss
75
+ - app/controllers/admin/sites_controller.rb
76
+ - app/helpers/scoped_helper.rb
77
+ - app/helpers/sites_helper.rb
78
+ - app/models/site.rb
79
+ - app/views/admin/layouts/_choose_site.html.haml
80
+ - app/views/admin/layouts/_site_chooser.html.haml
81
+ - app/views/admin/sites/_form.haml
82
+ - app/views/admin/sites/edit.haml
83
+ - app/views/admin/sites/index.haml
84
+ - app/views/admin/sites/new.haml
85
+ - app/views/admin/snippets/_choose_site.html.haml
86
+ - app/views/admin/users/_choose_site.html.haml
87
+ - app/views/site/not_configured.html.haml
88
+ - config/initializers/radiant_config.rb
89
+ - config/routes.rb
90
+ - db/migrate/001_create_sites.rb
91
+ - db/migrate/002_add_order_to_sites.rb
92
+ - db/migrate/003_add_base_domain_to_sites.rb
93
+ - db/migrate/004_add_admin_fields_to_sites.rb
94
+ - db/migrate/005_add_sites.rb
95
+ - db/migrate/006_remove_user_login_index.rb
96
+ - db/migrate/20090810145840_site_abbreviation.rb
97
+ - db/migrate/201411031415046078_recreate_non_unique_index_on_snippets_name.rb
98
+ - lib/multi_site/admin_ui.rb
99
+ - lib/multi_site/application_controller_extensions.rb
100
+ - lib/multi_site/application_controller_filter_extensions.rb
101
+ - lib/multi_site/engine.rb
102
+ - lib/multi_site/page_extensions.rb
103
+ - lib/multi_site/pages_controller_extensions.rb
104
+ - lib/multi_site/resource_controller_extensions.rb
105
+ - lib/multi_site/route_extensions.rb
106
+ - lib/multi_site/route_set_extensions.rb
107
+ - lib/multi_site/scoped_model.rb
108
+ - lib/multi_site/scoped_validation.rb
109
+ - lib/multi_site/site_chooser_helper.rb
110
+ - lib/multi_site/site_controller_extensions.rb
111
+ - lib/tasks/multi_site_extension_tasks.rake
112
+ - lib/tasks/scoped_admin_extension_tasks.rake
113
+ - lib/trusty-multi-site-extension.rb
114
+ - multi_site_extension.rb
115
+ - Rakefile
116
+ - README.markdown
117
+ - spec/controllers/extended_site_controller_spec.rb
118
+ - spec/datasets/site_pages_dataset.rb
119
+ - spec/datasets/sites_dataset.rb
120
+ - spec/functional/multi_site_routing_spec.rb
121
+ - spec/lib/multi_site/admin_ui_spec.rb
122
+ - spec/lib/multi_site/scoped_model_spec.rb
123
+ - spec/matchers/route_matcher.rb
124
+ - spec/models/extended_page_spec.rb
125
+ - spec/models/site_spec.rb
126
+ - spec/spec.opts
127
+ - spec/spec_helper.rb
128
+ - trusty-multi-site-extension.gemspec
129
+ homepage: https://github.com/pgharts/trusty-multi-site-extension
130
+ licenses: []
131
+ post_install_message:
132
+ rdoc_options: []
133
+ require_paths:
134
+ - lib
135
+ required_ruby_version: !ruby/object:Gem::Requirement
136
+ none: false
137
+ requirements:
138
+ - - ! '>='
139
+ - !ruby/object:Gem::Version
140
+ version: '0'
141
+ required_rubygems_version: !ruby/object:Gem::Requirement
142
+ none: false
143
+ requirements:
144
+ - - ! '>='
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ requirements: []
148
+ rubyforge_project:
149
+ rubygems_version: 1.8.29
150
+ signing_key:
151
+ specification_version: 3
152
+ summary: Extends Trusty CMS Layouts to support multiple sites, defined by domain
153
+ test_files:
154
+ - spec/controllers/extended_site_controller_spec.rb
155
+ - spec/datasets/site_pages_dataset.rb
156
+ - spec/datasets/sites_dataset.rb
157
+ - spec/functional/multi_site_routing_spec.rb
158
+ - spec/lib/multi_site/admin_ui_spec.rb
159
+ - spec/lib/multi_site/scoped_model_spec.rb
160
+ - spec/matchers/route_matcher.rb
161
+ - spec/models/extended_page_spec.rb
162
+ - spec/models/site_spec.rb
163
+ - spec/spec.opts
164
+ - spec/spec_helper.rb