csv2dokuwiki_tab 0.1.0 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51f87c2a5374ea48de27f2c6571d03098892db75cdcd913081cbbc94362adae0
4
- data.tar.gz: e8c0402fa8f41db866e74863d18cec46bc1f5404c1f3a440eb6fa7b0df51a86e
3
+ metadata.gz: 4b0034ff1f3933fab295c38eed4cf5dfe23aeacdbdcf1fffb3acd3100d9158f5
4
+ data.tar.gz: 82048563039d971215dcdba08136b55b81de1a1ca9d5ab80830fa2a1f9d4242f
5
5
  SHA512:
6
- metadata.gz: acf3d5a87db55c2493f0301c5df707de2ed0e8f427582d1f19d9c2782a47b9a8f7c6fb22bb05ffbdcabe323e7e99ec98c6fc2d1605b299c90b8ba2309f9ef8ee
7
- data.tar.gz: c9e7d2e0ead4804e5c32230a1491a1988788421108aa9d28ab5f8fa7509efc8422f1b1504f8ec7f638299294747b4c269287fefe1a9aff6a89a56f369b4e5924
6
+ metadata.gz: f30c388b66d5e90e9116f23350881b94b336ab6231bee86aa5cf2ce7f5d5ed89a0411ac36b7413a9d788ff96c266e9a13d3649adf27e9cef9151c031006cd2bd
7
+ data.tar.gz: 1a88f9bcc45db3dac0c9e7fe8c9fe60076c48cc0eac70f3295e1c2b15567fcbc2fe3de0a6f80857001b8ae1c694aff3b51aabbf1493e465d084693530e7ea83f
data/README.md CHANGED
@@ -1,35 +1,32 @@
1
1
  # Csv2dokuwikiTab
2
2
 
3
- TODO: Delete this and the text below, and describe your gem
4
-
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/csv2dokuwiki_tab`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Read CSV and convert to DokuWiki table format.
6
4
 
7
5
  ## Installation
8
6
 
9
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
-
11
7
  Install the gem and add to the application's Gemfile by executing:
12
8
 
13
9
  ```bash
14
- bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
10
+ bundle add csv2dokuwiki_tab
15
11
  ```
16
12
 
17
13
  If bundler is not being used to manage dependencies, install the gem by executing:
18
14
 
19
15
  ```bash
20
- gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
16
+ gem install csv2dokuwiki_tab
21
17
  ```
22
18
 
23
19
  ## Usage
24
20
 
25
- TODO: Write usage instructions here
26
-
27
- ## Development
21
+ ```bash
22
+ Usage: csv_to_dokuwiki_tab.rb [options]
23
+ -f, --file FILE CSV file to convert
24
+ -d, --header TYPE Heading type. 1=1st row, 2=1st column, 3=both 1&2, 0=none, default: 1
25
+ -h, --help Prints this help
26
+ ```
28
27
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
28
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
29
 
33
30
  ## Contributing
34
31
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/csv2dokuwiki_tab.
32
+ Bug reports and pull requests are welcome on GitHub at https://github.com/shujishigenobu/csv2dokuwiki_tab
@@ -37,8 +37,11 @@ def parse_options
37
37
  [options[:file], header_type]
38
38
  end
39
39
 
40
- if __FILE__ == $0
41
- file, header_type = parse_options
42
- converter = Csv2dokuwikiTab::Converter.new(file, header_type)
43
- converter.convert
44
- end
40
+
41
+ #===
42
+ # Main CLI
43
+
44
+ file, header_type = parse_options
45
+ converter = Csv2dokuwikiTab::Converter.new(file, header_type)
46
+ converter.convert
47
+
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Csv2dokuwikiTab
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csv2dokuwiki_tab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shuji Shigenobu