nanoc 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog +5 -0
- data/Rakefile +1 -1
- data/bin/nanoc +1 -1
- data/lib/nanoc.rb +1 -1
- data/lib/nanoc/base/layout_processor.rb +2 -2
- data/lib/nanoc/base/plugin.rb +2 -2
- metadata +3 -3
data/ChangeLog
CHANGED
data/Rakefile
CHANGED
data/bin/nanoc
CHANGED
data/lib/nanoc.rb
CHANGED
@@ -20,12 +20,12 @@ module Nanoc
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def self.extensions(*extensions)
|
23
|
-
self._extensions = [] unless
|
23
|
+
self._extensions = [] unless instance_variables.include?('@_extensions')
|
24
24
|
extensions.empty? ? self._extensions || [] : self._extensions = (self._extensions || []) + extensions
|
25
25
|
end
|
26
26
|
|
27
27
|
def self.extension(extension=nil)
|
28
|
-
self._extensions = [] unless
|
28
|
+
self._extensions = [] unless instance_variables.include?('@_extensions')
|
29
29
|
extension.nil? ? self.extensions.first : self.extensions(extension)
|
30
30
|
end
|
31
31
|
|
data/lib/nanoc/base/plugin.rb
CHANGED
@@ -6,12 +6,12 @@ module Nanoc
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def self.identifiers(*identifiers)
|
9
|
-
self._identifiers = [] unless
|
9
|
+
self._identifiers = [] unless instance_variables.include?('@_identifiers')
|
10
10
|
identifiers.empty? ? self._identifiers || [] : self._identifiers = (self._identifiers || []) + identifiers
|
11
11
|
end
|
12
12
|
|
13
13
|
def self.identifier(identifier=nil)
|
14
|
-
self._identifiers = [] unless
|
14
|
+
self._identifiers = [] unless instance_variables.include?('@_identifiers')
|
15
15
|
identifier.nil? ? self.identifiers.first : self.identifiers(identifier)
|
16
16
|
end
|
17
17
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nanoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis Defreyne
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-01-
|
12
|
+
date: 2008-01-26 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -70,7 +70,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
70
70
|
requirements:
|
71
71
|
- - ">="
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version: 1.8.
|
73
|
+
version: 1.8.5
|
74
74
|
version:
|
75
75
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
76
|
requirements:
|