editorial_logic 1.1.1 → 1.1.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/Gemfile CHANGED
@@ -18,11 +18,9 @@ group :test do
18
18
  gem 'angry-pickle'
19
19
  gem 'be_valid_asset'
20
20
  gem 'capybara'
21
- gem 'cucumber', '0.8.5'
22
21
  gem 'cucumber-rails'
23
22
  gem 'database_cleaner'
24
23
  gem 'faker'
25
- gem 'gherkin'
26
24
  gem 'launchy'
27
25
  gem 'machinist_mongo', :require => 'machinist/mongoid'
28
26
  gem 'metric_fu'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.1
1
+ 1.1.2
@@ -9,7 +9,6 @@
9
9
  <%= f.text_field :summary -%>
10
10
  <%= f.text_field :keywords -%>
11
11
  <%= f.text_field :breadcrumbs -%>
12
- <%= f.text_field :title -%>
13
12
  <%= f.text_field :subheader, :label => 'Header' -%>
14
13
  </div>
15
14
  <br style="clear: both;" />
@@ -3,7 +3,7 @@
3
3
 
4
4
  <%- if @content.has_sections? -%>
5
5
  <%= render '/sections/contents' -%>
6
- <h2><%= @content.headline -%></h2>
6
+ <h2><%= @content.headline_short -%></h2>
7
7
  <h3><%= @section.headline -%></h3>
8
8
  <%= @section.content.html_safe -%>
9
9
  <%- else -%>
@@ -31,4 +31,4 @@
31
31
  <%- end -%>
32
32
 
33
33
  <%= link_to 'Download PDF', "#{@content.humanize_path.gsub(/\/$/,'.pdf')}", :class => :button if @content.publication.pdf_enabled -%>
34
- <%= link_to 'Back', @content.publication.humanize_path, :class => :button -%>
34
+ <%= link_to 'Back', @content.publication.humanize_path, :class => :button -%>
data/config/routes.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  Rails.application.routes.draw do
2
-
3
2
  class PublicationConstraint
4
3
  def initialize; end
5
4
  def matches?(request)
@@ -15,20 +14,20 @@ Rails.application.routes.draw do
15
14
  end
16
15
 
17
16
  constraints(TestingConstraint.new) do
18
- root :to => 'admin:publications#index'
17
+ root :to => 'admin:publications#index', :via => :get
19
18
  end
20
19
 
21
20
  constraints(PublicationConstraint.new) do
22
- match ':publication_slug/', :to => 'publications#show'
23
- match ':publication_slug/feed', :to => 'publications#feed', :format => [:rss]
24
- match ':publication_slug/:content_slug/:section_slug', :to => 'sections#show'
25
- match ':publication_slug/:content_slug/:filename', :to => 'managed_contents#show'
26
- match '/:publication_slug/:content_slug', :to => 'managed_contents#show'
21
+ get ':publication_slug/', :to => 'publications#show'
22
+ get ':publication_slug/feed', :to => 'publications#feed', :format => [:rss]
23
+ get ':publication_slug/:content_slug/:section_slug', :to => 'sections#show'
24
+ get ':publication_slug/:content_slug/:filename', :to => 'managed_contents#show'
25
+ get '/:publication_slug/:content_slug', :to => 'managed_contents#show'
27
26
  end
28
27
 
29
28
  namespace :admin do
30
- match 'publications/:publication_id/managed_contents/reorder', :to => 'managed_contents#reorder', :as => 'publication_reorder_managed_contents'
31
- match 'publications/:publication_id/managed_contents/:managed_content_id/sections/reorder', :to => 'sections#reorder', :as => 'publication_managed_content_reorder_sections'
29
+ put 'publications/:publication_id/managed_contents/reorder', :to => 'managed_contents#reorder', :as => 'publication_reorder_managed_contents'
30
+ put 'publications/:publication_id/managed_contents/:managed_content_id/sections/reorder', :to => 'sections#reorder', :as => 'publication_managed_content_reorder_sections'
32
31
  resources :publications do
33
32
  resources :managed_contents do
34
33
  collection do
@@ -43,5 +42,4 @@ Rails.application.routes.draw do
43
42
  resources :publications, :only => :show do
44
43
  resources :managed_contents, :only => :show
45
44
  end
46
-
47
45
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{editorial_logic}
8
- s.version = "1.1.1"
8
+ s.version = "1.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Bantik}]
12
- s.date = %q{2011-07-12}
12
+ s.date = %q{2011-07-27}
13
13
  s.description = %q{An engine for enabling managed content, including articles, blogs, FAQs and glossaries.}
14
14
  s.email = %q{corey@seologic.com}
15
15
  s.files = [
@@ -26,17 +26,6 @@ require 'database_cleaner/cucumber'
26
26
  Capybara.default_selector = :css
27
27
  Capybara.save_and_open_page_path = Rails.root + 'tmp'
28
28
 
29
- # If you set this to false, any error raised from within your app will bubble
30
- # up to your step definition and out to cucumber unless you catch it somewhere
31
- # on the way. You can make Rails rescue errors and render error pages on a
32
- # per-scenario basis by tagging a scenario or feature with the @allow-rescue tag.
33
- #
34
- # If you set this to true, Rails will rescue all errors and render error
35
- # pages, more or less in the same way your application would behave in the
36
- # default production environment. It's not recommended to do this for all
37
- # of your scenarios, as this makes it hard to discover errors in your application.
38
- ActionController::Base.allow_rescue = false
39
-
40
29
  # How to clean your database when transactions are turned off. See
41
30
  # http://github.com/bmabey/database_cleaner for more info.
42
31
  DatabaseCleaner.strategy = :truncation
@@ -1,8 +1,6 @@
1
1
  require File.dirname(__FILE__) + '/../../spec_helper'
2
2
 
3
3
  describe Admin::ManagedContentsController do
4
- render_views
5
-
6
4
  before :all do
7
5
  Publication.destroy_all
8
6
  @publication = Publication.create(:name => 'FAQs', :desired_slug => 'faq')
@@ -1,8 +1,6 @@
1
1
  require File.dirname(__FILE__) + '/../../spec_helper'
2
2
 
3
3
  describe Admin::PublicationsController do
4
- render_views
5
-
6
4
  before :all do
7
5
  Publication.destroy_all
8
6
  @publication = Publication.create(:name => 'FAQs', :desired_slug => 'faq')
@@ -1,8 +1,6 @@
1
1
  require File.dirname(__FILE__) + '/../spec_helper'
2
2
 
3
3
  describe ManagedContentsController do
4
- render_views
5
-
6
4
  before :all do
7
5
  Publication.destroy_all
8
6
  @publication = Publication.create(:name => 'FAQs', :desired_slug => 'faq')
@@ -1,8 +1,6 @@
1
1
  require File.dirname(__FILE__) + '/../spec_helper'
2
2
 
3
3
  describe PublicationsController do
4
- render_views
5
-
6
4
  before :all do
7
5
  Publication.destroy_all
8
6
  @publication = Publication.create(:name => 'FAQs', :desired_slug => 'faq')
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: editorial_logic
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 1
10
- version: 1.1.1
9
+ - 2
10
+ version: 1.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bantik
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-12 00:00:00 Z
18
+ date: 2011-07-27 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bson_ext