disguise 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (228) hide show
  1. data/README.rdoc +26 -24
  2. data/Rakefile +1 -1
  3. data/VERSION +1 -1
  4. data/app/models/domain_theme.rb +1 -1
  5. data/app/models/theme.rb +4 -4
  6. data/app/views/admin/themes/_theme.html.erb +3 -3
  7. data/app/views/admin/themes/edit.html.erb +9 -2
  8. data/config/locales/ar.yml +20 -0
  9. data/config/locales/bg.yml +20 -0
  10. data/config/locales/ca.yml +20 -0
  11. data/config/locales/cs.yml +20 -0
  12. data/{locales → config/locales}/da.yml +8 -8
  13. data/config/locales/de.yml +20 -0
  14. data/config/locales/el.yml +20 -0
  15. data/{locales → config/locales}/en.yml +0 -0
  16. data/config/locales/es.yml +20 -0
  17. data/config/locales/et.yml +20 -0
  18. data/config/locales/fa.yml +20 -0
  19. data/config/locales/fi.yml +20 -0
  20. data/{locales → config/locales}/fr.yml +8 -8
  21. data/config/locales/gl.yml +20 -0
  22. data/config/locales/hi.yml +20 -0
  23. data/config/locales/hr.yml +20 -0
  24. data/config/locales/hu.yml +20 -0
  25. data/config/locales/id.yml +20 -0
  26. data/config/locales/it.yml +20 -0
  27. data/config/locales/iw.yml +20 -0
  28. data/config/locales/ja.yml +20 -0
  29. data/config/locales/ko.yml +20 -0
  30. data/config/locales/lt.yml +20 -0
  31. data/config/locales/lv.yml +20 -0
  32. data/config/locales/mt.yml +20 -0
  33. data/config/locales/nl.yml +20 -0
  34. data/config/locales/no.yml +21 -0
  35. data/config/locales/pl.yml +20 -0
  36. data/config/locales/pt-PT.yml +20 -0
  37. data/{locales → config/locales}/pt.yml +0 -0
  38. data/config/locales/ro.yml +20 -0
  39. data/config/locales/ru.yml +20 -0
  40. data/config/locales/sk.yml +20 -0
  41. data/config/locales/sl.yml +20 -0
  42. data/{locales → config/locales}/sq.yml +7 -7
  43. data/config/locales/sr.yml +20 -0
  44. data/config/locales/sv.yml +20 -0
  45. data/config/locales/th.yml +20 -0
  46. data/config/locales/tl.yml +20 -0
  47. data/config/locales/tr.yml +20 -0
  48. data/config/locales/uk.yml +20 -0
  49. data/config/locales/vi.yml +20 -0
  50. data/config/locales/zh-CN.yml +20 -0
  51. data/config/locales/zh-TW.yml +20 -0
  52. data/config/locales/zh.yml +20 -0
  53. data/config/routes.rb +6 -0
  54. data/disguise.gemspec +157 -181
  55. data/lib/disguise.rb +2 -10
  56. data/lib/disguise/config.rb +22 -9
  57. data/lib/disguise/controllers/disguise_application.rb +58 -0
  58. data/lib/disguise/engine.rb +14 -0
  59. data/lib/tasks/diguise.rake +9 -0
  60. data/test/{rails_root → rails_test}/.gitignore +0 -0
  61. data/test/{rails_root → rails_test}/.rake_tasks +0 -0
  62. data/test/rails_test/Gemfile +18 -0
  63. data/test/rails_test/Gemfile.lock +114 -0
  64. data/test/{rails_root → rails_test}/Rakefile +2 -4
  65. data/test/{rails_root → rails_test}/app/controllers/admin/domain_themes_controller.rb +0 -0
  66. data/test/{rails_root → rails_test}/app/controllers/admin/themes_controller.rb +0 -0
  67. data/test/{rails_root → rails_test}/app/controllers/application_controller.rb +0 -0
  68. data/test/{rails_root → rails_test}/app/controllers/default_controller.rb +0 -0
  69. data/test/{rails_root → rails_test}/app/models/.keep +0 -0
  70. data/test/rails_test/app/models/user.rb +3 -0
  71. data/test/{rails_root → rails_test}/app/views/default/index.html.erb +0 -0
  72. data/test/{rails_root → rails_test}/app/views/layouts/default.html.erb +0 -0
  73. data/test/rails_test/config.ru +4 -0
  74. data/test/rails_test/config/application.rb +42 -0
  75. data/test/rails_test/config/boot.rb +13 -0
  76. data/test/rails_test/config/database.yml +14 -0
  77. data/test/rails_test/config/environment.rb +5 -0
  78. data/test/rails_test/config/environments/development.rb +26 -0
  79. data/test/rails_test/config/environments/production.rb +49 -0
  80. data/test/rails_test/config/environments/test.rb +35 -0
  81. data/test/rails_test/config/initializers/backtrace_silencers.rb +7 -0
  82. data/test/rails_test/config/initializers/disguise.rb +5 -0
  83. data/test/{rails_root → rails_test}/config/initializers/inflections.rb +2 -2
  84. data/test/{rails_root → rails_test}/config/initializers/mime_types.rb +0 -0
  85. data/test/rails_test/config/initializers/secret_token.rb +7 -0
  86. data/test/rails_test/config/initializers/session_store.rb +8 -0
  87. data/test/rails_test/config/routes.rb +3 -0
  88. data/test/{rails_root → rails_test}/db/.keep +0 -0
  89. data/test/{rails_root → rails_test}/db/migrate/20090530170040_create_themes.rb +0 -0
  90. data/test/{rails_root → rails_test}/db/migrate/20090602041838_create_users.rb +0 -0
  91. data/test/{rails_root → rails_test}/db/migrate/20090606153236_create_domain_themes.rb +0 -0
  92. data/test/{rails_root → rails_test}/features/step_definitions/webrat_steps.rb +0 -0
  93. data/test/{rails_root → rails_test}/features/support/env.rb +0 -0
  94. data/test/{rails_root → rails_test}/public/.htaccess +0 -0
  95. data/test/rails_test/public/404.html +26 -0
  96. data/test/rails_test/public/422.html +26 -0
  97. data/test/rails_test/public/500.html +26 -0
  98. data/test/{rails_root → rails_test}/public/dispatch.rb +1 -1
  99. data/test/{rails_root → rails_test}/public/favicon.ico +0 -0
  100. data/test/{rails_root → rails_test}/public/images/blue/preview.gif +0 -0
  101. data/test/rails_test/public/images/rails.png +0 -0
  102. data/test/{rails_root → rails_test}/public/javascripts/application.js +0 -0
  103. data/test/{rails_root → rails_test}/public/javascripts/controls.js +75 -73
  104. data/test/{rails_root → rails_test}/public/javascripts/dragdrop.js +171 -169
  105. data/test/{rails_root → rails_test}/public/javascripts/effects.js +180 -177
  106. data/test/rails_test/public/javascripts/prototype.js +6001 -0
  107. data/test/rails_test/public/javascripts/rails.js +175 -0
  108. data/test/rails_test/public/robots.txt +5 -0
  109. data/test/{rails_root/public/stylesheets/.keep → rails_test/public/stylesheets/.gitkeep} +0 -0
  110. data/test/{rails_root/test/functional/.keep → rails_test/public/stylesheets/application.css} +0 -0
  111. data/test/rails_test/script/rails +6 -0
  112. data/test/{rails_root → rails_test}/test/factories.rb +0 -0
  113. data/test/{rails_root/test/integration → rails_test/test/functional}/.keep +0 -0
  114. data/test/{rails_root → rails_test}/test/functional/admin/domain_themes_controller_test.rb +6 -6
  115. data/test/{rails_root → rails_test}/test/functional/admin/themes_controller_test.rb +6 -6
  116. data/test/{rails_root → rails_test}/test/functional/default_controller_test.rb +2 -2
  117. data/test/{rails_root/test/mocks/development → rails_test/test/integration}/.keep +0 -0
  118. data/test/{rails_root → rails_test}/test/test_helper.rb +6 -9
  119. data/test/{rails_root/test/mocks/test → rails_test/test/unit}/.keep +0 -0
  120. data/test/{rails_root → rails_test}/test/unit/domain_theme_test.rb +2 -1
  121. data/test/{rails_root → rails_test}/test/unit/theme_test.rb +4 -2
  122. data/test/{rails_root → rails_test}/themes/blue/description.txt +0 -0
  123. data/test/{rails_root → rails_test}/themes/blue/locales/blue.yml +0 -0
  124. data/test/{rails_root → rails_test}/themes/blue/locales/en.yml +0 -0
  125. data/test/{rails_root → rails_test}/themes/blue/views/default/index.html.erb +0 -0
  126. data/test/{rails_root → rails_test}/themes/blue/views/layouts/default.html.erb +0 -0
  127. data/test/{rails_root → rails_test}/themes/blue/views/layouts/global/_footer.html.erb +0 -0
  128. data/test/{rails_root → rails_test}/themes/blue/views/layouts/global/_head.html.erb +0 -0
  129. data/test/{rails_root → rails_test}/themes/blue/views/layouts/global/_header.html.erb +0 -0
  130. data/test/{rails_root → rails_test}/themes/red/description.txt +0 -0
  131. data/test/{rails_root → rails_test}/themes/red/locales/en.yml +0 -0
  132. data/test/{rails_root → rails_test}/themes/red/views/layouts/default.html.erb +0 -0
  133. data/test/{rails_root → rails_test}/themes/red/views/layouts/global/_footer.html.erb +0 -0
  134. data/test/{rails_root → rails_test}/themes/red/views/layouts/global/_head.html.erb +0 -0
  135. data/test/{rails_root → rails_test}/themes/red/views/layouts/global/_header.html.erb +0 -0
  136. metadata +159 -183
  137. data/config/disguise_routes.rb +0 -7
  138. data/lib/action_controller/disguise_application.rb +0 -61
  139. data/lib/disguise/initialize_routes.rb +0 -8
  140. data/lib/disguise/tasks.rb +0 -34
  141. data/locales/ar.yml +0 -20
  142. data/locales/bg.yml +0 -20
  143. data/locales/ca.yml +0 -20
  144. data/locales/cs.yml +0 -20
  145. data/locales/de.yml +0 -20
  146. data/locales/el.yml +0 -20
  147. data/locales/es.yml +0 -20
  148. data/locales/et.yml +0 -20
  149. data/locales/fa.yml +0 -20
  150. data/locales/fi.yml +0 -20
  151. data/locales/gl.yml +0 -20
  152. data/locales/hi.yml +0 -20
  153. data/locales/hr.yml +0 -20
  154. data/locales/hu.yml +0 -20
  155. data/locales/id.yml +0 -20
  156. data/locales/it.yml +0 -20
  157. data/locales/iw.yml +0 -20
  158. data/locales/ja.yml +0 -20
  159. data/locales/ko.yml +0 -20
  160. data/locales/lt.yml +0 -20
  161. data/locales/lv.yml +0 -20
  162. data/locales/mt.yml +0 -20
  163. data/locales/nl.yml +0 -20
  164. data/locales/no.yml +0 -21
  165. data/locales/pl.yml +0 -20
  166. data/locales/pt-PT.yml +0 -20
  167. data/locales/ro.yml +0 -20
  168. data/locales/ru.yml +0 -20
  169. data/locales/sk.yml +0 -20
  170. data/locales/sl.yml +0 -20
  171. data/locales/sr.yml +0 -20
  172. data/locales/sv.yml +0 -20
  173. data/locales/th.yml +0 -20
  174. data/locales/tl.yml +0 -20
  175. data/locales/tr.yml +0 -20
  176. data/locales/uk.yml +0 -20
  177. data/locales/vi.yml +0 -20
  178. data/locales/zh-CN.yml +0 -20
  179. data/locales/zh-TW.yml +0 -20
  180. data/locales/zh.yml +0 -20
  181. data/rails/init.rb +0 -2
  182. data/tasks/rails.rake +0 -2
  183. data/test/rails_root/Capfile +0 -3
  184. data/test/rails_root/app/models/user.rb +0 -9
  185. data/test/rails_root/config/amazon_s3.yml +0 -14
  186. data/test/rails_root/config/boot.rb +0 -109
  187. data/test/rails_root/config/database.yml +0 -14
  188. data/test/rails_root/config/environment.rb +0 -21
  189. data/test/rails_root/config/environments/development.rb +0 -19
  190. data/test/rails_root/config/environments/production.rb +0 -1
  191. data/test/rails_root/config/environments/test.rb +0 -33
  192. data/test/rails_root/config/global_config.yml +0 -18
  193. data/test/rails_root/config/initializers/disguise.rb +0 -2
  194. data/test/rails_root/config/initializers/requires.rb +0 -13
  195. data/test/rails_root/config/initializers/s3_credentials.rb +0 -9
  196. data/test/rails_root/config/initializers/session_store.rb +0 -8
  197. data/test/rails_root/config/routes.rb +0 -7
  198. data/test/rails_root/public/404.html +0 -30
  199. data/test/rails_root/public/422.html +0 -30
  200. data/test/rails_root/public/500.html +0 -30
  201. data/test/rails_root/public/images/rails.png +0 -0
  202. data/test/rails_root/public/images/red/preview.gif +0 -0
  203. data/test/rails_root/public/javascripts/builder.js +0 -136
  204. data/test/rails_root/public/javascripts/prototype.js +0 -4225
  205. data/test/rails_root/public/javascripts/scriptaculous.js +0 -58
  206. data/test/rails_root/public/javascripts/slider.js +0 -277
  207. data/test/rails_root/public/javascripts/sound.js +0 -60
  208. data/test/rails_root/public/robots.txt +0 -1
  209. data/test/rails_root/public/stylesheets/themes/blue/styles.css +0 -1
  210. data/test/rails_root/public/stylesheets/themes/red/styles.css +0 -1
  211. data/test/rails_root/script/about +0 -3
  212. data/test/rails_root/script/breakpointer +0 -3
  213. data/test/rails_root/script/console +0 -3
  214. data/test/rails_root/script/create_project.rb +0 -52
  215. data/test/rails_root/script/cucumber +0 -7
  216. data/test/rails_root/script/dbconsole +0 -3
  217. data/test/rails_root/script/destroy +0 -3
  218. data/test/rails_root/script/generate +0 -3
  219. data/test/rails_root/script/performance/benchmarker +0 -3
  220. data/test/rails_root/script/performance/profiler +0 -3
  221. data/test/rails_root/script/performance/request +0 -3
  222. data/test/rails_root/script/plugin +0 -3
  223. data/test/rails_root/script/process/inspector +0 -3
  224. data/test/rails_root/script/process/reaper +0 -3
  225. data/test/rails_root/script/process/spawner +0 -3
  226. data/test/rails_root/script/runner +0 -3
  227. data/test/rails_root/script/server +0 -3
  228. data/test/rails_root/test/unit/.keep +0 -0
