validates_email-san 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/test/test_helper.rb +6 -23
  3. metadata +8 -9
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ac88e50d8596047bd68714e946f5bebbbf909a8a
4
+ data.tar.gz: e2525d810cb6d76afb87c590a8b7a16a812cd509
5
+ SHA512:
6
+ metadata.gz: c48300f8e989fe36bc7df2a09d05d60e27fb5df261326636a0aa84b8fae5258834430a894f024f8b28221eb87529b49d8907773f175eb7125ff83aa0755bbc7a
7
+ data.tar.gz: 9e34c921b695e314f3d2bb45875b07016687e81894273a7daa4508b0836b82e4c3c2736fc454cb6d01e7c2beb13946ff3b212c4da6a45d5a3d8b4a27cb978434
@@ -1,35 +1,18 @@
1
1
  module ValidatesEmailSanTest
2
2
  module Initializer
3
- VENDOR_RAILS = File.expand_path('../../../../../vendor/rails', __FILE__)
4
- OTHER_RAILS = File.expand_path('../../../rails', __FILE__)
5
- PLUGIN_ROOT = File.expand_path('../../', __FILE__)
6
-
7
- def self.rails_directory
8
- if File.exist?(VENDOR_RAILS)
9
- VENDOR_RAILS
10
- elsif File.exist?(OTHER_RAILS)
11
- OTHER_RAILS
12
- end
13
- end
14
-
15
3
  def self.load_dependencies
16
- if rails_directory
17
- $:.unshift(File.join(rails_directory, 'activesupport', 'lib'))
18
- $:.unshift(File.join(rails_directory, 'activerecord', 'lib'))
19
- else
20
- require 'rubygems' rescue LoadError
21
- end
22
-
23
4
  require 'test/unit'
24
5
 
25
6
  require 'active_support'
26
7
  require 'active_support/test_case'
27
8
  require 'active_record'
28
- require 'active_record/test_case'
29
- require 'active_record/base' # this is needed because of dependency hell
9
+
10
+ if const_defined?(:I18n) && I18n.respond_to?(:enforce_available_locales)
11
+ I18n.enforce_available_locales = true
12
+ end
30
13
 
31
14
  $:.unshift File.expand_path('../../lib', __FILE__)
32
- require File.join(PLUGIN_ROOT, 'rails', 'init')
15
+ require File.expand_path('../../rails/init', __FILE__)
33
16
  end
34
17
 
35
18
  def self.configure_database
@@ -58,4 +41,4 @@ module ValidatesEmailSanTest
58
41
  end
59
42
  end
60
43
 
61
- ValidatesEmailSanTest::Initializer.start
44
+ ValidatesEmailSanTest::Initializer.start
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validates_email-san
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
5
- prerelease:
4
+ version: 0.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Eloy Duran
9
8
  - Manfred Stienstra
9
+ - Jeff Kreeftmeijer
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2009-09-07 00:00:00.000000000 Z
13
+ date: 2013-06-17 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: A simple Rails plugin which adds a validates_email class method to ActiveRecord::Base.
16
16
  email: eloy@fngtps.com
@@ -30,26 +30,25 @@ files:
30
30
  - test/validates_email_san_test.rb
31
31
  homepage: http://fingertips.github.com
32
32
  licenses: []
33
+ metadata: {}
33
34
  post_install_message:
34
35
  rdoc_options:
35
- - --charset=UTF-8
36
+ - "--charset=UTF-8"
36
37
  require_paths:
37
38
  - lib
38
39
  required_ruby_version: !ruby/object:Gem::Requirement
39
- none: false
40
40
  requirements:
41
- - - ! '>='
41
+ - - ">="
42
42
  - !ruby/object:Gem::Version
43
43
  version: '0'
44
44
  required_rubygems_version: !ruby/object:Gem::Requirement
45
- none: false
46
45
  requirements:
47
- - - ! '>='
46
+ - - ">="
48
47
  - !ruby/object:Gem::Version
49
48
  version: '0'
50
49
  requirements: []
51
50
  rubyforge_project:
52
- rubygems_version: 1.8.23
51
+ rubygems_version: 2.2.0
53
52
  signing_key:
54
53
  specification_version: 3
55
54
  summary: A simple Rails plugin which adds a validates_email class method to ActiveRecord::Base.