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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a13407da8c183831ade6fcd0114f0d666c4c68445770f494b15ded66f48c2200
4
- data.tar.gz: f124789fc70c79695cc75b1baa4c3d1accfe4292b70c5e36eb356a21ac5a5185
3
+ metadata.gz: 79ac8e019aba3f98b8fc70579fc6157e42bb3b5216e6e89e49ffc76afa7add43
4
+ data.tar.gz: a725766cef32fd63569c14fd15b95d6f496f65e97d4573f4bd5bc4644f6926f6
5
5
  SHA512:
6
- metadata.gz: 65aaab1cb39dd616b65a6ebc076048f951211ea14d0c11ca15499e8cdafd1bb56e84a2ede13d1c9ce0cda04971f80e872709c87bcc89759fc01a3fa3a376d0bf
7
- data.tar.gz: 15644bbc6d9d57f44de6de42b494409f88cce3f2f536aa97cb1392ee63ae5fd73184cd7f2c7c0d6e0f8b173168e157bf905ca9aceaeedaf95d8dee1beb7a7381
6
+ metadata.gz: a61da5d476616ee9d1f0a49f900ea1e4664699cc90b9235574880d711bb8927ee7a1a4d08eac3b9e067bcfdfddf12dfae830a205a5a5c6c5319c6227c6182311
7
+ data.tar.gz: f3241f8f6579c94bb1f9f2a60f8754dc40fc3d0783a6c70fedf4a0a38f493bdcafeac5200eaa57faa69129f463068721d916c2f481c3529b0128d2d9a2f59875
data/.gitignore CHANGED
@@ -9,3 +9,5 @@
9
9
 
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
+
13
+ /Gemfile.lock
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,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ $LOAD_PATH.unshift(File.expand_path('../../lib', __FILE__))
4
+ require 'codeshift/cli'
5
+
6
+ result = CodeShift::CLI.new.run
7
+ exit(result ? 0 : 1)
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Codeshift
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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: