octopress-multilingual 1.0.0 → 1.0.1

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: aa067e616201fbbdac411a1c687704dacd256647
4
- data.tar.gz: a52f11d6b3032e0d989a7b133cbcb114f5bb505f
3
+ metadata.gz: 4d606f06c9a133bc28afd0816e8140f5c0a305f2
4
+ data.tar.gz: b44fe42aa80ac6e08777dffd3b1c6e2771c98ce0
5
5
  SHA512:
6
- metadata.gz: 3564a88ef210bec33e6295d1fa3523ca7cf5e994affef73c71e9b51e6c9b38a45ef59249144227a883cf95e3b632e9577bb65f2ad789f759faf743b8cc4c87ab
7
- data.tar.gz: 29ccdaf27a27ceb31dbf1b0f75564e4dd4ab97c5a035a5cdc425642dc293ec027ee3c7c3245f0c2d0a9b5fe66c9adffd9420e4d70dd64ff5d5c903476cb47319
6
+ metadata.gz: be20ea3349cde7b75f4bb85a5814f20aa470a66969d401074a119993e43d735931ebc1b0a042ad4ea0fd76c51c15baa35c4ca82d585ab30143ce0056f78c553d
7
+ data.tar.gz: 2a9af131a1ab6fc0cbede092baf36a2dc5fbb56197d642615353ec2e550a5364fc5c55b56258654640792bb1409c61de5d8e678bafda8c0e9a369d3657282b64
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.0.1 (2015-02-06)
4
+ - Fix: Ensure main language is in languages array.
5
+
3
6
  ### 1.0.0 (2015-02-06)
4
7
  - Added Octopress Ink integration (merges Ink payload on pages)
5
8
  - Fixed an issue where page languages weren't being added to site languages
@@ -65,7 +65,10 @@ module Octopress
65
65
  end
66
66
 
67
67
  def languages
68
- @languages ||= (site.posts.dup.concat(site.pages)).select(&:lang).group_by(&:lang).keys
68
+ @languages ||= begin
69
+ languages = site.posts.dup.concat(site.pages).select(&:lang).group_by(&:lang).keys
70
+ (languages << main_language).uniq
71
+ end
69
72
  end
70
73
 
71
74
  def posts_by_language
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Multilingual
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-multilingual
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
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-06 00:00:00.000000000 Z
11
+ date: 2015-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octopress-hooks