ghuls 1.4.0 → 1.4.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/lib/ghuls/cli.rb +10 -10
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f6d5c7d684db6106c93dd68df4b8dbfff31fb81
4
- data.tar.gz: a9bdddbf1aefbe8f0073cb6fdc02935d3056096f
3
+ metadata.gz: 8c7d9916445b75a0652ba767a30d44d44124973d
4
+ data.tar.gz: 299c2eb5fcf5ff483037524ce183d122cf0014b4
5
5
  SHA512:
6
- metadata.gz: 53476ef791abc37e6fb268c027315ee647afd179efbe36027753d5062ec4b174abc8a335a4b8b09bfeb1bafcaf7fdfe5fb282e9e9ba7a8267878398219c3b4f8
7
- data.tar.gz: 019bc62be666c3d4e22144812cb104e143053ca8c70877bc220589fb6e121ff89a0793f3888498b1171ce28907ba3732ea80e39e4d2624d9f98439de52206afa
6
+ metadata.gz: 4bd1dbe5f636ea08e469d3694af2e20bd68ab41840daa3b275275f09e69de1add6b6131335aaa465dc2a5ba50ca707e2876128f32077f12609034b5989418a04
7
+ data.tar.gz: 1014efe81b7bc3ed4e61311c1a893f040cf5ad45d45ebb415fcd084f79e76269326eadfb50425b4c5a79f18a1d0e840610c479dd9bf414688f1ff4e126442ed0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
  ## Version 1
3
+ ### Version 1.4.1
4
+ * Update to use ghuls-lib 1.1.1.
5
+
6
+ ### Version 1.4.0
7
+ * Update to use new ghuls-lib gem.
8
+
3
9
  ### Version 1.3.0
4
10
  * New -d --debug option to show a progress bar.
5
11
 
data/lib/ghuls/cli.rb CHANGED
@@ -2,7 +2,7 @@ require 'octokit'
2
2
  require 'base64'
3
3
  require 'rainbow'
4
4
  require 'progress_bar'
5
- require 'ghuls'
5
+ require 'ghuls/lib'
6
6
 
7
7
  module GHULS
8
8
  class CLI
@@ -12,10 +12,10 @@ module GHULS
12
12
  args.each do |arg|
13
13
  case arg
14
14
  when '-h', '--help' then @opts[:help] = true
15
- when '-un', '--user' then @opts[:user] = Utilities.get_next(arg, args)
16
- when '-pw', '--pass' then @opts[:pass] = Utilities.get_next(arg, args)
17
- when '-t', '--token' then @opts[:token] = Utilities.get_next(arg, args)
18
- when '-g', '--get' then @opts[:get] = Utilities.get_next(arg, args)
15
+ when '-un', '--user' then @opts[:user] = GHULS::Lib.get_next(arg, args)
16
+ when '-pw', '--pass' then @opts[:pass] = GHULS::Lib.get_next(arg, args)
17
+ when '-t', '--token' then @opts[:token] = GHULS::Lib.get_next(arg, args)
18
+ when '-g', '--get' then @opts[:get] = GHULS::Lib.get_next(arg, args)
19
19
  when '-d', '--debug' then @opts[:debug] = true
20
20
  when '-r', '--random' then @opts[:get] = nil
21
21
  end
@@ -52,7 +52,7 @@ module GHULS
52
52
  parse_options(args)
53
53
  @bar = ProgressBar.new(5) if @opts[:debug]
54
54
  increment
55
- config = Utilities.configure_stuff(@opts)
55
+ config = GHULS::Lib.configure_stuff(@opts)
56
56
  increment
57
57
  if config == false
58
58
  puts 'Error: authentication failed, check your username/password ' \
@@ -74,7 +74,7 @@ module GHULS
74
74
 
75
75
  def output(percents)
76
76
  percents.each do |l, p|
77
- color = Utilities.get_color_for_language(l.to_s, @colors)
77
+ color = GHULS::Lib.get_color_for_language(l.to_s, @colors)
78
78
  puts Rainbow("#{l}: #{p}%").color(color)
79
79
  end
80
80
  end
@@ -94,10 +94,10 @@ module GHULS
94
94
  puts @help if @opts[:help]
95
95
  exit if failed?
96
96
  increment
97
- @opts[:get] = Utilities.get_random_user(@gh) if @opts[:get].nil?
98
- user_percents = Utilities.analyze_user(@opts[:get], @gh)
97
+ @opts[:get] = GHULS::Lib.get_random_user(@gh) if @opts[:get].nil?
98
+ user_percents = GHULS::Lib.analyze_user(@opts[:get], @gh)
99
99
  increment
100
- org_percents = Utilities.analyze_orgs(@opts[:get], @gh)
100
+ org_percents = GHULS::Lib.analyze_orgs(@opts[:get], @gh)
101
101
  increment
102
102
 
103
103
  if user_percents != false
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ghuls
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eli Foster
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-02 00:00:00.000000000 Z
11
+ date: 2015-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit