editorial_logic 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +0 -2
- data/VERSION +1 -1
- data/app/views/admin/managed_contents/_faq_fields.html.erb +0 -1
- data/app/views/managed_contents/show.html.erb +2 -2
- data/config/routes.rb +8 -10
- data/editorial_logic.gemspec +2 -2
- data/features/support/env.rb +0 -11
- data/spec/controllers/admin/managed_contents_controller_spec.rb +0 -2
- data/spec/controllers/admin/publications_controller_spec.rb +0 -2
- data/spec/controllers/managed_contents_controller_spec.rb +0 -2
- data/spec/controllers/publications_controller_spec.rb +0 -2
- metadata +4 -4
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.2
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
<%- if @content.has_sections? -%>
|
5
5
|
<%= render '/sections/contents' -%>
|
6
|
-
<h2><%= @content.
|
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
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
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
|
-
|
31
|
-
|
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
|
data/editorial_logic.gemspec
CHANGED
@@ -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.
|
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
|
+
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 = [
|
data/features/support/env.rb
CHANGED
@@ -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
|
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:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 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-
|
18
|
+
date: 2011-07-27 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: bson_ext
|