ft_42 0.3.0 → 0.3.1

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 +4 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f315adc25a15889d74a721041d37d456a9b8734b
4
- data.tar.gz: 540d3bf8022eb08edb1076c2f256f491a0cfa7a2
3
+ metadata.gz: cabb8cedeff817b61b9d2aef004b42039daf608e
4
+ data.tar.gz: 3b4aa66865118ef4b38b5d4abd4ab8f3aa236dcf
5
5
  SHA512:
6
- metadata.gz: 2f055ddd3cd414116bb34099d7cca33b2663c3c620aa8f9fe5903dff3ace306e1263db57acd555f1bf95d4e7b7854341bb0f7df7d34d3c7ecbe14b7ffd3657aa
7
- data.tar.gz: 7b9922b6143848deb45a168946a9ddb434dfdf20c19a23bb00f76c4cffb9886bf91d7df648045004ef0c1b0df2dd01cf650d9cdacfa6fc6e7115d0e82061dd9b
6
+ metadata.gz: 01caef86b60167896f91107cb8be4eaf908bfd77ec3baf484d8a9ef46c037e3afb041b5fb5c425764934a4a754d2136efc71db974cf9c109f157d87e88e853db
7
+ data.tar.gz: bdecd041f5782420cc2bd27791e2939970e3adbc4c664f103ab15523cc0af21717a3b98e2df999493ec5b8f7ac84e6d1f308cebb477a11292c90848ea503f881
data/lib/ft_42.rb CHANGED
@@ -39,13 +39,14 @@ class FT_42
39
39
  user_print = UserPrinter.new(user)
40
40
  user_sessions_print = UserSessionsPrinter.new(user_sessions)
41
41
  if args.size == 1
42
- if ENV["TERM_PROGRAM"] == "iTerm.app"
43
- system "iterm2-viewer /nfs/intrav2cdn/users/medium_#{args.first}.jpeg"
44
- end
45
42
  user_print.all
46
43
  user_sessions_print.all
47
44
  elsif args.second == "sessions"
48
45
  user_sessions_print.sessions
46
+ elsif args.second == "pic"
47
+ if ENV["TERM_PROGRAM"] == "iTerm.app"
48
+ system "iterm2-viewer /nfs/intrav2cdn/users/medium_#{args.first}.jpeg"
49
+ end
49
50
  else
50
51
  puts"Wrong arguments. Usage ft_42 [USER_LOGIN] [OPTIONAL CMD]"
51
52
  end
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.3.0
4
+ version: 0.3.1
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-01 00:00:00.000000000 Z
11
+ date: 2016-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack