editorial_logic 1.1.0 → 1.1.1

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/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
@@ -1,6 +1,6 @@
1
1
  class FaqImport < ScaffoldLogic::DataImport
2
2
  # Class Methods ==================================================================================
3
- def self.test( path='public/faqs.xls' )
3
+ def self.test( path='public/sample-faqs.xls' )
4
4
  self.run path
5
5
  end
6
6
 
@@ -24,10 +24,10 @@ class FaqImport < ScaffoldLogic::DataImport
24
24
 
25
25
  COLUMNS_BY_MODEL_FIELDS = {
26
26
  'desired_slug' => 'row_map[:slug]',
27
- 'title' => 'row_map[:title]',
28
- 'summary' => 'row_map[:summary]',
27
+ 'headline' => 'row_map[:title]', # this is used as the title of the page and the link text of links pointing to the page
28
+ 'summary' => 'row_map[:summary]', # used as meta description
29
29
  'keywords' => 'row_map[:keywords]',
30
- 'subheader' => 'row_map[:subheader]',
30
+ 'headline_short' => 'row_map[:subheader]', #in my spreadsheet this was the shortened version of the question so it'd fit nicely.
31
31
  'breadcrumbs' => 'row_map[:breadcrumbs]',
32
32
  'content' => 'row_map[:content]'
33
33
  }
@@ -12,7 +12,7 @@ class ManagedContent
12
12
  # Mongo Config ===================================================================================
13
13
 
14
14
  field :author
15
- field :headline
15
+ field :headline # used as: (1) title element of page; (2) link text of links in FAQ index page - Corey was using this as the header of the page as well. - THIS IS THE QUESTION
16
16
  field :subheader
17
17
  field :slug
18
18
  field :content
@@ -21,14 +21,13 @@ class ManagedContent
21
21
  field :state, :default => 'draft'
22
22
  field :publication_date, :type => Date
23
23
  field :revision_date, :type => Date
24
- field :summary
24
+ field :summary # used as: (1) meta description of page (2) link title attribute of any link pointing to that page
25
25
  field :related_contents, :type => Array, :default => []
26
26
  field :kind
27
27
 
28
- field :breadcrumbs
29
- field :header #different than subheader?
30
- field :keywords
31
- field :title
28
+ field :breadcrumbs # so FAQ can have breadcrumbs.
29
+ field :headline_short # because "headline" is often too long for a decent layout.
30
+ field :keywords # used as: meta keywords
32
31
 
33
32
  index :slug, :unique => true
34
33
  index :state, :unique => false
@@ -60,8 +60,8 @@
60
60
  <%= faux_field 'Desscription', @managed_content.summary -%>
61
61
  <%= faux_field 'Keywords', @managed_content.keywords -%>
62
62
  <%= faux_field 'Breadcrumbs', @managed_content.breadcrumbs -%>
63
- <%= faux_field 'Title', @managed_content.title -%>
64
- <%= faux_field 'Header', @managed_content.subheader -%>
63
+ <%# faux_field 'Title', @managed_content.title -%>
64
+ <%= faux_field 'Short Headline', @managed_content.headline_short -%>
65
65
  </div>
66
66
  </fieldset>
67
67
  <%- unless @managed_content.references.blank? -%>
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{editorial_logic}
8
- s.version = "1.1.0"
8
+ s.version = "1.1.1"
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}]
@@ -823,9 +823,9 @@ Gem::Specification.new do |s|
823
823
  s.add_runtime_dependency(%q<carrierwave>, [">= 0"])
824
824
  s.add_runtime_dependency(%q<ckeditor>, [">= 0"])
825
825
  s.add_runtime_dependency(%q<fastercsv>, [">= 0"])
826
- s.add_runtime_dependency(%q<mongoid>, [">= 2.0.0.beta.17"])
826
+ s.add_runtime_dependency(%q<mongoid>, [">= 0"])
827
827
  s.add_runtime_dependency(%q<rails>, [">= 3.0.1"])
828
- s.add_runtime_dependency(%q<scaffold_logic>, [">= 1.0.2"])
828
+ s.add_runtime_dependency(%q<scaffold_logic>, [">= 0"])
829
829
  s.add_runtime_dependency(%q<SystemTimer>, [">= 0"])
830
830
  s.add_development_dependency(%q<jeweler>, [">= 0"])
831
831
  s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
@@ -834,9 +834,9 @@ Gem::Specification.new do |s|
834
834
  s.add_dependency(%q<carrierwave>, [">= 0"])
835
835
  s.add_dependency(%q<ckeditor>, [">= 0"])
836
836
  s.add_dependency(%q<fastercsv>, [">= 0"])
837
- s.add_dependency(%q<mongoid>, [">= 2.0.0.beta.17"])
837
+ s.add_dependency(%q<mongoid>, [">= 0"])
838
838
  s.add_dependency(%q<rails>, [">= 3.0.1"])
839
- s.add_dependency(%q<scaffold_logic>, [">= 1.0.2"])
839
+ s.add_dependency(%q<scaffold_logic>, [">= 0"])
840
840
  s.add_dependency(%q<SystemTimer>, [">= 0"])
841
841
  s.add_dependency(%q<jeweler>, [">= 0"])
842
842
  s.add_dependency(%q<rspec>, [">= 1.2.9"])
@@ -846,9 +846,9 @@ Gem::Specification.new do |s|
846
846
  s.add_dependency(%q<carrierwave>, [">= 0"])
847
847
  s.add_dependency(%q<ckeditor>, [">= 0"])
848
848
  s.add_dependency(%q<fastercsv>, [">= 0"])
849
- s.add_dependency(%q<mongoid>, [">= 2.0.0.beta.17"])
849
+ s.add_dependency(%q<mongoid>, [">= 0"])
850
850
  s.add_dependency(%q<rails>, [">= 3.0.1"])
851
- s.add_dependency(%q<scaffold_logic>, [">= 1.0.2"])
851
+ s.add_dependency(%q<scaffold_logic>, [">= 0"])
852
852
  s.add_dependency(%q<SystemTimer>, [">= 0"])
853
853
  s.add_dependency(%q<jeweler>, [">= 0"])
854
854
  s.add_dependency(%q<rspec>, [">= 1.2.9"])
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: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 0
10
- version: 1.1.0
9
+ - 1
10
+ version: 1.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bantik
@@ -81,14 +81,10 @@ dependencies:
81
81
  requirements:
82
82
  - - ">="
83
83
  - !ruby/object:Gem::Version
84
- hash: 62196417
84
+ hash: 3
85
85
  segments:
86
- - 2
87
86
  - 0
88
- - 0
89
- - beta
90
- - 17
91
- version: 2.0.0.beta.17
87
+ version: "0"
92
88
  type: :runtime
93
89
  version_requirements: *id005
94
90
  - !ruby/object:Gem::Dependency
@@ -115,12 +111,10 @@ dependencies:
115
111
  requirements:
116
112
  - - ">="
117
113
  - !ruby/object:Gem::Version
118
- hash: 19
114
+ hash: 3
119
115
  segments:
120
- - 1
121
116
  - 0
122
- - 2
123
- version: 1.0.2
117
+ version: "0"
124
118
  type: :runtime
125
119
  version_requirements: *id007
126
120
  - !ruby/object:Gem::Dependency