jekyll-localization 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +4 -0
- data/README +1 -1
- data/lib/jekyll/localization.rb +10 -0
- data/lib/jekyll/localization/version.rb +1 -1
- metadata +12 -5
data/ChangeLog
CHANGED
data/README
CHANGED
data/lib/jekyll/localization.rb
CHANGED
@@ -147,6 +147,16 @@ module Jekyll
|
|
147
147
|
File.open(path, 'w') { |f| f.write(output) }
|
148
148
|
end
|
149
149
|
|
150
|
+
alias_method :_localization_original_process, :process
|
151
|
+
|
152
|
+
# Overwrites the original method to filter the language extension from
|
153
|
+
# basename
|
154
|
+
def process(name)
|
155
|
+
self.ext = File.extname(name)
|
156
|
+
self.basename = name[0 .. -self.ext.length-1].
|
157
|
+
sub(/#{Localization::LANG_EXT_RE}\z/, '')
|
158
|
+
end
|
159
|
+
|
150
160
|
end
|
151
161
|
|
152
162
|
module Helpers
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-localization
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 15
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
9
|
+
- 8
|
10
|
+
version: 0.0.8
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Jens Wille
|
@@ -15,16 +16,18 @@ autorequire:
|
|
15
16
|
bindir: bin
|
16
17
|
cert_chain: []
|
17
18
|
|
18
|
-
date: 2010-
|
19
|
+
date: 2010-11-24 00:00:00 +01:00
|
19
20
|
default_executable:
|
20
21
|
dependencies:
|
21
22
|
- !ruby/object:Gem::Dependency
|
22
23
|
name: jekyll-rendering
|
23
24
|
prerelease: false
|
24
25
|
requirement: &id001 !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
25
27
|
requirements:
|
26
28
|
- - ">="
|
27
29
|
- !ruby/object:Gem::Version
|
30
|
+
hash: 3
|
28
31
|
segments:
|
29
32
|
- 0
|
30
33
|
version: "0"
|
@@ -61,29 +64,33 @@ rdoc_options:
|
|
61
64
|
- README
|
62
65
|
- --line-numbers
|
63
66
|
- --inline-source
|
67
|
+
- --all
|
64
68
|
- --charset
|
65
69
|
- UTF-8
|
66
|
-
- --all
|
67
70
|
require_paths:
|
68
71
|
- lib
|
69
72
|
required_ruby_version: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
70
74
|
requirements:
|
71
75
|
- - ">="
|
72
76
|
- !ruby/object:Gem::Version
|
77
|
+
hash: 3
|
73
78
|
segments:
|
74
79
|
- 0
|
75
80
|
version: "0"
|
76
81
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
77
83
|
requirements:
|
78
84
|
- - ">="
|
79
85
|
- !ruby/object:Gem::Version
|
86
|
+
hash: 3
|
80
87
|
segments:
|
81
88
|
- 0
|
82
89
|
version: "0"
|
83
90
|
requirements: []
|
84
91
|
|
85
92
|
rubyforge_project:
|
86
|
-
rubygems_version: 1.3.
|
93
|
+
rubygems_version: 1.3.7
|
87
94
|
signing_key:
|
88
95
|
specification_version: 3
|
89
96
|
summary: Jekyll plugin that adds localization features to the rendering engine.
|