@@ -1,20 +0,0 @@
1
- ---
2
- zh-CN:
3
- disguise:
4
- activate_theme_message: 点击一个主题,以激活它
5
- add_uri: 添加
6
- current_theme: 当前主题
7
- delete_uri: 删除
8
- error_creating_domain_theme: "有一个问题,添加网址:{{error}}"
9
- name_theme: ~
10
- no_current_theme: 目前还没有选定了主题为这个应用程序,所以默认的应用程序视图将被使用。
11
- no_themes_message: 您尚未为您的应用程序的任何主题。如果你想创建一个新的主题,只需运行的主题发电机,并按照指示:
12
- remove_all_themes: 模板删除所有的主题,并使用默认的应用程序
13
- set_theme: 设置主题
14
- theme_removed: 所有主题已被删除
15
- theme_updated: 主题是成功更新。
16
- theme_uri_label: 网址为主题
17
- update_uri: 更新URL
18
- uri_deleted: 指定的URL已被删除
19
- uris_title: 这一主题将显示所有以下网址
20
- use_domain_themes: 目前的主题,将取决于每个主题下面指定的URL。
@@ -1,20 +0,0 @@
1
- ---
2
- zh-TW:
3
- disguise:
4
- activate_theme_message: 點擊一個主題,以激活它
5
- add_uri: 添加
6
- current_theme: 當前主題
7
- delete_uri: 刪除
8
- error_creating_domain_theme: "有一個問題,添加網址:{{error}}"
9
- name_theme: ~
10
- no_current_theme: 目前還沒有選定了主題為這個應用程序,所以默認的應用程序視圖將被使用。
11
- no_themes_message: 您尚未創建任何主題,為您的應用。如果你想創建一個新的主題,只需運行的主題發電機,並按照指示:
12
- remove_all_themes: 刪除所有的主題,並使用默認的應用程序模板
13
- set_theme: 設置主題
14
- theme_removed: 所有主題已被刪除
15
- theme_updated: 主題是成功更新。
16
- theme_uri_label: 網址為主題
17
- update_uri: 更新URL
18
- uri_deleted: 指定的URL已被刪除
19
- uris_title: 這一主題將顯示所有以下網址
20
- use_domain_themes: 目前的主題將取決於URL中指定的每個主題下面。
@@ -1,20 +0,0 @@
1
- ---
2
- zh:
3
- disguise:
4
- activate_theme_message: 点击一个主题,以激活它
5
- add_uri: 添加
6
- current_theme: 当前主题
7
- delete_uri: 删除
8
- error_creating_domain_theme: "有一个问题,添加网址:{{error}}"
9
- name_theme: ~
10
- no_current_theme: 目前还没有选定了主题为这个应用程序,所以默认的应用程序视图将被使用。
11
- no_themes_message: 您尚未为您的应用程序的任何主题。如果你想创建一个新的主题,只需运行的主题发电机,并按照指示:
12
- remove_all_themes: 模板删除所有的主题,并使用默认的应用程序
13
- set_theme: 设置主题
14
- theme_removed: 所有主题已被删除
15
- theme_updated: 主题是成功更新。
16
- theme_uri_label: 网址为主题
17
- update_uri: 更新URL
18
- uri_deleted: 指定的URL已被删除
19
- uris_title: 这一主题将显示所有以下网址
20
- use_domain_themes: 目前的主题,将取决于每个主题下面指定的URL。
@@ -1,2 +0,0 @@
1
- require 'disguise'
2
- require 'disguise/initialize_routes'
@@ -1,2 +0,0 @@
1
- require File.join(File.dirname(__FILE__), '/../lib/disguise')
2
- require File.join(File.dirname(__FILE__), '/../lib/disguise/tasks')
@@ -1,3 +0,0 @@
1
- load 'deploy' if respond_to?(:namespace) # cap2 differentiator
2
- Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
3
- load 'config/deploy'
@@ -1,9 +0,0 @@
1
- class User < ActiveRecord::Base
2
-
3
- has_many :uploads, :as => :uploadable, :order => 'created_at desc', :dependent => :destroy
4
-
5
- def can_upload?(user)
6
- self.id == user.id
7
- end
8
-
9
- end
@@ -1,14 +0,0 @@
1
- development:
2
- bucket_name: appname_development
3
- access_key_id:
4
- secret_access_key:
5
-
6
- test:
7
- bucket_name: appname_test
8
- access_key_id:
9
- secret_access_key:
10
-
11
- production:
12
- bucket_name: appname
13
- access_key_id:
14
- secret_access_key:
@@ -1,109 +0,0 @@
1
- # Don't change this file!
2
- # Configure your app in config/environment.rb and config/environments/*.rb
3
-
4
- RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
5
-
6
- module Rails
7
- class << self
8
- def boot!
9
- unless booted?
10
- preinitialize
11
- pick_boot.run
12
- end
13
- end
14
-
15
- def booted?
16
- defined? Rails::Initializer
17
- end
18
-
19
- def pick_boot
20
- (vendor_rails? ? VendorBoot : GemBoot).new
21
- end
22
-
23
- def vendor_rails?
24
- File.exist?("#{RAILS_ROOT}/vendor/rails")
25
- end
26
-
27
- def preinitialize
28
- load(preinitializer_path) if File.exist?(preinitializer_path)
29
- end
30
-
31
- def preinitializer_path
32
- "#{RAILS_ROOT}/config/preinitializer.rb"
33
- end
34
- end
35
-
36
- class Boot
37
- def run
38
- load_initializer
39
- Rails::Initializer.run(:set_load_path)
40
- end
41
- end
42
-
43
- class VendorBoot < Boot
44
- def load_initializer
45
- require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
46
- Rails::Initializer.run(:install_gem_spec_stubs)
47
- end
48
- end
49
-
50
- class GemBoot < Boot
51
- def load_initializer
52
- self.class.load_rubygems
53
- load_rails_gem
54
- require 'initializer'
55
- end
56
-
57
- def load_rails_gem
58
- if version = self.class.gem_version
59
- gem 'rails', version
60
- else
61
- gem 'rails'
62
- end
63
- rescue Gem::LoadError => load_error
64
- $stderr.puts %(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.)
65
- exit 1
66
- end
67
-
68
- class << self
69
- def rubygems_version
70
- Gem::RubyGemsVersion if defined? Gem::RubyGemsVersion
71
- end
72
-
73
- def gem_version
74
- if defined? RAILS_GEM_VERSION
75
- RAILS_GEM_VERSION
76
- elsif ENV.include?('RAILS_GEM_VERSION')
77
- ENV['RAILS_GEM_VERSION']
78
- else
79
- parse_gem_version(read_environment_rb)
80
- end
81
- end
82
-
83
- def load_rubygems
84
- require 'rubygems'
85
- min_version = '1.1.1'
86
- unless rubygems_version >= min_version
87
- $stderr.puts %Q(Rails requires RubyGems >= #{min_version} (you have #{rubygems_version}). Please `gem update --system` and try again.)
88
- exit 1
89
- end
90
-
91
- rescue LoadError
92
- $stderr.puts %Q(Rails requires RubyGems >= #{min_version}. Please install RubyGems and try again: http://rubygems.rubyforge.org)
93
- exit 1
94
- end
95
-
96
- def parse_gem_version(text)
97
- $1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*["']([!~<>=]*\s*[\d.]+)["']/
98
- end
99
-
100
- private
101
- def read_environment_rb
102
- File.read("#{RAILS_ROOT}/config/environment.rb")
103
- end
104
- end
105
- end
106
- end
107
-
108
- # All that for this:
109
- Rails.boot!
@@ -1,14 +0,0 @@
1
- development:
2
- adapter: sqlite3
3
- database: db/development.sqlite3
4
- timeout: 5000
5
-
6
- test:
7
- adapter: sqlite3
8
- database: db/test.sqlite3
9
- timeout: 5000
10
-
11
- production:
12
- adapter: sqlite3
13
- database: db/production.sqlite3
14
- timeout: 5000
@@ -1,21 +0,0 @@
1
- RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION
2
-
3
- require File.join(File.dirname(__FILE__), 'boot')
4
-
5
- # Load a global constant so the initializers can use them
6
- require 'ostruct'
7
- require 'yaml'
8
-
9
- ::GlobalConfig = OpenStruct.new(YAML.load_file("#{RAILS_ROOT}/config/global_config.yml")[RAILS_ENV])
10
-
11
-
12
- class TestGemLocator < Rails::Plugin::Locator
13
- def plugins
14
- Rails::Plugin.new(File.join(File.dirname(__FILE__), *%w(.. .. ..)))
15
- end
16
- end
17
-
18
- Rails::Initializer.run do |config|
19
- config.time_zone = 'UTC'
20
- config.plugin_locators << TestGemLocator
21
- end
@@ -1,19 +0,0 @@
1
- # Settings specified here will take precedence over those in config/environment.rb
2
-
3
- # In the development environment your application's code is reloaded on
4
- # every request. This slows down response time but is perfect for development
5
- # since you don't have to restart the webserver when you make code changes.
6
- config.cache_classes = false
7
-
8
- # Log error messages when you accidentally call methods on nil.
9
- config.whiny_nils = true
10
-
11
- # Show full error reports and disable caching
12
- config.action_controller.consider_all_requests_local = true
13
- config.action_controller.perform_caching = false
14
- config.action_view.debug_rjs = true
15
-
16
- # Don't care if the mailer can't send
17
- config.action_mailer.raise_delivery_errors = false
18
-
19
- HOST = "localhost"
@@ -1 +0,0 @@
1
- HOST = "http://example.com"
@@ -1,33 +0,0 @@
1
- # Settings specified here will take precedence over those in config/environment.rb
2
-
3
- # The test environment is used exclusively to run your application's
4
- # test suite. You never need to work with it otherwise. Remember that
5
- # your test database is "scratch space" for the test suite and is wiped
6
- # and recreated between test runs. Don't rely on the data there!
7
- config.cache_classes = true
8
-
9
- # Log error messages when you accidentally call methods on nil.
10
- config.whiny_nils = true
11
-
12
- # Show full error reports and disable caching
13
- config.action_controller.consider_all_requests_local = true
14
- config.action_controller.perform_caching = false
15
-
16
- # Disable request forgery protection in test environment
17
- config.action_controller.allow_forgery_protection = false
18
-
19
- # Tell ActionMailer not to deliver emails to the real world.
20
- # The :test delivery method accumulates sent emails in the
21
- # ActionMailer::Base.deliveries array.
22
- config.action_mailer.delivery_method = :test
23
-
24
- HOST = "localhost"
25
-
26
- config.gem 'thoughtbot-shoulda',
27
- :lib => 'shoulda',
28
- :source => "http://gems.github.com",
29
- :version => '>= 2.9.1'
30
- config.gem 'thoughtbot-factory_girl',
31
- :lib => 'factory_girl',
32
- :source => "http://gems.github.com",
33
- :version => '>= 1.2.0'
@@ -1,18 +0,0 @@
1
- #The account plugin needs to be configured. The following values may be used to customize the account
2
-
3
- default: &DEFAULT
4
-
5
- application_url: localhost:3000
6
-
7
- # session key information
8
- session_key: _uploader_session
9
- session_secret: ea55c4d5e105735fdfb1caec46711b3dd14ec976d0ba95b4c0f575cb046cc358bce7a335ee36eb29253fb680ef8b838d871f6baeff48220fee8e9e42ab84774b
10
-
11
- production:
12
- <<: *DEFAULT
13
-
14
- development:
15
- <<: *DEFAULT
16
-
17
- test:
18
- <<: *DEFAULT
@@ -1,2 +0,0 @@
1
- Disguise::Config.themes_enabled = true
2
- Disguise::Config.use_domain_for_themes = false
@@ -1,13 +0,0 @@
1
- Dir[File.join(RAILS_ROOT, 'lib', 'extensions', '*.rb')].each do |f|
2
- require f
3
- end
4
-
5
- Dir[File.join(RAILS_ROOT, 'lib', '*.rb')].each do |f|
6
- require f
7
- end
8
-
9
- # Rails 2 doesn't like mocks
10
-
11
- Dir[File.join(RAILS_ROOT, 'test', 'mocks', RAILS_ENV, '*.rb')].each do |f|
12
- require f
13
- end
@@ -1,9 +0,0 @@
1
- s3_file = "#{RAILS_ROOT}/config/s3.yml"
2
- if File.exist?(s3_file)
3
- AMAZON_S3_CREDENTIALS = s3_file
4
- else
5
- AMAZON_S3_CREDENTIALS = {
6
- :access_key_id => '',
7
- :secret_access_key => ''
8
- }
9
- end
@@ -1,8 +0,0 @@
1
- # Your secret key for verifying cookie session data integrity.
2
- # If you change this key, all old sessions will become invalid!
3
- # Make sure the secret is at least 30 characters and all random,
4
- # no regular words or you'll be exposed to dictionary attacks.
5
- ActionController::Base.session = {
6
- :key => GlobalConfig.session_key,
7
- :secret => GlobalConfig.session_secret
8
- }
@@ -1,7 +0,0 @@
1
- ActionController::Routing::Routes.draw do |map|
2
-
3
- # Install the default routes as the lowest priority.
4
- map.connect ':controller/:action/:id'
5
- map.connect ':controller/:action/:id.:format'
6
-
7
- end
@@ -1,30 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
-
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
-
6
- <head>
7
- <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
8
- <title>The page you were looking for doesn't exist (404)</title>
9
- <style type="text/css">
10
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
11
- div.dialog {
12
- width: 25em;
13
- padding: 0 4em;
14
- margin: 4em auto 0 auto;
15
- border: 1px solid #ccc;
16
- border-right-color: #999;
17
- border-bottom-color: #999;
18
- }
19
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
20
- </style>
21
- </head>
22
-
23
- <body>
24
- <!-- This file lives in public/404.html -->
25
- <div class="dialog">
26
- <h1>The page you were looking for doesn't exist.</h1>
27
- <p>You may have mistyped the address or the page may have moved.</p>
28
- </div>
29
- </body>
30
- </html>
@@ -1,30 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
-
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
-
6
- <head>
7
- <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
8
- <title>The change you wanted was rejected (422)</title>
9
- <style type="text/css">
10
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
11
- div.dialog {
12
- width: 25em;
13
- padding: 0 4em;
14
- margin: 4em auto 0 auto;
15
- border: 1px solid #ccc;
16
- border-right-color: #999;
17
- border-bottom-color: #999;
18
- }
19
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
20
- </style>
21
- </head>
22
-
23
- <body>
24
- <!-- This file lives in public/422.html -->
25
- <div class="dialog">
26
- <h1>The change you wanted was rejected.</h1>
27
- <p>Maybe you tried to change something you didn't have access to.</p>
28
- </div>
29
- </body>
30
- </html>
@@ -1,30 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
-
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
-
6
- <head>
7
- <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
8
- <title>We're sorry, but something went wrong</title>
9
- <style type="text/css">
10
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
11
- div.dialog {
12
- width: 25em;
13
- padding: 0 4em;
14
- margin: 4em auto 0 auto;
15
- border: 1px solid #ccc;
16
- border-right-color: #999;
17
- border-bottom-color: #999;
18
- }
19
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
20
- </style>
21
- </head>
22
-
23
- <body>
24
- <!-- This file lives in public/500.html -->
25
- <div class="dialog">
26
- <h1>We're sorry, but something went wrong.</h1>
27
- <p>We've been notified about this issue and we'll take a look at it shortly.</p>
28
- </div>
29
- </body>
30
- </html>