netid-tools 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -130,6 +130,10 @@ The NetID you want to check
130
130
 
131
131
  Version History
132
132
  ===============
133
+ ## 0.3.7
134
+
135
+ * Allow validate_netid? to return true for NetIDs that have a hyphen in them
136
+
133
137
  ## 0.3.6
134
138
 
135
139
  * Add concise mode via -c flag to ua_check (skips quota results)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.6
1
+ 0.3.7
data/lib/netid-tools.rb CHANGED
@@ -5,7 +5,7 @@ class Netid
5
5
  # Validate that string is in the form of a valid NetID. eg: 1-8 chars, doesn't start
6
6
  # with a number, and no special characters
7
7
  def self.validate_netid?(netid)
8
- if netid.to_s.length > 8 || netid !~ /^[a-zA-Z]\w{0,7}$/
8
+ if netid.to_s.length > 8 || netid !~ /^[a-zA-Z][\w-]{0,7}$/
9
9
  false
10
10
  else
11
11
  true
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.3.6"
8
+ s.version = "0.3.7"
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"]
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.3.6
4
+ version: 0.3.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -206,7 +206,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
206
206
  version: '0'
207
207
  segments:
208
208
  - 0
209
- hash: -1217487878103725652
209
+ hash: -4191840255037530799
210
210
  required_rubygems_version: !ruby/object:Gem::Requirement
211
211
  none: false
212
212
  requirements: