nanoc 4.1.5 → 4.1.6

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: f9c0263d7b1a82695a400be99ff361742a79f205
4
- data.tar.gz: 9e037c0b7f6dd9e0dde26ee2e17c5b0b512c108b
3
+ metadata.gz: 1f6ba850197dc445a7c7ff2155f172cf559429e4
4
+ data.tar.gz: 6ffcc91296268720adf1290c403b41d73c0fc762
5
5
  SHA512:
6
- metadata.gz: d878758c199d21225f6ab0a893f248b2f51cd47d4e740fe2fad232f92ccdcfebc05921252271cd3f4123e6bb9d6eb5f033aa859387d6e196242ea2aea81286d5
7
- data.tar.gz: ec1f03f5120a5c3cbab4c49bb785edafc0c8eaa7b100fc37a66dda63f313281242adf1fe1b701b2ecebd2c69e81519975b40f3e99703e91a23a4a7f5c0651b31
6
+ metadata.gz: 6d87f9120c1c06ef221dc59d7b33a5c5d05deeedb008927232420d0a466a96b37048f25c706d389d393905b46b7bcd19f8487d8818db881d0d100d89b9443a5d
7
+ data.tar.gz: f4da8a98b02735de58c7d7c57a09ea3f49af3323cb887e31112c5019dd5245ef686949a12540eb8ff469c0cb8544515544a881a53dd12505c0ad2da663c77e1a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nanoc (4.1.5)
4
+ nanoc (4.1.6)
5
5
  cri (~> 2.3)
6
6
 
7
7
  GEM
@@ -48,24 +48,27 @@ GEM
48
48
  diff-lcs (1.2.5)
49
49
  docile (1.1.5)
50
50
  erubis (2.7.0)
51
- excon (0.48.0)
51
+ excon (0.49.0)
52
52
  execjs (2.6.0)
53
53
  ffi (1.9.10)
54
54
  fission (0.5.0)
55
55
  CFPropertyList (~> 2.2)
56
- fog (1.37.0)
56
+ fog (1.38.0)
57
57
  fog-aliyun (>= 0.1.0)
58
58
  fog-atmos
59
59
  fog-aws (>= 0.6.0)
60
60
  fog-brightbox (~> 0.4)
61
+ fog-cloudatcost (~> 0.1.0)
61
62
  fog-core (~> 1.32)
62
63
  fog-dynect (~> 0.0.2)
63
64
  fog-ecloud (~> 0.1)
64
65
  fog-google (<= 0.1.0)
65
66
  fog-json
66
67
  fog-local
68
+ fog-openstack
67
69
  fog-powerdns (>= 0.1.1)
68
70
  fog-profitbricks
71
+ fog-rackspace
69
72
  fog-radosgw (>= 0.0.2)
70
73
  fog-riakcs
71
74
  fog-sakuracloud (>= 0.0.4)
@@ -96,7 +99,12 @@ GEM
96
99
  fog-core (~> 1.22)
97
100
  fog-json
98
101
  inflecto (~> 0.0.2)
99
- fog-core (1.36.0)
102
+ fog-cloudatcost (0.1.2)
103
+ fog-core (~> 1.36)
104
+ fog-json (~> 1.0)
105
+ fog-xml (~> 0.1)
106
+ ipaddress (~> 0.8)
107
+ fog-core (1.37.0)
100
108
  builder
101
109
  excon (~> 0.45)
102
110
  formatador (~> 0.2)
@@ -116,6 +124,11 @@ GEM
116
124
  multi_json (~> 1.10)
117
125
  fog-local (0.3.0)
118
126
  fog-core (~> 1.27)
127
+ fog-openstack (0.1.2)
128
+ fog-core (>= 1.35)
129
+ fog-json (>= 1.0)
130
+ fog-xml (>= 0.1)
131
+ ipaddress (>= 0.8)
119
132
  fog-powerdns (0.1.1)
120
133
  fog-core (~> 1.27)
121
134
  fog-json (~> 1.0)
@@ -124,6 +137,11 @@ GEM
124
137
  fog-core
125
138
  fog-xml
126
139
  nokogiri
140
+ fog-rackspace (0.1.1)
141
+ fog-core (>= 1.35)
142
+ fog-json (>= 1.0)
143
+ fog-xml (>= 0.1)
144
+ ipaddress (>= 0.8)
127
145
  fog-radosgw (0.0.5)
128
146
  fog-core (>= 1.21.0)
129
147
  fog-json
@@ -177,10 +195,10 @@ GEM
177
195
  rake
178
196
  haml (4.0.7)
179
197
  tilt
180
- handlebars (0.7.0)
181
- handlebars-source (~> 3.0.0)
198
+ handlebars (0.8.0)
199
+ handlebars-source (~> 4.0.5)
182
200
  therubyracer (~> 0.12.1)
183
- handlebars-source (3.0.3)
201
+ handlebars-source (4.0.5)
184
202
  hashdiff (0.3.0)
185
203
  inflecto (0.0.2)
186
204
  ipaddress (0.8.3)
@@ -213,8 +231,8 @@ GEM
213
231
  notiffany (0.0.8)
