nanoc-tidy.rb 0.5.2 → 0.5.3
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.
- checksums.yaml +4 -4
- data/README.md +3 -4
- data/lib/nanoc/tidy/filter.rb +2 -2
- data/lib/nanoc/tidy/version.rb +1 -1
- data/nanoc-tidy.rb.gemspec +1 -0
- data/test/setup.rb +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6584bab11091857e997144cdf758a8d7539b52df4f461740b7c5745b440d403
|
4
|
+
data.tar.gz: 760008620eebda22b044772faa4a1acd414d6055ef09c9b1f14c26badeaaf129
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00fc67ef09544c396e1d4f88da0f0d58431a6dcc4e663149f822aedd89950587b5a68f285b9cc345dc5fa6859eaec0ff994ca037e45f392dd46ad7ce340606f7
|
7
|
+
data.tar.gz: a76029e928d24d8e3d42236858011920e62a98859db7c79f9a92c87e70bc37ed8df1dac72b0721c4ee409b84478fdf4022059b5e5f4f1bf379acdbfeb31d63da
|
data/README.md
CHANGED
@@ -15,7 +15,7 @@ build process.
|
|
15
15
|
__Defaults__
|
16
16
|
|
17
17
|
The following example uses the
|
18
|
-
[default command
|
18
|
+
[default command line arguments](https://0x1eef.github.io/x/nanoc-tidy.rb/Nanoc/Tidy/Filter#default_argv-class_method):
|
19
19
|
|
20
20
|
``` ruby
|
21
21
|
# Rules
|
@@ -30,8 +30,7 @@ end
|
|
30
30
|
|
31
31
|
__Options__
|
32
32
|
|
33
|
-
The following example forwards command
|
34
|
-
[tidy-html5](https://github.com/htacg/tidy-html5):
|
33
|
+
The following example forwards a command line argument:
|
35
34
|
|
36
35
|
```ruby
|
37
36
|
# Rules
|
@@ -48,7 +47,7 @@ end
|
|
48
47
|
|
49
48
|
**Rubygems.org**
|
50
49
|
|
51
|
-
nanoc-tidy.rb can be installed via rubygems.org
|
50
|
+
nanoc-tidy.rb can be installed via rubygems.org:
|
52
51
|
|
53
52
|
gem install nanoc-tidy.rb
|
54
53
|
|
data/lib/nanoc/tidy/filter.rb
CHANGED
@@ -15,7 +15,7 @@ module Nanoc::Tidy
|
|
15
15
|
# Nanoc::Tidy.default_argv.concat ["-upper"]
|
16
16
|
#
|
17
17
|
# @return [Array<String>]
|
18
|
-
# The default
|
18
|
+
# The default argv for tidy-html5
|
19
19
|
def self.default_argv
|
20
20
|
@default_argv ||= ["-wrap", "120", "-indent"]
|
21
21
|
end
|
@@ -50,7 +50,7 @@ module Nanoc::Tidy
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def tmpdir
|
53
|
-
File.join(Dir.getwd, "tmp", "
|
53
|
+
File.join(Dir.getwd, "tmp", "tidy-html5")
|
54
54
|
end
|
55
55
|
end
|
56
56
|
end
|
data/lib/nanoc/tidy/version.rb
CHANGED
data/nanoc-tidy.rb.gemspec
CHANGED
data/test/setup.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nanoc-tidy.rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- '0x1eef'
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '2.1'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: ostruct
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.6'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.6'
|
111
125
|
description: nanoc-tidy.rb integrates tidy-html5 into nanoc.
|
112
126
|
email:
|
113
127
|
- 0x1eef@protonmail.com
|