blogelator 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 989e866700acca33e3c0bf6cce106715e98ef1f6
4
- data.tar.gz: 68eedb20e7fdd97a5cbce87cb9250007bf11c741
3
+ metadata.gz: 6750073cbad742c8baea5a53ca97e74a90dfa4fb
4
+ data.tar.gz: f9a1c83719dcce8b679d449c04aa1e4f5e2c3849
5
5
  SHA512:
6
- metadata.gz: e1a83b6eb28aed7eddd9309a1cbfd5424b90426d53049e8422bef07b229df482a5d1aa7f35eccb272f1700f21dd8ebdfdbc8a4441becf355e3e85912f0d49c2c
7
- data.tar.gz: 13a2057e2c9345fbc2f7cc7adf5e588b902d803d9e186b74cc4cb80061915b42c7b60c1e5327068ad3edfda796ea856d02c4ed71696bfb552378763746501211
6
+ metadata.gz: 0115225ae1a9619d5ffbef150833353303b45099dfcad96345b2ce5866c654f9b6cc627fcf99abdd0cc06cab6dfb4b4fb0cdaf788f617efcd43066600da3a2fb
7
+ data.tar.gz: 0d3abeaa0429c17cc2dade796699154a563d860c893f62df5bd625a0c3a761a8170c7adbe5116dc3d6a869a079d46c1cf3f6e31184f0b60f69b0856f66f25a9c
@@ -1,4 +1,4 @@
1
- <link rel="canonical" href="<%= @post.url(request) %>" />
1
+ <link rel="canonical" href="<%= blogelator_post_url(@post) %>" />
2
2
  <% unless @post.meta_description.blank? %>
3
3
  <meta name="description" content="<%= @post.meta_description %>">
4
4
  <% end %>
@@ -11,12 +11,12 @@
11
11
  <meta property="og:type" content="article" />
12
12
  <meta property="og:title" content="<%= @post.title %>" />
13
13
  <meta property="og:description" content="<%=strip_tags(@post.summary_html) %>" />
14
- <meta property="og:url" content="<%= @post.url(request) %>" />
14
+ <meta property="og:url" content="<%= blogelator_post_url(@post) %>" />
15
15
  <meta property="og:image" content="<%= @post.image.url %>" />
16
16
  <meta name="twitter:card" content="summary_large_image" />
17
17
  <meta name="twitter:title" content="<%= @post.title %>" />
18
18
  <meta name="twitter:description" content="<%=strip_tags(@post.summary_html) %>" />
19
- <meta name="twitter:url" content="<%= @post.url(request) %>" />
19
+ <meta name="twitter:url" content="<%= blogelator_post_url(@post) %>" />
20
20
  <meta name="twitter:image:src" content="<%= @post.image.url %>" />
21
21
 
22
22
  <script type="application/ld+json">
@@ -32,9 +32,9 @@
32
32
  "description": "<%= strip_tags(@post.author.bio_html) %>"
33
33
  },
34
34
  "headline": "<%= @post.title %>",
35
- "url": "<%= @post.url(request) %>",
35
+ "url": "<%= blogelator_post_url(@post) %>",
36
36
  "datePublished": "<%= @post.created_at %>",
37
- "image": "<%= @post.image.url %>",
37
+ "image": "<%= blogelator_post_url(@post) %>",
38
38
  "description": "<%= strip_tags(@post.summary_html) %>"
39
39
  }
40
40
  </script>
@@ -1,6 +1,6 @@
1
1
  <% cache [Blogelator::VERSION, post, "index"] do %>
2
2
  <div class="post <%= post.status %>">
3
- <h2><%= link_to post.title, post.url(request) %></h2>
3
+ <h2><%= link_to post.title, post %></h2>
4
4
  <div class="published-at">
5
5
  <%= local_time(post.published_at, format: "%B %e, %Y") %>
6
6
  </div>
@@ -14,7 +14,7 @@
14
14
  <% else %>
15
15
  <div class="summary">
16
16
  <%== post.summary_html %>
17
- <%= link_to raw("Continue reading &raquo;"), post.url(request), class: "continue" %>
17
+ <%= link_to raw("Continue reading &raquo;"), post, class: "continue" %>
18
18
  </div>
19
19
  <% end %>
20
20
  </div>
@@ -1,6 +1,6 @@
1
1
  <% cache [Blogelator::VERSION, @post, "show"] do %>
2
2
  <div class="post <%= @post.status %>">
3
- <h1><%= link_to @post.title, @post.url(request) %></h1>
3
+ <h1><%= link_to @post.title, @post %></h1>
4
4
  <%= local_time(@post.published_at, format: "%B %e, %Y", class: "published-at") %>
5
5
  <div class="tags">
6
6
  <%= render @post.tags %>
@@ -1 +1 @@
1
- <%= link_to tag.name, tag.url(request), class: "tag" %>
1
+ <%= link_to tag.name, blogelator_tag_posts_path(tag), class: "tag" %>
data/lib/blogelator.rb CHANGED
@@ -7,4 +7,7 @@ require "blogelator/version"
7
7
 
8
8
  # Blogelator allows you to add a blog to a Rails app.
9
9
  module Blogelator
10
+ def self.table_name_prefix
11
+ "blogelator_"
12
+ end
10
13
  end
@@ -1,7 +1,5 @@
1
1
  module Blogelator
2
2
  class Engine < ::Rails::Engine
3
- isolate_namespace Blogelator
4
-
5
3
  # Load Rails Generators
6
4
  generators do
7
5
  require File.join(File.expand_path("../..", __FILE__), "generators", "blogelator", "install_generator.rb")
@@ -1,3 +1,3 @@
1
1
  module Blogelator
2
- VERSION = "1.0.2".freeze
2
+ VERSION = "1.0.3".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blogelator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Pattison