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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f72265a4620b0f6458c6f855e554578258dfaf7ac1313b7a2fdeb76ffeb1008d
4
- data.tar.gz: 5432b1aa13a6326b0a33fbea11c266cb9dea594fe9f89a7bedef31c3f64b4f84
3
+ metadata.gz: 25799590a9e5b76543de8e6a92113146d3075f7c863d48dedfdf767aba10b766
4
+ data.tar.gz: b83c6dcc24dc064a3ac0168c203d39c22f5363bffdc29755f23020ff0ef3516d
5
5
  SHA512:
6
- metadata.gz: 0d496c70b6a5e7854aa748bc92a1b6734b5c8c6aa8dc63907df1dfaffddd9357c72babf1c32ffda9b528a2cd219651a1c3fcdd2645401518f8f98fe5cd07617c
7
- data.tar.gz: d4f0ebdce7a3a18e5b1c93246a784f33f492fe21d041114f919758def808762f8ded71c32eebe22e005abc7cf9b62d30e3d2877fdd408a02daa5adff801f379e
6
+ metadata.gz: c2d95bfceff947e8519cb9e07e6c0c2ddbb846d0ca229ae1bd524bb3e9b4eda17e5e91dc7ee758c158e88508f7208f962634d9bff6a88ce495c4ae21c055c95a
7
+ data.tar.gz: c0b88bad5a414cb6895335ed8b5742853779b4adbbdb021931cf589b2fea1fdae32488db0c8243f714870947ac8a0231631a3756717ea93bc34b56cfd4ea520d
@@ -27,7 +27,8 @@ module Jekyll
27
27
  copy_redirector
28
28
  end
29
29
 
30
- symlinked_redirector
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 symlinked_redirector
101
- FileUtils.ln_s(default_locale,
102
- File.join(root_destination, 'default'))
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Locales
5
- VERSION = '0.1.1'
5
+ VERSION = '0.1.2'
6
6
  end
7
7
  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.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-02 00:00:00.000000000 Z
11
+ date: 2019-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler