git_fame 2.4.0 → 2.5.0

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: 9d14b517588cbb66c5ee322ffc1a1ffc1a0da758
4
- data.tar.gz: 319dedff1fd52b79a5d7efbcd875dfb81baf9fd4
3
+ metadata.gz: 4457590e41149791b0277d51f4dfb4df9cd33e67
4
+ data.tar.gz: 90a3b36ec7c4504a3482b52940d86aaed7b6f9d0
5
5
  SHA512:
6
- metadata.gz: 872d9eaa67f0e3f7fc8fd6f61d387247a9e2dbc29a62d63e541d3a478b4f3d32a5fa9e4edf1047051b53a96def45c16f28516a8ca8b00c3d1d49d2c89947b9ad
7
- data.tar.gz: ac02d50b811a68ff8d2f51c7ab7f413814371c92906fbe127e36537468946b2b0d8b5e7846d616c38a2dcf401d24d1a14eccc4d7176aa5bbdb4c58b1de5db453
6
+ metadata.gz: 92fdb5e260070960d17f7f23ea416c1f588fb90f40e464012d734fe82c694e022bf77da0d59ac831d3de835409f4dbac092fbd5b49472d0ba0f5d391e4ae49a9
7
+ data.tar.gz: dd4ac0ecf1645e50bf985e794c3b5530470beb61d47aa69071c7c689c1711ccea78454e5667fde286457741b83ff2035c8451c545ec94eb882f844e5036c697e
data/README.md CHANGED
@@ -1,7 +1,8 @@
1
1
  # GitFame
2
- [![Join the chat at https://gitter.im/oleander/git-fame-rb](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/oleander/git-fame-rb)
3
- [![Build Status](https://travis-ci.org/oleander/git-fame-rb.svg?branch=master)](https://travis-ci.org/oleander/git-fame-rb)
4
- [![Coverage Status](https://coveralls.io/repos/oleander/git-fame-rb/badge.svg?branch=master&service=github)](https://coveralls.io/github/oleander/git-fame-rb?branch=master)
2
+ [![Gem](https://img.shields.io/gem/dt/git_fame.svg)](https://rubygems.org/gems/git_fame)
3
+ [![Gitter](https://img.shields.io/gitter/room/oleander/git-fame-rb.svg)](https://gitter.im/oleander/git-fame-rb)
4
+ [![Travis](https://img.shields.io/travis/oleander/git-fame-rb.svg)](https://travis-ci.org/oleander/git-fame-rb)
5
+ [![Coveralls](https://img.shields.io/coveralls/oleander/git-fame-rb.svg)](https://coveralls.io/github/oleander/git-fame-rb)
5
6
 
6
7
  Pretty-print collaborators sorted by contributions.
7
8
 
@@ -24,7 +24,7 @@ Generates data like:
24
24
  gem.require_paths = ["lib"]
25
25
  gem.version = GitFame::VERSION
26
26
 
27
- gem.add_dependency("ruby-progressbar", "~> 1.7.5")
27
+ gem.add_dependency("progressbar", "~> 0.21.0")
28
28
  gem.add_dependency("trollop", "~> 2.1.2")
29
29
  gem.add_dependency("hirb", "~> 0.7.3")
30
30
  gem.add_dependency("scrub_rb", "~> 1.0.1")
@@ -1,18 +1,20 @@
1
- require "ruby-progressbar"
1
+ require "progressbar"
2
2
 
3
- class SilentProgressbar < ProgressBar::Base
3
+ class SilentProgressbar
4
4
  #
5
5
  # @name String Name for progressbar
6
6
  # @steps Fixnum Total number of steps
7
7
  # @active Should progressbar be visible?
8
8
  #
9
9
  def initialize(name, steps, active = false)
10
- output = active ? $stdout : File.new("/dev/null", "w")
11
- super({
12
- title: name,
13
- total: steps,
14
- output: output,
15
- smoothing: 0.6
16
- })
10
+ @bp = ProgressBar.new(name, steps) if active
11
+ end
12
+
13
+ def finish
14
+ @bp && @bp.finish
15
+ end
16
+
17
+ def increment
18
+ @bp && @bp.inc
17
19
  end
18
20
  end
@@ -1,3 +1,3 @@
1
1
  module GitFame
2
- VERSION = "2.4.0"
2
+ VERSION = "2.5.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_fame
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Linus Oleander
@@ -11,19 +11,19 @@ cert_chain: []
11
11
  date: 2016-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: ruby-progressbar
14
+ name: progressbar
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.7.5
19
+ version: 0.21.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.7.5
26
+ version: 0.21.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: trollop
29
29
  requirement: !ruby/object:Gem::Requirement