nanoc-cli 4.12.2 → 4.12.3

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: 46566a8e523dbd9bd77ca7a5377f6ee2779a4709bfb72f3a275fb34109b12ccf
4
- data.tar.gz: 1fc269f57ef1fd594e7eaf5ee3141c0de7a9eefbaa44da2d5f443afaa9f5e202
3
+ metadata.gz: a6102307353730ee35fbda3e32a6e4e067c357b9f59fe7ba37f77915f86a7fe9
4
+ data.tar.gz: ecf963e25dd03a717113777a96c2bf1a5f08f6df87b85f92e755e6066f5046c3
5
5
  SHA512:
6
- metadata.gz: 315ff746835d095a578c9d982679c673afc6454e43916ef507876dcc902dafad924cf1302ec0834cd1ad98db3f0d4fc70622a279159927eda068c0b08e793b9d
7
- data.tar.gz: 1324a2a908b5dad8b6c1dcc740d3b6ca7e7b63a4a297405e2953e4adc8eaebed9c1bff06964dbe8abe11233171c1d40c43d2cf0b724c31bc0eed107165141860
6
+ metadata.gz: 02c656f32a80ee458471f6dc70eeff01380bb4a802c967381624e604e7cd1c269bcb34c865e1e1459d7ac97c88788cfc8f4896d05616472bef48a0842436496d
7
+ data.tar.gz: 7a4055654927ebfa816aa019fe846b451731669a88195757f187262b7ad6df4450c03c7b5de016496b9aeefc5e18b2678943a1271e331d7e47c1efac427f2c61
@@ -99,15 +99,17 @@ module Nanoc::CLI::Commands
99
99
  'items'
100
100
  when Nanoc::Core::LayoutCollection
101
101
  'layouts'
102
+ when nil
103
+ '(unknown)'
102
104
  else
103
- raise Nanoc::Core::Errors::InternalInconsistency, "unexpected pred type #{pred}"
105
+ raise Nanoc::Core::Errors::InternalInconsistency, "unexpected pred type #{pred.inspect}"
104
106
  end
105
107
 
106
108
  pred_identifier =
107
109
  case pred
108
110
  when Nanoc::Core::Document
109
111
  pred.identifier.to_s
110
- when Nanoc::Core::Configuration
112
+ when Nanoc::Core::Configuration, nil
111
113
  nil
112
114
  when Nanoc::Core::IdentifiableCollection
113
115
  case dep.props.raw_content
@@ -117,13 +119,13 @@ module Nanoc::CLI::Commands
117
119
  "matching any of #{dep.props.raw_content.sort.join(', ')}"
118
120
  end
119
121
  else
120
- raise Nanoc::Core::Errors::InternalInconsistency, "unexpected pred type #{pred}"
122
+ raise Nanoc::Core::Errors::InternalInconsistency, "unexpected pred type #{pred.inspect}"
121
123
  end
122
124
 
123
125
  if pred
124
126
  puts " [ #{format '%6s', type} ] (#{dep.props}) #{pred_identifier}"
125
127
  else
126
- puts ' ( removed item )'
128
+ puts ' ( removed )'
127
129
  end
128
130
  end
129
131
  puts ' (nothing)' if dependencies.empty?
@@ -37,15 +37,22 @@ module Nanoc::CLI::CompileListeners
37
37
  duration = @stopwatches[rep].duration
38
38
 
39
39
  action =
40
- if is_created then :create
41
- elsif is_modified then :update
42
- elsif cached_reps.include?(rep) then :cached
43
- else :identical
40
+ if is_created
41
+ :create
42
+ elsif is_modified
43
+ :update
44
+ elsif cached_reps.include?(rep)
45
+ :cached
46
+ else
47
+ :identical
44
48
  end
45
49
  level =
46
- if is_created then :high
47
- elsif is_modified then :high
48
- else :low
50
+ if is_created
51
+ :high
52
+ elsif is_modified
53
+ :high
54
+ else
55
+ :low
49
56
  end
50
57
 
51
58
  # FIXME: do not depend on working directory
@@ -191,7 +191,6 @@ module Nanoc::CLI
191
191
  'mustache' => 'mustache',
192
192
  'nanoc/live' => 'nanoc-live',
193
193
  'nokogiri' => 'nokogiri',
194
- 'nokogumbo' => 'nokogumbo',
195
194
  'pandoc-ruby' => 'pandoc-ruby',
196
195
  'pry' => 'pry',
197
196
  'rack' => 'rack',
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Nanoc
4
4
  module CLI
5
- VERSION = '4.12.2'
5
+ VERSION = '4.12.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nanoc-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.12.2
4
+ version: 4.12.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Defreyne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-28 00:00:00.000000000 Z
11
+ date: 2021-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cri
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 4.12.2
47
+ version: 4.12.3
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 4.12.2
54
+ version: 4.12.3
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: zeitwerk
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  - !ruby/object:Gem::Version
121
121
  version: '0'
122
122
  requirements: []
123
- rubygems_version: 3.2.18
123
+ rubygems_version: 3.2.28
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: CLI for Nanoc