refinerycms 0.9.8.3 → 0.9.8.4

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.
Files changed (24) hide show
  1. data/Gemfile +1 -1
  2. data/bin/refinerycms +1 -2
  3. data/changelog.md +50 -2
  4. data/db/seeds/pages.rb +14 -13
  5. data/vendor/refinerycms/core/app/views/shared/_menu.html.erb +7 -3
  6. data/vendor/refinerycms/core/app/views/shared/_menu_branch.html.erb +3 -2
  7. data/vendor/refinerycms/core/features/search.feature +1 -0
  8. data/vendor/refinerycms/core/lib/refinery/crud.rb +8 -1
  9. data/vendor/refinerycms/core/public/javascripts/wymeditor/jquery.refinery.wymeditor.js +1 -0
  10. data/vendor/refinerycms/core/public/stylesheets/refinery/refinery.css +2 -2
  11. data/vendor/refinerycms/images/app/controllers/admin/images_controller.rb +1 -1
  12. data/vendor/refinerycms/pages/app/models/page.rb +4 -2
  13. data/vendor/refinerycms/pages/app/views/admin/pages/_form.html.erb +6 -0
  14. data/vendor/refinerycms/pages/app/views/admin/pages/_form_fields_after_title.html.erb +1 -0
  15. data/vendor/refinerycms/pages/config/routes.rb +7 -10
  16. data/vendor/refinerycms/pages/features/manage_pages.feature +3 -1
  17. data/vendor/refinerycms/pages/features/step_definitions/page_steps.rb +9 -2
  18. data/vendor/refinerycms/refinery.rb +6 -5
  19. data/vendor/refinerycms/settings/app/controllers/admin/refinery_settings_controller.rb +16 -12
  20. data/vendor/refinerycms/settings/app/models/refinery_setting.rb +3 -0
  21. data/vendor/refinerycms/settings/app/views/admin/refinery_settings/index.html.erb +37 -14
  22. data/vendor/refinerycms/settings/features/step_definitions/setting_steps.rb +9 -0
  23. data/vendor/refinerycms/settings/features/support/paths.rb +14 -0
  24. metadata +7 -4
data/Gemfile CHANGED
@@ -42,7 +42,7 @@ gem 'refinerycms-inquiries', '~> 0.9.8.7'
42
42
  # gem 'refinerycms-theming', '~> 0.9.8'
43
43
 
44
44
  # Add i18n support (optional, you can remove this if you really want to).
45
- gem 'refinerycms-i18n', '~> 0.9.8.6', :require => 'refinery/i18n'
45
+ gem 'refinerycms-i18n', '~> 0.9.8.7'
46
46
 
47
47
  # Figure out how to get RMagick:
48
48
  rmagick_options = {:require => false}
@@ -14,7 +14,6 @@ end
14
14
  require 'pathname'
15
15
  require 'fileutils'
16
16
  require 'optparse'
17
- require 'rbconfig'
18
17
 
19
18
  # Load refinerycms
20
19
  require Pathname.new(File.expand_path(File.dirname(__FILE__) << "/..")).join('vendor', 'refinerycms', 'refinery.rb')
@@ -241,7 +240,7 @@ module Refinery
241
240
  to_run << "cd \"#{@app_path}\" &&" if options[:cd]
242
241
  to_run << command
243
242
 
