refinerycms 0.9.5.29 → 0.9.5.30
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/.gitignore +7 -1
- data/.yardopts +21 -0
- data/CONTRIBUTORS +5 -2
- data/{README → README.rdoc} +6 -3
- data/Rakefile +8 -11
- data/VERSION +1 -1
- data/app/controllers/application.rb +1 -1
- data/app/controllers/application_controller.rb +1 -2
- data/bin/refinery +23 -23
- data/config/amazon_s3.yml.example +18 -0
- data/config/database.yml.example +0 -0
- data/config/environment.rb +4 -3
- data/config/environments/production.rb +6 -1
- data/config/preinitializer.rb +4 -0
- data/config/rackspace_cloudfiles.yml.example +14 -0
- data/db/migrate/20100114092849_add_themes_table.rb +19 -0
- data/db/schema.rb +12 -1
- data/db/seeds.rb +1 -0
- data/public/images/refinery/icons/star.png +0 -0
- data/public/javascripts/wymeditor/jquery.refinery.wymeditor.js +5 -4
- data/public/stylesheets/refinery/refinery.css +1 -9
- data/themes/demolicious/LICENSE +21 -0
- data/themes/demolicious/README +1 -0
- data/themes/demolicious/images/footer_background.png +0 -0
- data/themes/demolicious/images/header_background.png +0 -0
- data/themes/demolicious/preview.png +0 -0
- data/themes/demolicious/stylesheets/application.css +94 -0
- data/themes/demolicious/stylesheets/formatting.css +36 -0
- data/themes/demolicious/stylesheets/home.css +11 -0
- data/themes/demolicious/stylesheets/ie6.css +0 -0
- data/themes/demolicious/stylesheets/ie7.css +0 -0
- data/themes/demolicious/views/layouts/application.html.erb +33 -0
- data/themes/demolicious/views/pages/home.html.erb +1 -0
- data/themes/demolicious/views/pages/show.html.erb +1 -0
- data/themes/hemingway/LICENSE +7 -0
- data/themes/hemingway/README +3 -0
- data/themes/hemingway/images/archives.gif +0 -0
- data/themes/hemingway/images/footer_black.gif +0 -0
- data/themes/hemingway/images/kyle-header.jpg +0 -0
- data/themes/hemingway/images/readon_black.gif +0 -0
- data/themes/hemingway/images/search.gif +0 -0
- data/themes/hemingway/images/spinner.gif +0 -0
- data/themes/hemingway/images/trackback_pingback.gif +0 -0
- data/themes/hemingway/preview.png +0 -0
- data/themes/hemingway/stylesheets/application.css +713 -0
- data/themes/hemingway/views/layouts/application.html.erb +64 -0
- data/themes/hemingway/views/shared/content_page.html.erb +0 -0
- data/vendor/plugins/dashboard/app/controllers/admin/dashboard_controller.rb +17 -6
- data/vendor/plugins/dashboard/app/helpers/admin/dashboard_helper.rb +3 -3
- data/vendor/plugins/dashboard/app/views/admin/dashboard/_recent_activity.html.erb +1 -1
- data/vendor/plugins/images/app/models/image.rb +4 -3
- data/vendor/plugins/inquiries/app/models/inquiry.rb +2 -1
- data/vendor/plugins/news/app/controllers/admin/news_items_controller.rb +1 -1
- data/vendor/plugins/news/app/models/news_item.rb +5 -7
- data/vendor/plugins/news/app/views/admin/news_items/index.html.erb +10 -14
- data/vendor/plugins/pages/app/controllers/admin/pages_controller.rb +7 -9
- data/vendor/plugins/pages/app/models/page.rb +4 -9
- data/vendor/plugins/pages/app/models/page_part.rb +1 -8
- data/vendor/plugins/pages/app/views/admin/pages/index.html.erb +2 -2
- data/vendor/plugins/refinery/app/views/admin/_head.html.erb +7 -1
- data/vendor/plugins/refinery/app/views/shared/_content_page.html.erb +1 -1
- data/vendor/plugins/refinery/app/views/shared/_menu.html.erb +16 -14
- data/vendor/plugins/refinery/app/views/shared/_message.html.erb +4 -4
- data/vendor/plugins/refinery/app/views/shared/admin/_search.html.erb +2 -2
- data/vendor/plugins/refinery/lib/crud.rb +78 -26
- data/vendor/plugins/refinery/lib/generators/refinery/templates/migration.rb +2 -1
- data/vendor/plugins/refinery/lib/generators/refinery/templates/model.rb +2 -1
- data/vendor/plugins/refinery/lib/refinery/application_controller.rb +5 -1
- data/vendor/plugins/refinery/lib/refinery/html_truncation_helper.rb +2 -2
- data/vendor/plugins/refinery/lib/refinery/initializer.rb +1 -1
- data/vendor/plugins/refinery/lib/refinery/plugin.rb +1 -1
- data/vendor/plugins/refinery/lib/tasks/doc.rake +29 -0
- data/vendor/plugins/refinery/lib/tasks/refinery.rake +1 -2
- data/vendor/plugins/refinery/lib/tasks/yard.rake +32 -0
- data/vendor/plugins/refinery_settings/app/models/refinery_setting.rb +4 -0
- data/vendor/plugins/refinery_settings/app/views/admin/refinery_settings/_refinery_setting.html.erb +1 -1
- data/vendor/plugins/refinery_settings/app/views/admin/refinery_settings/index.html.erb +12 -18
- data/vendor/plugins/resources/app/models/resource.rb +5 -4
- data/vendor/plugins/resources/config/routes.rb +3 -1
- data/vendor/plugins/themes/app/controllers/admin/themes_controller.rb +25 -0
- data/vendor/plugins/themes/app/controllers/themes_controller.rb +49 -0
- data/vendor/plugins/themes/app/models/theme.rb +62 -0
- data/vendor/plugins/themes/app/views/admin/themes/_form.html.erb +11 -0
- data/vendor/plugins/themes/app/views/admin/themes/_theme.html.erb +24 -0
- data/vendor/plugins/themes/app/views/admin/themes/edit.html.erb +1 -0
- data/vendor/plugins/themes/app/views/admin/themes/index.html.erb +35 -0
- data/vendor/plugins/themes/app/views/admin/themes/new.html.erb +1 -0
- data/vendor/plugins/themes/config/routes.rb +12 -0
- data/vendor/plugins/themes/rails/init.rb +9 -0
- data/vendor/plugins/themes/themes.rdoc +131 -0
- metadata +52 -39
- data/config/amazon_s3.yml +0 -17
- data/config/rackspace_cloudfiles.yml +0 -14
- data/public/images/lightbox/bullet.gif +0 -0
- data/public/images/lightbox/close.gif +0 -0
- data/public/images/lightbox/closelabel.gif +0 -0
- data/public/images/lightbox/donate-button.gif +0 -0
- data/public/images/lightbox/download-icon.gif +0 -0
- data/public/images/lightbox/loading.gif +0 -0
- data/public/images/lightbox/nextlabel.gif +0 -0
- data/public/images/lightbox/prevlabel.gif +0 -0
- data/public/images/refinery/add.gif +0 -0
- data/public/images/refinery/cross.gif +0 -0
- data/public/images/refinery/deactive-gradient.gif +0 -0
- data/public/images/refinery/delete.gif +0 -0
- data/public/images/refinery/drag.gif +0 -0
- data/public/images/refinery/edit.gif +0 -0
- data/public/images/refinery/header-background.gif +0 -0
- data/public/images/refinery/icons/bin_closed.png +0 -0
- data/public/images/refinery/icons/help.png +0 -0
- data/public/images/refinery/icons/page_link.png +0 -0
- data/public/images/refinery/icons/reorder.png +0 -0
- data/public/images/refinery/icons/user.png +0 -0
- data/public/images/refinery/info.gif +0 -0
- data/public/images/refinery/m-tools.gif +0 -0
- data/public/images/refinery/magnifier.png +0 -0
- data/public/images/refinery/resolve-digital.gif +0 -0
- data/public/images/refinery/search.gif +0 -0
- data/public/images/refinery/shad_blcorner.png +0 -0
- data/public/images/refinery/shad_bottom.png +0 -0
- data/public/images/refinery/shad_brcorner.png +0 -0
- data/public/images/refinery/shad_tlcorner.png +0 -0
- data/public/images/refinery/shad_trcorner.png +0 -0
- data/public/images/refinery/tableft.gif +0 -0
- data/public/images/refinery/tabright.gif +0 -0
- data/public/images/refinery/tick.gif +0 -0
data/.gitignore
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
public/system/*
|
|
2
|
+
public/themes/*
|
|
2
3
|
log/*.log
|
|
3
4
|
tmp/**/*
|
|
4
5
|
.DS_Store
|
|
5
6
|
doc/api
|
|
6
7
|
doc/app
|
|
8
|
+
doc/*
|
|
7
9
|
config/database.yml
|
|
10
|
+
config/amazon_s3.yml
|
|
11
|
+
config/rackspace_cloudfiles.yml
|
|
8
12
|
public/images/system/*
|
|
9
13
|
nbproject
|
|
10
14
|
index/**/*
|
|
@@ -13,4 +17,6 @@ db/*.sqlite3
|
|
|
13
17
|
*.autobackupbyrefinery.*
|
|
14
18
|
refinerycms*.gem
|
|
15
19
|
public/javascripts/cache
|
|
16
|
-
public/stylesheets/cache
|
|
20
|
+
public/stylesheets/cache
|
|
21
|
+
config/database.yml.example
|
|
22
|
+
.yardoc/
|
data/.yardopts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
--title "Refinery CMS"
|
|
2
|
+
lib/**/*.rb'
|
|
3
|
+
app/**/*.rb
|
|
4
|
+
db/seeds.rb
|
|
5
|
+
config/preinitializer.rb
|
|
6
|
+
vendor/plugins/images/**/*.rb
|
|
7
|
+
vendor/plugins/authentication/**/*.rb
|
|
8
|
+
vendor/plugins/dashboard/**/*.rb
|
|
9
|
+
vendor/plugins/inquiries/**/*.rb
|
|
10
|
+
vendor/plugins/news/**/*.rb
|
|
11
|
+
vendor/plugins/pages/**/*.rb
|
|
12
|
+
vendor/plugins/refinery/**/*.rb
|
|
13
|
+
vendor/plugins/refinery_dialogs/**/*.rb
|
|
14
|
+
vendor/plugins/refinery_settings/**/*.rb
|
|
15
|
+
vendor/plugins/resources/**/*.rb
|
|
16
|
+
vendor/plugins/themes/**/*.rb
|
|
17
|
+
-
|
|
18
|
+
README.rdoc
|
|
19
|
+
LICENSE
|
|
20
|
+
CONTRIBUTORS
|
|
21
|
+
vendor/plugins/themes/themes.rdoc
|
data/CONTRIBUTORS
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
Major Contributors
|
|
2
|
-
- djones - David Jones - http://www.d-jones.com http://www.resolvedigital.co.nz
|
|
3
2
|
- parndt - Philip Arndt - http://www.resolvedigital.co.nz
|
|
3
|
+
- djones - David Jones - http://www.d-jones.com http://www.resolvedigital.co.nz
|
|
4
4
|
|
|
5
5
|
Minor Contributors
|
|
6
6
|
- ryanwood - Ryan Wood - http://www.ryanwood.com
|
|
7
7
|
- hernan - Hernan Fernandez
|
|
8
|
-
- btucker - Ben Tucker - http://btucker.net
|
|
8
|
+
- btucker - Ben Tucker - http://btucker.net
|
|
9
|
+
- avit - Andrew Vit - http://avit.ca
|
|
10
|
+
- stevenheidel - Steven Heidel - http://www.livingskywebdesign.com
|
|
11
|
+
- moretea - Maarten Hoogendoorn
|
data/{README → README.rdoc}
RENAMED
|
@@ -10,11 +10,14 @@ After building 40 real client sites, we began making our own content manager whi
|
|
|
10
10
|
Refinery is released under the MIT license and is copyright (c) 2005-2009 Resolve Digital Ltd.
|
|
11
11
|
A copy of the MIT license can be found in the LICENSE file.
|
|
12
12
|
|
|
13
|
-
== Help
|
|
13
|
+
== Help and Developer Documentation
|
|
14
14
|
|
|
15
15
|
For help and general discussion about RefineryCMS, we have set up a Google Group at:
|
|
16
16
|
http://groups.google.com/group/refinery-cms
|
|
17
17
|
|
|
18
|
+
Developer documentation is available here:
|
|
19
|
+
http://api.refinerycms.org
|
|
20
|
+
|
|
18
21
|
== Setup
|
|
19
22
|
|
|
20
23
|
Step One: Getting the Refinery code!
|
|
@@ -50,7 +53,7 @@ You will be prompted to setup your first user.
|
|
|
50
53
|
|
|
51
54
|
== Environment required
|
|
52
55
|
|
|
53
|
-
Refinery runs using a number of gems which (as of Refinery version 0.9.5.
|
|
56
|
+
Refinery runs using a number of gems which (as of Refinery version 0.9.5.29) are outlined below:
|
|
54
57
|
|
|
55
58
|
- "rake", :version => ">= 0.8.3"
|
|
56
59
|
- "friendly_id", :version => ">= 2.2.2"
|
|
@@ -59,7 +62,7 @@ Refinery runs using a number of gems which (as of Refinery version 0.9.5.22) are
|
|
|
59
62
|
- "aasm", :version => ">= 2.1.3"
|
|
60
63
|
- "unicode", :version => ">= 0.1"
|
|
61
64
|
- "slim_scrooge", :version => ">= 1.0.3"
|
|
62
|
-
- "hpricot", :version => "
|
|
65
|
+
- "hpricot", :version => ">= 0.8.1"
|
|
63
66
|
|
|
64
67
|
== Updates to core files
|
|
65
68
|
|
data/Rakefile
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
begin
|
|
5
5
|
# Load up the environment instead of just the boot file because we want all of the tasks available.
|
|
6
6
|
require(File.join(File.dirname(__FILE__), 'config', 'environment'))
|
|
7
|
-
rescue
|
|
7
|
+
rescue Exception
|
|
8
8
|
# Load up the boot file instead because there's something wrong with the environment.
|
|
9
9
|
require(File.join(File.dirname(__FILE__), 'config', 'boot'))
|
|
10
10
|
end
|
|
@@ -15,17 +15,12 @@ require 'rake/rdoctask'
|
|
|
15
15
|
|
|
16
16
|
require 'tasks/rails'
|
|
17
17
|
|
|
18
|
+
extra_rake_tasks = []
|
|
18
19
|
# When running Refinery from a gem we lose the rake tasks, so add them back in:
|
|
19
|
-
unless REFINERY_ROOT == RAILS_ROOT
|
|
20
|
-
Dir[File.join(REFINERY_ROOT, %w(vendor plugins * ** tasks ** *.rake))].sort.each { |ext| load ext }
|
|
21
|
-
end
|
|
22
|
-
|
|
20
|
+
extra_rake_tasks << Dir[File.join(REFINERY_ROOT, %w(vendor plugins * ** tasks ** *.rake))].sort unless REFINERY_ROOT == RAILS_ROOT
|
|
23
21
|
# We also need to load in the rake tasks from gem plugins whether Refinery is a gem or not:
|
|
24
|
-
if defined?($refinery_gem_plugin_lib_paths) && !$refinery_gem_plugin_lib_paths.nil?
|
|
25
|
-
|
|
26
|
-
Dir[File.join(path, %w(tasks ** *.rake))].sort.each { |ext| load ext }
|
|
27
|
-
end
|
|
28
|
-
end
|
|
22
|
+
extra_rake_tasks << $refinery_gem_plugin_lib_paths.collect {|path| Dir[File.join(%W(#{path} tasks ** *.rake))].sort} if defined?($refinery_gem_plugin_lib_paths) && !$refinery_gem_plugin_lib_paths.nil?
|
|
23
|
+
extra_rake_tasks.flatten.compact.uniq.each {|rake| load rake }
|
|
29
24
|
|
|
30
25
|
desc 'Removes trailing whitespace'
|
|
31
26
|
task :whitespace do
|
|
@@ -41,7 +36,9 @@ begin
|
|
|
41
36
|
s.email = %q{info@refinerycms.com}
|
|
42
37
|
s.homepage = %q{http://refinerycms.com}
|
|
43
38
|
s.authors = ["Resolve Digital", "David Jones", "Philip Arndt"]
|
|
44
|
-
s.extra_rdoc_files = %w(README CONTRIBUTORS LICENSE VERSION)
|
|
39
|
+
s.extra_rdoc_files = %w(README.rdoc CONTRIBUTORS LICENSE VERSION)
|
|
40
|
+
s.rdoc_options << "--inline-source"
|
|
41
|
+
s.has_rdoc = true
|
|
45
42
|
end
|
|
46
43
|
|
|
47
44
|
namespace :version do
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.9.5.
|
|
1
|
+
0.9.5.30
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
# This file is here to support web servers who load Rails in the old fashion e.g. some builds of Phusion Passenger.
|
|
2
2
|
# This will simply load the application controller using the new style if this file is ever loaded.
|
|
3
|
-
require_dependency 'application_controller'
|
|
3
|
+
require_dependency 'application_controller'
|
data/bin/refinery
CHANGED
|
@@ -16,45 +16,45 @@ unless (app_path = ARGV.shift).nil? or app_path.length == 0
|
|
|
16
16
|
unless File.exists? RAILS_ROOT and !ARGV.include?("--force")
|
|
17
17
|
# make the application path directory
|
|
18
18
|
FileUtils::makedirs RAILS_ROOT
|
|
19
|
-
|
|
19
|
+
|
|
20
20
|
# copy in all of the relevant directories and root files.
|
|
21
|
-
to_copy = %w(app config db lib public script CONTRIBUTORS LICENSE Rakefile README).map do |dir|
|
|
21
|
+
to_copy = %w(app config db lib public script CONTRIBUTORS LICENSE Rakefile README.rdoc).map do |dir|
|
|
22
22
|
File.join REFINERY_ROOT, dir
|
|
23
23
|
end
|
|
24
24
|
FileUtils::cp_r to_copy, RAILS_ROOT, :verbose => false
|
|
25
25
|
# ensure lib/refinery_initializer.rb doesn't make it in.
|
|
26
26
|
FileUtils::rm File.join(RAILS_ROOT, %w(lib refinery_initializer.rb)) if File.exists?(File.join(RAILS_ROOT, %w(lib refinery_initializer.rb)))
|
|
27
|
-
|
|
28
|
-
# add in the
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
27
|
+
|
|
28
|
+
# add in the config files
|
|
29
|
+
for config in ["database", "amazon_s3", "rackspace_cloudfiles"]
|
|
30
|
+
FileUtils::move File.join(RAILS_ROOT, %W(config #{config}.yml.example)), File.join(RAILS_ROOT, %W(config #{config}.yml))
|
|
31
|
+
|
|
32
|
+
# figure out the app name from the install path and swap out your_local_xxx with this name.
|
|
33
|
+
unless RAILS_ROOT == "/" or RUBY_PLATFORM =~ /mswin/
|
|
34
|
+
app_name = RAILS_ROOT.split(File::SEPARATOR).last
|
|
35
|
+
# read in the file and split up the lines
|
|
36
|
+
lines = File.open(File.join(RAILS_ROOT, %W(config #{config}.yml)), "r").read.split("\n")
|
|
37
|
+
lines.each do |line|
|
|
38
|
+
line.gsub!("your_local_#{config}", "#{app_name}_development")
|
|
39
|
+
line.gsub!("your_test_#{config}", "#{app_name}_test")
|
|
40
|
+
line.gsub!("your_production_#{config}", "#{app_name}_production")
|
|
41
|
+
end
|
|
42
|
+
# write the new content into the file.
|
|
43
|
+
File.open(File.join(RAILS_ROOT, %W(config #{config}.yml)), "w").puts(lines.join("\n"))
|
|
40
44
|
end
|
|
41
|
-
# write the new content into the file.
|
|
42
|
-
File.open(File.join(RAILS_ROOT, %w(config database.yml)), "w").puts(lines.join("\n"))
|
|
43
|
-
else
|
|
44
|
-
database_name = "your_local_database"
|
|
45
45
|
end
|
|
46
46
|
|
|
47
47
|
# update the environment file with a new secret key.
|
|
48
48
|
require 'digest/sha1'
|
|
49
49
|
new_digest = ""
|
|
50
50
|
3.times { new_digest << Digest::SHA1.hexdigest("--refinery--#{Time.now.to_s}--#{rand(10000000)}--") }
|
|
51
|
-
|
|
51
|
+
|
|
52
52
|
# read in the file and split up the lines
|
|
53
53
|
lines = File.open(File.join(RAILS_ROOT, %w(config environment.rb)), "r").read.split("\n")
|
|
54
54
|
lines.each do |line|
|
|
55
55
|
match = line.scan(/(:secret)([^']*)([\'])([^\']*)/).flatten.last
|
|
56
56
|
line.gsub!(match, new_digest) unless match.nil?
|
|
57
|
-
end
|
|
57
|
+
end
|
|
58
58
|
# write the new content into the file.
|
|
59
59
|
File.open(File.join(RAILS_ROOT, %w(config environment.rb)), "w").puts(lines.join("\n"))
|
|
60
60
|
|
|
@@ -63,14 +63,14 @@ unless (app_path = ARGV.shift).nil? or app_path.length == 0
|
|
|
63
63
|
|
|
64
64
|
# update core script files with symlinks.
|
|
65
65
|
system "refinery-update-core #{RAILS_ROOT} --from-refinery-installer"
|
|
66
|
-
|
|
66
|
+
|
|
67
67
|
puts "=== ACTION REQUIRED ==="
|
|
68
68
|
puts "\nNow run these commands:"
|
|
69
69
|
puts "\ncd #{RAILS_ROOT}"
|
|
70
70
|
puts "rake gems:install"
|
|
71
71
|
puts "rake db:setup"
|
|
72
72
|
puts "\nruby script/server"
|
|
73
|
-
puts "\nThis will install all the required gems, set up your database
|
|
73
|
+
puts "\nThis will install all the required gems, set up your database, and launches the built-in webserver."
|
|
74
74
|
puts "You can now see your site running in your browser at http://localhost:3000"
|
|
75
75
|
puts "\nThanks for installing Refinery, enjoy creating your new application!"
|
|
76
76
|
puts "---------\n\n"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
login: &login
|
|
2
|
+
access_key_id:
|
|
3
|
+
secret_access_key:
|
|
4
|
+
|
|
5
|
+
development:
|
|
6
|
+
bucket_name: your_local_amazon_s3
|
|
7
|
+
<<: *login
|
|
8
|
+
distribution_domain:
|
|
9
|
+
|
|
10
|
+
test:
|
|
11
|
+
bucket_name: your_test_amazon_s3
|
|
12
|
+
<<: *login
|
|
13
|
+
distribution_domain:
|
|
14
|
+
|
|
15
|
+
production:
|
|
16
|
+
bucket_name: your_production_amazon_s3
|
|
17
|
+
<<: *login
|
|
18
|
+
distribution_domain:
|
data/config/database.yml.example
CHANGED
|
File without changes
|
data/config/environment.rb
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
# Specifies gem version of Rails to use when vendor/rails is not present
|
|
8
8
|
RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION
|
|
9
9
|
# Freeze to a specific version of refinerycms when running as a gem
|
|
10
|
-
# REFINERY_GEM_VERSION = '0.9.5.
|
|
10
|
+
# REFINERY_GEM_VERSION = '0.9.5.29' unless defined? REFINERY_GEM_VERSION
|
|
11
11
|
|
|
12
12
|
# Bootstrap the Rails environment, frameworks, and default configuration
|
|
13
13
|
require File.join(File.dirname(__FILE__), 'boot')
|
|
@@ -64,11 +64,12 @@ eval("#{(defined? Refinery::Initializer) ? Refinery : Rails}::Initializer").run
|
|
|
64
64
|
|
|
65
65
|
#===REFINERY REQUIRED GEMS===
|
|
66
66
|
config.gem "rake", :version => ">= 0.8.3", :lib => "rake"
|
|
67
|
+
config.gem "rubyzip", :version => ">= 0.9.1", :lib => "zip/zip"
|
|
67
68
|
config.gem "friendly_id", :version => ">= 2.2.2", :lib => "friendly_id"
|
|
68
69
|
config.gem "will_paginate", :version => ">= 2.3.11", :lib => "will_paginate", :source => "http://gemcutter.org"
|
|
69
70
|
config.gem "rails", :version => ">= 2.3.5", :lib => "rails"
|
|
70
71
|
config.gem "aasm", :version => ">= 2.1.3", :lib => "aasm", :source => "http://gemcutter.org"
|
|
71
72
|
config.gem "slim_scrooge", :version => ">= 1.0.3", :lib => "slim_scrooge", :source => "http://gemcutter.org" #unless RUBY_PLATFORM =~ /mswin|mingw/ # kill gem when windows is running.
|
|
72
|
-
config.gem "hpricot", :version => "
|
|
73
|
+
config.gem "hpricot", :version => ">= 0.8.1", :lib => "hpricot", :source => "http://gemcutter.org"
|
|
73
74
|
#===REFINERY END OF REQUIRED GEMS===
|
|
74
|
-
end
|
|
75
|
+
end
|
|
@@ -19,4 +19,9 @@ config.action_controller.perform_caching = true
|
|
|
19
19
|
# config.action_mailer.raise_delivery_errors = false
|
|
20
20
|
|
|
21
21
|
# We don't really need all the other stuff:
|
|
22
|
-
config.log_level = :warn
|
|
22
|
+
config.log_level = :warn
|
|
23
|
+
|
|
24
|
+
# Set to true in order to use Amazon's Simple Storage Service on your production machine
|
|
25
|
+
# instead of the default file system for resources and images
|
|
26
|
+
# Make sure to your bucket info is correct in amazon_s3.yml
|
|
27
|
+
USE_S3_BACKEND = false
|
data/config/preinitializer.rb
CHANGED
|
@@ -22,3 +22,7 @@ end
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
REFINERY_ROOT = RAILS_ROOT unless defined? REFINERY_ROOT
|
|
25
|
+
|
|
26
|
+
# Set to true in your environment specific file (e.g. production.rb) to use Amazon's Simple
|
|
27
|
+
# Storage Service instead of the default file system for resources and images
|
|
28
|
+
USE_S3_BACKEND = false unless defined?(USE_S3_BACKEND)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
development:
|
|
2
|
+
container_name: your_local_rackspace_cloudfiles
|
|
3
|
+
username:
|
|
4
|
+
api_key:
|
|
5
|
+
|
|
6
|
+
test:
|
|
7
|
+
container_name: your_test_rackspace_cloudfiles
|
|
8
|
+
username:
|
|
9
|
+
api_key:
|
|
10
|
+
|
|
11
|
+
production:
|
|
12
|
+
container_name: your_production_rackspace_cloudfiles
|
|
13
|
+
username:
|
|
14
|
+
api_key:
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
class AddThemesTable < ActiveRecord::Migration
|
|
2
|
+
|
|
3
|
+
def self.up
|
|
4
|
+
create_table "themes", :force => true do |t|
|
|
5
|
+
t.integer "size"
|
|
6
|
+
t.string "content_type"
|
|
7
|
+
t.string "filename"
|
|
8
|
+
t.string "title"
|
|
9
|
+
t.text "description"
|
|
10
|
+
t.text "license"
|
|
11
|
+
t.timestamps
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def self.down
|
|
16
|
+
drop_table :themes
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
end
|
data/db/schema.rb
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
#
|
|
10
10
|
# It's strongly recommended to check this file into your version control system.
|
|
11
11
|
|
|
12
|
-
ActiveRecord::Schema.define(:version =>
|
|
12
|
+
ActiveRecord::Schema.define(:version => 20100114092849) do
|
|
13
13
|
|
|
14
14
|
create_table "images", :force => true do |t|
|
|
15
15
|
t.integer "parent_id"
|
|
@@ -123,6 +123,17 @@ ActiveRecord::Schema.define(:version => 20091207033335) do
|
|
|
123
123
|
add_index "slugs", ["name", "sluggable_type", "scope", "sequence"], :name => "index_slugs_on_name_and_sluggable_type_and_scope_and_sequence", :unique => true
|
|
124
124
|
add_index "slugs", ["sluggable_id"], :name => "index_slugs_on_sluggable_id"
|
|
125
125
|
|
|
126
|
+
create_table "themes", :force => true do |t|
|
|
127
|
+
t.integer "size"
|
|
128
|
+
t.string "content_type"
|
|
129
|
+
t.string "filename"
|
|
130
|
+
t.string "title"
|
|
131
|
+
t.text "description"
|
|
132
|
+
t.text "license"
|
|
133
|
+
t.datetime "created_at"
|
|
134
|
+
t.datetime "updated_at"
|
|
135
|
+
end
|
|
136
|
+
|
|
126
137
|
create_table "user_plugins", :force => true do |t|
|
|
127
138
|
t.integer "user_id"
|
|
128
139
|
t.string "title"
|
data/db/seeds.rb
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
{:name => "activity_show_limit", :value => 25},
|
|
4
4
|
{:name => "preferred_image_view", :value => :grid},
|
|
5
5
|
{:name => "analytics_page_code", :value => "UA-xxxxxx-x"},
|
|
6
|
+
{:name => "theme", :value => "demolicious"},
|
|
6
7
|
{:name => "image_thumbnails", :value => {
|
|
7
8
|
:dialog_thumb => 'c106x106',
|
|
8
9
|
:grid => 'c135x135',
|
|
Binary file
|
|
@@ -774,12 +774,13 @@ WYMeditor.editor.prototype.init = function() {
|
|
|
774
774
|
if(oClass.name) {
|
|
775
775
|
if (oClass.rules && oClass.rules.length > 0) {
|
|
776
776
|
var sRules = "";
|
|
777
|
-
|
|
778
|
-
|
|
777
|
+
var wym = this;
|
|
778
|
+
jQuery.each(oClass.rules, function(index, rule) {
|
|
779
|
+
sClass = wym._options.classesItemHtml;
|
|
779
780
|
sClass = h.replaceAll(sClass, WYMeditor.CLASS_NAME, oClass.name + (oClass.join || "") + rule);
|
|
780
781
|
sClass = h.replaceAll(sClass, WYMeditor.CLASS_TITLE, rule.title || titleize(rule));
|
|
781
782
|
sRules += sClass;
|
|
782
|
-
}
|
|
783
|
+
});
|
|
783
784
|
|
|
784
785
|
var sClassMultiple = this._options.classesItemHtmlMultiple;
|
|
785
786
|
sClassMultiple = h.replaceAll(sClassMultiple, WYMeditor.CLASS_TITLE, oClass.title || titleize(oClass.name));
|
|
@@ -4101,7 +4102,7 @@ WYMeditor.Helper = {
|
|
|
4101
4102
|
|
|
4102
4103
|
function titleize(words) {
|
|
4103
4104
|
parts = [];
|
|
4104
|
-
words.
|
|
4105
|
+
jQuery.each(words.replace(/\./, '').replace(/[-_]/, ' ').split(' '), function(index, part){
|
|
4105
4106
|
parts.push(part[0].toUpperCase() + part.substring(1));
|
|
4106
4107
|
});
|
|
4107
4108
|
|
|
@@ -490,15 +490,6 @@ ul.reordering li {
|
|
|
490
490
|
|
|
491
491
|
textarea {
|
|
492
492
|
line-height: 20px;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
label {
|
|
496
|
-
font-size: 90%;
|
|
497
|
-
margin-bottom: 5px;
|
|
498
|
-
display: block;
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
textarea {
|
|
502
493
|
padding: 5px;
|
|
503
494
|
}
|
|
504
495
|
|
|
@@ -517,6 +508,7 @@ label {
|
|
|
517
508
|
margin-bottom: 5px;
|
|
518
509
|
font-weight: bold;
|
|
519
510
|
margin-top: 20px;
|
|
511
|
+
display: block;
|
|
520
512
|
}
|
|
521
513
|
|
|
522
514
|
label.input_label {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
== MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2005-2009 Resolve Digital Ltd.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|