kitno 0.1.2 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -1
- data/README.md +9 -27
- data/kitno.gemspec +2 -0
- data/lib/kitno/version.rb +1 -1
- data/lib/kitno.rb +2 -1
- metadata +35 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d9e5c80a235a015ab9fd4acf29e558ae0df2dd3
|
4
|
+
data.tar.gz: 78af6b928b8b3f63e880f0b80f5a8aaf30781bd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b08b22e68d5ba1dac9f0329dab9663c731464afc59b1364a9902077c1a82acb563a4719053c36e6dd004d824a1e521dca4b8a9f650f4880adfc21301e3a63855
|
7
|
+
data.tar.gz: 824c6e8fa04ae791a52ad55bc42fb733daa92b2956a0167a0e52252d7e334b1968d386f8f5aa44b3102e98af1a93e29f6563f6a0e3c3d9829b1e2ce329d64737
|
data/Gemfile.lock
CHANGED
@@ -1,12 +1,15 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
kitno (0.1.
|
4
|
+
kitno (0.1.3)
|
5
|
+
awesome_print (>= 1.7.0)
|
5
6
|
thor (~> 0.19.1)
|
6
7
|
|
7
8
|
GEM
|
8
9
|
remote: https://rubygems.org/
|
9
10
|
specs:
|
11
|
+
awesome_print (1.7.0)
|
12
|
+
gem-release (0.7.4)
|
10
13
|
minitest (5.9.0)
|
11
14
|
rake (10.5.0)
|
12
15
|
thor (0.19.1)
|
@@ -16,6 +19,7 @@ PLATFORMS
|
|
16
19
|
|
17
20
|
DEPENDENCIES
|
18
21
|
bundler (~> 1.12)
|
22
|
+
gem-release (~> 0.7.4)
|
19
23
|
kitno!
|
20
24
|
minitest (~> 5.0)
|
21
25
|
rake (~> 10.0)
|
data/README.md
CHANGED
@@ -1,39 +1,21 @@
|
|
1
|
-
#
|
1
|
+
# Killing In The Namespace Of
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
A command line utility to aid in the conversion from "namespace" based
|
4
|
+
JavaScript modules to CommonJS modules.
|
6
5
|
|
7
6
|
## Installation
|
8
7
|
|
9
|
-
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
gem 'kitno'
|
8
|
+
```shell
|
9
|
+
$ gem install kitno
|
13
10
|
```
|
14
11
|
|
15
|
-
And then execute:
|
16
|
-
|
17
|
-
$ bundle
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install kitno
|
22
|
-
|
23
12
|
## Usage
|
24
13
|
|
25
|
-
|
26
|
-
|
27
|
-
## Development
|
28
|
-
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
-
|
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 tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
-
|
33
|
-
## Contributing
|
34
|
-
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/kitno. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
14
|
+
*Note: this is currently a work in progress*
|
36
15
|
|
16
|
+
```shell
|
17
|
+
$ kitno enumerate --namespace='MyApp' --directory='./src'
|
18
|
+
```
|
37
19
|
|
38
20
|
## License
|
39
21
|
|
data/kitno.gemspec
CHANGED
@@ -23,8 +23,10 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.require_paths = ['lib']
|
24
24
|
|
25
25
|
spec.add_dependency 'thor', '~> 0.19.1'
|
26
|
+
spec.add_dependency 'awesome_print', '~> 1.7.0', '>= 1.7.0'
|
26
27
|
|
27
28
|
spec.add_development_dependency 'bundler', '~> 1.12'
|
28
29
|
spec.add_development_dependency 'rake', '~> 10.0'
|
29
30
|
spec.add_development_dependency 'minitest', '~> 5.0'
|
31
|
+
spec.add_development_dependency 'gem-release', '~> 0.7.4'
|
30
32
|
end
|
data/lib/kitno/version.rb
CHANGED
data/lib/kitno.rb
CHANGED
@@ -3,6 +3,7 @@ require 'kitno/cli'
|
|
3
3
|
|
4
4
|
require 'find'
|
5
5
|
require 'fileutils'
|
6
|
+
require 'awesome_print'
|
6
7
|
|
7
8
|
module Kitno
|
8
9
|
class KillingInTheNamespaceOf
|
@@ -33,7 +34,7 @@ module Kitno
|
|
33
34
|
def enumerate
|
34
35
|
enumerate_files
|
35
36
|
|
36
|
-
|
37
|
+
ap @class_map
|
37
38
|
end
|
38
39
|
|
39
40
|
private
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitno
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamie Rolfs
|
@@ -26,6 +26,26 @@ dependencies:
|
|
26
26
|
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
version: 0.19.1
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: awesome_print
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - "~>"
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: 1.7.0
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: 1.7.0
|
39
|
+
type: :runtime
|
40
|
+
prerelease: false
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
requirements:
|
43
|
+
- - "~>"
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 1.7.0
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: 1.7.0
|
29
49
|
- !ruby/object:Gem::Dependency
|
30
50
|
name: bundler
|
31
51
|
requirement: !ruby/object:Gem::Requirement
|
@@ -68,6 +88,20 @@ dependencies:
|
|
68
88
|
- - "~>"
|
69
89
|
- !ruby/object:Gem::Version
|
70
90
|
version: '5.0'
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: gem-release
|
93
|
+
requirement: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - "~>"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: 0.7.4
|
98
|
+
type: :development
|
99
|
+
prerelease: false
|
100
|
+
version_requirements: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - "~>"
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: 0.7.4
|
71
105
|
description: Convert projects that use JavaScript namespace module structures to CommonJS
|
72
106
|
email:
|
73
107
|
- jamie.rolfs@gmail.com
|