immortal 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -2,3 +2,14 @@ source "http://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in immortal.gemspec
4
4
  gemspec
5
+
6
+ group :test, :development do
7
+
8
+ # gem "ruby-debug", "~> 0.10.4", :require => "ruby-debug", :platform => :ruby_18
9
+
10
+ # gem "ruby-debug19", :require => "ruby-debug", :platform => :ruby_19
11
+ # # Uncomment this and rebundle to use the debugger under 1.9.3
12
+ # TODO: Remove this when ruby-debug-base19-0.11.26 is published
13
+ # gem "ruby-debug-base19", "0.11.26", :platform => :ruby_19
14
+
15
+ end
data/Gemfile.lock CHANGED
@@ -1,53 +1,43 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- immortal (0.1.6)
5
- activerecord (= 3.1.0)
4
+ immortal (1.0.3)
5
+ activerecord (~> 3.1.1)
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
- activemodel (3.1.0)
11
- activesupport (= 3.1.0)
12
- bcrypt-ruby (~> 3.0.0)
10
+ activemodel (3.1.1)
11
+ activesupport (= 3.1.1)
13
12
  builder (~> 3.0.0)
14
13
  i18n (~> 0.6)
15
- activerecord (3.1.0)
16
- activemodel (= 3.1.0)
17
- activesupport (= 3.1.0)
14
+ activerecord (3.1.1)
15
+ activemodel (= 3.1.1)
16
+ activesupport (= 3.1.1)
18
17
  arel (~> 2.2.1)
19
18
  tzinfo (~> 0.3.29)
20
- activesupport (3.1.0)
19
+ activesupport (3.1.1)
21
20
  multi_json (~> 1.0)
22
21
  arel (2.2.1)
23
- bcrypt-ruby (3.0.1)
24
22
  builder (3.0.0)
25
- columnize (0.3.2)
26
- diff-lcs (1.1.2)
23
+ diff-lcs (1.1.3)
27
24
  i18n (0.6.0)
28
- linecache (0.43)
29
25
  multi_json (1.0.3)
30
- rspec (2.3.0)
31
- rspec-core (~> 2.3.0)
32
- rspec-expectations (~> 2.3.0)
33
- rspec-mocks (~> 2.3.0)
34
- rspec-core (2.3.1)
35
- rspec-expectations (2.3.0)
26
+ rspec (2.6.0)
27
+ rspec-core (~> 2.6.0)
28
+ rspec-expectations (~> 2.6.0)
29
+ rspec-mocks (~> 2.6.0)
30
+ rspec-core (2.6.4)
31
+ rspec-expectations (2.6.0)
36
32
  diff-lcs (~> 1.1.2)
37
- rspec-mocks (2.3.0)
38
- ruby-debug (0.10.4)
39
- columnize (>= 0.1)
40
- ruby-debug-base (~> 0.10.4.0)
41
- ruby-debug-base (0.10.4)
42
- linecache (>= 0.3)
33
+ rspec-mocks (2.6.0)
43
34
  sqlite3 (1.3.4)
44
- tzinfo (0.3.29)
35
+ tzinfo (0.3.30)
45
36
 
46
37
  PLATFORMS
47
38
  ruby
48
39
 
49
40
  DEPENDENCIES
50
41
  immortal!
51
- rspec (~> 2.3.0)
52
- ruby-debug (~> 0.10.4)
42
+ rspec (~> 2.6.0)
53
43
  sqlite3
data/README.md CHANGED
@@ -29,9 +29,6 @@ And add a boolean field called `deleted` to that model:
29
29
  ## TODO
30
30
 
31
31
  - Add documentation in the code
32
- - Spec associations
33
- - Add support for a :with_deleted option in associations, like acts_as_paranoid
34
- - Improve compatibility with acts_as_paranoid
35
32
 
36
33
  ## Contributing
37
34
 
@@ -44,6 +41,7 @@ If you want to improve immortal
44
41
 
45
42
  ## CHANGELOG
46
43
 
44
+ - 1.0.1 Made compatible with Rails 3.1.X
47
45
  - 1.0.0 Changed the API, made it compatible with Rails 3.1, removed
48
46
  functionality
49
47
  - 0.1.6 Fixing immortal issue 2: with_deleted breaks associations
data/immortal.gemspec CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "immortal"
6
- s.version = '1.0.0'
6
+ s.version = '1.0.1'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Jordi Romero", "Saimon Moore"]
9
9
  s.email = ["jordi@jrom.net", "saimon@saimonmoore.net"]
