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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 100915b43b37b38959ff89d57f2a7046fb84495a
4
- data.tar.gz: a55ea04d2a96a1735f193accaa2851facb75028e
3
+ metadata.gz: 538d08c80ac9f6a250c630f9b1fa1c8fdaed7bed
4
+ data.tar.gz: e0405b6226aab9e77bf53f41d3bc4cc613de3842
5
5
  SHA512:
6
- metadata.gz: c9e3dff238480c01ec952770db7a1e7c2c1299a159c3bd19a299b6b0de4e82ddbd58ad86852f0c807be0a25a081bed745568f601cc9a848e6f3e55472111dbaa
7
- data.tar.gz: db3f71abba38cfe30b676b98d876f93b999371edd6a2c28503ae9ed63b51c10f9f2b95887203968ee1af57a240004be1f9452f502c8da2fcd7c584be774690d6
6
+ metadata.gz: 7d65af9705190abb94a95e4a52a9ae05eafe327a00ac3c61d7553068e2780301fd94407563e6cde17dd4c72ae13852267179c5961535a840356e5eae16bc9b37
7
+ data.tar.gz: a7aac15e81f7eb8ad6096bd664327d5eb776b9d118845aab4777bdc3a8ad4abb88255a3b8fa8af05f76dba181dc1786919ae3c6b018b7d11dedab2c2c3e48a3b
@@ -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
- reject(&:private?)
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
@@ -1,3 +1,3 @@
1
1
  module Blogue
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blogue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxim Chernyak