refinerycms 1.0.11 → 2.0.0

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/config.ru DELETED
@@ -1,4 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run RefineryApp::Application
data/config/cucumber.yml DELETED
@@ -1,11 +0,0 @@
1
- <%
2
- ENV["RAILS_ENV"] ||= "test"
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
5
- rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
6
- std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} --strict --tags ~@wip "
7
- refinery_features = (::Refinery::Plugins.registered.pathnames << Rails.root).map{|p| p.join('features')}.reject{|d| !d.directory?}
8
- %>
9
- default: <%= std_opts %> <%= refinery_features.join(' ') %>
10
- wip: --tags @wip:3 --wip features
11
- rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip
@@ -1,20 +0,0 @@
1
- login: &login
2
- adapter: mysql2
3
- host: localhost
4
- username: root
5
- password:
6
-
7
- development: &development
8
- database: your_local_database
9
- <<: *login
10
-
11
- test: &test
12
- database: your_test_database
13
- <<: *login
14
-
15
- production: &production
16
- adapter: mysql2
17
- host: localhost
18
- database: your_production_database
19
- username: your_production_database_login
20
- password: your_production_database_password
@@ -1,57 +0,0 @@
1
- # PostgreSQL. Versions 7.4 and 8.x are supported.
2
- #
3
- # Install the ruby-postgres driver:
4
- # gem install ruby-postgres
5
- # On Mac OS X:
6
- # gem install ruby-postgres -- --include=/usr/local/pgsql
7
- # On Windows:
8
- # gem install ruby-postgres
9
- # Choose the win32 build.
10
- # Install PostgreSQL and put its /bin directory on your path.
11
- login: &login
12
- adapter: postgresql
13
- encoding: unicode
14
- username: postgres
15
- password: postgres
16
- pool: 5
17
-
18
- development: &development
19
- database: your_local_database
20
- <<: *login
21
-
22
- # Connect on a TCP socket. Omitted by default since the client uses a
23
- # domain socket that doesn't need configuration. Windows does not have
24
- # domain sockets, so uncomment these lines.
25
- #host: localhost
26
- #port: 5432
27
-
28
- # Schema search path. The server defaults to $user,public
29
- #schema_search_path: myapp,sharedapp,public
30
-
31
- # Minimum log levels, in increasing order:
32
- # debug5, debug4, debug3, debug2, debug1,
33
- # log, notice, warning, error, fatal, and panic
34
- # The server defaults to notice.
35
- #min_messages: warning
36
-
37
- # Warning: The database defined as "test" will be erased and
38
- # re-generated from your development database when you run "rake".
39
- # Do not set this db to the same as development or production.
40
- test: &test
41
- database: your_test_database
42
- <<: *login
43
-
44
- # Warning: The database defined as "cucumber" will be erased and
45
- # re-generated from your development database when you run "rake".
46
- # Do not set this db to the same as development or production.
47
- cucumber: &cucumber
48
- database: your_cucumber_database
49
- <<: *login
50
-
51
- production: &production
52
- adapter: postgresql
53
- encoding: unicode
54
- pool: 5
55
- database: your_production_database
56
- username: your_production_database_login
57
- password: your_production_database_password
@@ -1,26 +0,0 @@
1
- # SQLite version 3.x
2
- development:
3
- adapter: <%= "jdbc" if defined?(JRUBY_PLATFORM) %>sqlite3
4
- database: db/development.sqlite3
5
- timeout: 5000
6
-
7
- # Warning: The database defined as 'test' will be erased and
8
- # re-generated from your development database when you run 'rake'.
9
- # Do not set this db to the same as development or production.
10
- test:
11
- adapter: <%= "jdbc" if defined?(JRUBY_PLATFORM) %>sqlite3
12
- database: db/test.sqlite3
13
- timeout: 5000
14
-
15
- # Warning: The database defined as 'cucumber' will be erased and
16
- # re-generated from your development database when you run 'rake'.
17
- # Do not set this db to the same as development or production.
18
- cucumber:
19
- adapter: <%= "jdbc" if defined?(JRUBY_PLATFORM) %>sqlite3
20
- database: db/cucumber.sqlite3
21
- timeout: 5000
22
-
23
- production:
24
- adapter: <%= "jdbc" if defined?(JRUBY_PLATFORM) %>sqlite3
25
- database: db/production.sqlite3
26
- timeout: 5000
@@ -1,31 +0,0 @@
1
- RefineryApp::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # In the development environment your application's code is reloaded on
5
- # every request. This slows down response time but is perfect for development
6
- # since you don't have to restart the webserver when you make code changes.
7
- config.cache_classes = false
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.consider_all_requests_local = true
14
- config.action_view.debug_rjs = true
15
- config.action_controller.perform_caching = false
16
-
17
- # Don't care if the mailer can't send
18
- config.action_mailer.raise_delivery_errors = false
19
-
20
- # Print deprecation notices to the Rails logger
21
- config.active_support.deprecation = :log
22
-
23
- # Only use best-standards-support built into browsers
24
- config.action_dispatch.best_standards_support = :builtin
25
- end
26
-
27
- Refinery.rescue_not_found = false
28
-
29
- # When true will use Amazon's Simple Storage Service on your production machine
30
- # instead of the default file system for resources and images
31
- Refinery.s3_backend = !(ENV['S3_KEY'].nil? || ENV['S3_SECRET'].nil?)
@@ -1,55 +0,0 @@
1
- RefineryApp::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # The production environment is meant for finished, "live" apps.
5
- # Code is not reloaded between requests
6
- config.cache_classes = true
7
-
8
- # Full error reports are disabled and caching is turned on
9
- config.consider_all_requests_local = false
10
- config.action_controller.perform_caching = true
11
-
12
- # Specifies the header that your server uses for sending files
13
- config.action_dispatch.x_sendfile_header = "X-Sendfile"
14
-
15
- # For nginx:
16
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
17
-
18
- # If you have no front-end server that supports something like X-Sendfile,
19
- # just comment this out and Rails will serve the files
20
-
21
- # See everything in the log (default is :info)
22
- # config.log_level = :debug
23
-
24
- # Use a different logger for distributed setups
25
- # config.logger = SyslogLogger.new
26
-
27
- # Use a different cache store in production
28
- # config.cache_store = :mem_cache_store
29
-
30
- # Disable Rails's static asset server
31
- # In production, Apache or nginx will already do this
32
- config.serve_static_assets = true # Refinery CMS requires this to be true
33
-
34
- # Enable serving of images, stylesheets, and javascripts from an asset server
35
- # config.action_controller.asset_host = "http://assets.example.com"
36
-
37
- # Disable delivery errors, bad email addresses will be ignored
38
- # config.action_mailer.raise_delivery_errors = false
39
-
40
- # Enable threaded mode
41
- # config.threadsafe!
42
-
43
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
44
- # the I18n.default_locale when a translation can not be found)
45
- config.i18n.fallbacks = true
46
-
47
- # Send deprecation notices to registered listeners
48
- config.active_support.deprecation = :notify
49
- end
50
-
51
- Refinery.rescue_not_found = true
52
-
53
- # When true will use Amazon's Simple Storage Service on your production machine
54
- # instead of the default file system for resources and images
55
- Refinery.s3_backend = !(ENV['S3_KEY'].nil? || ENV['S3_SECRET'].nil?)
@@ -1,41 +0,0 @@
1
- RefineryApp::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
6
- # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
8
- config.cache_classes = true
9
-
10
- # Log error messages when you accidentally call methods on nil.
11
- config.whiny_nils = true
12
-
13
- # Show full error reports and disable caching
14
- config.consider_all_requests_local = true
15
- config.action_controller.perform_caching = false
16
-
17
- # Raise exceptions instead of rendering exception templates
18
- config.action_dispatch.show_exceptions = false
19
-
20
- # Disable request forgery protection in test environment
21
- config.action_controller.allow_forgery_protection = false
22
-
23
- # Tell Action Mailer not to deliver emails to the real world.
24
- # The :test delivery method accumulates sent emails in the
25
- # ActionMailer::Base.deliveries array.
26
- config.action_mailer.delivery_method = :test
27
-
28
- # Use SQL instead of Active Record's schema dumper when creating the test database.
29
- # This is necessary if your schema can't be completely dumped by the schema dumper,
30
- # like if you have constraints or database-specific column types
31
- # config.active_record.schema_format = :sql
32
-
33
- # Print deprecation notices to the stderr
34
- config.active_support.deprecation = :stderr
35
- end
36
-
37
- Refinery.rescue_not_found = false
38
-
39
- # When true will use Amazon's Simple Storage Service on your production machine
40
- # instead of the default file system for resources and images
41
- Refinery.s3_backend = !(ENV['S3_KEY'].nil? || ENV['S3_SECRET'].nil?)
@@ -1,19 +0,0 @@
1
- module NavigationHelpers
2
- module Refinery
3
- module RailsApplicationRoot
4
-
5
- def path_to(page_name)
6
- # Replace the nil below with the commented code to use this.
7
- nil
8
-
9
- #case page_name
10
- #when /the root path/
11
- # root_path
12
- #else
13
- # nil
14
- #end
15
- end
16
-
17
- end
18
- end
19
- end
@@ -1,26 +0,0 @@
1
- class LoadPathAnalyzer
2
-
3
- def initialize(load_path, loaded_features)
4
- @load_path = load_path
5
- @loaded_features = loaded_features
6
- end
7
-
8
- def frequencies
9
- load_paths.inject({}) {|a, v|
10
- a[v] ||= 0
11
- a[v] += 1
12
- a
13
- }
14
- end
15
-
16
- private
17
-
18
- def load_paths
19
- @loaded_features.map {|feature|
20
- @load_path.detect {|path|
21
- feature[0, path.length] == path
22
- }
23
- }.compact
24
- end
25
-
26
- end
data/lib/refinery.rb DELETED
@@ -1 +0,0 @@
1
- require File.expand_path('../refinerycms', __FILE__)
@@ -1,3 +0,0 @@
1
- %w(authentication dashboard images pages resources).each do |engine|
2
- require "refinerycms-#{engine}"
3
- end
data/license.md DELETED
@@ -1,21 +0,0 @@
1
- # MIT License
2
-
3
- Copyright (c) 2005-2011 [Resolve Digital](http://www.resolvedigital.com)
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.
@@ -1,2 +0,0 @@
1
- var I18n = I18n || {};
2
- I18n.translations = {"en":{"js":{"admin":{"confirm_changes":"Any changes you've made will be lost. Are you sure you want to continue without saving?"}}},"bg":{"js":{"admin":{"confirm_changes":"\u0412\u0441\u0438\u0447\u043a\u0438 \u043f\u0440\u043e\u043c\u0435\u043d\u0438, \u043a\u043e\u0438\u0442\u043e \u0441\u0442\u0435 \u043d\u0430\u043f\u0440\u0430\u0432\u0438\u043b\u0438 \u0449\u0435 \u0431\u044a\u0434\u0430\u0442 \u0437\u0430\u0433\u0443\u0431\u0435\u043d\u0438. \u0421\u0438\u0433\u0443\u0440\u043d\u0438 \u043b\u0438 \u0441\u0442\u0435, \u0447\u0435 \u0438\u0441\u043a\u0430\u0442\u0435 \u0434\u0430 \u043f\u0440\u043e\u0434\u044a\u043b\u0436\u0438\u0442\u0435 \u0431\u0435\u0437 \u0437\u0430\u043f\u0438\u0441?"}}},"fi":{"js":{"admin":{"confirm_changes":"Kaikki muutoksesi menetet\u00e4\u00e4n. Oletko varma, ett\u00e4 haluat jatkaa tallentamatta?"}}}};
data/readme.md DELETED
@@ -1,116 +0,0 @@
1
- # Refinery CMS
2
-
3
- __An open source Ruby on Rails content management system for Rails 3.__
4
-
5
- Refinery also supports Rails 2.x using the [Rails 2.x stable branch](http://github.com/resolve/refinerycms/tree/rails2-stable). More information at [http://refinerycms.com](http://refinerycms.com)
6
-
7
- ## Requirements
8
-
9
- * [Bundler](http://gembundler.com)
10
- * [ImageMagick](http://www.imagemagick.org/script/install-source.php)
11
-
12
- ## How to
13
-
14
- * __[Install Refinery CMS](http://refinerycms.com/download)__
15
- * [Update Refinery CMS to the latest stable version](http://refinerycms.com/guides/how-to-update-refinery-to-the-latest-stable-version)
16
- * [Install Refinery CMS on Heroku](http://refinerycms.com/guides/how-to-install-refinery-on-heroku)
17
- * [Run the Refinery CMS test suite](http://refinerycms.com/guides/how-to-test-refinery)
18
- * __[Contribute to Refinery CMS](http://refinerycms.com/guides/how-to-contribute-to-refinery-development)__
19
- * __[Donate to the Refinery CMS core team](http://pledgie.com/campaigns/8431)__
20
-
21
- ## Getting Started
22
-
23
- If you're new to Refinery, start with this guide:
24
-
25
- * __[Getting started with Refinery](http://refinerycms.com/guides/getting-started-with-refinery)__
26
-
27
- ## What's it good at?
28
-
29
- __Refinery is great for sites where the client needs to be able to update their website themselves__ without being bombarded with anything too complicated.
30
-
31
- Unlike other content managers, Refinery is truly __aimed at the end user__ making it easy for them to pick up and make changes themselves.
32
-
33
- ### For developers
34
-
35
- * Easily customise the look to suit the business.
36
- * __[Extend with custom engines](https://github.com/resolve/refinerycms/blob/master/doc/engines.md#readme)__ to do anything Refinery doesn't do out of the box.
37
- * Sticks to __"the Rails way"__ as much as possible; we don't force you to learn new templating languages.
38
- * Uses [jQuery](http://jquery.com/) for fast and concise Javascript.
39
-
40
- ![Refinery Dashboard](http://refinerycms.com/system/images/0000/0576/dashboard.png)
41
-
42
- Wanna see Refinery for yourself? [Try the demo](http://demo.refinerycms.com/refinery)
43
-
44
- ## Help and Documentation
45
-
46
- * [Getting Started](http://refinerycms.com/guides/getting-started-with-refinery)
47
- * [Guides](http://refinerycms.com/guides)
48
- * [Google Group Discussion](http://group.refinerycms.org)
49
- * [IRC Channel](http://refinerycms.com/guides/how-to-get-help-with-refinery#irc-channel)
50
- * [GitHub repository](http://github.com/resolve/refinerycms)
51
- * [Developer/API documentation](http://api.refinerycms.org)
52
- * [Twitter Account](http://twitter.com/refinerycms)
53
- * Documentation about: [Pages](https://github.com/resolve/refinerycms/blob/master/doc/pages.md#readme), [Images](http://github.com/resolve/refinerycms/blob/master/doc/images.md#readme), [Files](http://github.com/resolve/refinerycms/blob/master/doc/resources.md#readme), [Inquiries](http://github.com/resolve/refinerycms-inquiries/blob/master/readme.md#readme), [Settings](http://github.com/resolve/refinerycms/blob/master/doc/settings.md#readme), [Dashboard](http://github.com/resolve/refinerycms/blob/master/doc/dashboard.md#readme), [Authentication & Users](http://github.com/resolve/refinerycms/blob/master/doc/authentication.md#readme), [Extending with Engines](http://github.com/resolve/refinerycms/blob/master/doc/engines.md#readme).
54
-
55
- ## Features
56
-
57
- ### [Pages](http://github.com/resolve/refinerycms/blob/master/doc/pages.md#readme)
58
-
59
- * Easily edit and manage pages with a [WYSIWYG visual editor](http://www.wymeditor.org/).
60
- * Manage you site's structure.
61
-
62
- ### [Images](http://github.com/resolve/refinerycms/blob/master/doc/images.md#readme) & [Files](http://github.com/resolve/refinerycms/blob/master/doc/resources.md#readme)
63
-
64
- * Easily upload and insert images.
65
- * Upload and link to resources such as PDF documents.
66
- * Uses the popular [Dragonfly](http://github.com/markevans/dragonfly).
67
- * Supports storage on Amazon S3.
68
-
69
- ### [Inquiries](http://github.com/resolve/refinerycms-inquiries/blob/master/readme.md#readme)
70
-
71
- * Collect inquiries from a contact form.
72
- * Manage your inquiries and be notified when new ones come in.
73
- * Checks new inquiries for spam.
74
-
75
- ### [Settings](http://github.com/resolve/refinerycms/blob/master/doc/settings.md#readme)
76
-
77
- * Manage the behaviour of Refinery
78
- * Easily integrate with [Google Analytics](https://www.google.com/analytics/)
79
-
80
- ### [Dashboard](http://github.com/resolve/refinerycms/blob/master/doc/dashboard.md#readme)
81
-
82
- * Get an overview of what has been updated recently and see recent inquiries.
83
-
84
- ### [Authentication & Users](http://github.com/resolve/refinerycms/blob/master/doc/authentication.md#readme)
85
-
86
- * Manage who can access Refinery.
87
- * Control which engines each user has access to.
88
- * Uses the popular [devise](http://github.com/plataformatec/devise).
89
-
90
- ### ...Want more? [Extend with Engines](http://github.com/resolve/refinerycms/blob/master/doc/engines.md#readme)
91
-
92
- Extend Refinery easily by running the Refinery engine generator
93
-
94
- rails generate refinery_engine
95
-
96
- to get help on how to use that. Or read the full documentation on [writing engines for Refinery](http://github.com/resolve/refinerycms/blob/master/docengines.md#readme)
97
-
98
- ### Popular Engines
99
-
100
- * [Blog](http://github.com/resolve/refinerycms-blog) - A simple blogging engine that supports posts, categories and comments (with moderation support if you choose to enable it)
101
- * [Portfolio](http://github.com/resolve/refinerycms-portfolio) - manage groups of images like an image gallery.
102
- * [News](http://github.com/resolve/refinerycms-news) - post and manage news items.
103
-
104
- [Full engine list here](http://github.com/resolve/refinerycms/wiki/engines)
105
-
106
- ### Example Site Showcase
107
-
108
- [List here (add your link when you're done)](http://github.com/resolve/refinerycms/wiki/Example-Site-Showcase)
109
-
110
- ## License
111
-
112
- Refinery is released under the [MIT license](http://github.com/resolve/refinerycms/blob/master/license.md#readme) and is copyright (c) 2005-2011 [Resolve Digital](http://www.resolvedigital.com)
113
-
114
- ### Credits
115
-
116
- Many of the icons used in Refinery CMS are from the wonderful [Silk library by Mark James](http://www.famfamfam.com/lab/icons/silk/).