jekyll-locales 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/locales/site.rb +12 -4
- data/lib/jekyll/locales/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25799590a9e5b76543de8e6a92113146d3075f7c863d48dedfdf767aba10b766
|
4
|
+
data.tar.gz: b83c6dcc24dc064a3ac0168c203d39c22f5363bffdc29755f23020ff0ef3516d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2d95bfceff947e8519cb9e07e6c0c2ddbb846d0ca229ae1bd524bb3e9b4eda17e5e91dc7ee758c158e88508f7208f962634d9bff6a88ce495c4ae21c055c95a
|
7
|
+
data.tar.gz: c0b88bad5a414cb6895335ed8b5742853779b4adbbdb021931cf589b2fea1fdae32488db0c8243f714870947ac8a0231631a3756717ea93bc34b56cfd4ea520d
|
data/lib/jekyll/locales/site.rb
CHANGED
@@ -27,7 +27,8 @@ module Jekyll
|
|
27
27
|
copy_redirector
|
28
28
|
end
|
29
29
|
|
30
|
-
|
30
|
+
default_delete
|
31
|
+
default_symlink
|
31
32
|
end
|
32
33
|
|
33
34
|
private
|
@@ -97,9 +98,16 @@ module Jekyll
|
|
97
98
|
end
|
98
99
|
end
|
99
100
|
|
100
|
-
def
|
101
|
-
FileUtils.
|
102
|
-
|
101
|
+
def default_delete
|
102
|
+
FileUtils.rm_f default_destination
|
103
|
+
end
|
104
|
+
|
105
|
+
def default_destination
|
106
|
+
@default_destination ||= File.join(root_destination, 'default')
|
107
|
+
end
|
108
|
+
|
109
|
+
def default_symlink
|
110
|
+
FileUtils.ln_s(default_locale, default_destination)
|
103
111
|
end
|
104
112
|
end
|
105
113
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-locales
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- f
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|