214
232
  nenv (~> 0.1)
215
233
  shellany (~> 0.0)
216
- pandoc-ruby (1.0.0)
217
- parser (2.3.0.6)
234
+ pandoc-ruby (2.0.0)
235
+ parser (2.3.0.7)
218
236
  ast (~> 2.2)
219
237
  posix-spawn (0.3.11)
220
238
  powerpack (0.1.1)
@@ -228,7 +246,7 @@ GEM
228
246
  rack (1.6.4)
229
247
  rainbow (2.1.0)
230
248
  rainpress (1.0)
231
- rake (11.1.1)
249
+ rake (11.1.2)
232
250
  rb-fsevent (0.9.7)
233
251
  rb-inotify (0.9.7)
234
252
  ffi (>= 0.5.0)
@@ -255,8 +273,8 @@ GEM
255
273
  diff-lcs (>= 1.2.0, < 2.0)
256
274
  rspec-support (~> 3.4.0)
257
275
  rspec-support (3.4.1)
258
- rubocop (0.38.0)
259
- parser (>= 2.3.0.6, < 3.0)
276
+ rubocop (0.39.0)
277
+ parser (>= 2.3.0.7, < 3.0)
260
278
  powerpack (~> 0.1)
261
279
  rainbow (>= 1.99.1, < 3.0)
262
280
  ruby-progressbar (~> 1.7)
@@ -264,7 +282,7 @@ GEM
264
282
  ruby-progressbar (1.7.5)
265
283
  rubypants (0.2.0)
266
284
  safe_yaml (1.0.4)
267
- sass (3.4.21)
285
+ sass (3.4.22)
268
286
  shellany (0.0.1)
269
287
  simplecov (0.11.2)
270
288
  docile (~> 1.1.0)
@@ -289,12 +307,12 @@ GEM
289
307
  rubypants
290
308
  uglifier (3.0.0)
291
309
  execjs (>= 0.3.0, < 3)
292
- unicode-display_width (1.0.2)
310
+ unicode-display_width (1.0.3)
293
311
  vcr (3.0.1)
294
312
  w3c_validators (1.2)
295
313
  json
296
314
  nokogiri
297
- webmock (1.24.2)
315
+ webmock (1.24.3)
298
316
  addressable (>= 2.3.6)
299
317
  crack (>= 0.3.2)
300
318
  hashdiff
data/NEWS.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Nanoc news
2
2
 
3
+ ## 4.1.6 (2016-04-17)
4
+
5
+ Fixes:
6
+
7
+ * Strip index.html only if it is a full component (#850, #851)
8
+ * Force UTF-8 for item rep paths (#837, #852)
9
+
3
10
  ## 4.1.5 (2016-03-24)
4
11
 
5
12
  Fixes:
@@ -28,6 +28,7 @@ module Nanoc::Int
28
28
  def route_rep(rep, snapshot_action, paths_to_reps)
29
29
  basic_path = snapshot_action.path
30
30
  return if basic_path.nil?
31
+ basic_path = basic_path.encode('UTF-8')
31
32
 
32
33
  # Check for duplicate paths
33
34
  if paths_to_reps.key?(basic_path)
@@ -42,10 +43,10 @@ module Nanoc::Int
42
43
 
43
44
  def strip_index_filename(basic_path)
44
45
  @site.config[:index_filenames].each do |index_filename|
45
- rep_path_ending = basic_path[-index_filename.length..-1]
46
- next unless rep_path_ending == index_filename
47
-
48
- return basic_path[0..-index_filename.length - 1]
46
+ slashed_index_filename = '/' + index_filename
47
+ if basic_path.end_with?(slashed_index_filename)
48
+ return basic_path[0..-index_filename.length - 1]
49
+ end
49
50
  end
50
51
 
51
52
  basic_path
data/lib/nanoc/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Nanoc
2
2
  # The current Nanoc version.
3
- VERSION = '4.1.5'.freeze
3
+ VERSION = '4.1.6'.freeze
4
4
  end
@@ -74,7 +74,7 @@ class Nanoc::CLI::Commands::CreateSiteTest < Nanoc::TestCase
74
74
 
75
75
  FileUtils.cd('foo') do
76
76
  # Try with encoding = default encoding = utf-8
77
- File.open('content/index.html', 'w') { |io| io.write("Hello <\xD6>!\n") }
77
+ File.open('content/index.html', 'w') { |io| io.write('Hello ' + 0xD6.chr + "!\n") }
78
78
  exception = assert_raises(RuntimeError) do
79
79
  Nanoc::Int::SiteLoader.new.new_from_cwd
80
80
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nanoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.5
4
+ version: 4.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Defreyne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-24 00:00:00.000000000 Z
11
+ date: 2016-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cri
@@ -377,7 +377,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
377
377
  version: '0'
378
378
  requirements: []
379
379
  rubyforge_project:
380
- rubygems_version: 2.5.2
380
+ rubygems_version: 2.6.2
381
381
  signing_key:
382
382
  specification_version: 4
383
383
  summary: A static-site generator with a focus on flexibility.