code_caser 0.0.1 → 0.0.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
  SHA1:
3
- metadata.gz: e4a7c32894314d1eb738386aa4aee1cc5ed4c59c
4
- data.tar.gz: 496e85e0b72e0c2535133a7779310fcd8a5d4c6a
3
+ metadata.gz: 5473d04e33c1b6fecc38287a6bf644bc6a080750
4
+ data.tar.gz: e69ba2d397401eb9bffa8aa8bc1cbb0be5f71cdf
5
5
  SHA512:
6
- metadata.gz: fbce0c53b959a3ef7023c02f2325c3a5d502928ddf8fd8230bb3211376a48de0a42d1668638f8d128b46e558f6d9c6387e46b621fb5fe0143b39aee0fe865715
7
- data.tar.gz: 361ffca0b4338bb90bf736731d0319308a584e623d11afc811853f666fbde82d92fa239184b25f95016d1bc4da0d06aa03598c50848500ca8be7f5fb184a5617
6
+ metadata.gz: 4f8dac4fa811f785e34018bfe6a20d0c85ec7b6e93870b09630533c6a3cf75b90b1d79074609630c76f76495f1fc540c0cf7847006077c1457cf6343e9d0b121
7
+ data.tar.gz: 3687fe89e19645459585e7236322cbf5c82cf41b05de3c45e59ddb0c6b9bb43ef5bfe3257850c1d04af817fe0edc53061b0aeffcf8d5bffd8f654ad4266d9287
data/bin/code_caser ADDED
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env ruby
2
+ require "rubygems"
3
+ require "thor"
4
+ require_relative "../lib/code_caser"
5
+
6
+ class CaserCLI < Thor
7
+
8
+ desc "to_camel", "converts files in PATH from snake_case to camelCase."
9
+ option :path, type: :string, required: true
10
+ option :save, type: :boolean, default: true
11
+ option :verbose, type: :boolean, default: false
12
+ def to_camel
13
+ CodeCaser::to_camel(options)
14
+ end
15
+
16
+ desc "to_snake", "converts files in PATH from camelCase to snake_case."
17
+ option :path, type: :string, required: true
18
+ option :save, type: :boolean, default: true
19
+ option :verbose, type: :boolean, default: false
20
+ def to_snake
21
+ CodeCaser::to_snake(options)
22
+ end
23
+
24
+ end
25
+
26
+ CaserCLI.start
@@ -1,3 +1,3 @@
1
1
  module CodeCaser
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: code_caser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Lovell
@@ -56,7 +56,8 @@ description: A simple utility gem to convert files from snake_case to camelCase
56
56
  back.
57
57
  email:
58
58
  - sjlovell34@gmail.com
59
- executables: []
59
+ executables:
60
+ - code_caser
60
61
  extensions: []
61
62
  extra_rdoc_files:
62
63
  - LICENSE
@@ -68,6 +69,7 @@ files:
68
69
  - LICENSE
69
70
  - README.md
70
71
  - Rakefile
72
+ - bin/code_caser
71
73
  - lib/code_caser.rb
72
74
  - lib/code_caser/caser.rb
73
75
  - lib/code_caser/converters.rb