staticpress 0.7.0 → 0.7.1
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.
- data/.ruby-version +1 -0
- data/lib/skeleton/config.yml +1 -0
- data/lib/staticpress/site.rb +3 -6
- data/lib/staticpress/version.rb +1 -1
- data/lib/themes/basic/includes/github.haml +1 -1
- metadata +4 -4
- data/.rbenv-version +0 -1
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.9.3-p327
|
data/lib/skeleton/config.yml
CHANGED
data/lib/staticpress/site.rb
CHANGED
|
@@ -22,20 +22,17 @@ module Staticpress
|
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
def each(&block)
|
|
25
|
-
threads = []
|
|
26
25
|
semaphore = Mutex.new
|
|
27
26
|
|
|
28
|
-
CONTENT_TYPES.
|
|
29
|
-
|
|
27
|
+
CONTENT_TYPES.map do |content_type|
|
|
28
|
+
Thread.new do
|
|
30
29
|
content_type.published.each do |content|
|
|
31
30
|
semaphore.synchronize do
|
|
32
31
|
block.call content
|
|
33
32
|
end
|
|
34
33
|
end
|
|
35
34
|
end
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
threads.each &:join
|
|
35
|
+
end.each(&:join)
|
|
39
36
|
end
|
|
40
37
|
|
|
41
38
|
def find_content_by_env(env)
|
data/lib/staticpress/version.rb
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
%a.github-ribbon{ :href =>
|
|
1
|
+
%a.github-ribbon{ :href => "https://github.com/#{config.github}", :style => 'position: absolute; top: 0; right: 0;' }
|
|
2
2
|
%img{ :src => 'https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png', :alt => 'Fork me on GitHub' }/
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: staticpress
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.1
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2013-01-16 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: aruba
|
|
@@ -215,7 +215,7 @@ extensions: []
|
|
|
215
215
|
extra_rdoc_files: []
|
|
216
216
|
files:
|
|
217
217
|
- .gitignore
|
|
218
|
-
- .
|
|
218
|
+
- .ruby-version
|
|
219
219
|
- Gemfile
|
|
220
220
|
- NOTES.markdown
|
|
221
221
|
- README.markdown
|
|
@@ -362,7 +362,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
362
362
|
version: '0'
|
|
363
363
|
requirements: []
|
|
364
364
|
rubyforge_project:
|
|
365
|
-
rubygems_version: 1.8.
|
|
365
|
+
rubygems_version: 1.8.23
|
|
366
366
|
signing_key:
|
|
367
367
|
specification_version: 3
|
|
368
368
|
summary: Blog-centric static site builder
|
data/.rbenv-version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.9.3-p194
|