@@ -12,12 +12,12 @@ Gem::Specification.new do |s|
12
12
  s.description = %q{Typical paranoid gem built for Rails 3 and with the minimum code needed to satisfy acts_as_paranoid's API}
13
13
 
14
14
  s.files = `git ls-files`.split("\n")
15
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
15
+ s.test_files = `git ls-files -- {spec}/*`.split("\n")
16
16
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
17
  s.require_paths = ["lib"]
18
18
 
19
- s.add_dependency 'activerecord', '3.1.0'
20
- s.add_development_dependency 'rspec', '~> 2.3.0'
19
+ s.add_dependency 'activerecord', '~> 3.1.1'
20
+ s.add_development_dependency 'rspec', '~> 2.6.0'
21
21
  s.add_development_dependency 'sqlite3'
22
- s.add_development_dependency 'ruby-debug', '~> 0.10.4'
22
+
23
23
  end
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  Bundler.require(:default, :development)
2
2
  require 'rspec'
3
- require 'lib/immortal'
3
+ require File.expand_path("../../lib/immortal", __FILE__)
4
4
  require 'active_record'
5
5
  require 'sqlite3'
6
6
  require 'logger'
metadata CHANGED
@@ -1,97 +1,59 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: immortal
3
- version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease: false
6
- segments:
7
- - 1
8
- - 0
9
- - 0
10
- version: 1.0.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.1
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Jordi Romero
14
9
  - Saimon Moore
15
10
  autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
-
19
- date: 2011-09-28 00:00:00 +02:00
20
- default_executable:
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
13
+ date: 2011-10-17 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
23
16
  name: activerecord
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &70094483448900 !ruby/object:Gem::Requirement
26
18
  none: false
27
- requirements:
28
- - - "="
29
- - !ruby/object:Gem::Version
30
- hash: 3
31
- segments:
32
- - 3
33
- - 1
34
- - 0
35
- version: 3.1.0
19
+ requirements:
20
+ - - ~>
21
+ - !ruby/object:Gem::Version
22
+ version: 3.1.1
36
23
  type: :runtime
37
- version_requirements: *id001
38
- - !ruby/object:Gem::Dependency
39
- name: rspec
40
24
  prerelease: false
41
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: *70094483448900
26
+ - !ruby/object:Gem::Dependency
27
+ name: rspec
28
+ requirement: &70094483448420 !ruby/object:Gem::Requirement
42
29
  none: false
43
- requirements:
30
+ requirements:
44
31
  - - ~>
45
- - !ruby/object:Gem::Version
46
- hash: 3
47
- segments:
48
- - 2
49
- - 3
50
- - 0
51
- version: 2.3.0
32
+ - !ruby/object:Gem::Version
33
+ version: 2.6.0
52
34
  type: :development
53
- version_requirements: *id002
54
- - !ruby/object:Gem::Dependency
55
- name: sqlite3
56
35
  prerelease: false
57
- requirement: &id003 !ruby/object:Gem::Requirement
36
+ version_requirements: *70094483448420
37
+ - !ruby/object:Gem::Dependency
38
+ name: sqlite3
39
+ requirement: &70094483448040 !ruby/object:Gem::Requirement
58
40
  none: false
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- hash: 3
63
- segments:
64
- - 0
65
- version: "0"
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
66
45
  type: :development
67
- version_requirements: *id003
68
- - !ruby/object:Gem::Dependency
69
- name: ruby-debug
70
46
  prerelease: false
71
- requirement: &id004 !ruby/object:Gem::Requirement
72
- none: false
73
- requirements:
74
- - - ~>
75
- - !ruby/object:Gem::Version
76
- hash: 63
77
- segments:
78
- - 0
79
- - 10
80
- - 4
81
- version: 0.10.4
82
- type: :development
83
- version_requirements: *id004
84
- description: Typical paranoid gem built for Rails 3 and with the minimum code needed to satisfy acts_as_paranoid's API
85
- email:
47
+ version_requirements: *70094483448040
48
+ description: Typical paranoid gem built for Rails 3 and with the minimum code needed
49
+ to satisfy acts_as_paranoid's API
50
+ email:
86
51
  - jordi@jrom.net
87
52
  - saimon@saimonmoore.net
88
53
  executables: []
89
-
90
54
  extensions: []
91
-
92
55
  extra_rdoc_files: []
93
-
94
- files:
56
+ files:
95
57
  - .gitignore
96
58
  - Gemfile
97
59
  - Gemfile.lock
@@ -101,40 +63,28 @@ files:
101
63
  - lib/immortal.rb
102
64
  - spec/immortal_spec.rb
103
65
  - spec/spec_helper.rb
104
- has_rdoc: true
105
66
  homepage: http://github.com/teambox/immortal
106
67
  licenses: []
107
-
108
68
  post_install_message:
109
69
  rdoc_options: []
110
-
111
- require_paths:
70
+ require_paths:
112
71
  - lib
113
- required_ruby_version: !ruby/object:Gem::Requirement
72
+ required_ruby_version: !ruby/object:Gem::Requirement
114
73
  none: false
115
- requirements:
116
- - - ">="
117
- - !ruby/object:Gem::Version
118
- hash: 3
119
- segments:
120
- - 0
121
- version: "0"
122
- required_rubygems_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ required_rubygems_version: !ruby/object:Gem::Requirement
123
79
  none: false
124
- requirements:
125
- - - ">="
126
- - !ruby/object:Gem::Version
127
- hash: 3
128
- segments:
129
- - 0
130
- version: "0"
80
+ requirements:
81
+ - - ! '>='
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
131
84
  requirements: []
132
-
133
85
  rubyforge_project:
134
- rubygems_version: 1.3.7
86
+ rubygems_version: 1.8.10
135
87
  signing_key:
136
88
  specification_version: 3
137
89
  summary: Replacement for acts_as_paranoid for Rails 3
138
- test_files:
139
- - spec/immortal_spec.rb
140
- - spec/spec_helper.rb
90
+ test_files: []