blogue 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/blogue/post.rb +4 -3
- data/lib/blogue/engine.rb +3 -1
- data/lib/blogue/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 538d08c80ac9f6a250c630f9b1fa1c8fdaed7bed
|
4
|
+
data.tar.gz: e0405b6226aab9e77bf53f41d3bc4cc613de3842
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d65af9705190abb94a95e4a52a9ae05eafe327a00ac3c61d7553068e2780301fd94407563e6cde17dd4c72ae13852267179c5961535a840356e5eae16bc9b37
|
7
|
+
data.tar.gz: a7aac15e81f7eb8ad6096bd664327d5eb776b9d118845aab4777bdc3a8ad4abb88255a3b8fa8af05f76dba181dc1786919ae3c6b018b7d11dedab2c2c3e48a3b
|
data/app/models/blogue/post.rb
CHANGED
@@ -6,10 +6,11 @@ module Blogue
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def all
|
9
|
-
all_post_paths.
|
9
|
+
posts = all_post_paths.
|
10
10
|
map(&method(:new)).
|
11
|
-
sort(&method(:sort_posts))
|
12
|
-
|
11
|
+
sort(&method(:sort_posts))
|
12
|
+
|
13
|
+
Rails.env.production? ? posts.reject(&:private?) : posts
|
13
14
|
end
|
14
15
|
|
15
16
|
def all_post_paths
|
data/lib/blogue/engine.rb
CHANGED
@@ -4,8 +4,10 @@ module Blogue
|
|
4
4
|
|
5
5
|
initializer 'blogue.append_asset_path' do |app|
|
6
6
|
app.config.assets.paths << (
|
7
|
-
Blogue.assets_path || "#{Blogue.posts_path}/assets"
|
7
|
+
File.expand_path(Blogue.assets_path || "#{Blogue.posts_path}/assets")
|
8
8
|
)
|
9
|
+
|
10
|
+
app.config.assets.precompile += ['*.jpg', '*.png', '*.gif']
|
9
11
|
end
|
10
12
|
|
11
13
|
config.after_initialize do
|
data/lib/blogue/version.rb
CHANGED