mailchecker 0.0.3 → 0.0.4

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.
@@ -6,7 +6,15 @@ module Mailchecker
6
6
  desc "Create the javascript file to make the validation in client side."
7
7
 
8
8
  def copy_javascript
9
- template "assets/mailchecker.js.coffee.erb", "app/assets/javascripts/mailchecker_client.js.coffee.erb"
9
+ copy_file "assets/mailchecker.js.coffee.erb", "app/assets/javascripts/mailchecker_client.js.coffee.erb"
10
+
11
+ if File.exist?('app/assets/javascripts/application.js')
12
+ insert_into_file "app/assets/javascripts/application.js", "//= require mailchecker_client\n", after: "jquery_ujs\n"
13
+ else
14
+ if File.exist?('app/assets/javascripts/application.js.coffee')
15
+ insert_into_file "app/assets/javascripts/application.js.coffee", "#= require mailchecker_client\n", after: "jquery_ujs\n"
16
+ end
17
+ end
10
18
  end
11
19
  end
12
20
  end
@@ -1,3 +1,3 @@
1
1
  module Mailchecker
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailchecker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
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: 2012-12-12 00:00:00.000000000 Z
12
+ date: 2012-12-13 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: This will validate your email using mail-checker.com web service, it
15
15
  will test for you the format, if the domain responds and if the email is not a temporary