tkh_content 0.1.14 → 0.1.15

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
 
4
4
 
5
+ ## 0.1.15
6
+
7
+ * Debugged pages migrations. short_title attribute was missing in pages table
8
+ * Meta title for blog home page is company name instead of blog name
9
+ * Fixed bug meta partial for when blog post is not yet published_at
10
+
11
+
5
12
  ## 0.1.14
6
13
 
7
14
  * Fixed typo. Bad German in the contact form submit button.
@@ -1,4 +1,4 @@
1
- <% content_for :meta_title, Setting.first.blog_name %>
1
+ <% content_for :meta_title, Setting.first.company_name %>
2
2
  <%= content_for :meta_description, "#{Setting.first.blog_tagline} - #{Setting.first.company_name}: the official blog" %>
3
3
 
4
4
 
@@ -1,4 +1,4 @@
1
1
  <p class="meta-info">
2
- by <%= post.author.name %> on <%= l post.published_at, format: :tkh_default %> | <%= link_to 'Permalink', post %>
2
+ by <%= post.author.name %> <%= post.published_at ? "on #{l(post.published_at, format: :tkh_default)}" : "- not published yet" %> | <%= link_to 'Permalink', post %>
3
3
  <%="| #{link_to 'edit', edit_page_path(post), class: 'btn btn-mini'}".html_safe if administrator? %>
4
4
  </p>
@@ -18,6 +18,7 @@ module TkhContent
18
18
  def copy_migrations
19
19
  puts 'creating or updating page migrations'
20
20
  migration_template "create_pages.rb", "db/migrate/create_pages.rb"
21
+ migration_template "add_short_title_to_pages.rb", "db/migrate/add_short_title_to_pages.rb"
21
22
  migration_template "add_author_to_pages.rb", "db/migrate/add_author_to_pages.rb"
22
23
  migration_template "add_parent_id_to_pages.rb", "db/migrate/add_parent_id_to_pages.rb"
23
24
  migration_template "create_tags.rb", "db/migrate/create_tags.rb"
@@ -0,0 +1,5 @@
1
+ class AddShortTitleToPages < ActiveRecord::Migration
2
+ def change
3
+ add_column :pages, :short_title, :string
4
+ end
5
+ end
@@ -13,7 +13,7 @@ class CreateContacts < ActiveRecord::Migration
13
13
 
14
14
  def self.down
15
15
  drop_table :contacts
16
- remove_index :pages, :updated_at
16
+ remove_index :contacts, :updated_at
17
17
  end
18
18
 
19
19
  end
@@ -9,7 +9,7 @@ class CreatePages < ActiveRecord::Migration
9
9
  t.datetime :published_at
10
10
  t.timestamps
11
11
  end
12
- add_index :pages, :published_at
12
+ add_index :pages, :published_at
13
13
  Page.create_translation_table! :title => :string, :short_title => :string, :description => :text, :body => :text
14
14
  end
15
15
 
@@ -1,3 +1,3 @@
1
1
  module TkhContent
2
- VERSION = "0.1.14"
2
+ VERSION = "0.1.15"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tkh_content
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-17 00:00:00.000000000 Z
12
+ date: 2013-01-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -181,6 +181,7 @@ files:
181
181
  - lib/generators/tkh_content/create_or_update_migrations/create_or_update_migrations_generator.rb
182
182
  - lib/generators/tkh_content/create_or_update_migrations/templates/add_author_to_pages.rb
183
183
  - lib/generators/tkh_content/create_or_update_migrations/templates/add_parent_id_to_pages.rb
184
+ - lib/generators/tkh_content/create_or_update_migrations/templates/add_short_title_to_pages.rb
184
185
  - lib/generators/tkh_content/create_or_update_migrations/templates/add_various_indices_to_pages.rb
185
186
  - lib/generators/tkh_content/create_or_update_migrations/templates/create_contacts.rb
186
187
  - lib/generators/tkh_content/create_or_update_migrations/templates/create_pages.rb
@@ -237,7 +238,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
237
238
  version: '0'
238
239
  segments:
239
240
  - 0
240
- hash: -2261340158774515340
241
+ hash: -3943227022752667587
241
242
  required_rubygems_version: !ruby/object:Gem::Requirement
242
243
  none: false
243
244
  requirements:
@@ -246,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
246
247
  version: '0'
247
248
  segments:
248
249
  - 0
249
- hash: -2261340158774515340
250
+ hash: -3943227022752667587
250
251
  requirements: []
251
252
  rubyforge_project:
252
253
  rubygems_version: 1.8.23