Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch '1-0-stable'

  • Loading branch information...
commit 9ef86bed11c107a87795d9c348325c84bc565554 2 parents 906b376 + afe69ba
@parndt parndt authored
View
4 Gemfile.lock
@@ -50,19 +50,23 @@ PATH
refinerycms-core (= 2.0.0)
refinerycms-generators (2.0.0)
refinerycms-images (2.0.0)
+ activerecord (~> 3.1.0)
dragonfly (~> 0.9.0)
rack-cache (>= 0.5.3)
refinerycms-core (= 2.0.0)
refinerycms-pages (2.0.0)
+ activerecord (~> 3.1.0)
awesome_nested_set (~> 2.0)
friendly_id_globalize3 (~> 3.2.1)
refinerycms-core (= 2.0.0)
seo_meta (>= 1.2.0.rc1)
refinerycms-resources (2.0.0)
+ activerecord (~> 3.1.0)
dragonfly (~> 0.9.0)
rack-cache (>= 0.5.3)
refinerycms-core (= 2.0.0)
refinerycms-settings (2.0.0)
+ activerecord (~> 3.1.0)
refinerycms-base (= 2.0.0)
refinerycms-testing (2.0.0)
capybara (~> 1.0.0)
View
2  authentication/refinerycms-authentication.gemspec
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
s.version = %q{2.0.0}
s.summary = %q{Authentication engine for Refinery CMS}
s.description = %q{The default authentication engine for Refinery CMS}
- s.date = %q{2011-08-31}
+ s.date = %q{2011-09-03}
s.email = %q{info@refinerycms.com}
s.homepage = %q{http://refinerycms.com}
s.rubyforge_project = %q{refinerycms}
View
2  base/refinerycms-base.gemspec
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
s.version = %q{2.0.0}
s.summary = %q{Base engine for Refinery CMS}
s.description = %q{This provides a base for Refinery CMS which handles things like settings on the Refinery namespace.}
- s.date = %q{2011-08-31}
+ s.date = %q{2011-09-03}
s.email = %q{info@refinerycms.com}
s.homepage = %q{http://refinerycms.com}
s.rubyforge_project = %q{refinerycms}
View
16 bin/refinerycms
@@ -147,6 +147,9 @@ module Refinery
# Run any database migrations
migrate! unless @options[:database][:skip]
+
+ # Deploy to a hosting provider
+ deploy!
# Output helpful messages to user
output!
@@ -171,19 +174,21 @@ module Refinery
exit(1)
end
+ # Get the name and path of the new application
+ @app_path = Pathname.new(File.expand_path(@input.first))
+ @app_name = @app_path.to_s.split(File::SEPARATOR).last
+
rails_version_in_path = run_command('rails --version', {:cd => false, :bundler => false, :puts => false}).to_s.gsub(/(Rails |\n)/, '')
@rails_version_to_use = @options[:rails][:version] || rails_version_in_path
if @rails_version_to_use !~ %r{\b#{RAILS_MINOR_VERSION}}
puts "\nRails #{@rails_version_to_use} is not supported by Refinery #{::Refinery.version}, " \
"please use Rails #{RAILS_MINOR_VERSION}.x instead."
+ puts "\nYou can tell Refinery CMS an installed and compatible rails version to use like so:\n"
+ puts "\nrefinerycms #{@app_name} --rails-version #{RAILS_MINOR_VERSION}"
puts "\n"
exit(1)
end
- # Get the name and path of the new application
- @app_path = Pathname.new(File.expand_path(@input.first))
- @app_name = @app_path.to_s.split(File::SEPARATOR).last
-
# Get the refinery path based on this file
@refinery_path = Pathname.new(File.expand_path('../../', __FILE__))
@@ -241,6 +246,9 @@ module Refinery
# Detect non-success or a blank rails output or starting with "Can't initialize" or "Error"
if !$?.success? or rails_output.to_s.length == 0 or rails_output =~ /^(Can't\ initialize|Error)/
puts "\nGenerating Rails application failed. Exiting..."
+ if run_command('gem list rails', {:cd => false, :puts => false, :ruby => false}) !~ %r{[( ]#{@rails_version_to_use}(.0)*[,\)]}
+ puts "\nDo you have Rails #{@rails_version_to_use} installed?"
+ end
puts "\n"
exit(1)
else
View
28 changelog.md
@@ -5,7 +5,33 @@
* Renamed `RefinerySetting` to `Refinery::Setting`. [Philip Arndt](https://github.com/parndt)
* Added `--trace` option to bin/refinerycms. [Steven Heidel](http://github.com/stevenheidel)
* Moved `/shared/*` to `/refinery/*` instead, including `/shared/admin/*` to `/refinery/admin/*` as it makes more sense. [Philip Arndt](https://github.com/parndt)
-* [See full list](https://github.com/resolve/refinerycms/compare/1.0.4...master)
+* [See full list](https://github.com/resolve/refinerycms/compare/1.0.8...master)
+
+## 1.0.8 [1 September 2011]
+
+* `refinerycms-core` now depends on rails so that users of 1.0.x can be confident of the entire stack being present as before. [Philip Arndt](https://github.com/parndt)
+* No longer requiring autotest as a dependency of `refinerycms-testing`. [Philip Arndt](https://github.com/parndt)
+* Improved 'wrong rails version' error message on install with a more helpful guide on how to specify a rails version. [Philip Arndt](https://github.com/parndt)
+* [See full list](https://github.com/resolve/refinerycms/compare/1.0.7...1.0.8)
+
+## 1.0.7 [31 August 2011]
+
+* No change, just fixing corruption in the 1.0.6 gem caused by Syck. [Philip Arndt](https://github.com/parndt)
+* [See full list](https://github.com/resolve/refinerycms/compare/1.0.6...1.0.7)
+
+## 1.0.6 [31 August 2011]
+
+* Added support for Devise `~> 1.4.3`. [Philip Arndt](https://github.com/parndt)
+* Removed dependency on Rails but added dependencies to its components, like activerecord, where they are used. [Philip Arndt](https://github.com/parndt)
+* [See full list](https://github.com/resolve/refinerycms/compare/1.0.5...1.0.6)
+
+## 1.0.5 [31 August 2011]
+
+* jQuery UI updated to `1.8.15` from `1.8.9`. [Uģis Ozols](https://github.com/ugisozols)
+* Removed Duostack hosting option from the installer because the platform isn't online anymore. [Philip Arndt](https://github.com/parndt)
+* Fixed non raw output into noscript section of the backend. [Philip Arndt](https://github.com/parndt)
+* `will_paginate` updated to `~> 3.0.0` now that it has gone final. [Uģis Ozols](https://github.com/ugisozols)
+* [See full list](https://github.com/resolve/refinerycms/compare/1.0.4...1.0.5)
## 1.0.4 [11 August 2011]
View
2  core/refinerycms-core.gemspec
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
s.version = %q{2.0.0}
s.summary = %q{Core engine for Refinery CMS}
s.description = %q{The core of Refinery CMS. This handles the common functionality and is required by most engines}
- s.date = %q{2011-08-31}
+ s.date = %q{2011-09-03}
s.email = %q{info@refinerycms.com}
s.homepage = %q{http://refinerycms.com}
s.rubyforge_project = %q{refinerycms}
View
2  core/spec/lib/refinery/plugins_spec.rb
@@ -100,7 +100,7 @@ module Refinery
it 'identifies as Refinery::Plugins' do
subject.class.active.class.should == subject.class
end
-
+
it 'only contains items that are registered' do
subject.class.set_active(%w(my_plugin))
subject.class.active.any?.should be_true
View
2  dashboard/refinerycms-dashboard.gemspec
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
s.version = %q{2.0.0}
s.summary = %q{Dashboard engine for Refinery CMS}
s.description = %q{The dashboard is usually the first engine the user sees in the backend of Refinery CMS. It displays useful information and contains links to common functionality.}
- s.date = %q{2011-08-31}
+ s.date = %q{2011-09-03}
s.email = %q{info@refinerycms.com}
s.homepage = %q{http://refinerycms.com}
s.rubyforge_project = %q{refinerycms}
View
4 ...des/6 - Updating Refinery/1 - How to update Refinery to the latest stable version.textile
@@ -19,7 +19,7 @@ Take a look at "http://rubygems.org/gems/refinerycms":http://rubygems.org/gems/r
Edit your +Gemfile+ to reference the latest version of Refinery (a later version than the one shown "may exist":https://rubygems.org/gems/refinerycms/versions).
<ruby>
-gem 'refinerycms', '= 1.0.0'
+gem 'refinerycms', '= 1.0.8'
</ruby>
Now install the new gems using bundler ('bundle install' is outdated):
@@ -30,6 +30,8 @@ $ bundle update
Use the rails generator to update your Refinery installation:
+TIP: You only need to run the below step when upgrading between major or minor versions. Bug fix releases should not change the database structure. For example, if you are going from 1.0.3 -> 1.0.8 (Bugfix) you do not need to run this command.
+
<shell>
$ rails generate refinerycms --update
</shell>
View
6 doc/guides/8 - Tips and Tricks/3 - How to test Refinery.textile
@@ -6,6 +6,10 @@ Refinery ships with a range of specs and cucumbers to test it. This guide will s
endprologue.
+h3. First configure your Refinery application for testing
+<shell>
+rails g refinerycms_testing
+</shell>
h3. Running the Tests
@@ -72,4 +76,4 @@ admin:
username: "username"
email: "some@email.com"
encrypted_password: "1234567"
-</code></pre>
+</code></pre>
View
2  generators/refinerycms-generators.gemspec
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
s.version = %q{2.0.0}
s.summary = %q{Core generators for Refinery CMS including refinery:engine.}
s.description = %q{Core generators for Refinery CMS including refinery:engine.}
- s.date = %q{2011-08-31}
+ s.date = %q{2011-09-03}
s.email = %q{info@refinerycms.com}
s.homepage = %q{http://refinerycms.com}
s.rubyforge_project = %q{refinerycms}
View
1  images/lib/gemspec.rb
@@ -28,6 +28,7 @@
]
s.add_dependency 'refinerycms-core', '= #{::Refinery::Version}'
+ s.add_dependency 'activerecord', '~> 3.1.0'
s.add_dependency 'dragonfly', '~> 0.9.0'
s.add_dependency 'rack-cache', '>= 0.5.3'
end
View
3  images/refinerycms-images.gemspec
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
s.version = %q{2.0.0}
s.summary = %q{Images engine for Refinery CMS}
s.description = %q{Handles all image upload and processing functionality in Refinery CMS.}
- s.date = %q{2011-08-31}
+ s.date = %q{2011-09-03}
s.email = %q{info@refinerycms.com}
s.homepage = %q{http://refinerycms.com}
s.rubyforge_project = %q{refinerycms}
@@ -96,6 +96,7 @@ Gem::Specification.new do |s|
]
s.add_dependency 'refinerycms-core', '= 2.0.0'
+ s.add_dependency 'activerecord', '~> 3.1.0'
s.add_dependency 'dragonfly', '~> 0.9.0'
s.add_dependency 'rack-cache', '>= 0.5.3'
end
View
1  pages/lib/gemspec.rb
@@ -28,6 +28,7 @@
]
s.add_dependency 'refinerycms-core', '= #{::Refinery::Version}'
+ s.add_dependency 'activerecord', '~> 3.1.0'
s.add_dependency 'friendly_id_globalize3', '~> 3.2.1'
s.add_dependency 'awesome_nested_set', '~> 2.0'
s.add_dependency 'seo_meta', '>= 1.2.0.rc1'
View
4 pages/refinerycms-pages.gemspec
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
s.version = %q{2.0.0}
s.summary = %q{Pages engine for Refinery CMS}
s.description = %q{The default content engine of Refinery CMS. This engine handles the administration and display of user-editable pages.}
- s.date = %q{2011-08-31}
+ s.date = %q{2011-09-03}
s.email = %q{info@refinerycms.com}
s.homepage = %q{http://refinerycms.com}
s.rubyforge_project = %q{refinerycms}
@@ -127,11 +127,13 @@ Gem::Specification.new do |s|
'spec/models/refinery/page_spec.rb',
'spec/requests',
'spec/requests/manage_pages_spec.rb',
+ 'spec/requests/multiple_locales_spec.rb',
'spec/requests/page_frontend_spec.rb',
'spec/requests/translate_pages_spec.rb'
]
s.add_dependency 'refinerycms-core', '= 2.0.0'
+ s.add_dependency 'activerecord', '~> 3.1.0'
s.add_dependency 'friendly_id_globalize3', '~> 3.2.1'
s.add_dependency 'awesome_nested_set', '~> 2.0'
s.add_dependency 'seo_meta', '>= 1.2.0.rc1'
View
2  refinerycms.gemspec
@@ -5,7 +5,7 @@ Gem::Specification.new do |s|
s.name = %q{refinerycms}
s.version = %q{2.0.0}
s.description = %q{A Ruby on Rails CMS that supports Rails 3. It's easy to extend and sticks to 'the Rails way' where possible.}
- s.date = %q{2011-08-31}
+ s.date = %q{2011-09-03}
s.summary = %q{A Ruby on Rails CMS that supports Rails 3}
s.email = %q{info@refinerycms.com}
s.homepage = %q{http://refinerycms.com}
View
1  resources/lib/gemspec.rb
@@ -28,6 +28,7 @@
]
s.add_dependency 'refinerycms-core', '= #{::Refinery::Version}'
+ s.add_dependency 'activerecord', '~> 3.1.0'
s.add_dependency 'dragonfly', '~> 0.9.0'
s.add_dependency 'rack-cache', '>= 0.5.3'
end
View
3  resources/refinerycms-resources.gemspec
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
s.version = %q{2.0.0}
s.summary = %q{Resources engine for Refinery CMS}
s.description = %q{Handles all file upload and processing functionality in Refinery CMS.}
- s.date = %q{2011-08-31}
+ s.date = %q{2011-09-03}
s.email = %q{info@refinerycms.com}
s.homepage = %q{http://refinerycms.com}
s.rubyforge_project = %q{refinerycms}
@@ -90,6 +90,7 @@ Gem::Specification.new do |s|
]
s.add_dependency 'refinerycms-core', '= 2.0.0'
+ s.add_dependency 'activerecord', '~> 3.1.0'
s.add_dependency 'dragonfly', '~> 0.9.0'
s.add_dependency 'rack-cache', '>= 0.5.3'
end
View
2  settings/lib/gemspec.rb
@@ -21,6 +21,8 @@
s.require_paths = %w(lib)
s.executables = %w(#{Pathname.glob(gempath.join('bin/*')).map{|d| d.relative_path_from(gempath)}.sort.join(" ")})
+ s.add_dependency 'activerecord', '~> 3.1.0'
+
s.files = [
'#{%w( **/{*,.rspec,.gitignore,.yardopts} ).map { |file| Pathname.glob(gempath.join(file)) }.flatten.reject{|f|
!f.exist? or f.to_s =~ /\.gem$/ or (f.directory? and f.children.empty?)
View
4 settings/refinerycms-settings.gemspec
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
s.version = %q{2.0.0}
s.summary = %q{Settings engine for Refinery CMS}
s.description = %q{The default settings engine that is required by Refinery CMS core. Adds programmer creatable, user editable settings for each engine.}
- s.date = %q{2011-08-31}
+ s.date = %q{2011-09-03}
s.email = %q{info@refinerycms.com}
s.homepage = %q{http://refinerycms.com}
s.rubyforge_project = %q{refinerycms}
@@ -15,6 +15,8 @@ Gem::Specification.new do |s|
s.require_paths = %w(lib)
s.executables = %w()
+ s.add_dependency 'activerecord', '~> 3.1.0'
+
s.files = [
'app',
'app/controllers',
View
2  testing/refinerycms-testing.gemspec
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
s.version = %q{2.0.0}
s.summary = %q{Testing plugin for Refinery CMS}
s.description = %q{This plugin adds the ability to run cucumber and rspec against the RefineryCMS gem while inside a RefineryCMS project}
- s.date = %q{2011-08-31}
+ s.date = %q{2011-09-03}
s.email = %q{info@refinerycms.com}
s.homepage = %q{http://refinerycms.com}
s.rubyforge_project = %q{refinerycms}
Please sign in to comment.
Something went wrong with that request. Please try again.