netid-tools 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -145,6 +145,10 @@ The NetID you want to check
145
145
  Version History
146
146
  ===============
147
147
 
148
+ ## 0.6.3
149
+
150
+ * Spec fix
151
+
148
152
  ## 0.6.2
149
153
 
150
154
  * Fix executable
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.2
1
+ 0.6.3
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.2"
8
+ s.version = "0.6.3"
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"]
@@ -163,7 +163,7 @@ describe Netid do
163
163
  end
164
164
 
165
165
  context "#check_quota" do
166
- default_quota_return_objects = []
166
+ default_quota_return_objects = "/cg32/rw00/derp\n/hw00/w00/ferp"
167
167
  it "returns an object of results on success" do
168
168
  mock_system_response("\nuser uid 1 2 3\nheader a b c\nfilesystem usage quota limit files limit",default_quota_return_objects)
169
169
  @netid.check_quota.should be_true
@@ -194,17 +194,17 @@ describe Netid do
194
194
  end
195
195
  it "will translate cluster shortnames into full path, if available" do
196
196
  mock_system_response("\nuser uid 1 2 3\nheader a b c\n/cg32 usage quota limit files limit\n/hw00 usage quota limit grace files limit",
197
- ["/cg32/rw00/derp", "/hw00/w00/ferp"])
197
+ "/cg32/rw00/derp\n/hw00/w00/ferp")
198
198
  @netid.check_quota.response.should eq [%w(/cg32/rw00/derp usage quota limit n/a files limit), %w(/hw00/w00/ferp usage quota limit grace files limit)]
199
199
  end
200
200
  it "will fall back to cluster shortnames if full path not found" do
201
201
  mock_system_response("\nuser uid 1 2 3\nheader a b c\n/cg32 usage quota limit files limit\n/hw00 usage quota limit grace files limit",
202
- ["/cg31/rw00/derp", "/hw01/w00/ferp"])
202
+ "/cg31/rw00/derp\n/hwdoop/w00/ferp")
203
203
  @netid.check_quota.response.should eq [%w(/cg32 usage quota limit n/a files limit), %w(/hw00 usage quota limit grace files limit)]
204
204
  end
205
205
  it "will handle mixed matching and unmatching clusters" do
206
206
  mock_system_response("\nuser uid 1 2 3\nheader a b c\n/cg32 usage quota limit files limit\n/hw00 usage quota limit grace files limit",
207
- ["/cg31/rw00/derp", "/hw00/w00/ferp"])
207
+ "/cg31/rw00/derp\n/hw00/w00/ferp")
208
208
  @netid.check_quota.response.should eq [%w(/cg32 usage quota limit n/a files limit), %w(/hw00/w00/ferp usage quota limit grace files limit)]
209
209
  end
210
210
  end
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.2
4
+ version: 0.6.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -229,7 +229,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
229
229
  version: '0'
230
230
  segments:
231
231
  - 0
232
- hash: 4385621538350613774
232
+ hash: 2948455287693453037
233
233
  required_rubygems_version: !ruby/object:Gem::Requirement
234
234
  none: false
235
235
  requirements: