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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b6a3788546bf6c3c415f0fd6d9c981980a23f2fe
4
- data.tar.gz: cbdfca85d3ac072d7c3d35bc5dfa09791ff5bcd1
3
+ metadata.gz: d4ff4f3e6f31bb816c785ceb78da1906663bf26f
4
+ data.tar.gz: d0eac622e35eb83b52f41f6ff9c9ca714d9963a3
5
5
  SHA512:
6
- metadata.gz: d0f97de7fb8c243ab15a50b38514477d05de8b4f39d99e0b0cc1a3044082dfed0896bf31496e4a6149f3c444e1ee723a0b9f11aa2b2c9c188ccf7daae2a859c3
7
- data.tar.gz: 90feb962267ede61af217ff432b7bdceb23306994c032c75e390df763eb27c1fcbc047035da8bac575b4be49682387990acd2c65606b007b613cf5f176e5920b
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
 
@@ -139,7 +139,12 @@ module Octopress
139
139
  #
140
140
  def config(lang=nil)
141
141
  @config ||= configs.first.read
142
- lang_config_hash[lang] || @config
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
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Ink
3
- VERSION = "1.0.0.rc.42"
3
+ VERSION = "1.0.0.rc.43"
4
4
  end
5
5
  end
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.42
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-15 00:00:00.000000000 Z
11
+ date: 2015-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll