kasoba 0.0.2 → 0.0.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.
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 Guillermo Iguaran, Carlos Leon
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -7,16 +7,16 @@ Kasoba is a tool meant to assist programmers with large-scale code refactors.
7
7
 
8
8
  == History
9
9
 
10
- === Version 0.01 beta - Current Version
10
+ === Version 0.0.3 - Current Version
11
11
 
12
12
  Basic functions implemented.
13
13
 
14
14
  == Usage
15
- Suposse you are depecrating the use of <center> tag. You'll make progress by running:
15
+ Suppose you are depecrating the use of <center> tag. You'll make progress by running:
16
16
  kasoba -d app_folder/ --extensions php,html '<center>(.*?)</center>' '<div style="text-align:center">\1</div>'
17
17
 
18
18
  Last two arguments are a regular expression and a substitution string. As you probably noticed already, kasoba supports match captures and you can include them in the substitution string.
19
- At each match you'll be shown a colored diff, and asked if you want to accept the change.
19
+ At each match you'll be shown a colored diff, and asked if you want to accept the change.
20
20
 
21
21
  == Copyright
22
22
 
@@ -4,14 +4,14 @@ require 'rainbow'
4
4
 
5
5
  class Kasoba
6
6
  attr_reader :files
7
- def run
8
- if @count == true
9
- say("Counting ...")
10
- p count
11
- else
12
- replace
13
- end
14
- end
7
+ def run
8
+ if @count == true
9
+ say("Counting ...")
10
+ p count
11
+ else
12
+ replace
13
+ end
14
+ end
15
15
 
16
16
  def initialize(options, regex, replacement)
17
17
  @files = FileNavigator.new(options[:dir],options[:extensions])
@@ -1,3 +1,3 @@
1
1
  class Kasoba
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kasoba
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lacides Charris
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-02-24 00:00:00 -05:00
19
+ date: 2011-02-25 00:00:00 -05:00
20
20
  default_executable:
21
21
  dependencies: []
22
22
 
@@ -33,6 +33,7 @@ extra_rdoc_files: []
33
33
  files:
34
34
  - .gitignore
35
35
  - Gemfile
36
+ - LICENSE
36
37
  - README.rdoc
37
38
  - Rakefile
38
39
  - bin/kasoba