nicht 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/.travis.yml +3 -0
- data/README.md +5 -31
- data/lib/nicht/settings.rb +1 -1
- data/lib/nicht/stats.rb +9 -7
- data/lib/nicht/version.rb +1 -1
- data/lib/nicht.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ea6b1f134f48dc54bf3e3cf1b650ae768fdd6f8d
|
|
4
|
+
data.tar.gz: 985d29f50f0dcd682de6dc47529a7f5c7658fc32
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1c998542ef202f101702a504ff18434e80fbcf8d2d0d06ece0cc65a6a755220919627da56805dcb9ab9cc6e7bff8f048f5a766917a3923418eeb6c8dc4306804
|
|
7
|
+
data.tar.gz: e1cca482904b70b3c8ce97d428e6583c060c9c4756948dc24dee37071273f3624b53a5ba17306335aba1e23b45c6866bbfc85a6af53a5da18b5ca9bcf1372fcf
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
|
@@ -1,39 +1,13 @@
|
|
|
1
|
-
# Nicht
|
|
1
|
+
# Nicht [](https://rubygems.org/gems/nicht) [](https://travis-ci.org/vavgustov/nicht) [](https://codeclimate.com/github/vavgustov/nicht)
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
|
3
|
+
Summary coming soon...
|
|
6
4
|
|
|
7
5
|
## Installation
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
```ruby
|
|
12
|
-
gem 'nicht'
|
|
7
|
+
```bash
|
|
8
|
+
gem install nicht
|
|
13
9
|
```
|
|
14
10
|
|
|
15
|
-
And then execute:
|
|
16
|
-
|
|
17
|
-
$ bundle
|
|
18
|
-
|
|
19
|
-
Or install it yourself as:
|
|
20
|
-
|
|
21
|
-
$ gem install nicht
|
|
22
|
-
|
|
23
11
|
## Usage
|
|
24
12
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
## Development
|
|
28
|
-
|
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` 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]/nicht.
|
|
36
|
-
|
|
37
|
-
## License
|
|
38
|
-
|
|
39
|
-
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
|
13
|
+
Desription coming soon...
|
data/lib/nicht/settings.rb
CHANGED
data/lib/nicht/stats.rb
CHANGED
|
@@ -6,6 +6,15 @@ module Nicht
|
|
|
6
6
|
@stats = { per_project: {}, per_gem: {} }
|
|
7
7
|
end
|
|
8
8
|
|
|
9
|
+
def render
|
|
10
|
+
Dir[@path].each do |path|
|
|
11
|
+
scan_project path
|
|
12
|
+
end
|
|
13
|
+
output
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
private
|
|
17
|
+
|
|
9
18
|
def scan_record(line, project_name)
|
|
10
19
|
candidate = line.split(',').shift.split ' '
|
|
11
20
|
gem_name = candidate.last
|
|
@@ -32,13 +41,6 @@ module Nicht
|
|
|
32
41
|
end
|
|
33
42
|
end
|
|
34
43
|
|
|
35
|
-
def render
|
|
36
|
-
Dir[@path].each do |path|
|
|
37
|
-
scan_project path
|
|
38
|
-
end
|
|
39
|
-
output
|
|
40
|
-
end
|
|
41
|
-
|
|
42
44
|
def output
|
|
43
45
|
if @search.nil?
|
|
44
46
|
ap @stats[:per_project]
|
data/lib/nicht/version.rb
CHANGED
data/lib/nicht.rb
CHANGED
|
@@ -10,7 +10,7 @@ module Nicht
|
|
|
10
10
|
begin
|
|
11
11
|
projects_path = settings.valid?
|
|
12
12
|
rescue Nicht::SettingsNotFound
|
|
13
|
-
puts 'Settings not found. You should create .
|
|
13
|
+
puts 'Settings not found. You should create .nichtrc with settings in your home directory.'
|
|
14
14
|
rescue Nicht::SettingsNotValid
|
|
15
15
|
puts 'Settings are not valid.'
|
|
16
16
|
else
|