codeshift 0.1.0 → 0.1.1
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 +4 -4
- data/.gitignore +2 -0
- data/Gemfile.lock +35 -0
- data/exe/codeshift +7 -0
- data/lib/codeshift/cli.rb +20 -0
- data/lib/codeshift/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79ac8e019aba3f98b8fc70579fc6157e42bb3b5216e6e89e49ffc76afa7add43
|
4
|
+
data.tar.gz: a725766cef32fd63569c14fd15b95d6f496f65e97d4573f4bd5bc4644f6926f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a61da5d476616ee9d1f0a49f900ea1e4664699cc90b9235574880d711bb8927ee7a1a4d08eac3b9e067bcfdfddf12dfae830a205a5a5c6c5319c6227c6182311
|
7
|
+
data.tar.gz: f3241f8f6579c94bb1f9f2a60f8754dc40fc3d0783a6c70fedf4a0a38f493bdcafeac5200eaa57faa69129f463068721d916c2f481c3529b0128d2d9a2f59875
|
data/.gitignore
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
codeshift (0.1.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
diff-lcs (1.3)
|
10
|
+
rake (10.5.0)
|
11
|
+
rspec (3.8.0)
|
12
|
+
rspec-core (~> 3.8.0)
|
13
|
+
rspec-expectations (~> 3.8.0)
|
14
|
+
rspec-mocks (~> 3.8.0)
|
15
|
+
rspec-core (3.8.2)
|
16
|
+
rspec-support (~> 3.8.0)
|
17
|
+
rspec-expectations (3.8.4)
|
18
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
19
|
+
rspec-support (~> 3.8.0)
|
20
|
+
rspec-mocks (3.8.1)
|
21
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
22
|
+
rspec-support (~> 3.8.0)
|
23
|
+
rspec-support (3.8.2)
|
24
|
+
|
25
|
+
PLATFORMS
|
26
|
+
ruby
|
27
|
+
|
28
|
+
DEPENDENCIES
|
29
|
+
bundler (~> 2.0)
|
30
|
+
codeshift!
|
31
|
+
rake (~> 10.0)
|
32
|
+
rspec (~> 3.0)
|
33
|
+
|
34
|
+
BUNDLED WITH
|
35
|
+
2.0.2
|
data/exe/codeshift
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'optparse'
|
2
|
+
|
3
|
+
module CodeShift
|
4
|
+
class CLI
|
5
|
+
def initialize
|
6
|
+
OptionParser.new do |opts|
|
7
|
+
opts.banner = "Usage: codeshift -t <transform-file> [path]"
|
8
|
+
|
9
|
+
opts.on("--version", "Print version number") do |q|
|
10
|
+
puts Codeshift::VERSION
|
11
|
+
exit
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def run
|
17
|
+
puts "hello world"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/codeshift/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codeshift
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rajasegar Chandran
|
@@ -56,7 +56,8 @@ description: A Ruby CLI to transform source code by converting them to ASTs usin
|
|
56
56
|
the parser gem.
|
57
57
|
email:
|
58
58
|
- rajasegar.c@gmail.com
|
59
|
-
executables:
|
59
|
+
executables:
|
60
|
+
- codeshift
|
60
61
|
extensions: []
|
61
62
|
extra_rdoc_files: []
|
62
63
|
files:
|
@@ -65,13 +66,16 @@ files:
|
|
65
66
|
- ".travis.yml"
|
66
67
|
- CODE_OF_CONDUCT.md
|
67
68
|
- Gemfile
|
69
|
+
- Gemfile.lock
|
68
70
|
- LICENSE.txt
|
69
71
|
- README.md
|
70
72
|
- Rakefile
|
71
73
|
- bin/console
|
72
74
|
- bin/setup
|
73
75
|
- codeshift.gemspec
|
76
|
+
- exe/codeshift
|
74
77
|
- lib/codeshift.rb
|
78
|
+
- lib/codeshift/cli.rb
|
75
79
|
- lib/codeshift/version.rb
|
76
80
|
homepage: https://github.com/rajasegar/codeshift
|
77
81
|
licenses:
|