index_html 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +4 -0
- data/index_html.gemspec +1 -1
- data/lib/index_html/cli.rb +7 -5
- data/lib/index_html/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: cef5f51ce2aef98cd6e1699a0d4b969520f480ec
|
4
|
+
data.tar.gz: 00f09303310e5b48cc8ff713880c3095ff8c30ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46795df6c4a05c1e80d61f5e8da773f8063006bf9ebe07518e8d9fdd98bde909f980fd32c2f4c60c4aaa3940f16b781a90c88a217daeefb1507a8a1944f05979
|
7
|
+
data.tar.gz: 3d63e1daebd16bbec285d9e335b95c97c526f5c32fa49d4c267628bc06462dbac14da74bf0877566ec3f47dccd022e597e46586e8d6e3020452c029e8be34f1f
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -121,6 +121,10 @@ The output file `index.html` should be something like
|
|
121
121
|
|
122
122
|
### Changelogs
|
123
123
|
|
124
|
+
#### 0.0.4
|
125
|
+
|
126
|
+
- Update code_lister to 0.0.6 for new option and fix the mistake in '-d' option
|
127
|
+
|
124
128
|
#### 0.0.3
|
125
129
|
|
126
130
|
- Remove the code duplication by using the shared_option from code_lister gem
|
data/index_html.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_runtime_dependency "code_lister", "~> 0.0.
|
21
|
+
spec.add_runtime_dependency "code_lister", "~> 0.0.6"
|
22
22
|
spec.add_development_dependency "bundler", "~> 1.3"
|
23
23
|
spec.add_development_dependency "rake"
|
24
24
|
spec.add_development_dependency "rspec", "~> 2.14"
|
data/lib/index_html/cli.rb
CHANGED
@@ -14,7 +14,7 @@ module IndexHtml
|
|
14
14
|
default: "" # empty string
|
15
15
|
|
16
16
|
method_option :indent,
|
17
|
-
aliases: "d",
|
17
|
+
aliases: "-d",
|
18
18
|
desc: "Indentation to each list item in the output",
|
19
19
|
type: :numeric,
|
20
20
|
default: 6
|
@@ -37,28 +37,30 @@ module IndexHtml
|
|
37
37
|
def usage
|
38
38
|
puts <<-EOS
|
39
39
|
Usage:
|
40
|
-
|
40
|
+
index_html generate [OPTIONS]
|
41
41
|
|
42
42
|
Options:
|
43
43
|
-b, [--base-dir=BASE_DIR] # Base directory
|
44
|
-
# Default:
|
44
|
+
# Default: /home/bchoomnuan/Dropbox/spikes/index_html
|
45
45
|
-e, [--exts=one two three] # List of extensions to search for
|
46
|
+
-f, [--non-exts=one two three] # List of files without extension to search for
|
46
47
|
-n, [--inc-words=one two three] # List of words to be included in the result if any
|
47
48
|
-x, [--exc-words=one two three] # List of words to be excluded from the result if any
|
48
49
|
-i, [--ignore-case], [--no-ignore-case] # Match case insensitively
|
49
50
|
# Default: true
|
50
51
|
-r, [--recursive], [--no-recursive] # Search for files recursively
|
51
52
|
# Default: true
|
53
|
+
-v, [--version], [--no-version] # Display version information
|
52
54
|
-p, [--prefix=PREFIX] # Prefix string to the URL
|
53
|
-
d, [--indent=N]
|
55
|
+
-d, [--indent=N] # Indentation to each list item in the output
|
54
56
|
# Default: 6
|
55
57
|
-o, [--output=OUTPUT] # Output file name
|
56
58
|
# Default: index.html
|
57
|
-
-v, [--version], [--no-version] # Display version information
|
58
59
|
|
59
60
|
Generate the index.html base on simple criteria
|
60
61
|
EOS
|
61
62
|
end
|
63
|
+
|
62
64
|
default_task :usage
|
63
65
|
end
|
64
66
|
end
|
data/lib/index_html/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: index_html
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Burin Choomnuan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: code_lister
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.0.
|
19
|
+
version: 0.0.6
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.0.
|
26
|
+
version: 0.0.6
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|