nicht 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8e5cc53b2627510cc3d863095c05bb9ed6dbb45d
4
- data.tar.gz: 53e3a2f3eb3098167cc3f490ba10c969b9679234
3
+ metadata.gz: ea6b1f134f48dc54bf3e3cf1b650ae768fdd6f8d
4
+ data.tar.gz: 985d29f50f0dcd682de6dc47529a7f5c7658fc32
5
5
  SHA512:
6
- metadata.gz: 6ebfeafada13dfefad0c2fd2788661c749c83e97fcf9a21514f78bdef1d79cc9210b343efb633ee17a3ef9c604270bd146a20ba054ebc1c357387d157a10141c
7
- data.tar.gz: 2eb389404b772dc973116a060e06cd290a56fa9d2d87cca96fcfa5eb3fd9c05381fa7fac831fa1da336babd79197ae7b13234752b767ce98bc8d50715e9589fe
6
+ metadata.gz: 1c998542ef202f101702a504ff18434e80fbcf8d2d0d06ece0cc65a6a755220919627da56805dcb9ab9cc6e7bff8f048f5a766917a3923418eeb6c8dc4306804
7
+ data.tar.gz: e1cca482904b70b3c8ce97d428e6583c060c9c4756948dc24dee37071273f3624b53a5ba17306335aba1e23b45c6866bbfc85a6af53a5da18b5ca9bcf1372fcf
data/.travis.yml CHANGED
@@ -1,5 +1,8 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
+ - 2.1.10
5
+ - 2.2.7
6
+ - 2.3.4
4
7
  - 2.4.1
5
8
  before_install: gem install bundler -v 1.15.1
data/README.md CHANGED
@@ -1,39 +1,13 @@
1
- # Nicht
1
+ # Nicht [![Gem](https://img.shields.io/gem/v/nicht.svg)](https://rubygems.org/gems/nicht) [![Build Status](https://img.shields.io/travis/vavgustov/nicht/master.svg)](https://travis-ci.org/vavgustov/nicht) [![Code Climate](https://img.shields.io/codeclimate/github/vavgustov/nicht.svg)](https://codeclimate.com/github/vavgustov/nicht)
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/nicht`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- Add this line to your application's Gemfile:
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
- TODO: Write usage instructions here
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...
@@ -5,7 +5,7 @@ module Nicht
5
5
  FILENAME = '~/.nichtrc'.freeze
6
6
 
7
7
  def initialize(path)
8
- @path = path
8
+ @path = File.expand_path path
9
9
  end
10
10
 
11
11
  def valid?
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
@@ -1,3 +1,3 @@
1
1
  module Nicht
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
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 .nichrc with settings in your home directory.'
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nicht
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
  - Vladimir Avgustov