nanoc 4.0.0rc3 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +35 -22
- data/NEWS.md +6 -0
- data/lib/nanoc/base/entities/identifier.rb +6 -0
- data/lib/nanoc/base/errors.rb +7 -0
- data/lib/nanoc/base/views/item_view.rb +8 -0
- data/lib/nanoc/cli/commands/create-site.rb +4 -4
- data/lib/nanoc/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76d4a414bdd518ff5a609bef5e8fdebe476ab1fc
|
4
|
+
data.tar.gz: 3155b99958dcda234715e583c1a87cb9d6c2dc7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d9d6387aa77fd9dc6e3e0b9c35e7b52722a2273011b31cb2874879ebad7bdab958f7ce44b349c489226896a09f73f6c99c3b43fad8a9487f0bb81c0489cd9e8
|
7
|
+
data.tar.gz: c69890e971f56e7c504d2741d30bd1c7f741b1f13a1106378d05f101c2a2fe44f8d00abb25dd257f3841b47c3a7d623b86cc7604a040f557922550149a807b6d
|
data/Gemfile.lock
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
nanoc (4.0.
|
4
|
+
nanoc (4.0.0)
|
5
5
|
cri (~> 2.3)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
CFPropertyList (2.3.
|
10
|
+
CFPropertyList (2.3.2)
|
11
11
|
RedCloth (4.2.9)
|
12
12
|
addressable (2.3.8)
|
13
13
|
adsf (1.2.0)
|
@@ -17,7 +17,7 @@ GEM
|
|
17
17
|
parser (~> 2.2)
|
18
18
|
bluecloth (2.2.0)
|
19
19
|
builder (3.2.2)
|
20
|
-
chunky_png (1.3.
|
20
|
+
chunky_png (1.3.5)
|
21
21
|
coderay (1.1.0)
|
22
22
|
coffee-script (2.4.1)
|
23
23
|
coffee-script-source
|
@@ -29,7 +29,7 @@ GEM
|
|
29
29
|
chunky_png (~> 1.2)
|
30
30
|
fssm (>= 0.2.7)
|
31
31
|
sass (~> 3.2.19)
|
32
|
-
coveralls (0.8.
|
32
|
+
coveralls (0.8.3)
|
33
33
|
json (~> 1.8)
|
34
34
|
rest-client (>= 1.6.8, < 2)
|
35
35
|
simplecov (~> 0.10.0)
|
@@ -41,7 +41,7 @@ GEM
|
|
41
41
|
colored (~> 1.2)
|
42
42
|
diff-lcs (1.2.5)
|
43
43
|
docile (1.1.5)
|
44
|
-
domain_name (0.5.
|
44
|
+
domain_name (0.5.25)
|
45
45
|
unf (>= 0.0.5, < 1.0.0)
|
46
46
|
erubis (2.7.0)
|
47
47
|
excon (0.45.4)
|
@@ -49,14 +49,15 @@ GEM
|
|
49
49
|
ffi (1.9.10)
|
50
50
|
fission (0.5.0)
|
51
51
|
CFPropertyList (~> 2.2)
|
52
|
-
fog (1.
|
52
|
+
fog (1.35.0)
|
53
|
+
fog-aliyun
|
53
54
|
fog-atmos
|
54
55
|
fog-aws (>= 0.6.0)
|
55
56
|
fog-brightbox (~> 0.4)
|
56
57
|
fog-core (~> 1.32)
|
57
58
|
fog-dynect (~> 0.0.2)
|
58
59
|
fog-ecloud (~> 0.1)
|
59
|
-
fog-google (>= 0.
|
60
|
+
fog-google (>= 0.1.1)
|
60
61
|
fog-json
|
61
62
|
fog-local
|
62
63
|
fog-powerdns (>= 0.1.1)
|
@@ -70,9 +71,15 @@ GEM
|
|
70
71
|
fog-terremark
|
71
72
|
fog-vmfusion
|
72
73
|
fog-voxel
|
74
|
+
fog-xenserver
|
73
75
|
fog-xml (~> 0.1.1)
|
74
76
|
ipaddress (~> 0.5)
|
75
|
-
nokogiri
|
77
|
+
nokogiri
|
78
|
+
fog-aliyun (0.1.0)
|
79
|
+
fog-core (~> 1.27)
|
80
|
+
fog-json (~> 1.0)
|
81
|
+
ipaddress (~> 0.8)
|
82
|
+
xml-simple (~> 1.1)
|
76
83
|
fog-atmos (0.1.0)
|
77
84
|
fog-core
|
78
85
|
fog-xml
|
@@ -99,7 +106,7 @@ GEM
|
|
99
106
|
fog-ecloud (0.3.0)
|
100
107
|
fog-core
|
101
108
|
fog-xml
|
102
|
-
fog-google (0.
|
109
|
+
fog-google (0.1.1)
|
103
110
|
fog-core
|
104
111
|
fog-json
|
105
112
|
fog-xml
|
@@ -124,13 +131,13 @@ GEM
|
|
124
131
|
fog-core
|
125
132
|
fog-json
|
126
133
|
fog-xml
|
127
|
-
fog-sakuracloud (1.
|
134
|
+
fog-sakuracloud (1.3.3)
|
128
135
|
fog-core
|
129
136
|
fog-json
|
130
137
|
fog-serverlove (0.1.2)
|
131
138
|
fog-core
|
132
139
|
fog-json
|
133
|
-
fog-softlayer (0.
|
140
|
+
fog-softlayer (1.0.2)
|
134
141
|
fog-core
|
135
142
|
fog-json
|
136
143
|
fog-storm_on_demand (0.1.1)
|
@@ -145,6 +152,9 @@ GEM
|
|
145
152
|
fog-voxel (0.1.0)
|
146
153
|
fog-core
|
147
154
|
fog-xml
|
155
|
+
fog-xenserver (0.2.2)
|
156
|
+
fog-core
|
157
|
+
fog-xml
|
148
158
|
fog-xml (0.1.2)
|
149
159
|
fog-core
|
150
160
|
nokogiri (~> 1.5, >= 1.5.11)
|
@@ -156,16 +166,17 @@ GEM
|
|
156
166
|
handlebars-source (~> 3.0.0)
|
157
167
|
therubyracer (~> 0.12.1)
|
158
168
|
handlebars-source (3.0.3)
|
169
|
+
hashdiff (0.2.3)
|
159
170
|
http-cookie (1.0.2)
|
160
171
|
domain_name (~> 0.5)
|
161
172
|
inflecto (0.0.2)
|
162
173
|
ipaddress (0.8.0)
|
163
174
|
json (1.8.3)
|
164
|
-
kramdown (1.
|
175
|
+
kramdown (1.9.0)
|
165
176
|
less (2.6.0)
|
166
177
|
commonjs (~> 0.2.7)
|
167
|
-
libv8 (3.16.14.
|
168
|
-
listen (3.0.
|
178
|
+
libv8 (3.16.14.13)
|
179
|
+
listen (3.0.4)
|
169
180
|
rb-fsevent (>= 0.9.3)
|
170
181
|
rb-inotify (>= 0.9)
|
171
182
|
markaby (0.8.0)
|
@@ -175,23 +186,23 @@ GEM
|
|
175
186
|
method_source (0.8.2)
|
176
187
|
mime-types (2.6.2)
|
177
188
|
mini_portile (0.6.2)
|
178
|
-
minitest (5.8.
|
189
|
+
minitest (5.8.2)
|
179
190
|
mocha (1.1.0)
|
180
191
|
metaclass (~> 0.0.1)
|
181
192
|
multi_json (1.11.2)
|
182
193
|
mustache (1.0.2)
|
183
194
|
net-scp (1.2.1)
|
184
195
|
net-ssh (>= 2.6.5)
|
185
|
-
net-ssh (
|
186
|
-
netrc (0.
|
196
|
+
net-ssh (3.0.1)
|
197
|
+
netrc (0.11.0)
|
187
198
|
nokogiri (1.6.6.2)
|
188
199
|
mini_portile (~> 0.6.0)
|
189
200
|
pandoc-ruby (1.0.0)
|
190
|
-
parser (2.2.
|
201
|
+
parser (2.2.3.0)
|
191
202
|
ast (>= 1.1, < 3.0)
|
192
203
|
posix-spawn (0.3.11)
|
193
204
|
powerpack (0.1.1)
|
194
|
-
pry (0.10.
|
205
|
+
pry (0.10.3)
|
195
206
|
coderay (~> 1.1.0)
|
196
207
|
method_source (~> 0.8.1)
|
197
208
|
slop (~> 3.4)
|
@@ -207,7 +218,7 @@ GEM
|
|
207
218
|
ffi (>= 0.5.0)
|
208
219
|
rdiscount (2.1.8)
|
209
220
|
rdoc (4.2.0)
|
210
|
-
redcarpet (3.3.
|
221
|
+
redcarpet (3.3.3)
|
211
222
|
ref (2.0.0)
|
212
223
|
rest-client (1.8.0)
|
213
224
|
http-cookie (>= 1.0.2, < 2.0)
|
@@ -263,13 +274,15 @@ GEM
|
|
263
274
|
unf (0.1.4)
|
264
275
|
unf_ext
|
265
276
|
unf_ext (0.0.7.1)
|
266
|
-
vcr (
|
277
|
+
vcr (3.0.0)
|
267
278
|
w3c_validators (1.2)
|
268
279
|
json
|
269
280
|
nokogiri
|
270
|
-
webmock (1.
|
281
|
+
webmock (1.22.3)
|
271
282
|
addressable (>= 2.3.6)
|
272
283
|
crack (>= 0.3.2)
|
284
|
+
hashdiff
|
285
|
+
xml-simple (1.1.5)
|
273
286
|
yajl-ruby (1.2.1)
|
274
287
|
yard (0.8.7.6)
|
275
288
|
yuicompressor (1.3.3)
|
data/NEWS.md
CHANGED
@@ -87,6 +87,12 @@ module Nanoc
|
|
87
87
|
@type == :full
|
88
88
|
end
|
89
89
|
|
90
|
+
# @return [Boolean] True if this is a legacy identifier (i.e. does not
|
91
|
+
# include the extension), false otherwise
|
92
|
+
def legacy?
|
93
|
+
@type == :legacy
|
94
|
+
end
|
95
|
+
|
90
96
|
# @return [String]
|
91
97
|
def chop
|
92
98
|
to_s.chop
|
data/lib/nanoc/base/errors.rb
CHANGED
@@ -185,5 +185,12 @@ module Nanoc::Int
|
|
185
185
|
super("There are multiple #{type}s with the #{identifier} identifier.")
|
186
186
|
end
|
187
187
|
end
|
188
|
+
|
189
|
+
# Error that is raised when attempting to call #parent or #children on an item with a legacy identifier.
|
190
|
+
class CannotGetParentOrChildrenOfNonLegacyItem < Generic
|
191
|
+
def initialize(identifier)
|
192
|
+
super("You cannot get the parent or children of an item that has a “full” identifier (#{identifier}). Getting the parent or children of an item is only possible for items that have a legacy identifier.")
|
193
|
+
end
|
194
|
+
end
|
188
195
|
end
|
189
196
|
end
|
@@ -40,6 +40,10 @@ module Nanoc
|
|
40
40
|
#
|
41
41
|
# @return [Enumerable<Nanoc::ItemView>]
|
42
42
|
def children
|
43
|
+
unless unwrap.identifier.legacy?
|
44
|
+
raise Nanoc::Int::Errors::CannotGetParentOrChildrenOfNonLegacyItem.new(unwrap.identifier)
|
45
|
+
end
|
46
|
+
|
43
47
|
unwrap.children.map { |i| Nanoc::ItemView.new(i) }
|
44
48
|
end
|
45
49
|
|
@@ -50,6 +54,10 @@ module Nanoc
|
|
50
54
|
#
|
51
55
|
# @return [nil] if the item has no parent
|
52
56
|
def parent
|
57
|
+
unless unwrap.identifier.legacy?
|
58
|
+
raise Nanoc::Int::Errors::CannotGetParentOrChildrenOfNonLegacyItem.new(unwrap.identifier)
|
59
|
+
end
|
60
|
+
|
53
61
|
unwrap.parent && Nanoc::ItemView.new(unwrap.parent)
|
54
62
|
end
|
55
63
|
|
@@ -266,15 +266,15 @@ EOS
|
|
266
266
|
<div id="sidebar">
|
267
267
|
<h2>Documentation</h2>
|
268
268
|
<ul>
|
269
|
-
<li><a href="http://
|
270
|
-
<li><a href="http://
|
271
|
-
<li><a href="http://
|
269
|
+
<li><a href="http://nanoc.ws/about/">About</a></li>
|
270
|
+
<li><a href="http://nanoc.ws/doc/">Documentation</a></li>
|
271
|
+
<li><a href="http://nanoc.ws/doc/tutorial/">Tutorial</a></li>
|
272
272
|
</ul>
|
273
273
|
<h2>Community</h2>
|
274
274
|
<ul>
|
275
275
|
<li><a href="http://groups.google.com/group/nanoc/">Discussion group</a></li>
|
276
276
|
<li><a href="irc://chat.freenode.net/#nanoc">IRC channel</a></li>
|
277
|
-
<li><a href="http://
|
277
|
+
<li><a href="http://nanoc.ws/contributing/">Contributing</a></li>
|
278
278
|
</ul>
|
279
279
|
</div>
|
280
280
|
</body>
|
data/lib/nanoc/version.rb
CHANGED
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.0.
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis Defreyne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cri
|
@@ -348,9 +348,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
348
348
|
version: 2.2.0
|
349
349
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
350
350
|
requirements:
|
351
|
-
- - "
|
351
|
+
- - ">="
|
352
352
|
- !ruby/object:Gem::Version
|
353
|
-
version:
|
353
|
+
version: '0'
|
354
354
|
requirements: []
|
355
355
|
rubyforge_project:
|
356
356
|
rubygems_version: 2.4.7
|