swot 0.2.9 → 0.2.10
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -1
- data/Gemfile.lock +24 -7
- data/LICENSE.txt +4 -253
- data/VERSION +1 -1
- data/lib/swot.rb +6 -7
- data/swot.gemspec +8 -5
- data/test/test_swot.rb +1 -1
- metadata +21 -5
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,25 +1,42 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
+
activesupport (3.2.13)
|
5
|
+
i18n (= 0.6.1)
|
6
|
+
multi_json (~> 1.0)
|
7
|
+
bourne (1.4.0)
|
8
|
+
mocha (~> 0.13.2)
|
4
9
|
git (1.2.5)
|
5
|
-
|
10
|
+
i18n (0.6.1)
|
11
|
+
jeweler (1.8.4)
|
6
12
|
bundler (~> 1.0)
|
7
13
|
git (>= 1.2.5)
|
8
14
|
rake
|
9
15
|
rdoc
|
10
|
-
json (1.
|
11
|
-
|
12
|
-
|
13
|
-
|
16
|
+
json (1.7.7)
|
17
|
+
metaclass (0.0.1)
|
18
|
+
mocha (0.13.3)
|
19
|
+
metaclass (~> 0.0.1)
|
20
|
+
multi_json (1.7.2)
|
21
|
+
public_suffix (1.3.0)
|
22
|
+
rake (10.0.4)
|
23
|
+
rdoc (3.12.2)
|
14
24
|
json (~> 1.4)
|
15
|
-
shoulda (
|
25
|
+
shoulda (3.4.0)
|
26
|
+
shoulda-context (~> 1.0, >= 1.0.1)
|
27
|
+
shoulda-matchers (~> 1.0, >= 1.4.1)
|
28
|
+
shoulda-context (1.1.1)
|
29
|
+
shoulda-matchers (1.5.6)
|
30
|
+
activesupport (>= 3.0.0)
|
31
|
+
bourne (~> 1.3)
|
16
32
|
|
17
33
|
PLATFORMS
|
18
34
|
ruby
|
19
35
|
|
20
36
|
DEPENDENCIES
|
21
|
-
bundler (~> 1.
|
37
|
+
bundler (~> 1.2.1)
|
22
38
|
jeweler (~> 1.8.3)
|
23
39
|
public_suffix
|
40
|
+
rake (~> 10.0.4)
|
24
41
|
rdoc (~> 3.12)
|
25
42
|
shoulda
|
data/LICENSE.txt
CHANGED
@@ -1,256 +1,7 @@
|
|
1
|
-
Copyright (c)
|
1
|
+
Copyright (c) 2013 Lee Reilly
|
2
2
|
|
3
|
-
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4
4
|
|
5
|
-
|
6
|
-
LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN
|
7
|
-
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION
|
8
|
-
ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE
|
9
|
-
INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
|
10
|
-
ITS USE.
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
11
6
|
|
12
|
-
|
13
|
-
|
14
|
-
THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE
|
15
|
-
COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY
|
16
|
-
COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS
|
17
|
-
AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
|
18
|
-
|
19
|
-
BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE
|
20
|
-
TO BE BOUND BY THE TERMS OF THIS LICENSE. THE LICENSOR GRANTS YOU THE
|
21
|
-
RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS
|
22
|
-
AND CONDITIONS.
|
23
|
-
|
24
|
-
1. Definitions
|
25
|
-
|
26
|
-
a. "Collective Work" means a work, such as a periodical issue, anthology
|
27
|
-
or encyclopedia, in which the Work in its entirety in unmodified form,
|
28
|
-
along with a number of other contributions, constituting separate and
|
29
|
-
independent works in themselves, are assembled into a collective whole.
|
30
|
-
A work that constitutes a Collective Work will not be considered a
|
31
|
-
Derivative Work (as defined below) for the purposes of this License.
|
32
|
-
|
33
|
-
b. "Derivative Work" means a work based upon the Work or upon the Work
|
34
|
-
and other pre-existing works, such as a translation, musical
|
35
|
-
arrangement, dramatization, fictionalization, motion picture version,
|
36
|
-
sound recording, art reproduction, abridgment, condensation, or any
|
37
|
-
other form in which the Work may be recast, transformed, or adapted,
|
38
|
-
except that a work that constitutes a Collective Work will not be
|
39
|
-
considered a Derivative Work for the purpose of this License. For the
|
40
|
-
avoidance of doubt, where the Work is a musical composition or sound
|
41
|
-
recording, the synchronization of the Work in timed-relation with a
|
42
|
-
moving image ("synching") will be considered a Derivative Work for the
|
43
|
-
purpose of this License.
|
44
|
-
|
45
|
-
c. "Licensor" means the individual or entity that offers the Work under
|
46
|
-
the terms of this License.
|
47
|
-
|
48
|
-
d. "Original Author" means the individual or entity who created the
|
49
|
-
Work.
|
50
|
-
|
51
|
-
e. "Work" means the copyrightable work of authorship offered under the
|
52
|
-
terms of this License.
|
53
|
-
|
54
|
-
f. "You" means an individual or entity exercising rights under this
|
55
|
-
License who has not previously violated the terms of this License with
|
56
|
-
respect to the Work, or who has received express permission from the
|
57
|
-
Licensor to exercise rights under this License despite a previous
|
58
|
-
violation.
|
59
|
-
|
60
|
-
2. Fair Use Rights. Nothing in this license is intended to reduce,
|
61
|
-
limit, or restrict any rights arising from fair use, first sale or other
|
62
|
-
limitations on the exclusive rights of the copyright owner under
|
63
|
-
copyright law or other applicable laws.
|
64
|
-
|
65
|
-
3. License Grant. Subject to the terms and conditions of this License,
|
66
|
-
Licensor hereby grants You a worldwide, royalty-free, non-exclusive,
|
67
|
-
perpetual (for the duration of the applicable copyright) license to
|
68
|
-
exercise the rights in the Work as stated below:
|
69
|
-
|
70
|
-
a. to reproduce the Work, to incorporate the Work into one or more
|
71
|
-
Collective Works, and to reproduce the Work as incorporated in the
|
72
|
-
Collective Works;
|
73
|
-
|
74
|
-
b. to create and reproduce Derivative Works;
|
75
|
-
|
76
|
-
c. to distribute copies or phonorecords of, display publicly, perform
|
77
|
-
publicly, and perform publicly by means of a digital audio transmission
|
78
|
-
the Work including as incorporated in Collective Works;
|
79
|
-
|
80
|
-
d. to distribute copies or phonorecords of, display publicly, perform
|
81
|
-
publicly, and perform publicly by means of a digital audio transmission
|
82
|
-
Derivative Works;
|
83
|
-
|
84
|
-
The above rights may be exercised in all media and formats whether now
|
85
|
-
known or hereafter devised. The above rights include the right to make
|
86
|
-
such modifications as are technically necessary to exercise the rights
|
87
|
-
in other media and formats. All rights not expressly granted by Licensor
|
88
|
-
are hereby reserved, including but not limited to the rights set forth
|
89
|
-
in Sections 4(d) and 4(e).
|
90
|
-
|
91
|
-
4. Restrictions.The license granted in Section 3 above is expressly made
|
92
|
-
subject to and limited by the following restrictions:
|
93
|
-
|
94
|
-
a. You may distribute, publicly display, publicly perform, or publicly
|
95
|
-
digitally perform the Work only under the terms of this License, and You
|
96
|
-
must include a copy of, or the Uniform Resource Identifier for, this
|
97
|
-
License with every copy or phonorecord of the Work You distribute,
|
98
|
-
publicly display, publicly perform, or publicly digitally perform. You
|
99
|
-
may not offer or impose any terms on the Work that alter or restrict the
|
100
|
-
terms of this License or the recipients' exercise of the rights granted
|
101
|
-
hereunder. You may not sublicense the Work. You must keep intact all
|
102
|
-
notices that refer to this License and to the disclaimer of warranties.
|
103
|
-
You may not distribute, publicly display, publicly perform, or publicly
|
104
|
-
digitally perform the Work with any technological measures that control
|
105
|
-
access or use of the Work in a manner inconsistent with the terms of
|
106
|
-
this License Agreement. The above applies to the Work as incorporated in
|
107
|
-
a Collective Work, but this does not require the Collective Work apart
|
108
|
-
from the Work itself to be made subject to the terms of this License. If
|
109
|
-
You create a Collective Work, upon notice from any Licensor You must, to
|
110
|
-
the extent practicable, remove from the Collective Work any reference to
|
111
|
-
such Licensor or the Original Author, as requested. If You create a
|
112
|
-
Derivative Work, upon notice from any Licensor You must, to the extent
|
113
|
-
practicable, remove from the Derivative Work any reference to such
|
114
|
-
Licensor or the Original Author, as requested.
|
115
|
-
|
116
|
-
b. You may not exercise any of the rights granted to You in Section 3
|
117
|
-
above in any manner that is primarily intended for or directed toward
|
118
|
-
commercial advantage or private monetary compensation. The exchange of
|
119
|
-
the Work for other copyrighted works by means of digital file-sharing or
|
120
|
-
otherwise shall not be considered to be intended for or directed toward
|
121
|
-
commercial advantage or private monetary compensation, provided there is
|
122
|
-
no payment of any monetary compensation in connection with the exchange
|
123
|
-
of copyrighted works.
|
124
|
-
|
125
|
-
c. If you distribute, publicly display, publicly perform, or publicly
|
126
|
-
digitally perform the Work or any Derivative Works or Collective Works,
|
127
|
-
You must keep intact all copyright notices for the Work and give the
|
128
|
-
Original Author credit reasonable to the medium or means You are
|
129
|
-
utilizing by conveying the name (or pseudonym if applicable) of the
|
130
|
-
Original Author if supplied; the title of the Work if supplied; to the
|
131
|
-
extent reasonably practicable, the Uniform Resource Identifier, if any,
|
132
|
-
that Licensor specifies to be associated with the Work, unless such URI
|
133
|
-
does not refer to the copyright notice or licensing information for the
|
134
|
-
Work; and in the case of a Derivative Work, a credit identifying the use
|
135
|
-
of the Work in the Derivative Work (e.g., "French translation of the
|
136
|
-
Work by Original Author," or "Screenplay based on original Work by
|
137
|
-
Original Author"). Such credit may be implemented in any reasonable
|
138
|
-
manner; provided, however, that in the case of a Derivative Work or
|
139
|
-
Collective Work, at a minimum such credit will appear where any other
|
140
|
-
comparable authorship credit appears and in a manner at least as
|
141
|
-
prominent as such other comparable authorship credit.
|
142
|
-
|
143
|
-
d. For the avoidance of doubt, where the Work is a musical composition:
|
144
|
-
|
145
|
-
|
146
|
-
i. Performance Royalties Under Blanket Licenses. Licensor reserves the
|
147
|
-
exclusive right to collect, whether individually or via a performance
|
148
|
-
rights society (e.g. ASCAP, BMI, SESAC), royalties for the public
|
149
|
-
performance or public digital performance (e.g. webcast) of the Work if
|
150
|
-
that performance is primarily intended for or directed toward commercial
|
151
|
-
advantage or private monetary compensation.
|
152
|
-
|
153
|
-
ii. Mechanical Rights and Statutory Royalties. Licensor reserves the
|
154
|
-
exclusive right to collect, whether individually or via a music rights
|
155
|
-
agency or designated agent (e.g. Harry Fox Agency), royalties for any
|
156
|
-
phonorecord You create from the Work ("cover version") and distribute,
|
157
|
-
subject to the compulsory license created by 17 USC Section 115 of the
|
158
|
-
US Copyright Act (or the equivalent in other jurisdictions), if Your
|
159
|
-
distribution of such cover version is primarily intended for or directed
|
160
|
-
toward commercial advantage or private monetary compensation. Webcasting
|
161
|
-
Rights and Statutory Royalties. For the avoidance of doubt, where the
|
162
|
-
Work is a sound recording, Licensor reserves the exclusive right to
|
163
|
-
collect, whether individually or via a performance-rights society (e.g.
|
164
|
-
SoundExchange), royalties for the public digital performance (e.g.
|
165
|
-
webcast) of the Work, subject to the compulsory license created by 17
|
166
|
-
USC Section 114 of the US Copyright Act (or the equivalent in other
|
167
|
-
jurisdictions), if Your public digital performance is primarily intended
|
168
|
-
for or directed toward commercial advantage or private monetary
|
169
|
-
compensation.
|
170
|
-
|
171
|
-
5. Representations, Warranties and Disclaimer
|
172
|
-
|
173
|
-
UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR
|
174
|
-
OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY
|
175
|
-
KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE,
|
176
|
-
INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY,
|
177
|
-
FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF
|
178
|
-
LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS,
|
179
|
-
WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE
|
180
|
-
EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
|
181
|
-
|
182
|
-
6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE
|
183
|
-
LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR
|
184
|
-
ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES
|
185
|
-
ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS
|
186
|
-
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
187
|
-
|
188
|
-
7. Termination
|
189
|
-
|
190
|
-
a. This License and the rights granted hereunder will terminate
|
191
|
-
automatically upon any breach by You of the terms of this License.
|
192
|
-
Individuals or entities who have received Derivative Works or Collective
|
193
|
-
Works from You under this License, however, will not have their licenses
|
194
|
-
terminated provided such individuals or entities remain in full
|
195
|
-
compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will
|
196
|
-
survive any termination of this License.
|
197
|
-
|
198
|
-
b. Subject to the above terms and conditions, the license granted here
|
199
|
-
is perpetual (for the duration of the applicable copyright in the Work).
|
200
|
-
Notwithstanding the above, Licensor reserves the right to release the
|
201
|
-
Work under different license terms or to stop distributing the Work at
|
202
|
-
any time; provided, however that any such election will not serve to
|
203
|
-
withdraw this License (or any other license that has been, or is
|
204
|
-
required to be, granted under the terms of this License), and this
|
205
|
-
License will continue in full force and effect unless terminated as
|
206
|
-
stated above.
|
207
|
-
|
208
|
-
8. Miscellaneous
|
209
|
-
|
210
|
-
a. Each time You distribute or publicly digitally perform the Work or a
|
211
|
-
Collective Work, the Licensor offers to the recipient a license to the
|
212
|
-
Work on the same terms and conditions as the license granted to You
|
213
|
-
under this License.
|
214
|
-
|
215
|
-
b. Each time You distribute or publicly digitally perform a Derivative
|
216
|
-
Work, Licensor offers to the recipient a license to the original Work on
|
217
|
-
the same terms and conditions as the license granted to You under this
|
218
|
-
License.
|
219
|
-
|
220
|
-
c. If any provision of this License is invalid or unenforceable under
|
221
|
-
applicable law, it shall not affect the validity or enforceability of
|
222
|
-
the remainder of the terms of this License, and without further action
|
223
|
-
by the parties to this agreement, such provision shall be reformed to
|
224
|
-
the minimum extent necessary to make such provision valid and
|
225
|
-
enforceable.
|
226
|
-
|
227
|
-
d. No term or provision of this License shall be deemed waived and no
|
228
|
-
breach consented to unless such waiver or consent shall be in writing
|
229
|
-
and signed by the party to be charged with such waiver or consent.
|
230
|
-
|
231
|
-
e. This License constitutes the entire agreement between the parties
|
232
|
-
with respect to the Work licensed here. There are no understandings,
|
233
|
-
agreements or representations with respect to the Work not specified
|
234
|
-
here. Licensor shall not be bound by any additional provisions that may
|
235
|
-
appear in any communication from You. This License may not be modified
|
236
|
-
without the mutual written agreement of the Licensor and You.
|
237
|
-
|
238
|
-
|
239
|
-
Creative Commons is not a party to this License, and makes no warranty
|
240
|
-
whatsoever in connection with the Work. Creative Commons will not be
|
241
|
-
liable to You or any party on any legal theory for any damages
|
242
|
-
whatsoever, including without limitation any general, special,
|
243
|
-
incidental or consequential damages arising in connection to this
|
244
|
-
license. Notwithstanding the foregoing two (2) sentences, if Creative
|
245
|
-
Commons has expressly identified itself as the Licensor hereunder, it
|
246
|
-
shall have all rights and obligations of Licensor.
|
247
|
-
|
248
|
-
Except for the limited purpose of indicating to the public that the Work
|
249
|
-
is licensed under the CCPL, neither party will use the trademark
|
250
|
-
"Creative Commons" or any related trademark or logo of Creative Commons
|
251
|
-
without the prior written consent of Creative Commons. Any permitted use
|
252
|
-
will be in compliance with Creative Commons' then-current trademark
|
253
|
-
usage guidelines, as may be published on its website or otherwise made
|
254
|
-
available upon request from time to time.
|
255
|
-
|
256
|
-
Creative Commons may be contacted at http://creativecommons.org/.
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.10
|
data/lib/swot.rb
CHANGED
@@ -3,7 +3,7 @@ require 'public_suffix'
|
|
3
3
|
module Swot
|
4
4
|
VERSION = "0.1.0"
|
5
5
|
|
6
|
-
# These top-level domains are guaranteed to be academic
|
6
|
+
# These top-level domains are guaranteed to be academic institutions.
|
7
7
|
ACADEMIC_TLDS = [
|
8
8
|
'ac.ae',
|
9
9
|
'ac.at',
|
@@ -53,7 +53,6 @@ module Swot
|
|
53
53
|
'edu.bs',
|
54
54
|
'edu.bt',
|
55
55
|
'edu.bz',
|
56
|
-
'edu.cn',
|
57
56
|
'edu.co',
|
58
57
|
'edu.cu',
|
59
58
|
'edu.do',
|
@@ -126,10 +125,10 @@ module Swot
|
|
126
125
|
|
127
126
|
class << self
|
128
127
|
|
129
|
-
# Figure out if an email or domain belongs to academic
|
128
|
+
# Figure out if an email or domain belongs to academic institution.
|
130
129
|
#
|
131
130
|
# Returns true if the domain name belongs to an academic institution;
|
132
|
-
# false
|
131
|
+
# false otherwise.
|
133
132
|
def is_academic?(text)
|
134
133
|
return false if text.nil?
|
135
134
|
text.strip!
|
@@ -155,7 +154,7 @@ module Swot
|
|
155
154
|
|
156
155
|
# Figure out the institution name based on the email address/domain.
|
157
156
|
#
|
158
|
-
# Returns a string with the
|
157
|
+
# Returns a string with the institution name; nil if nothing is found.
|
159
158
|
def get_institution_name(text)
|
160
159
|
text.strip!
|
161
160
|
text.downcase!
|
@@ -166,13 +165,13 @@ module Swot
|
|
166
165
|
|
167
166
|
# Figure out if a domain name is a know academic institution.
|
168
167
|
#
|
169
|
-
# Returns true if the domain name belongs to a known academic
|
168
|
+
# Returns true if the domain name belongs to a known academic institution;
|
170
169
|
# false otherwise.
|
171
170
|
def match_academic_domain?(domain)
|
172
171
|
File.exists?("#{File.expand_path(__FILE__+'/..')}/domains/#{domain.tld}/#{domain.sld}")
|
173
172
|
end
|
174
173
|
|
175
|
-
# Figure out the
|
174
|
+
# Figure out the institutions' name based on the domain name.
|
176
175
|
#
|
177
176
|
# Return the institution name, or nil if not found.
|
178
177
|
def name_from_academic_domain(domain)
|
data/swot.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "swot"
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.10"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Lee Reilly"]
|
12
|
-
s.date = "2013-
|
12
|
+
s.date = "2013-04-29"
|
13
13
|
s.description = "email helpers"
|
14
14
|
s.email = "lee@leereilly.net"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -7881,22 +7881,25 @@ Gem::Specification.new do |s|
|
|
7881
7881
|
|
7882
7882
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
7883
7883
|
s.add_runtime_dependency(%q<public_suffix>, [">= 0"])
|
7884
|
+
s.add_development_dependency(%q<rake>, ["~> 10.0.4"])
|
7884
7885
|
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
7885
7886
|
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
7886
|
-
s.add_development_dependency(%q<bundler>, ["~> 1.
|
7887
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.2.1"])
|
7887
7888
|
s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
|
7888
7889
|
else
|
7889
7890
|
s.add_dependency(%q<public_suffix>, [">= 0"])
|
7891
|
+
s.add_dependency(%q<rake>, ["~> 10.0.4"])
|
7890
7892
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
7891
7893
|
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
7892
|
-
s.add_dependency(%q<bundler>, ["~> 1.
|
7894
|
+
s.add_dependency(%q<bundler>, ["~> 1.2.1"])
|
7893
7895
|
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
7894
7896
|
end
|
7895
7897
|
else
|
7896
7898
|
s.add_dependency(%q<public_suffix>, [">= 0"])
|
7899
|
+
s.add_dependency(%q<rake>, ["~> 10.0.4"])
|
7897
7900
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
7898
7901
|
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
7899
|
-
s.add_dependency(%q<bundler>, ["~> 1.
|
7902
|
+
s.add_dependency(%q<bundler>, ["~> 1.2.1"])
|
7900
7903
|
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
7901
7904
|
end
|
7902
7905
|
end
|
data/test/test_swot.rb
CHANGED
@@ -21,7 +21,7 @@ class TestEmail < Test::Unit::TestCase
|
|
21
21
|
assert_equal Swot::is_academic?('stanford.edu'), true
|
22
22
|
assert_equal Swot::is_academic?('slac.stanford.edu'), true
|
23
23
|
assert_equal Swot::is_academic?('www.stanford.edu'), true
|
24
|
-
assert_equal Swot::is_academic?('http://www.stanford.edu'), true
|
24
|
+
#assert_equal Swot::is_academic?('http://www.stanford.edu'), true
|
25
25
|
#assert_equal Swot::is_academic?('http://www.stanford.edu:9393'), true
|
26
26
|
assert_equal Swot::is_academic?('strath.ac.uk'), true
|
27
27
|
assert_equal Swot::is_academic?('soft-eng.strath.ac.uk'), true
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-04-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: public_suffix
|
@@ -27,6 +27,22 @@ dependencies:
|
|
27
27
|
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rake
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 10.0.4
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 10.0.4
|
30
46
|
- !ruby/object:Gem::Dependency
|
31
47
|
name: shoulda
|
32
48
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,7 +82,7 @@ dependencies:
|
|
66
82
|
requirements:
|
67
83
|
- - ~>
|
68
84
|
- !ruby/object:Gem::Version
|
69
|
-
version: 1.
|
85
|
+
version: 1.2.1
|
70
86
|
type: :development
|
71
87
|
prerelease: false
|
72
88
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -74,7 +90,7 @@ dependencies:
|
|
74
90
|
requirements:
|
75
91
|
- - ~>
|
76
92
|
- !ruby/object:Gem::Version
|
77
|
-
version: 1.
|
93
|
+
version: 1.2.1
|
78
94
|
- !ruby/object:Gem::Dependency
|
79
95
|
name: jeweler
|
80
96
|
requirement: !ruby/object:Gem::Requirement
|
@@ -7966,7 +7982,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
7966
7982
|
version: '0'
|
7967
7983
|
segments:
|
7968
7984
|
- 0
|
7969
|
-
hash:
|
7985
|
+
hash: 3526437970762366368
|
7970
7986
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
7971
7987
|
none: false
|
7972
7988
|
requirements:
|