netid-tools 0.6.1 → 0.6.2

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.
data/.travis.yml CHANGED
@@ -1,4 +1,9 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9
4
- - 2.0
3
+ - 1.9.3
4
+ - 2.0.0
5
+ notifications:
6
+ email:
7
+ on_success: change
8
+ on_failure: always
9
+ irc: "irc.efnet.net#nikky_build"
data/Gemfile CHANGED
@@ -4,6 +4,8 @@ gem "colored"
4
4
  gem "net-ssh"
5
5
  gem 'terminal-table'
6
6
  gem 'rspec'
7
+ gem 'mini_portile'
8
+ gem 'nokogiri'
7
9
  group :development do
8
10
  gem "rdoc", "~> 3.12"
9
11
  gem "bundler"
data/README.md CHANGED
@@ -145,9 +145,12 @@ The NetID you want to check
145
145
  Version History
146
146
  ===============
147
147
 
148
+ ## 0.6.2
149
+
150
+ * Fix executable
151
+
148
152
  ## 0.6.1
149
153
 
150
- * Remove nokogiri dependency
151
154
  * Add TravisCI
152
155
 
153
156
  ## 0.6.0
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.6.2
data/bin/ua_check CHANGED
@@ -88,10 +88,10 @@ user.each do |netid|
88
88
  unless options[:concise]
89
89
  puts "\n"
90
90
  raw_quota = checkr.check_quota
91
- headers = raw_quota.rotate!.pop
91
+ headers = raw_quota.headers
92
92
  table = Terminal::Table.new do |t|
93
93
  t.headings = headers
94
- raw_quota.each do |line|
94
+ raw_quota.response.each do |line|
95
95
  if line[1].to_f > line[2].to_f
96
96
  line[1] = "#{line[1]} (Over Quota!)"
97
97
  end
data/lib/netid-tools.rb CHANGED
@@ -163,7 +163,7 @@ class Netid
163
163
  @user_clusters
164
164
  else
165
165
  command = "gpw -D #{netid} | sed '1d' | sed 'N;$!P;$!D;$d' | sort | uniq"
166
- @user_clusters = run_remote_command(command,primary_host).map do |line|
166
+ @user_clusters = run_remote_command(command,primary_host).split.map do |line|
167
167
  line.chomp
168
168
  end
169
169
  end
data/netid-tools.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "netid-tools"
8
- s.version = "0.6.1"
8
+ s.version = "0.6.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nikky Southerland"]
@@ -51,6 +51,8 @@ Gem::Specification.new do |s|
51
51
  s.add_runtime_dependency(%q<net-ssh>, [">= 0"])
52
52
  s.add_runtime_dependency(%q<terminal-table>, [">= 0"])
53
53
  s.add_runtime_dependency(%q<rspec>, [">= 0"])
54
+ s.add_runtime_dependency(%q<mini_portile>, [">= 0"])
55
+ s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
54
56
  s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
55
57
  s.add_development_dependency(%q<bundler>, [">= 0"])
56
58
  s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
@@ -61,6 +63,8 @@ Gem::Specification.new do |s|
61
63
  s.add_dependency(%q<net-ssh>, [">= 0"])
62
64
  s.add_dependency(%q<terminal-table>, [">= 0"])
63
65
  s.add_dependency(%q<rspec>, [">= 0"])
66
+ s.add_dependency(%q<mini_portile>, [">= 0"])
67
+ s.add_dependency(%q<nokogiri>, [">= 0"])
64
68
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
65
69
  s.add_dependency(%q<bundler>, [">= 0"])
66
70
  s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
@@ -72,6 +76,8 @@ Gem::Specification.new do |s|
72
76
  s.add_dependency(%q<net-ssh>, [">= 0"])
73
77
  s.add_dependency(%q<terminal-table>, [">= 0"])
74
78
  s.add_dependency(%q<rspec>, [">= 0"])
79
+ s.add_dependency(%q<mini_portile>, [">= 0"])
80
+ s.add_dependency(%q<nokogiri>, [">= 0"])
75
81
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
76
82
  s.add_dependency(%q<bundler>, [">= 0"])
77
83
  s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netid-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -75,6 +75,38 @@ dependencies:
75
75
  - - ! '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: mini_portile
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: nokogiri
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
78
110
  - !ruby/object:Gem::Dependency
79
111
  name: rdoc
80
112
  requirement: !ruby/object:Gem::Requirement
@@ -197,7 +229,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
197
229
  version: '0'
198
230
  segments:
199
231
  - 0
200
- hash: 238397860003787543
232
+ hash: 4385621538350613774
201
233
  required_rubygems_version: !ruby/object:Gem::Requirement
202
234
  none: false
203
235
  requirements: