octopress-ink 1.0.0.rc.42 → 1.0.0.rc.43
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/octopress-ink/plugin.rb +8 -3
- data/lib/octopress-ink/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4ff4f3e6f31bb816c785ceb78da1906663bf26f
|
4
|
+
data.tar.gz: d0eac622e35eb83b52f41f6ff9c9ca714d9963a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fab5093f285ee61ab229f733229336e74262e834c58b04081bc8ec077606d62ea1c48eefb77e717157e23f157ae6e0e6b41c55373184bfca0d42acbfc2792e8
|
7
|
+
data.tar.gz: b869018fc35c78fa3b512df368e7845f814d45aef92c71c47fb2e448bf0e4dd240722b81286eb7f70db88bea29792b0c9d5e94d3c98ecc9acf735ffdfb75c81e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
### 1.0.0 RC43 - 2015-02-16
|
4
|
+
- Fix: Multilingual configurations are deep merged with primary language config to allow for less unnecessary duplication.
|
5
|
+
|
3
6
|
### 1.0.0 RC42 - 2015-02-15
|
4
7
|
- New: Plugins can define order for stylesheet and javascript assets.
|
5
8
|
|
data/lib/octopress-ink/plugin.rb
CHANGED
@@ -139,7 +139,12 @@ module Octopress
|
|
139
139
|
#
|
140
140
|
def config(lang=nil)
|
141
141
|
@config ||= configs.first.read
|
142
|
-
|
142
|
+
|
143
|
+
if lang
|
144
|
+
lang_config_hash[lang] || @config
|
145
|
+
else
|
146
|
+
@config
|
147
|
+
end
|
143
148
|
end
|
144
149
|
|
145
150
|
# Language configurations
|
@@ -157,13 +162,13 @@ module Octopress
|
|
157
162
|
configs = {}
|
158
163
|
|
159
164
|
user_lang_configs.each do |lang, file|
|
160
|
-
configs[lang] = SafeYAML.load_file(file)
|
165
|
+
configs[lang] = Jekyll::Utils.deep_merge_hashes(config, SafeYAML.load_file(file))
|
161
166
|
end
|
162
167
|
|
163
168
|
plugin_lang_configs.each do |lang, file|
|
164
169
|
# Add to lang
|
165
170
|
@lang_configs << Assets::LangConfig.new(self, File.basename(file), lang)
|
166
|
-
configs[lang] = @lang_configs.last.read
|
171
|
+
configs[lang] = Jekyll::Utils.deep_merge_hashes(config, @lang_configs.last.read)
|
167
172
|
end
|
168
173
|
|
169
174
|
configs
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octopress-ink
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.rc.
|
4
|
+
version: 1.0.0.rc.43
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|