siteleaf 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/siteleaf/page.rb +7 -4
- data/lib/siteleaf/site.rb +1 -1
- data/lib/siteleaf/version.rb +1 -1
- data/siteleaf.gemspec +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1f74b22241c0bbed850ac4a6bbfeff180b3ff6e
|
4
|
+
data.tar.gz: b1c3fbd743d203574c6a0417b06c7aa762b8c832
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dfeae6e9e4e418b6793b1a3025adb7a7c272e034392a1f3ec959d2daf238bb4b297c3056267cabbd8eae175087892f0a2ee71e6bd068a6d92f7f54db9fc5f6b
|
7
|
+
data.tar.gz: 0f4c18a7a3736bf3eb556b96c79d5abe20471827e02517b19f0caeb128ce18b6b4724e3bc453b3a2d74835fae080f6f45ff5105fd24fef960fccc41f3dcf9224
|
data/lib/siteleaf/page.rb
CHANGED
@@ -49,12 +49,15 @@ module Siteleaf
|
|
49
49
|
attrs['date'] = Time.parse(published_at).utc if published_at
|
50
50
|
attrs['published'] = false if !published?
|
51
51
|
|
52
|
-
meta.each{|m| attrs[m['key']] = m['value'].to_s == '' ? nil : m['value'].to_s.gsub("\r\n","\n")} unless meta.nil?
|
52
|
+
meta.each{|m| attrs[m['key'].to_s.downcase] = m['value'].to_s == '' ? nil : m['value'].to_s.gsub("\r\n","\n")} unless meta.nil?
|
53
53
|
|
54
54
|
if defined?(taxonomy) && !taxonomy.nil?
|
55
|
-
taxonomy.each do |t|
|
56
|
-
|
57
|
-
|
55
|
+
taxonomy.each do |t|
|
56
|
+
next if t['values'].empty?
|
57
|
+
key = t['key']
|
58
|
+
key.downcase! if key =~ /^(tags|category|categories)$/i
|
59
|
+
attrs[key] = t['values'].map{|v| v['value'] }
|
60
|
+
end
|
58
61
|
end
|
59
62
|
|
60
63
|
attrs
|
data/lib/siteleaf/site.rb
CHANGED
@@ -60,7 +60,7 @@ module Siteleaf
|
|
60
60
|
attrs['timezone'] = timezone
|
61
61
|
attrs['permalink'] = 'pretty'
|
62
62
|
|
63
|
-
meta.each{|m| attrs[m['key']] = m['value'].to_s == '' ? nil : m['value'].to_s.gsub("\r\n","\n")} unless meta.nil?
|
63
|
+
meta.each{|m| attrs[m['key'].to_s.downcase] = m['value'].to_s == '' ? nil : m['value'].to_s.gsub("\r\n","\n")} unless meta.nil?
|
64
64
|
|
65
65
|
# output uploads using v1 /assets path
|
66
66
|
attrs['collections'] = {
|
data/lib/siteleaf/version.rb
CHANGED
data/siteleaf.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: siteleaf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Siteleaf
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.3.13
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: psych
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 2.0.8
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.0.8
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rack
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|