ft_42 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ft_42.rb +8 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c634527047f7476d436a1253fd0c4edc2c722b16
4
- data.tar.gz: 22c71971b199534fd21dce9a9b00ff7a12dc321c
3
+ metadata.gz: b1d0e7585af9816ac9cf986346841e2c94d49390
4
+ data.tar.gz: d03c53ef28ca9c6266e3e1cd129eebd4447068ed
5
5
  SHA512:
6
- metadata.gz: 3a7e1ec7c1a340edf2140af8a089f90bceacae00aadf6a25cf3d286bb6e85871c820cd884c27ad7b30fafd5820846e9b381d5f12f22631ed34299f6ed5636748
7
- data.tar.gz: b11e520e552f54bc532d1e0bc0add6727748c510fe8662f4ed17e0ba9f37135f77667e6eb3e8ee7f437046f5c921d10630cffcc109e73c322aee94501b660f8a
6
+ metadata.gz: 370a07ccc0846f3c61dd255247689f4a8ac19dda244cb50f93c9cf8e6806e52606f6ccea7dc908236922ea0cbb06f3cb5774ed6ca80b620d364e990fdb62f833
7
+ data.tar.gz: ba72bd0203aad36ef2d3caab809afdba4bf0845a91b8e2db1c782008133509b522a9ff0eff21b6af7baf51eef58c1d0de211e37421c508a32c0c0b42566faba7
data/lib/ft_42.rb CHANGED
@@ -65,6 +65,10 @@ class FT_42
65
65
  end
66
66
  user_print.all
67
67
  user_sessions_print.all
68
+ elsif args.second == "progress"
69
+ user_print.all
70
+ user_sessions_print.all
71
+ user_sessions_print.progress_bar
68
72
  else
69
73
  puts"Wrong arguments. Usage ft_42 [USER_LOGIN] [OPTIONAL CMD]"
70
74
  end
@@ -512,6 +516,10 @@ class UserSessionsPrinter
512
516
 
513
517
  def hours_this_week
514
518
  puts "Has " + highlight("#{hours} #{hours_pluralize}") + " in the clusters this week, starting #{last_monday}."
519
+
520
+ end
521
+
522
+ def progress_bar
515
523
  hours_progress_bar
516
524
  hours_progress_bar_achievement
517
525
  hours_progress_bar_challenge
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ft_42
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Fernandez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-03 00:00:00.000000000 Z
11
+ date: 2016-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack