mailcheckjs-rails 1.0.5

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f16068e538661a2bd3d0c07972632d065744f899
4
+ data.tar.gz: b5f79c6481ec9546dcb2ac41d80bdb6308d66383
5
+ SHA512:
6
+ metadata.gz: d1b3ce74c9c4723eed2396bc72eb5c47a1cded2b63a0863c486c1b9e44e8c38fab781bb604f4178863610fce81be60f27633f98a923e0386fd86080ae7cbd3ac
7
+ data.tar.gz: cb3ac571669a08b9a60096582ddce7ea79f811d9e78c9f313523bb94aa82bd82aca4f43b05c0b32c7e4436a579c20f67ee99b5edef46e9ff9ed86be7e69f8bf3
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
@@ -0,0 +1,51 @@
1
+ # rcov generated
2
+ coverage
3
+ coverage.data
4
+
5
+ # rdoc generated
6
+ rdoc
7
+
8
+ # yard generated
9
+ doc
10
+ .yardoc
11
+
12
+ # bundler
13
+ .bundle
14
+
15
+ # jeweler generated
16
+ pkg
17
+
18
+ # Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
19
+ #
20
+ # * Create a file at ~/.gitignore
21
+ # * Include files you want ignored
22
+ # * Run: git config --global core.excludesfile ~/.gitignore
23
+ #
24
+ # After doing this, these files will be ignored in all your git projects,
25
+ # saving you from having to 'pollute' every project you touch with them
26
+ #
27
+ # Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
28
+ #
29
+ # For MacOS:
30
+ #
31
+ #.DS_Store
32
+
33
+ # For TextMate
34
+ #*.tmproj
35
+ #tmtags
36
+
37
+ # For emacs:
38
+ #*~
39
+ #\#*
40
+ #.\#*
41
+
42
+ # For vim:
43
+ #*.swp
44
+
45
+ # For redcar:
46
+ #.redcar
47
+
48
+ # For rubinius:
49
+ #*.rbc
50
+ .ruby-gemset
51
+ .ruby-version
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in mailcheckjs-rails.gemspec
4
+ gemspec
@@ -0,0 +1,88 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ mailcheckjs-rails (1.0.5)
5
+ railties (>= 3.2, < 4.3)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actionpack (4.0.2)
11
+ activesupport (= 4.0.2)
12
+ builder (~> 3.1.0)
13
+ erubis (~> 2.7.0)
14
+ rack (~> 1.5.2)
15
+ rack-test (~> 0.6.2)
16
+ activesupport (4.0.2)
17
+ i18n (~> 0.6, >= 0.6.4)
18
+ minitest (~> 4.2)
19
+ multi_json (~> 1.3)
20
+ thread_safe (~> 0.1)
21
+ tzinfo (~> 0.3.37)
22
+ addressable (2.3.5)
23
+ atomic (1.1.14)
24
+ builder (3.1.4)
25
+ erubis (2.7.0)
26
+ faraday (0.8.8)
27
+ multipart-post (~> 1.2.0)
28
+ git (1.2.6)
29
+ github_api (0.10.1)
30
+ addressable
31
+ faraday (~> 0.8.1)
32
+ hashie (>= 1.2)
33
+ multi_json (~> 1.4)
34
+ nokogiri (~> 1.5.2)
35
+ oauth2
36
+ hashie (2.0.5)
37
+ highline (1.6.20)
38
+ httpauth (0.2.0)
39
+ i18n (0.6.9)
40
+ jeweler (1.8.8)
41
+ builder
42
+ bundler (~> 1.0)
43
+ git (>= 1.2.5)
44
+ github_api (= 0.10.1)
45
+ highline (>= 1.6.15)
46
+ nokogiri (= 1.5.10)
47
+ rake
48
+ rdoc
49
+ json (1.8.1)
50
+ jwt (0.1.8)
51
+ multi_json (>= 1.5)
52
+ minitest (4.7.5)
53
+ multi_json (1.8.2)
54
+ multi_xml (0.5.5)
55
+ multipart-post (1.2.0)
56
+ nokogiri (1.5.10)
57
+ oauth2 (0.9.2)
58
+ faraday (~> 0.8)
59
+ httpauth (~> 0.2)
60
+ jwt (~> 0.1.4)
61
+ multi_json (~> 1.0)
62
+ multi_xml (~> 0.5)
63
+ rack (~> 1.2)
64
+ rack (1.5.2)
65
+ rack-test (0.6.2)
66
+ rack (>= 1.0)
67
+ railties (4.0.2)
68
+ actionpack (= 4.0.2)
69
+ activesupport (= 4.0.2)
70
+ rake (>= 0.8.7)
71
+ thor (>= 0.18.1, < 2.0)
72
+ rake (10.1.0)
73
+ rdoc (3.12.2)
74
+ json (~> 1.4)
75
+ thor (0.18.1)
76
+ thread_safe (0.1.3)
77
+ atomic
78
+ tzinfo (0.3.38)
79
+
80
+ PLATFORMS
81
+ ruby
82
+
83
+ DEPENDENCIES
84
+ bundler (~> 1.3)
85
+ jeweler (~> 1.8.7)
86
+ mailcheckjs-rails!
87
+ rake
88
+ rdoc (~> 3.12)
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2013 Michael J. Cohen
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,44 @@
1
+ = mailcheckjs-rails
2
+
3
+ {<img src="https://codeclimate.com/github/mjc/mailcheckjs-rails.png" />}[https://codeclimate.com/github/mjc/mailcheckjs-rails]
4
+
5
+ mailcheckjs-rails wraps the {Mailcheck}[https://github.com/Kicksend/mailcheck] library in a rails engine for simple
6
+ use with the asset pipeline provided by rails 4. This gem incldues the development source, because the asset
7
+ pipeline will minify in production.
8
+
9
+ Mailcheck is "The Javascript library and jQuery plugin that suggests a right domain when your users misspell it in
10
+ an email address." Please see the {Mailcheck README}[https://github.com/Kicksend/mailcheck] for details.
11
+
12
+ == Installation
13
+
14
+ Add this line to your application's Gemfile:
15
+
16
+ gem 'mailcheckjs-rails'
17
+
18
+ Add the following directive to your Javascript manifest file (application.js):
19
+
20
+ //= require mailcheck
21
+
22
+ == Versioning
23
+
24
+ mailcheckjs-rails 1.0.2 == Mailcheck 1.0.2
25
+
26
+ Every attempt is made to mirror the currently shipping Mailcheck version number wherever possible.
27
+ The major, minor, and patch version numbers will always represent the Mailcheck version. Should a gem
28
+ bug be discovered, a 4th version identifier will be added and incremented.
29
+
30
+ == Contributing to mailcheckjs-rails
31
+
32
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
33
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
34
+ * Fork the project.
35
+ * Start a feature/bugfix branch.
36
+ * Commit and push until you are happy with your contribution.
37
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
38
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
39
+
40
+ == Copyright
41
+
42
+ Copyright (c) 2013 Michael J. Cohen. See LICENSE.txt for
43
+ further details.
44
+
@@ -0,0 +1,53 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
+ gem.name = "mailcheckjs-rails"
18
+ gem.homepage = "http://github.com/mjc/mailcheckjs-rails"
19
+ gem.license = "MIT"
20
+ gem.summary = %Q{TODO: one-line summary of your gem}
21
+ gem.description = %Q{TODO: longer description of your gem}
22
+ gem.email = "mjc@kernel.org"
23
+ gem.authors = ["Michael J. Cohen"]
24
+ # dependencies defined in Gemfile
25
+ end
26
+ Jeweler::RubygemsDotOrgTasks.new
27
+
28
+ require 'rake/testtask'
29
+ Rake::TestTask.new(:test) do |test|
30
+ test.libs << 'lib' << 'test'
31
+ test.pattern = 'test/**/test_*.rb'
32
+ test.verbose = true
33
+ end
34
+
35
+ require 'rcov/rcovtask'
36
+ Rcov::RcovTask.new do |test|
37
+ test.libs << 'test'
38
+ test.pattern = 'test/**/test_*.rb'
39
+ test.verbose = true
40
+ test.rcov_opts << '--exclude "gems/*"'
41
+ end
42
+
43
+ task :default => :test
44
+
45
+ require 'rdoc/task'
46
+ Rake::RDocTask.new do |rdoc|
47
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
48
+
49
+ rdoc.rdoc_dir = 'rdoc'
50
+ rdoc.title = "mailcheckjs-rails #{version}"
51
+ rdoc.rdoc_files.include('README*')
52
+ rdoc.rdoc_files.include('lib/**/*.rb')
53
+ end
@@ -0,0 +1,209 @@
1
+ /*
2
+ * Mailcheck https://github.com/Kicksend/mailcheck
3
+ * Author
4
+ * Derrick Ko (@derrickko)
5
+ *
6
+ * License
7
+ * Copyright (c) 2012 Receivd, Inc.
8
+ *
9
+ * Licensed under the MIT License.
10
+ *
11
+ * v 1.1
12
+ */
13
+
14
+ var Kicksend = {
15
+ mailcheck : {
16
+ threshold: 3,
17
+
18
+ defaultDomains: ["yahoo.com", "google.com", "hotmail.com", "gmail.com", "me.com", "aol.com", "mac.com",
19
+ "live.com", "comcast.net", "googlemail.com", "msn.com", "hotmail.co.uk", "yahoo.co.uk",
20
+ "facebook.com", "verizon.net", "sbcglobal.net", "att.net", "gmx.com", "mail.com", "outlook.com", "icloud.com"],
21
+
22
+ defaultTopLevelDomains: ["co.jp", "co.uk", "com", "net", "org", "info", "edu", "gov", "mil", "ca"],
23
+
24
+ run: function(opts) {
25
+ opts.domains = opts.domains || Kicksend.mailcheck.defaultDomains;
26
+ opts.topLevelDomains = opts.topLevelDomains || Kicksend.mailcheck.defaultTopLevelDomains;
27
+ opts.distanceFunction = opts.distanceFunction || Kicksend.sift3Distance;
28
+
29
+ var defaultCallback = function(result){ return result }
30
+ var suggestedCallback = opts.suggested || defaultCallback
31
+ var emptyCallback = opts.empty || defaultCallback
32
+
33
+ var result = Kicksend.mailcheck.suggest(encodeURI(opts.email), opts.domains, opts.topLevelDomains, opts.distanceFunction);
34
+
35
+ return result ? suggestedCallback(result) : emptyCallback()
36
+ },
37
+
38
+ suggest: function(email, domains, topLevelDomains, distanceFunction) {
39
+ email = email.toLowerCase();
40
+
41
+ var emailParts = this.splitEmail(email);
42
+
43
+ var closestDomain = this.findClosestDomain(emailParts.domain, domains, distanceFunction);
44
+
45
+ if (closestDomain) {
46
+ if (closestDomain != emailParts.domain) {
47
+ // The email address closely matches one of the supplied domains; return a suggestion
48
+ return { address: emailParts.address, domain: closestDomain, full: emailParts.address + "@" + closestDomain };
49
+ }
50
+ } else {
51
+ // The email address does not closely match one of the supplied domains
52
+ var closestTopLevelDomain = this.findClosestDomain(emailParts.topLevelDomain, topLevelDomains);
53
+ if (emailParts.domain && closestTopLevelDomain && closestTopLevelDomain != emailParts.topLevelDomain) {
54
+ // The email address may have a mispelled top-level domain; return a suggestion
55
+ var domain = emailParts.domain;
56
+ closestDomain = domain.substring(0, domain.lastIndexOf(emailParts.topLevelDomain)) + closestTopLevelDomain;
57
+ return { address: emailParts.address, domain: closestDomain, full: emailParts.address + "@" + closestDomain };
58
+ }
59
+ }
60
+ /* The email address exactly matches one of the supplied domains, does not closely
61
+ * match any domain and does not appear to simply have a mispelled top-level domain,
62
+ * or is an invalid email address; do not return a suggestion.
63
+ */
64
+ return false;
65
+ },
66
+
67
+ findClosestDomain: function(domain, domains, distanceFunction) {
68
+ var dist;
69
+ var minDist = 99;
70
+ var closestDomain = null;
71
+
72
+ if (!domain || !domains) {
73
+ return false;
74
+ }
75
+ if(!distanceFunction) {
76
+ distanceFunction = this.sift3Distance;
77
+ }
78
+
79
+ for (var i = 0; i < domains.length; i++) {
80
+ if (domain === domains[i]) {
81
+ return domain;
82
+ }
83
+ dist = distanceFunction(domain, domains[i]);
84
+ if (dist < minDist) {
85
+ minDist = dist;
86
+ closestDomain = domains[i];
87
+ }
88
+ }
89
+
90
+ if (minDist <= this.threshold && closestDomain !== null) {
91
+ return closestDomain;
92
+ } else {
93
+ return false;
94
+ }
95
+ },
96
+
97
+ sift3Distance: function(s1, s2) {
98
+ // sift3: http://siderite.blogspot.com/2007/04/super-fast-and-accurate-string-distance.html
99
+ if (s1 == null || s1.length === 0) {
100
+ if (s2 == null || s2.length === 0) {
101
+ return 0;
102
+ } else {
103
+ return s2.length;
104
+ }
105
+ }
106
+
107
+ if (s2 == null || s2.length === 0) {
108
+ return s1.length;
109
+ }
110
+
111
+ var c = 0;
112
+ var offset1 = 0;
113
+ var offset2 = 0;
114
+ var lcs = 0;
115
+ var maxOffset = 5;
116
+
117
+ while ((c + offset1 < s1.length) && (c + offset2 < s2.length)) {
118
+ if (s1.charAt(c + offset1) == s2.charAt(c + offset2)) {
119
+ lcs++;
120
+ } else {
121
+ offset1 = 0;
122
+ offset2 = 0;
123
+ for (var i = 0; i < maxOffset; i++) {
124
+ if ((c + i < s1.length) && (s1.charAt(c + i) == s2.charAt(c))) {
125
+ offset1 = i;
126
+ break;
127
+ }
128
+ if ((c + i < s2.length) && (s1.charAt(c) == s2.charAt(c + i))) {
129
+ offset2 = i;
130
+ break;
131
+ }
132
+ }
133
+ }
134
+ c++;
135
+ }
136
+ return (s1.length + s2.length) /2 - lcs;
137
+ },
138
+
139
+ splitEmail: function(email) {
140
+ var parts = email.split('@');
141
+
142
+ if (parts.length < 2) {
143
+ return false;
144
+ }
145
+
146
+ for (var i = 0; i < parts.length; i++) {
147
+ if (parts[i] === '') {
148
+ return false;
149
+ }
150
+ }
151
+
152
+ var domain = parts.pop();
153
+ var domainParts = domain.split('.');
154
+ var tld = '';
155
+
156
+ if (domainParts.length == 0) {
157
+ // The address does not have a top-level domain
158
+ return false;
159
+ } else if (domainParts.length == 1) {
160
+ // The address has only a top-level domain (valid under RFC)
161
+ tld = domainParts[0];
162
+ } else {
163
+ // The address has a domain and a top-level domain
164
+ for (var i = 1; i < domainParts.length; i++) {
165
+ tld += domainParts[i] + '.';
166
+ }
167
+ if (domainParts.length >= 2) {
168
+ tld = tld.substring(0, tld.length - 1);
169
+ }
170
+ }
171
+
172
+ return {
173
+ topLevelDomain: tld,
174
+ domain: domain,
175
+ address: parts.join('@')
176
+ }
177
+ }
178
+ }
179
+ };
180
+
181
+ // Export the mailcheck object if we're in a CommonJS env (e.g. Node).
182
+ // Modeled off of Underscore.js.
183
+ if (typeof module !== 'undefined' && module.exports) {
184
+ module.exports = Kicksend.mailcheck;
185
+ }
186
+
187
+ if (typeof window !== 'undefined' && window.jQuery) {
188
+ (function($){
189
+ $.fn.mailcheck = function(opts) {
190
+ var self = this;
191
+ if (opts.suggested) {
192
+ var oldSuggested = opts.suggested;
193
+ opts.suggested = function(result) {
194
+ oldSuggested(self, result);
195
+ };
196
+ }
197
+
198
+ if (opts.empty) {
199
+ var oldEmpty = opts.empty;
200
+ opts.empty = function() {
201
+ oldEmpty.call(null, self);
202
+ };
203
+ }
204
+
205
+ opts.email = this.val();
206
+ Kicksend.mailcheck.run(opts);
207
+ }
208
+ })(jQuery);
209
+ }
@@ -0,0 +1,8 @@
1
+ require "mailcheckjs-rails/version"
2
+
3
+ module Mailcheckjs
4
+ module Rails
5
+ class Engine < ::Rails::Engine
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,5 @@
1
+ module Mailcheckjs
2
+ module Rails
3
+ VERSION = '1.0.5'
4
+ end
5
+ end
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'mailcheckjs-rails/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "mailcheckjs-rails"
8
+ spec.version = Mailcheckjs::Rails::VERSION
9
+ spec.authors = ["Michael J. Cohen"]
10
+ spec.email = ["mjc@kernel.org"]
11
+ spec.description = %q{Mailcheck.js for Rails'}
12
+ spec.summary = %q{Mailcheck.js is a Javascript library and jQuery plugin that suggests a right domain when your users misspell it in an email address.}
13
+ spec.homepage = "https://github.com/mjc/mailcheckjs-rails"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake"
23
+ spec.add_development_dependency "rdoc", "~> 3.12"
24
+ spec.add_development_dependency "jeweler", "~> 1.8.7"
25
+
26
+ spec.add_dependency 'railties', ">= 3.2", "< 4.3"
27
+ end
@@ -0,0 +1,17 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
10
+ require 'test/unit'
11
+
12
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
13
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
+ require 'mailcheckjs-rails'
15
+
16
+ class Test::Unit::TestCase
17
+ end
@@ -0,0 +1,7 @@
1
+ require 'helper'
2
+
3
+ class TestMailcheckjsRails < Test::Unit::TestCase
4
+ def test_something_for_real
5
+ flunk "hey buddy, you should probably rename this file and start testing for real"
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,136 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mailcheckjs-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.5
5
+ platform: ruby
6
+ authors:
7
+ - Michael J. Cohen
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-03-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rdoc
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.12'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.12'
55
+ - !ruby/object:Gem::Dependency
56
+ name: jeweler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 1.8.7
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 1.8.7
69
+ - !ruby/object:Gem::Dependency
70
+ name: railties
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '3.2'
76
+ - - "<"
77
+ - !ruby/object:Gem::Version
78
+ version: '4.3'
79
+ type: :runtime
80
+ prerelease: false
81
+ version_requirements: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ version: '3.2'
86
+ - - "<"
87
+ - !ruby/object:Gem::Version
88
+ version: '4.3'
89
+ description: Mailcheck.js for Rails'
90
+ email:
91
+ - mjc@kernel.org
92
+ executables: []
93
+ extensions: []
94
+ extra_rdoc_files: []
95
+ files:
96
+ - ".document"
97
+ - ".gitignore"
98
+ - Gemfile
99
+ - Gemfile.lock
100
+ - LICENSE.txt
101
+ - README.rdoc
102
+ - Rakefile
103
+ - app/assets/javascripts/mailcheck.js
104
+ - lib/mailcheckjs-rails.rb
105
+ - lib/mailcheckjs-rails/version.rb
106
+ - mailcheckjs-rails.gemspec
107
+ - test/helper.rb
108
+ - test/test_mailcheckjs-rails.rb
109
+ homepage: https://github.com/mjc/mailcheckjs-rails
110
+ licenses:
111
+ - MIT
112
+ metadata: {}
113
+ post_install_message:
114
+ rdoc_options: []
115
+ require_paths:
116
+ - lib
117
+ required_ruby_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ required_rubygems_version: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
127
+ requirements: []
128
+ rubyforge_project:
129
+ rubygems_version: 2.4.5
130
+ signing_key:
131
+ specification_version: 4
132
+ summary: Mailcheck.js is a Javascript library and jQuery plugin that suggests a right
133
+ domain when your users misspell it in an email address.
134
+ test_files:
135
+ - test/helper.rb
136
+ - test/test_mailcheckjs-rails.rb