244
- if RbConfig::CONFIG["host_os"] =~ %r!(msdos|mswin|djgpp|mingw)!
243
+ if Refinery::WINDOWS
245
244
  to_run = %w(cmd /c) | to_run.map{|c| c.gsub(/\//m, '\\')}
246
245
  end
247
246
 
@@ -1,8 +1,56 @@
1
+ ## 0.9.8.4 [17 September 2010]
2
+ * Recursive deletion of page parts. [primerano](http://github.com/primerano)
3
+ * Move around the default pages. [Philip Arndt](http://github.com/parndt)
4
+ * Extraction of windows check to ``Refinery::WINDOWS``. [Steven Heidel](http://github.com/stevenheidel)
5
+ * Updated the changelog for several previous releases. [Steven Heidel](http://github.com/stevenheidel)
6
+ * Made the menu more flexible so that it can be used in many places in your layout without caching over the top of itself. [Philip Arndt](http://github.com/parndt)
7
+ * Added search feature to Refinery Settings. [Matt McMahand](http://github.com/invalidusrname)
8
+ * Ensure that in ``crudify`` that we use ``:per_page`` properly for ``will_paginate``. [Philip Arndt](http://github.com/parndt)
9
+ * Reduce the number of routes that we respond to in the ``pages`` engine as they were unused. [Philip Arndt](http://github.com/parndt)
10
+ * Fixed a case where page links weren't generating properly when inside an engine such as the news engine which made use of ``params[:id]``. Took a lot of perserverance on the part of Hez - thank you very much Hez! [Hez Ronningen](http://github.com/hez) and [Philip Arndt](http://github.com/parndt)
11
+ * [See full list](http://github.com/resolve/refinerycms/compare/0.9.8.3...0.9.8.4)
12
+
13
+ ## 0.9.8.3 [14 September 2010]
14
+ * German translation improvements. [Andre Lohan](http://github.com/dc5ala)
15
+ * Fix bug with ``bin/refinerycms`` and windows commands. [Philip Arndt](http://github.com/parndt)
16
+ * DRY up ``crudify`` and also switch to ARel. [Philip Arndt](http://github.com/parndt)
17
+ * Several fixes to make things much easier on windows. [Philip Arndt](http://github.com/parndt)
18
+ * [See full list](http://github.com/resolve/refinerycms/compare/0.9.8.2...0.9.8.3)
19
+
20
+ ## 0.9.8.2 [13 September 2010]
21
+ * Update ``readme.md`` [David Jones](http://github.com/djones)
22
+ * Speed improvements to menu with nested_set. [Maarten Hoogendoorn](http://github.com/moretea)
23
+ * More speed improvements by optimising slugs. [Philip Arndt](http://github.com/parndt)
24
+ * Fix ``-h`` flag on ``bin/refinerycms`` to display the help. [Steven Heidel](http://github.com/stevenheidel)
25
+ * [See full list](http://github.com/resolve/refinerycms/compare/0.9.8.1...0.9.8.2)
26
+
27
+ ## 0.9.8.1 [9 September 2010]
28
+ * Convert to ``awesome_nested_set``. [Maarten Hoogendoorn](http://github.com/moretea) and [Philip Arndt](http://github.com/parndt)
29
+ * Allow passing ``-g`` to the bin task for extra gems. [Tomás Senart](http://github.com/tsenart)
30
+ * Update documentation for engines, not plugins. [David Jones](http://github.com/djones)
31
+ * Several more documentation fixes. [Steven Heidel](http://github.com/stevenheidel)
32
+ * Better use of dragonfly resizing. [Philip Arndt](http://github.com/parndt)
33
+ * Partial Latvian translation. [Uģis Ozols](http://github.com/ugisozols)
34
+ * Review Portugese translation. [Kivanio Barbosa](http://github.com/kivanio)
35
+ * Bugfix with wymeditor in the engine generator. [Karmen Blake]
36
+ * Split ``application_helper`` into smaller, more usable files. [Philip Arndt](http://github.com/parndt)
37
+ * Move features and specs to each engine directory. [Philip Arndt](http://github.com/parndt)
38
+ * Bugfixes to ensure that reordering works under ``awesome_nested_set``. [Maarten Hoogendoorn](http://github.com/moretea) and [Philip Arndt](http://github.com/parndt)
39
+ * Update engines to not have a special :require in the Gemfile. [Johan Bruning](http://github.com/GidoGeek)
40
+ * Make cache sweepers work. [Philip Arndt](http://github.com/parndt)
41
+ * [See full list](http://github.com/resolve/refinerycms/compare/0.9.8...0.9.8.1)
42
+
1
43
  ## 0.9.8 [30 August 2010]
2
44
 
3
- * Rails 3 support.
4
- * [See full list](http://github.com/resolve/refinerycms/compare/0.9.7.13...0.9.8)
45
+ * Rails 3 support!
46
+ - [Philip Arndt](http://github.com/parndt)
47
+ - [Alex Coles](http://github.com/myabc)
48
+ - [Steven Heidel](http://github.com/stevenheidel)
49
+ - [David Jones](http://github.com/djones)
50
+ - [Uģis Ozols](http://github.com/ugisozols)
51
+ - [Maarten Hoogendoorn](http://github.com/moretea)
5
52
  * [See our blog post](http://refinerycms.com/blog/refinery-cms-supports-rails-3)
53
+ * [See full list](http://github.com/resolve/refinerycms/compare/0.9.7.13...0.9.8)
6
54
 
7
55
  ## 0.9.7.13 [23 August 2010]
8
56
 
@@ -16,6 +16,18 @@ home_page.parts.create({
16
16
  :position => 1
17
17
  })
18
18
 
19
+ home_page_position = -1
20
+ page_not_found_page = home_page.children.create(:title => "Page not found",
21
+ :menu_match => "^/404$",
22
+ :show_in_menu => false,
23
+ :deletable => false,
24
+ :position => (home_page_position += 1))
25
+ page_not_found_page.parts.create({
26
+ :title => "Body",
27
+ :body => "<h2>Sorry, there was a problem...</h2><p>The page you requested was not found.</p><p><a href='/'>Return to the home page</a></p>",
28
+ :position => 0
29
+ })
30
+
19
31
  about_us_page = Page.create(:title => "About",
20
32
  :deletable => true,
21
33
  :position => (page_position += 1))
@@ -59,23 +71,12 @@ thank_you_page.parts.create({
59
71
  :position => 0
60
72
  })
61
73
 
62
- privacy_policy_page = Page.create(:title => "Privacy Policy",
74
+ privacy_policy_page = contact_us_page.children.create(:title => "Privacy Policy",
63
75
  :deletable => true,
64
76
  :show_in_menu => false,
65
- :position => (page_position += 1))
77
+ :position => (contact_us_page_position += 1))
66
78
  privacy_policy_page.parts.create({
67
79
  :title => "Body",
68
80
  :body => "<p>We respect your privacy. We do not market, rent or sell our email list to any outside parties.</p><p>We need your e-mail address so that we can ensure that the people using our forms are bona fide. It also allows us to send you e-mail newsletters and other communications, if you opt-in. Your postal address is required in order to send you information and pricing, if you request it.</p><p>Please call us at 123 456 7890 if you have any questions or concerns.</p>",
69
81
  :position => 0
70
82
  })
71
-
72
- page_not_found_page = Page.create(:title => "Page not found",
73
- :menu_match => "^/404$",
74
- :show_in_menu => false,
75
- :deletable => false,
76
- :position => (page_position += 1))
77
- page_not_found_page.parts.create({
78
- :title => "Body",
79
- :body => "<h2>Sorry, there was a problem...</h2><p>The page you requested was not found.</p><p><a href='/'>Return to the home page</a></p>",
80
- :position => 0
81
- })
@@ -3,10 +3,13 @@
3
3
  css ||= 'menu'
4
4
  hide_children = RefinerySetting.find_or_set(:menu_hide_children, false) unless defined?(hide_children)
5
5
  cache_key = [Refinery.base_cache_key]
6
- cache_key << RefinerySetting.find_or_set(:refinery_menu_cache_action_suffix, "site_menu")
6
+ cache_key << (action_suffix ||= RefinerySetting.find_or_set(:refinery_menu_cache_action_suffix, "site_menu"))
7
+ cache_key << extra_suffix if defined?(extra_suffix) and extra_suffix.present?
7
8
  cache_key << request.path
8
- cache(cache_key.join('_')) do
9
- roots = @menu_pages.select { |m| m.parent_id == nil } # Select top menu items
9
+ cache(cache_key.compact.join('_')) do
10
+ # Select top menu items unless 'roots' is passed in.
11
+ collection ||= @menu_pages
12
+ roots ||= collection.select { |m| m.parent_id == nil }
10
13
  if roots.any?
11
14
  sibling_count = roots.size - 1
12
15
  -%>
@@ -17,6 +20,7 @@
17
20
  :locals => {
18
21
  :hide_children => hide_children,
19
22
  :sibling_count => sibling_count,
23
+ :collection => collection,
20
24
  :apply_css => true #if you don't care about class='first' class='last' or class='selected' set apply_css to false for speed.
21
25
  }
22
26
  -%>
@@ -4,9 +4,9 @@
4
4
  "class='#{classes.join(' ')}'"
5
5
  end
6
6
  dom_id = ("id='item_#{menu_branch_counter}'" if menu_branch.parent_id.nil? and menu_branch.title.present?)
7
-
7
+
8
8
  hide_children = (defined?(hide_children) && hide_children)
9
- children = hide_children ? [] : @menu_pages.select { |p| p.parent_id == menu_branch.id && p.in_menu? }
9
+ children = hide_children ? [] : collection.select { |p| p.parent_id == menu_branch.id && p.in_menu? }
10
10
  -%>
11
11
  <li<%= ['', css, dom_id].join(' ').gsub(/\ *$/, '') %>>
12
12
  <%= link_to menu_branch.title, menu_branch.url %>
@@ -18,6 +18,7 @@
18
18
  :collection => children,
19
19
  :locals => {
20
20
  :hide_children => hide_children,
21
+ :collection => collection,
21
22
  :sibling_count => children.size - 1
22
23
  } -%>
23
24
  </ul>
@@ -20,6 +20,7 @@ Feature: Search
20
20
  |page |testitem|pages |
21
21
  |inquiry |testitem|inquiries |
22
22
  |inquiry |testitem|spam inquiries|
23
+ |refinery setting|Test Item|refinery settings|
23
24
 
24
25
  # This will only run when resources engine is installed.
25
26
  @search-file
@@ -149,7 +149,14 @@ module Refinery
149
149
  # If we have already found a set then we don't need to again
150
150
  find_all_#{plural_name} if @#{plural_name}.nil?
151
151
 
152
- @#{plural_name} = @#{plural_name}.paginate(:page => params[:page])
152
+ paging_options = {:page => params[:page]}
153
+
154
+ # Seems will_paginate doesn't always use the implicit method.
155
+ if #{class_name}.methods.map(&:to_sym).include?(:per_page)
156
+ paging_options.update({:per_page => #{class_name}.per_page})
157
+ end
158
+
159
+ @#{plural_name} = @#{plural_name}.paginate(paging_options)
153
160
  end
154
161
 
155
162
  # Returns a weighted set of results based on the query specified by the user.
@@ -1212,6 +1212,7 @@ WYMeditor.editor.prototype.update = function() {
1212
1212
  * @description Opens a dialog box
1213
1213
  */
1214
1214
  WYMeditor.editor.prototype.dialog = function( dialogType ) {
1215
+ this.update();
1215
1216
  var path = this._wym._options.dialogPath + dialogType;
1216
1217
 
1217
1218
  this._current_unique_stamp = this.uniqueStamp();
@@ -543,12 +543,12 @@ header p {
543
543
  font-style: normal;
544
544
  padding: 0px 6px;
545
545
  }
546
- .pagination a, #content .pagination a, .pagination .current, .disabled {
546
+ .pagination a, #content .pagination a, .pagination .current, .disabled, .pagination em {
547
547
  padding: 7px;
548
548
  line-height: 20px;
549
549
  border-bottom: 0px none;
550
550
  }
551
- .pagination .current, .pagination a:hover {
551
+ .pagination .current, .pagination a:hover, .pagination em {
552
552
  background: #A8B9C1;
553
553
  }
554
554
  #dialog-form-actions .pagination {
@@ -11,7 +11,7 @@ class Admin::ImagesController < Admin::BaseController
11
11
  def index
12
12
  search_all_images if searching?
13
13
  paginate_all_images
14
-
14
+
15
15
  if RefinerySetting.find_or_set(:group_images_by_date_uploaded, true)
16
16
  @grouped_images = group_by_date(@images)
17
17
  end
@@ -10,7 +10,8 @@ class Page < ActiveRecord::Base
10
10
  has_many :parts,
11
11
  :class_name => "PagePart",
12
12
  :order => "position ASC",
13
- :inverse_of => :page
13
+ :inverse_of => :page,
14
+ :dependent => :destroy
14
15
 
15
16
  accepts_nested_attributes_for :parts,
16
17
  :allow_destroy => true
@@ -117,7 +118,8 @@ class Page < ActiveRecord::Base
117
118
  end
118
119
 
119
120
  def url_marketable
120
- {:controller => "/pages", :action => "show", :path => self.nested_url}
121
+ # :id => nil is important to prevent any other params[:id] from interfering with this route.
122
+ {:controller => "/pages", :action => "show", :path => self.nested_url, :id => nil}
121
123
  end
122
124
 
123
125
  def url_normal
@@ -11,6 +11,12 @@
11
11
  <%= f.label :title %>
12
12
  <%= f.text_field :title, :class => "larger widest" %>
13
13
  </div>
14
+
15
+ <%= render :partial => "form_fields_after_title",
16
+ :locals => {
17
+ :f => f
18
+ } %>
19
+
14
20
  <div class='field'>
15
21
  <%= render :partial => "form_page_parts",
16
22
  :locals => {
@@ -0,0 +1 @@
1
+ <%# Intentionally empty, useful override point to add extra fields. %>
@@ -1,5 +1,5 @@
1
1
  Refinery::Application.routes.draw do
2
- resources :pages
2
+ get '/pages/:id', :to => 'pages#show', :as => :page
3
3
 
4
4
  scope(:path => 'refinery', :as => 'admin', :module => 'admin') do
5
5
  resources :pages do
@@ -8,17 +8,14 @@ Refinery::Application.routes.draw do
8
8
  end
9
9
  end
10
10
 
11
- resources :page_parts
12
-
13
- resource :pages do
14
- resources :dialogs, :controller => :pages_dialogs do
15
- collection do
16
- get :link_to
17
- get :test_url
18
- get :test_email
19
- end
11
+ resources :pages_dialogs, :only => [] do
12
+ collection do
13
+ get :link_to
14
+ get :test_url
15
+ get :test_email
20
16
  end
21
17
  end
22
18
 
19
+ resources :page_parts, :only => [:new, :create, :destroy]
23
20
  end
24
21
  end
@@ -39,7 +39,9 @@ Feature: Manage Pages
39
39
  And I should have a page at /about--2
40
40
 
41
41
  Scenario: Delete Page
42
- Given I have a page titled "test"
42
+ Given I only have a page titled "test"
43
43
  When I go to the list of pages
44
44
  And I follow "Remove this page forever"
45
45
  Then I should see "'test' was successfully destroyed."
46
+ And I should have 0 pages
47
+ And I should have 0 page_parts
@@ -16,8 +16,11 @@ Given /^I have no pages$/ do
16
16
  Page.delete_all
17
17
  end
18
18
 
19
- Given /^I have a page titled "([^"]*)"$/ do |title|
20
- Page.create(:title => title)
19
+ Given /^I (only )?have a page titled "([^"]*)"$/ do |only, title|
20
+ Page.delete_all if only
21
+ page = Page.create(:title => title)
22
+ page.parts << PagePart.new(:title => 'testing', :position => 0)
23
+ page
21
24
  end
22
25
 
23
26
  Then /^I should have ([0-9]+) pages?$/ do |count|
@@ -27,3 +30,7 @@ end
27
30
  Then /^I should have a page at \/(.+)$/ do |url|
28
31
  Page.all.count{|page| page.url[:path].to_s.include?(url)}.should == 1
29
32
  end
33
+
34
+ Then /^I should have (\d+) page_parts$/ do |count|
35
+ PagePart.count.should == count.to_i
36
+ end
@@ -1,10 +1,11 @@
1
+ require 'rbconfig'
2
+
1
3
  module Refinery
2
4
 
5
+ WINDOWS = !!(RbConfig::CONFIG["host_os"] =~ %r!(msdos|mswin|djgpp|mingw)!)
6
+
3
7
  class << self
4
- attr_accessor :is_a_gem, :root, :s3_backend, :base_cache_key
5
- def is_a_gem
6
- @is_a_gem ||= false
7
- end
8
+ attr_accessor :root, :s3_backend, :base_cache_key
8
9
 
9
10
  def root
10
11
  @root ||= Pathname.new(File.expand_path(__FILE__).split('vendor').first.to_s)
@@ -27,7 +28,7 @@ module Refinery
27
28
  @major = 0
28
29
  @minor = 9
29
30
  @tiny = 8
30
- @build = 3
31
+ @build = 4
31
32
 
32
33
  class << self
33
34
  attr_reader :major, :minor, :tiny, :build
@@ -3,7 +3,8 @@ class Admin::RefinerySettingsController < Admin::BaseController
3
3
  crudify :refinery_setting,
4
4
  :title_attribute => :title,
5
5
  :order => "name ASC",
6
- :searchable => false,
6
+ :searchable => true,
7
+ :paging => true,
7
8
  :redirect_to_url => :redirect_to_where?
8
9
 
9
10
  before_filter :sanitise_params, :only => [:create, :update]
@@ -15,20 +16,23 @@ class Admin::RefinerySettingsController < Admin::BaseController
15
16
  render :layout => false if request.xhr?
16
17
  end
17
18
 
19
+ protected
18
20
  def find_all_refinery_settings
19
- @refinery_settings = RefinerySetting.find(:all,
20
- {
21
- :order => "name ASC",
22
- :conditions => (["restricted <> ?", true] unless current_user.has_role?(:superuser))
23
- })
21
+ @refinery_settings = RefinerySetting.order('name ASC')
22
+
23
+ unless current_user.has_role?(:superuser)
24
+ @refinery_settings = @refinery_settings.where("restricted <> ? ", true)
25
+ end
26
+
27
+ @refinery_settings
24
28
  end
25
29
 
26
- def paginate_all_refinery_settings
27
- @refinery_settings = RefinerySetting.paginate({
28
- :page => params[:page],
29
- :order => "name ASC",
30
- :conditions => (["restricted <> ?", true] unless current_user.has_role?(:superuser))
31
- })
30
+ def search_all_refinery_settings
31
+ # search for settings that begin with keyword
32
+ term = "^" + params[:search].to_s.downcase.gsub(' ', '_')
33
+
34
+ # First find normal results, then weight them with the query.
35
+ @refinery_settings = find_all_refinery_settings.with_query(term)
32
36
  end
33
37
 
34
38
  private
@@ -5,6 +5,9 @@ class RefinerySetting < ActiveRecord::Base
5
5
  serialize :value # stores into YAML format
6
6
  serialize :callback_proc_as_string
7
7
 
8
+ # Docs for acts_as_indexed http://github.com/dougal/acts_as_indexed
9
+ acts_as_indexed :fields => [:name]
10
+
8
11
  before_save do |setting|
9
12
  setting.restricted = false if setting.restricted.nil?
10
13
  end
@@ -1,26 +1,49 @@
1
- <div id='actions'>
2
- <ul>
3
- <li>
4
- <%= link_to t('.new'), new_admin_refinery_setting_url(:dialog => true, :width => 725, :height => 475), :class => "add_icon" %>
5
- </li>
6
- </ul>
7
- </div>
8
1
  <div id='records'>
2
+ <% if searching? %>
3
+ <h2>
4
+ <%= t('shared.admin.search.results_for',
5
+ :query => params[:search]) %>
6
+ </h2>
7
+ <% end %>
9
8
  <% if @refinery_settings.any? %>
10
- <%= will_paginate @refinery_settings, :previous_label => '&laquo;', :next_label => '&raquo;' %>
9
+ <%= will_paginate @refinery_settings, :previous_label => '&laquo;',
10
+ :next_label => '&raquo;' %>
11
11
  <ul>
12
- <%= render :partial => 'refinery_setting', :collection => @refinery_settings %>
12
+ <%= render :partial => 'refinery_setting',
13
+ :collection => @refinery_settings %>
13
14
  </ul>
14
- <%= will_paginate @refinery_settings, :previous_label => '&laquo;', :next_label => '&raquo;' %>
15
+ <%= will_paginate @refinery_settings, :previous_label => '&laquo;',
16
+ :next_label => '&raquo;' %>
15
17
  <% else %>
16
18
  <p>
17
- <strong>
18
- <%= t('.empty_set') %>
19
- <%= t('.create_first', :link => t('.new')) %>
20
- </strong>
19
+ <% if searching? %>
20
+ <%= t('shared.admin.search.no_results') %>
21
+ <% else %>
22
+ <strong>
23
+ <%= t('.empty_set') %>
24
+ <%= t('.create_first', :link => t('.new')) %>
25
+ </strong>
26
+ <% end %>
21
27
  </p>
22
28
  <% end %>
23
29
  </div>
30
+ <div id='actions'>
31
+ <ul>
32
+ <li>
33
+ <%= render :partial => "/shared/admin/search",
34
+ :locals => {
35
+ :url => admin_refinery_settings_url
36
+ } %>
37
+ </li>
38
+ <li>
39
+ <%= link_to t('.new'), new_admin_refinery_setting_url({
40
+ :dialog => true,
41
+ :width => 725,
42
+ :height => 475
43
+ }), :class => "add_icon" %>
44
+ </li>
45
+ </ul>
46
+ </div>
24
47
  <% content_for :head do %>
25
48
  <script type='text/javascript'>
26
49
  $(document).ready(function() {
@@ -0,0 +1,9 @@
1
+ Given /^I have no (refinery )?settings$/ do
2
+ RefinerySetting.delete_all
3
+ end
4
+
5
+ Given /^I (only )?have a (refinery )?setting titled "([^"]*)"$/ do |only, refinery, title|
6
+ RefinerySetting.delete_all if only
7
+
8
+ RefinerySetting.set(title.to_s.gsub(' ', '').underscore.to_sym, nil)
9
+ end
@@ -0,0 +1,14 @@
1
+ module NavigationHelpers
2
+ module Refinery
3
+ module Settings
4
+ def path_to(page_name)
5
+ case page_name
6
+ when /the list of (refinery )?settings/
7
+ admin_refinery_settings_path
8
+ else
9
+ nil
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms
3
3
  version: !ruby/object:Gem::Version
4
- hash: 33
4
+ hash: 47
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
9
  - 8
10
- - 3
11
- version: 0.9.8.3
10
+ - 4
11
+ version: 0.9.8.4
12
12
  platform: ruby
13
13
  authors:
14
14
  - Resolve Digital
@@ -18,7 +18,7 @@ autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
20
 
21
- date: 2010-09-15 00:00:00 +12:00
21
+ date: 2010-09-17 00:00:00 +12:00
22
22
  default_executable:
23
23
  dependencies:
24
24
  - !ruby/object:Gem::Dependency
@@ -903,6 +903,7 @@ files:
903
903
  - vendor/refinerycms/pages/app/views/admin/pages/_form.html.erb
904
904
  - vendor/refinerycms/pages/app/views/admin/pages/_form_advanced_options.html.erb
905
905
  - vendor/refinerycms/pages/app/views/admin/pages/_form_advanced_options_seo.html.erb
906
+ - vendor/refinerycms/pages/app/views/admin/pages/_form_fields_after_title.html.erb
906
907
  - vendor/refinerycms/pages/app/views/admin/pages/_form_new_page_parts.html.erb
907
908
  - vendor/refinerycms/pages/app/views/admin/pages/_form_page_parts.html.erb
908
909
  - vendor/refinerycms/pages/app/views/admin/pages/_page.html.erb
@@ -990,6 +991,8 @@ files:
990
991
  - vendor/refinerycms/settings/config/locales/zh-CN.yml
991
992
  - vendor/refinerycms/settings/config/routes.rb
992
993
  - vendor/refinerycms/settings/features/manage_refinery_settings.feature
994
+ - vendor/refinerycms/settings/features/step_definitions/setting_steps.rb
995
+ - vendor/refinerycms/settings/features/support/paths.rb
993
996
  - vendor/refinerycms/settings/lib/settings.rb
994
997
  - vendor/refinerycms/settings/readme.md
995
998
  has_rdoc: true