homeostasis 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/homeostasis.rb +3 -2
- data/lib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1872a4f5546174c45bee3f9ab3adef4f8193407f
|
4
|
+
data.tar.gz: 4dee6683e7a60e099c8f27b2e7932eda58920804
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0dde4a8f6594394cbf71a71f501926904155db46ce2902aa4b0b92862ca1753c8ad5f358011c7221ffd4c131772d8965a6a3fc3e04433cd0969fc873711835e
|
7
|
+
data.tar.gz: 01b3f437ef295eba2d09e51132f1ff3f4d3051e1ed782c40c282a6ae08ac85ca1c77d4220830658359ee20a88464e30d9f3ec76491baecc83adaf89c77b12244
|
data/lib/homeostasis.rb
CHANGED
@@ -475,9 +475,10 @@ module Homeostasis
|
|
475
475
|
post[:path] = post[:path].sub(
|
476
476
|
"/#{@@directory}/#{date}-",
|
477
477
|
File.join('/', @@path, '/'))
|
478
|
+
post[:private] = true if post[:date] > Date.today
|
478
479
|
@@posts << post
|
479
480
|
end
|
480
|
-
@@posts = @@posts.sort_by { |
|
481
|
+
@@posts = @@posts.reject { |p| p[:private] }.sort_by { |p| p[:date] }.reverse
|
481
482
|
end
|
482
483
|
|
483
484
|
def before_render
|
@@ -507,7 +508,7 @@ module Homeostasis
|
|
507
508
|
rss += " <title>#{h @@title}</title>\n" if @@title
|
508
509
|
rss += " <link>#{h @@url}/</link>\n" if @@url
|
509
510
|
rss += " <description>#{h @@desc}</description>\n" if @@desc
|
510
|
-
blog_posts
|
511
|
+
blog_posts[0..5].each do |post|
|
511
512
|
body = post[:body]
|
512
513
|
body.gsub!(/(href|src)=('|")\//, "\\1=\\2#{@@url}/")
|
513
514
|
rss += " <item>\n"
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: homeostasis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hugh Bien
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: stasis
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
version: 1.3.6
|
84
84
|
requirements: []
|
85
85
|
rubyforge_project:
|
86
|
-
rubygems_version: 2.2.
|
86
|
+
rubygems_version: 2.2.2
|
87
87
|
signing_key:
|
88
88
|
specification_version: 4
|
89
89
|
summary: Stasis plugin for asset stamping and more.
|