buttercms 0.2.3 → 0.2.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb1cc49cec49263c6cc7235b04bd6374e0b71ed3
4
- data.tar.gz: e58a86c5bba9639451a2506ebf9104b5de94df0d
3
+ metadata.gz: 45b001c28c8642ed67bca48959b3a828923a703c
4
+ data.tar.gz: ddc7f88b77bc13bc0ae52afc2d617a16eb47b101
5
5
  SHA512:
6
- metadata.gz: c4ff507582245843ff9f4ef7791aca1a9e1a1e570e7e1a392132055c8079cd96998699874dd6adcb79b3ae0c0a57fd47b6297bc7d771a08e25b5c11447349b50
7
- data.tar.gz: 2a677b384a44964f6e86112a8daef94e99e670027bdcff04734fdc07ad9a3fa7d98f92aa9d837c230bdc22e30fd4ec8977779af510197eac18e06dda8c3a73ac
6
+ metadata.gz: 14b922df55c182aa3af341b6b67c3d4484b9c9a27b3cd92e92c57f36d3d7b6b8a79b9f136ea4071df4e430d52fa8dca1127fa40240075c077a1180ae64d65bd4
7
+ data.tar.gz: 9c1243e3b488c58c460949f92b77ea56cfd6384b97ca2324f48780862e3140ec19336517e1e9f9c2e886919dd00cbc67859d2e226b77e538ecae2a1f24215e51
data/.gitignore CHANGED
@@ -39,4 +39,6 @@ pkg/*
39
39
 
40
40
 
41
41
  test/dummy/tmp/
42
- test/dummy/db/development.sqlite3
42
+ test/dummy/db/development.sqlite3
43
+ test/dummy/db/production.sqlite3
44
+ test/dummy/log/test.log
@@ -1,3 +1,3 @@
1
1
  module Buttercms
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
@@ -1,8 +1,12 @@
1
+ <!-- This is the post partial used to display posts in the list view on the blog home page. -->
2
+
1
3
  <div class="post-preview">
4
+ <!-- Display the post title in a h2 tag -->
2
5
  <h2 class="post-title">
3
6
  <%= link_to(post['title'], blog_post_path(:slug => post['slug'])) %>
4
7
  </h2>
5
8
 
9
+ <!-- Display the post byline (author, categories, publish date) -->
6
10
  <p class="post-meta">
7
11
  Posted by
8
12
  <%= link_to("#{post['author']['first_name']} #{post['author']['last_name']}", blog_author_path(:author_slug => post['author']['slug'])) %>
@@ -16,7 +20,13 @@
16
20
  </p>
17
21
 
18
22
  <p class="post-summary">
19
- <%= post['summary'] %>
23
+ <!-- Featured images don't have to be used but can add a nice visual to your posts.
24
+ Here's a sample usage where we align it to the left of the summary text but use it however you'd like. -->
25
+ <% if post['featured_image'] != "" %>
26
+ <%= image_tag(post['featured_image'], :height => 100, :align => "left", :style => "padding: 10px") %>
27
+ <% end %>
28
+
29
+ <%= post['summary'] %>
20
30
  </p>
21
31
  </div>
22
32
  <hr>
@@ -19,4 +19,6 @@ test:
19
19
  # Do not keep production secrets in the repository,
20
20
  # instead read values from the environment.
21
21
  production:
22
- secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
22
+ # secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
23
+ secret_key_base: 0c7d9a4c669de4e4bb2860caac211d1bdc12d1fb5339e71ded336b6e3ead3d5c9d71736ea9285c0e43557774b8770956bca61c5d21638c5db5c53815cb42b613
24
+ secret_token: 0c7d9a4c669de4e4bb2860caac211d1bdc12d1fb5339e71ded336b6e3ead3d5c9d71736ea9285c0e43557774b8770956bca61c5d21638c5db5c53815cb42b613
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buttercms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - ButterCms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-13 00:00:00.000000000 Z
11
+ date: 2015-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -177,7 +177,6 @@ files:
177
177
  - test/dummy/db/test.sqlite3
178
178
  - test/dummy/lib/assets/.keep
179
179
  - test/dummy/log/.keep
180
- - test/dummy/log/test.log
181
180
  - test/dummy/public/404.html
182
181
  - test/dummy/public/422.html
183
182
  - test/dummy/public/500.html
@@ -255,7 +254,6 @@ test_files:
255
254
  - test/dummy/db/test.sqlite3
256
255
  - test/dummy/lib/assets/.keep
257
256
  - test/dummy/log/.keep
258
- - test/dummy/log/test.log
259
257
  - test/dummy/public/404.html
260
258
  - test/dummy/public/422.html
261
259
  - test/dummy/public/500.html