refinerycms-core 2.0.1 → 2.0.2
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/app/assets/javascripts/refinery/admin.js.erb +1 -1
- data/app/assets/stylesheets/refinery/refinery.css.scss +4 -4
- data/app/views/refinery/_content_page.html.erb +4 -1
- data/app/views/refinery/_html_tag.html.erb +1 -1
- data/config/initializers/will_paginate_monkeypatch.rb +2 -0
- data/lib/generators/refinery/cms/cms_generator.rb +16 -10
- data/lib/generators/refinery/engine/templates/Rakefile +1 -1
- data/lib/generators/refinery/engine/templates/db/seeds.rb +2 -2
- data/lib/refinery/version.rb +1 -1
- data/refinerycms-core.gemspec +0 -1
- data/spec/lib/generators/refinery/cms/cms_generator_spec.rb +1 -1
- metadata +4 -4
@@ -608,7 +608,7 @@ var page_options = {
|
|
608
608
|
page_options.tabs.find('> ul li a').corner('top 5px');
|
609
609
|
|
610
610
|
$('#new_page_part_dialog').dialog('close');
|
611
|
-
}
|
611
|
+
}, 'html'
|
612
612
|
);
|
613
613
|
}else{
|
614
614
|
alert("A content section with that title already exists, please choose another.");
|
@@ -1567,8 +1567,8 @@ a.information:hover {
|
|
1567
1567
|
padding-bottom: 6px;
|
1568
1568
|
}
|
1569
1569
|
|
1570
|
-
@import '
|
1571
|
-
@import '
|
1572
|
-
@import '
|
1573
|
-
@import '
|
1570
|
+
@import 'site_bar';
|
1571
|
+
@import 'ui';
|
1572
|
+
@import 'submenu';
|
1573
|
+
@import 'tooltips';
|
1574
1574
|
@import 'wymeditor/skins/refinery/skin';
|
@@ -1,2 +1,5 @@
|
|
1
|
-
<%= render_content_page(@page, {
|
1
|
+
<%= render_content_page(@page, {
|
2
|
+
:hide_sections => local_assigns[:hide_sections],
|
3
|
+
:can_use_fallback => !local_assigns[:show_empty_sections] && !local_assigns[:remove_automatic_sections]
|
4
|
+
}) %>
|
2
5
|
<%= render :partial => '/refinery/draft_page_message' unless @page.nil? or @page.live? -%>
|
@@ -3,4 +3,4 @@
|
|
3
3
|
<!--[if IE 7 ]> <html lang="<%= ::I18n.locale %>" class="no-js ie7"> <![endif]-->
|
4
4
|
<!--[if IE 8 ]> <html lang="<%= ::I18n.locale %>" class="no-js ie8"> <![endif]-->
|
5
5
|
<!--[if IE 9 ]> <html lang="<%= ::I18n.locale %>" class="no-js ie9"> <![endif]-->
|
6
|
-
<!--[if (gt IE 9)|!(IE)]
|
6
|
+
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="<%= ::I18n.locale %>" class="no-js"> <!--<![endif]-->
|
@@ -2,14 +2,18 @@ module Refinery
|
|
2
2
|
class CmsGenerator < Rails::Generators::Base
|
3
3
|
source_root Pathname.new(File.expand_path('../templates', __FILE__))
|
4
4
|
|
5
|
-
class_option :update,
|
6
|
-
|
5
|
+
class_option :update, :type => :boolean, :aliases => nil, :group => :runtime,
|
6
|
+
:desc => "Update an existing Refinery CMS based application"
|
7
7
|
class_option :fresh_installation, :type => :boolean, :aliases => nil, :group => :runtime, :default => false,
|
8
|
-
|
9
|
-
class_option :heroku,
|
10
|
-
|
11
|
-
class_option :stack,
|
12
|
-
|
8
|
+
:desc => "Allow Refinery to remove default Rails files in a fresh installation"
|
9
|
+
class_option :heroku, :type => :string, :default => nil, :group => :runtime, :banner => 'APP_NAME',
|
10
|
+
:desc => "Deploy to Heroku after the generator has run."
|
11
|
+
class_option :stack, :type => :string, :default => 'cedar', :group => :runtime,
|
12
|
+
:desc => "Specify which Heroku stack you want to use. Requires --heroku option to function."
|
13
|
+
class_option :skip_db, :type => :boolean, :default => false, :aliases => nil, :group => :runtime,
|
14
|
+
:desc => "Skip over any database creation, migration or seeding."
|
15
|
+
class_option :skip_migrations, :type => :boolean, :default => false, :aliases => nil, :group => :runtime,
|
16
|
+
:desc => "Skip over installing or running migrations."
|
13
17
|
|
14
18
|
def generate
|
15
19
|
start_pretending?
|
@@ -159,8 +163,10 @@ gem 'pg'
|
|
159
163
|
end
|
160
164
|
|
161
165
|
def migrate_database!
|
162
|
-
|
163
|
-
|
166
|
+
unless self.options[:skip_migrations]
|
167
|
+
rake 'railties:install:migrations'
|
168
|
+
rake 'db:create db:migrate' unless self.options[:skip_db]
|
169
|
+
end
|
164
170
|
end
|
165
171
|
|
166
172
|
def mount!
|
@@ -211,7 +217,7 @@ gem 'pg'
|
|
211
217
|
end
|
212
218
|
|
213
219
|
def seed_database!
|
214
|
-
rake 'db:seed'
|
220
|
+
rake 'db:seed' unless self.options[:skip_db] || self.options[:skip_migrations]
|
215
221
|
end
|
216
222
|
|
217
223
|
def start_pretending?
|
@@ -16,8 +16,8 @@ if defined?(::Refinery::Page) && ::Refinery::Page.where(:link_url => url).empty?
|
|
16
16
|
:deletable => false,
|
17
17
|
:menu_match => "^#{url}(\/|\/.+?|)$"
|
18
18
|
)
|
19
|
-
Refinery::Pages.default_parts.
|
20
|
-
page.parts.create(:title => default_page_part, :body => nil)
|
19
|
+
Refinery::Pages.default_parts.each_with_index do |default_page_part, index|
|
20
|
+
page.parts.create(:title => default_page_part, :body => nil, :position => index)
|
21
21
|
end
|
22
22
|
end
|
23
23
|
<% end %>
|
data/lib/refinery/version.rb
CHANGED
data/refinerycms-core.gemspec
CHANGED
@@ -19,7 +19,6 @@ Gem::Specification.new do |s|
|
|
19
19
|
|
20
20
|
s.files = `git ls-files`.split("\n")
|
21
21
|
s.test_files = `git ls-files -- spec/*`.split("\n")
|
22
|
-
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
23
22
|
|
24
23
|
s.add_dependency 'acts_as_indexed', '~> 0.7.7'
|
25
24
|
s.add_dependency 'friendly_id', '~> 4.0.1'
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 2.0.
|
9
|
+
- 2
|
10
|
+
version: 2.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Philip Arndt
|
@@ -18,7 +18,7 @@ autorequire:
|
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
20
|
|
21
|
-
date: 2012-03-
|
21
|
+
date: 2012-03-15 00:00:00 Z
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
24
24
|
prerelease: false
|