disguise 2.0.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +26 -24
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/app/models/domain_theme.rb +1 -1
- data/app/models/theme.rb +4 -4
- data/app/views/admin/themes/_theme.html.erb +3 -3
- data/app/views/admin/themes/edit.html.erb +9 -2
- data/config/locales/ar.yml +20 -0
- data/config/locales/bg.yml +20 -0
- data/config/locales/ca.yml +20 -0
- data/config/locales/cs.yml +20 -0
- data/{locales → config/locales}/da.yml +8 -8
- data/config/locales/de.yml +20 -0
- data/config/locales/el.yml +20 -0
- data/{locales → config/locales}/en.yml +0 -0
- data/config/locales/es.yml +20 -0
- data/config/locales/et.yml +20 -0
- data/config/locales/fa.yml +20 -0
- data/config/locales/fi.yml +20 -0
- data/{locales → config/locales}/fr.yml +8 -8
- data/config/locales/gl.yml +20 -0
- data/config/locales/hi.yml +20 -0
- data/config/locales/hr.yml +20 -0
- data/config/locales/hu.yml +20 -0
- data/config/locales/id.yml +20 -0
- data/config/locales/it.yml +20 -0
- data/config/locales/iw.yml +20 -0
- data/config/locales/ja.yml +20 -0
- data/config/locales/ko.yml +20 -0
- data/config/locales/lt.yml +20 -0
- data/config/locales/lv.yml +20 -0
- data/config/locales/mt.yml +20 -0
- data/config/locales/nl.yml +20 -0
- data/config/locales/no.yml +21 -0
- data/config/locales/pl.yml +20 -0
- data/config/locales/pt-PT.yml +20 -0
- data/{locales → config/locales}/pt.yml +0 -0
- data/config/locales/ro.yml +20 -0
- data/config/locales/ru.yml +20 -0
- data/config/locales/sk.yml +20 -0
- data/config/locales/sl.yml +20 -0
- data/{locales → config/locales}/sq.yml +7 -7
- data/config/locales/sr.yml +20 -0
- data/config/locales/sv.yml +20 -0
- data/config/locales/th.yml +20 -0
- data/config/locales/tl.yml +20 -0
- data/config/locales/tr.yml +20 -0
- data/config/locales/uk.yml +20 -0
- data/config/locales/vi.yml +20 -0
- data/config/locales/zh-CN.yml +20 -0
- data/config/locales/zh-TW.yml +20 -0
- data/config/locales/zh.yml +20 -0
- data/config/routes.rb +6 -0
- data/disguise.gemspec +157 -181
- data/lib/disguise.rb +2 -10
- data/lib/disguise/config.rb +22 -9
- data/lib/disguise/controllers/disguise_application.rb +58 -0
- data/lib/disguise/engine.rb +14 -0
- data/lib/tasks/diguise.rake +9 -0
- data/test/{rails_root → rails_test}/.gitignore +0 -0
- data/test/{rails_root → rails_test}/.rake_tasks +0 -0
- data/test/rails_test/Gemfile +18 -0
- data/test/rails_test/Gemfile.lock +114 -0
- data/test/{rails_root → rails_test}/Rakefile +2 -4
- data/test/{rails_root → rails_test}/app/controllers/admin/domain_themes_controller.rb +0 -0
- data/test/{rails_root → rails_test}/app/controllers/admin/themes_controller.rb +0 -0
- data/test/{rails_root → rails_test}/app/controllers/application_controller.rb +0 -0
- data/test/{rails_root → rails_test}/app/controllers/default_controller.rb +0 -0
- data/test/{rails_root → rails_test}/app/models/.keep +0 -0
- data/test/rails_test/app/models/user.rb +3 -0
- data/test/{rails_root → rails_test}/app/views/default/index.html.erb +0 -0
- data/test/{rails_root → rails_test}/app/views/layouts/default.html.erb +0 -0
- data/test/rails_test/config.ru +4 -0
- data/test/rails_test/config/application.rb +42 -0
- data/test/rails_test/config/boot.rb +13 -0
- data/test/rails_test/config/database.yml +14 -0
- data/test/rails_test/config/environment.rb +5 -0
- data/test/rails_test/config/environments/development.rb +26 -0
- data/test/rails_test/config/environments/production.rb +49 -0
- data/test/rails_test/config/environments/test.rb +35 -0
- data/test/rails_test/config/initializers/backtrace_silencers.rb +7 -0
- data/test/rails_test/config/initializers/disguise.rb +5 -0
- data/test/{rails_root → rails_test}/config/initializers/inflections.rb +2 -2
- data/test/{rails_root → rails_test}/config/initializers/mime_types.rb +0 -0
- data/test/rails_test/config/initializers/secret_token.rb +7 -0
- data/test/rails_test/config/initializers/session_store.rb +8 -0
- data/test/rails_test/config/routes.rb +3 -0
- data/test/{rails_root → rails_test}/db/.keep +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090530170040_create_themes.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090602041838_create_users.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090606153236_create_domain_themes.rb +0 -0
- data/test/{rails_root → rails_test}/features/step_definitions/webrat_steps.rb +0 -0
- data/test/{rails_root → rails_test}/features/support/env.rb +0 -0
- data/test/{rails_root → rails_test}/public/.htaccess +0 -0
- data/test/rails_test/public/404.html +26 -0
- data/test/rails_test/public/422.html +26 -0
- data/test/rails_test/public/500.html +26 -0
- data/test/{rails_root → rails_test}/public/dispatch.rb +1 -1
- data/test/{rails_root → rails_test}/public/favicon.ico +0 -0
- data/test/{rails_root → rails_test}/public/images/blue/preview.gif +0 -0
- data/test/rails_test/public/images/rails.png +0 -0
- data/test/{rails_root → rails_test}/public/javascripts/application.js +0 -0
- data/test/{rails_root → rails_test}/public/javascripts/controls.js +75 -73
- data/test/{rails_root → rails_test}/public/javascripts/dragdrop.js +171 -169
- data/test/{rails_root → rails_test}/public/javascripts/effects.js +180 -177
- data/test/rails_test/public/javascripts/prototype.js +6001 -0
- data/test/rails_test/public/javascripts/rails.js +175 -0
- data/test/rails_test/public/robots.txt +5 -0
- data/test/{rails_root/public/stylesheets/.keep → rails_test/public/stylesheets/.gitkeep} +0 -0
- data/test/{rails_root/test/functional/.keep → rails_test/public/stylesheets/application.css} +0 -0
- data/test/rails_test/script/rails +6 -0
- data/test/{rails_root → rails_test}/test/factories.rb +0 -0
- data/test/{rails_root/test/integration → rails_test/test/functional}/.keep +0 -0
- data/test/{rails_root → rails_test}/test/functional/admin/domain_themes_controller_test.rb +6 -6
- data/test/{rails_root → rails_test}/test/functional/admin/themes_controller_test.rb +6 -6
- data/test/{rails_root → rails_test}/test/functional/default_controller_test.rb +2 -2
- data/test/{rails_root/test/mocks/development → rails_test/test/integration}/.keep +0 -0
- data/test/{rails_root → rails_test}/test/test_helper.rb +6 -9
- data/test/{rails_root/test/mocks/test → rails_test/test/unit}/.keep +0 -0
- data/test/{rails_root → rails_test}/test/unit/domain_theme_test.rb +2 -1
- data/test/{rails_root → rails_test}/test/unit/theme_test.rb +4 -2
- data/test/{rails_root → rails_test}/themes/blue/description.txt +0 -0
- data/test/{rails_root → rails_test}/themes/blue/locales/blue.yml +0 -0
- data/test/{rails_root → rails_test}/themes/blue/locales/en.yml +0 -0
- data/test/{rails_root → rails_test}/themes/blue/views/default/index.html.erb +0 -0
- data/test/{rails_root → rails_test}/themes/blue/views/layouts/default.html.erb +0 -0
- data/test/{rails_root → rails_test}/themes/blue/views/layouts/global/_footer.html.erb +0 -0
- data/test/{rails_root → rails_test}/themes/blue/views/layouts/global/_head.html.erb +0 -0
- data/test/{rails_root → rails_test}/themes/blue/views/layouts/global/_header.html.erb +0 -0
- data/test/{rails_root → rails_test}/themes/red/description.txt +0 -0
- data/test/{rails_root → rails_test}/themes/red/locales/en.yml +0 -0
- data/test/{rails_root → rails_test}/themes/red/views/layouts/default.html.erb +0 -0
- data/test/{rails_root → rails_test}/themes/red/views/layouts/global/_footer.html.erb +0 -0
- data/test/{rails_root → rails_test}/themes/red/views/layouts/global/_head.html.erb +0 -0
- data/test/{rails_root → rails_test}/themes/red/views/layouts/global/_header.html.erb +0 -0
- metadata +159 -183
- data/config/disguise_routes.rb +0 -7
- data/lib/action_controller/disguise_application.rb +0 -61
- data/lib/disguise/initialize_routes.rb +0 -8
- data/lib/disguise/tasks.rb +0 -34
- data/locales/ar.yml +0 -20
- data/locales/bg.yml +0 -20
- data/locales/ca.yml +0 -20
- data/locales/cs.yml +0 -20
- data/locales/de.yml +0 -20
- data/locales/el.yml +0 -20
- data/locales/es.yml +0 -20
- data/locales/et.yml +0 -20
- data/locales/fa.yml +0 -20
- data/locales/fi.yml +0 -20
- data/locales/gl.yml +0 -20
- data/locales/hi.yml +0 -20
- data/locales/hr.yml +0 -20
- data/locales/hu.yml +0 -20
- data/locales/id.yml +0 -20
- data/locales/it.yml +0 -20
- data/locales/iw.yml +0 -20
- data/locales/ja.yml +0 -20
- data/locales/ko.yml +0 -20
- data/locales/lt.yml +0 -20
- data/locales/lv.yml +0 -20
- data/locales/mt.yml +0 -20
- data/locales/nl.yml +0 -20
- data/locales/no.yml +0 -21
- data/locales/pl.yml +0 -20
- data/locales/pt-PT.yml +0 -20
- data/locales/ro.yml +0 -20
- data/locales/ru.yml +0 -20
- data/locales/sk.yml +0 -20
- data/locales/sl.yml +0 -20
- data/locales/sr.yml +0 -20
- data/locales/sv.yml +0 -20
- data/locales/th.yml +0 -20
- data/locales/tl.yml +0 -20
- data/locales/tr.yml +0 -20
- data/locales/uk.yml +0 -20
- data/locales/vi.yml +0 -20
- data/locales/zh-CN.yml +0 -20
- data/locales/zh-TW.yml +0 -20
- data/locales/zh.yml +0 -20
- data/rails/init.rb +0 -2
- data/tasks/rails.rake +0 -2
- data/test/rails_root/Capfile +0 -3
- data/test/rails_root/app/models/user.rb +0 -9
- data/test/rails_root/config/amazon_s3.yml +0 -14
- data/test/rails_root/config/boot.rb +0 -109
- data/test/rails_root/config/database.yml +0 -14
- data/test/rails_root/config/environment.rb +0 -21
- data/test/rails_root/config/environments/development.rb +0 -19
- data/test/rails_root/config/environments/production.rb +0 -1
- data/test/rails_root/config/environments/test.rb +0 -33
- data/test/rails_root/config/global_config.yml +0 -18
- data/test/rails_root/config/initializers/disguise.rb +0 -2
- data/test/rails_root/config/initializers/requires.rb +0 -13
- data/test/rails_root/config/initializers/s3_credentials.rb +0 -9
- data/test/rails_root/config/initializers/session_store.rb +0 -8
- data/test/rails_root/config/routes.rb +0 -7
- data/test/rails_root/public/404.html +0 -30
- data/test/rails_root/public/422.html +0 -30
- data/test/rails_root/public/500.html +0 -30
- data/test/rails_root/public/images/rails.png +0 -0
- data/test/rails_root/public/images/red/preview.gif +0 -0
- data/test/rails_root/public/javascripts/builder.js +0 -136
- data/test/rails_root/public/javascripts/prototype.js +0 -4225
- data/test/rails_root/public/javascripts/scriptaculous.js +0 -58
- data/test/rails_root/public/javascripts/slider.js +0 -277
- data/test/rails_root/public/javascripts/sound.js +0 -60
- data/test/rails_root/public/robots.txt +0 -1
- data/test/rails_root/public/stylesheets/themes/blue/styles.css +0 -1
- data/test/rails_root/public/stylesheets/themes/red/styles.css +0 -1
- data/test/rails_root/script/about +0 -3
- data/test/rails_root/script/breakpointer +0 -3
- data/test/rails_root/script/console +0 -3
- data/test/rails_root/script/create_project.rb +0 -52
- data/test/rails_root/script/cucumber +0 -7
- data/test/rails_root/script/dbconsole +0 -3
- data/test/rails_root/script/destroy +0 -3
- data/test/rails_root/script/generate +0 -3
- data/test/rails_root/script/performance/benchmarker +0 -3
- data/test/rails_root/script/performance/profiler +0 -3
- data/test/rails_root/script/performance/request +0 -3
- data/test/rails_root/script/plugin +0 -3
- data/test/rails_root/script/process/inspector +0 -3
- data/test/rails_root/script/process/reaper +0 -3
- data/test/rails_root/script/process/spawner +0 -3
- data/test/rails_root/script/runner +0 -3
- data/test/rails_root/script/server +0 -3
- data/test/rails_root/test/unit/.keep +0 -0
data/locales/zh-CN.yml
DELETED
@@ -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。
|
data/locales/zh-TW.yml
DELETED
@@ -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中指定的每個主題下面。
|
data/locales/zh.yml
DELETED
@@ -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。
|
data/rails/init.rb
DELETED
data/tasks/rails.rake
DELETED
data/test/rails_root/Capfile
DELETED
@@ -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,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,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,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,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>
|