editorial_logic 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/VERSION +1 -1
- data/app/models/managed_content.rb +1 -1
- data/app/views/publications/show.html.erb +3 -3
- data/editorial_logic.gemspec +11 -11
- data/features/manage_articles_content.feature +1 -1
- data/features/manage_documents_content.feature +1 -1
- data/features/manage_faq_content.feature +1 -1
- data/features/manage_glossary_content.feature +1 -1
- data/features/manage_publications.feature +1 -1
- data/spec/models/managed_content_spec.rb +1 -1
- metadata +7 -11
data/Gemfile
CHANGED
@@ -6,7 +6,7 @@ gem 'carrierwave-mongoid', :require => 'carrierwave/mongoid'
|
|
6
6
|
gem 'ckeditor', :git => 'git://github.com/Bantik/rails-ckeditor.git', :branch => 'rails3_mongoid'
|
7
7
|
gem 'fastercsv'
|
8
8
|
gem 'mongoid'
|
9
|
-
gem 'rails'
|
9
|
+
gem 'rails'
|
10
10
|
gem 'scaffold_logic'#, :path => '~/Documents/projects/scaffold_logic'
|
11
11
|
gem 'SystemTimer'
|
12
12
|
gem 'tanker'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.1
|
@@ -117,7 +117,7 @@ class ManagedContent
|
|
117
117
|
end
|
118
118
|
|
119
119
|
def path
|
120
|
-
kind == 'Document' ? self.document_url : "/#{self.publication.slug}/#{self.slug}
|
120
|
+
kind == 'Document' ? self.document_url : "/#{self.publication.slug}/#{self.slug}".gsub('//', '/')
|
121
121
|
end
|
122
122
|
|
123
123
|
def publish!
|
@@ -2,9 +2,9 @@
|
|
2
2
|
<%- meta_description @publication.description -%>
|
3
3
|
<%= auto_discovery_link_tag(:rss, @publication.rss_feed_url, {:title => @publication.name}) if @publication.rss_feed_enabled? -%>
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
<p>
|
6
|
+
<%= @publication.description.to_s.html_safe -%>
|
7
|
+
</p>
|
8
8
|
|
9
9
|
<%= render 'articles' if @publication.has_articles? -%>
|
10
10
|
<%= render 'documents' if @publication.has_documents? -%>
|
data/editorial_logic.gemspec
CHANGED
@@ -4,14 +4,14 @@
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "1.3.
|
7
|
+
s.name = "editorial_logic"
|
8
|
+
s.version = "1.3.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Bantik"]
|
12
|
-
s.date =
|
13
|
-
s.description =
|
14
|
-
s.email =
|
12
|
+
s.date = "2011-09-25"
|
13
|
+
s.description = "An engine for enabling managed content, including articles, blogs, FAQs and glossaries."
|
14
|
+
s.email = "corey@seologic.com"
|
15
15
|
s.files = [
|
16
16
|
".document",
|
17
17
|
".rspec",
|
@@ -810,10 +810,10 @@ Gem::Specification.new do |s|
|
|
810
810
|
"spec/support/be_valid_asset.rb",
|
811
811
|
"tasks/editorial_logic.rake"
|
812
812
|
]
|
813
|
-
s.homepage =
|
813
|
+
s.homepage = "http://github.com/ivanoblomov/editorial_logic"
|
814
814
|
s.require_paths = ["lib"]
|
815
|
-
s.rubygems_version =
|
816
|
-
s.summary =
|
815
|
+
s.rubygems_version = "1.8.10"
|
816
|
+
s.summary = "An engine for enabling managed content in a Rails app, including articles, blogs, FAQs and glossaries."
|
817
817
|
|
818
818
|
if s.respond_to? :specification_version then
|
819
819
|
s.specification_version = 3
|
@@ -824,7 +824,7 @@ Gem::Specification.new do |s|
|
|
824
824
|
s.add_runtime_dependency(%q<ckeditor>, [">= 0"])
|
825
825
|
s.add_runtime_dependency(%q<fastercsv>, [">= 0"])
|
826
826
|
s.add_runtime_dependency(%q<mongoid>, [">= 0"])
|
827
|
-
s.add_runtime_dependency(%q<rails>, [">=
|
827
|
+
s.add_runtime_dependency(%q<rails>, [">= 0"])
|
828
828
|
s.add_runtime_dependency(%q<scaffold_logic>, [">= 0"])
|
829
829
|
s.add_runtime_dependency(%q<SystemTimer>, [">= 0"])
|
830
830
|
s.add_runtime_dependency(%q<tanker>, [">= 0"])
|
@@ -836,7 +836,7 @@ Gem::Specification.new do |s|
|
|
836
836
|
s.add_dependency(%q<ckeditor>, [">= 0"])
|
837
837
|
s.add_dependency(%q<fastercsv>, [">= 0"])
|
838
838
|
s.add_dependency(%q<mongoid>, [">= 0"])
|
839
|
-
s.add_dependency(%q<rails>, [">=
|
839
|
+
s.add_dependency(%q<rails>, [">= 0"])
|
840
840
|
s.add_dependency(%q<scaffold_logic>, [">= 0"])
|
841
841
|
s.add_dependency(%q<SystemTimer>, [">= 0"])
|
842
842
|
s.add_dependency(%q<tanker>, [">= 0"])
|
@@ -849,7 +849,7 @@ Gem::Specification.new do |s|
|
|
849
849
|
s.add_dependency(%q<ckeditor>, [">= 0"])
|
850
850
|
s.add_dependency(%q<fastercsv>, [">= 0"])
|
851
851
|
s.add_dependency(%q<mongoid>, [">= 0"])
|
852
|
-
s.add_dependency(%q<rails>, [">=
|
852
|
+
s.add_dependency(%q<rails>, [">= 0"])
|
853
853
|
s.add_dependency(%q<scaffold_logic>, [">= 0"])
|
854
854
|
s.add_dependency(%q<SystemTimer>, [">= 0"])
|
855
855
|
s.add_dependency(%q<tanker>, [">= 0"])
|
@@ -74,7 +74,7 @@ Feature: Manage Articles Content
|
|
74
74
|
| headline | content | slug |
|
75
75
|
| Foo | Stuff | foo |
|
76
76
|
When I visit "My Articles"
|
77
|
-
And I
|
77
|
+
And I press "" within "[@class='crud_links']"
|
78
78
|
Then I should not see "Foo"
|
79
79
|
|
80
80
|
Scenario: Add a Section to a Multi-Page Article
|
@@ -55,5 +55,5 @@ Feature: Manage Glossary Content
|
|
55
55
|
| headline | content | slug |
|
56
56
|
| Foo | Stuff | foo |
|
57
57
|
When I visit "Glossary of Technical Terms"
|
58
|
-
And I
|
58
|
+
And I press "" within "[@class='crud_links']"
|
59
59
|
Then I should not see "Foo"
|
@@ -25,7 +25,7 @@ Feature: Manage Publications
|
|
25
25
|
Scenario: Delete Publication
|
26
26
|
Given I have publications named FAQ
|
27
27
|
When I go to the admin_publications page
|
28
|
-
And I
|
28
|
+
And I press "" within "[@class='crud_links']"
|
29
29
|
Then I should not see "FAQ"
|
30
30
|
|
31
31
|
Scenario: View Publication
|
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: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 1
|
10
|
+
version: 1.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Bantik
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-09-
|
19
|
-
default_executable:
|
18
|
+
date: 2011-09-25 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
name: bson_ext
|
@@ -96,12 +95,10 @@ dependencies:
|
|
96
95
|
requirements:
|
97
96
|
- - ">="
|
98
97
|
- !ruby/object:Gem::Version
|
99
|
-
hash:
|
98
|
+
hash: 3
|
100
99
|
segments:
|
101
|
-
- 3
|
102
100
|
- 0
|
103
|
-
|
104
|
-
version: 3.0.1
|
101
|
+
version: "0"
|
105
102
|
type: :runtime
|
106
103
|
version_requirements: *id006
|
107
104
|
- !ruby/object:Gem::Dependency
|
@@ -981,7 +978,6 @@ files:
|
|
981
978
|
- spec/spec_helper.rb
|
982
979
|
- spec/support/be_valid_asset.rb
|
983
980
|
- tasks/editorial_logic.rake
|
984
|
-
has_rdoc: true
|
985
981
|
homepage: http://github.com/ivanoblomov/editorial_logic
|
986
982
|
licenses: []
|
987
983
|
|
@@ -1011,7 +1007,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1011
1007
|
requirements: []
|
1012
1008
|
|
1013
1009
|
rubyforge_project:
|
1014
|
-
rubygems_version: 1.
|
1010
|
+
rubygems_version: 1.8.10
|
1015
1011
|
signing_key:
|
1016
1012
|
specification_version: 3
|
1017
1013
|
summary: An engine for enabling managed content in a Rails app, including articles, blogs, FAQs and glossaries.
|