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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4ee2bdfbf9791893c926b1b3ef1903c9585fad61
4
- data.tar.gz: a4d2ea882d162a6b5f3e9b97013d83168dfa6070
3
+ metadata.gz: cef5f51ce2aef98cd6e1699a0d4b969520f480ec
4
+ data.tar.gz: 00f09303310e5b48cc8ff713880c3095ff8c30ae
5
5
  SHA512:
6
- metadata.gz: f7885ca65b0582debbdd7d6b76d95f78133372c0a31aa83044b26ea35ca3a010713eead94a7493477c2509c1fda2bfc082cea53e9ebeb6ba8321a51a9283f31f
7
- data.tar.gz: 2113aed5a8f324aad8df43d827d0d7e1fd5b6b66fc77ac00f0c6379131825e7b4d7d12ebe92d3fb385cf3027b20e4a6c9a5108dfa745cf50c420ee7c6aa764dd
6
+ metadata.gz: 46795df6c4a05c1e80d61f5e8da773f8063006bf9ebe07518e8d9fdd98bde909f980fd32c2f4c60c4aaa3940f16b781a90c88a217daeefb1507a8a1944f05979
7
+ data.tar.gz: 3d63e1daebd16bbec285d9e335b95c97c526f5c32fa49d4c267628bc06462dbac14da74bf0877566ec3f47dccd022e597e46586e8d6e3020452c029e8be34f1f
data/Gemfile CHANGED
@@ -3,5 +3,5 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in file_indexer.gemspec
4
4
  gemspec
5
5
 
6
- gem 'code_lister', "~> 0.0.5"
6
+ gem 'code_lister', "~> 0.0.6"
7
7
  gem 'gem-ctags'
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.5"
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"
@@ -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
- cli.rb generate
40
+ index_html generate [OPTIONS]
41
41
 
42
42
  Options:
43
43
  -b, [--base-dir=BASE_DIR] # Base directory
44
- # Default: . (current directory)
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] # Indentation to each list item in the output
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
@@ -1,3 +1,3 @@
1
1
  module IndexHtml
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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.3
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-14 00:00:00.000000000 Z
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.5
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.5
26
+ version: 0.0.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement