dependent_protect 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/dependent_protect.gemspec +5 -3
- data/gemfiles/rails2.gemfile +12 -0
- data/gemfiles/rails3.gemfile +12 -0
- data/lib/dependent_protect.rb +2 -2
- data/spec/spec_helper.rb +7 -2
- metadata +7 -5
data/dependent_protect.gemspec
CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'dependent_protect'
|
16
|
-
s.version = '0.0.
|
17
|
-
s.date = '2012-04-
|
16
|
+
s.version = '0.0.3'
|
17
|
+
s.date = '2012-04-29'
|
18
18
|
s.rubyforge_project = 'dependent_protect'
|
19
19
|
|
20
20
|
## Make sure your summary is short. The description may be as long
|
@@ -47,7 +47,7 @@ Gem::Specification.new do |s|
|
|
47
47
|
|
48
48
|
## List your runtime dependencies here. Runtime dependencies are those
|
49
49
|
## that are needed for an end user to actually USE your code.
|
50
|
-
s.add_dependency('activerecord', [">= 2.3.0", "<
|
50
|
+
s.add_dependency('activerecord', [">= 2.3.0", "< 4.0.0"])
|
51
51
|
|
52
52
|
## List your development dependencies here. Development dependencies are
|
53
53
|
## those that are only needed during development
|
@@ -63,6 +63,8 @@ Gem::Specification.new do |s|
|
|
63
63
|
README.md
|
64
64
|
Rakefile
|
65
65
|
dependent_protect.gemspec
|
66
|
+
gemfiles/rails2.gemfile
|
67
|
+
gemfiles/rails3.gemfile
|
66
68
|
lib/dependent_protect.rb
|
67
69
|
spec/dependent_protect_spec.rb
|
68
70
|
spec/schema.rb
|
data/lib/dependent_protect.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# DependentProtect
|
2
2
|
#
|
3
|
-
require '
|
3
|
+
require 'active_record'
|
4
4
|
|
5
5
|
module DependentProtect
|
6
|
-
VERSION = '0.0.
|
6
|
+
VERSION = '0.0.3'
|
7
7
|
|
8
8
|
DESTROY_PROTECT_ERROR_MESSAGE = 'Cant destroy because there are dependent_count dependent_type dependent on dependee_type dependee.\n\n\nThese include:\ndependent_examples'
|
9
9
|
|
data/spec/spec_helper.rb
CHANGED
@@ -7,15 +7,20 @@
|
|
7
7
|
|
8
8
|
require 'rubygems'
|
9
9
|
require 'bundler/setup'
|
10
|
-
require 'dependent_protect'
|
11
10
|
|
12
11
|
if ENV['COVERAGE']
|
13
12
|
require 'simplecov'
|
14
13
|
require 'simplecov-rcov'
|
15
14
|
SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
|
16
|
-
SimpleCov.start
|
15
|
+
SimpleCov.start do
|
16
|
+
add_filter '/vendor/'
|
17
|
+
add_filter '/spec/'
|
18
|
+
add_group 'lib', 'lib'
|
19
|
+
end
|
17
20
|
end
|
18
21
|
|
22
|
+
require 'dependent_protect'
|
23
|
+
|
19
24
|
RSpec.configure do |config|
|
20
25
|
config.treat_symbols_as_metadata_keys_with_true_values = true
|
21
26
|
config.run_all_when_everything_filtered = true
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependent_protect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
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-04-
|
12
|
+
date: 2012-04-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 2.3.0
|
22
22
|
- - <
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version:
|
24
|
+
version: 4.0.0
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
27
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: 2.3.0
|
33
33
|
- - <
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version:
|
35
|
+
version: 4.0.0
|
36
36
|
description: This gem is not needed in Rails 3 as dependent => :raise is included
|
37
37
|
in 3.0.
|
38
38
|
email: development@travellink.com.au
|
@@ -47,6 +47,8 @@ files:
|
|
47
47
|
- README.md
|
48
48
|
- Rakefile
|
49
49
|
- dependent_protect.gemspec
|
50
|
+
- gemfiles/rails2.gemfile
|
51
|
+
- gemfiles/rails3.gemfile
|
50
52
|
- lib/dependent_protect.rb
|
51
53
|
- spec/dependent_protect_spec.rb
|
52
54
|
- spec/schema.rb
|
@@ -72,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
74
|
version: '0'
|
73
75
|
requirements: []
|
74
76
|
rubyforge_project: dependent_protect
|
75
|
-
rubygems_version: 1.8.
|
77
|
+
rubygems_version: 1.8.23
|
76
78
|
signing_key:
|
77
79
|
specification_version: 2
|
78
80
|
summary: Add dependent protect/restrict functionality to ActiveRecord 2.x.
|