historical_society 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/historical_society.gemspec +2 -2
- data/lib/historical_society.rb +9 -13
- data/lib/historical_society/version.rb +1 -1
- metadata +90 -69
data/historical_society.gemspec
CHANGED
@@ -22,6 +22,6 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.add_development_dependency "rspec"
|
23
23
|
s.add_development_dependency "rake"
|
24
24
|
s.add_development_dependency "sqlite3"
|
25
|
-
s.add_runtime_dependency "activerecord", "~> 3.1
|
26
|
-
s.add_runtime_dependency "activesupport", "~> 3.1
|
25
|
+
s.add_runtime_dependency "activerecord", "~> 3.1"
|
26
|
+
s.add_runtime_dependency "activesupport", "~> 3.1"
|
27
27
|
end
|
data/lib/historical_society.rb
CHANGED
@@ -16,21 +16,17 @@ module HistoricalSociety
|
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
set_deleted_at
|
23
|
-
end
|
24
|
-
|
25
|
-
def delete
|
26
|
-
set_deleted_at
|
27
|
-
end
|
19
|
+
def destroy
|
20
|
+
set_deleted_at
|
21
|
+
end
|
28
22
|
|
29
|
-
|
23
|
+
def delete
|
24
|
+
set_deleted_at
|
25
|
+
end
|
30
26
|
|
31
|
-
|
32
|
-
update_attribute(:deleted_at, self.class.historical_time)
|
33
|
-
end
|
27
|
+
private
|
34
28
|
|
29
|
+
def set_deleted_at
|
30
|
+
update_attribute(:deleted_at, self.class.historical_time)
|
35
31
|
end
|
36
32
|
end
|
metadata
CHANGED
@@ -1,79 +1,94 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: historical_society
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 1
|
8
|
+
- 1
|
9
|
+
version: 0.1.1
|
6
10
|
platform: ruby
|
7
|
-
authors:
|
11
|
+
authors:
|
8
12
|
- Robert Bousquet
|
9
13
|
autorequire:
|
10
14
|
bindir: bin
|
11
15
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
16
|
+
|
17
|
+
date: 2012-06-12 00:00:00 -07:00
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: rspec
|
16
|
-
requirement: &70115113351260 !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
22
|
-
type: :development
|
23
22
|
prerelease: false
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '0'
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
version: "0"
|
33
30
|
type: :development
|
31
|
+
version_requirements: *id001
|
32
|
+
- !ruby/object:Gem::Dependency
|
33
|
+
name: rake
|
34
34
|
prerelease: false
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: '0'
|
35
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
segments:
|
40
|
+
- 0
|
41
|
+
version: "0"
|
44
42
|
type: :development
|
43
|
+
version_requirements: *id002
|
44
|
+
- !ruby/object:Gem::Dependency
|
45
|
+
name: sqlite3
|
45
46
|
prerelease: false
|
46
|
-
|
47
|
-
|
47
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
48
|
+
requirements:
|
49
|
+
- - ">="
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
segments:
|
52
|
+
- 0
|
53
|
+
version: "0"
|
54
|
+
type: :development
|
55
|
+
version_requirements: *id003
|
56
|
+
- !ruby/object:Gem::Dependency
|
48
57
|
name: activerecord
|
49
|
-
|
50
|
-
|
51
|
-
requirements:
|
58
|
+
prerelease: false
|
59
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
52
61
|
- - ~>
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
segments:
|
64
|
+
- 3
|
65
|
+
- 1
|
66
|
+
version: "3.1"
|
55
67
|
type: :runtime
|
56
|
-
|
57
|
-
|
58
|
-
- !ruby/object:Gem::Dependency
|
68
|
+
version_requirements: *id004
|
69
|
+
- !ruby/object:Gem::Dependency
|
59
70
|
name: activesupport
|
60
|
-
|
61
|
-
|
62
|
-
requirements:
|
71
|
+
prerelease: false
|
72
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
63
74
|
- - ~>
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
segments:
|
77
|
+
- 3
|
78
|
+
- 1
|
79
|
+
version: "3.1"
|
66
80
|
type: :runtime
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
records
|
71
|
-
email:
|
81
|
+
version_requirements: *id005
|
82
|
+
description: Currently offers soft deletion, and a default scope that excludes 'deleted' records
|
83
|
+
email:
|
72
84
|
- rbousquet@newleaders.com
|
73
85
|
executables: []
|
86
|
+
|
74
87
|
extensions: []
|
88
|
+
|
75
89
|
extra_rdoc_files: []
|
76
|
-
|
90
|
+
|
91
|
+
files:
|
77
92
|
- .gitignore
|
78
93
|
- .rspec
|
79
94
|
- .rvmrc
|
@@ -86,30 +101,36 @@ files:
|
|
86
101
|
- lib/historical_society/version.rb
|
87
102
|
- spec/spec_helper.rb
|
88
103
|
- spec/user_spec.rb
|
104
|
+
has_rdoc: true
|
89
105
|
homepage: https://github.com/bousquet/historical_society
|
90
106
|
licenses: []
|
107
|
+
|
91
108
|
post_install_message:
|
92
109
|
rdoc_options: []
|
93
|
-
|
110
|
+
|
111
|
+
require_paths:
|
94
112
|
- lib
|
95
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
requirements:
|
104
|
-
- -
|
105
|
-
- !ruby/object:Gem::Version
|
106
|
-
|
113
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
segments:
|
118
|
+
- 0
|
119
|
+
version: "0"
|
120
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
segments:
|
125
|
+
- 0
|
126
|
+
version: "0"
|
107
127
|
requirements: []
|
128
|
+
|
108
129
|
rubyforge_project: historical_society
|
109
|
-
rubygems_version: 1.
|
130
|
+
rubygems_version: 1.3.6
|
110
131
|
signing_key:
|
111
132
|
specification_version: 3
|
112
133
|
summary: Preserve the history of a db record
|
113
|
-
test_files:
|
134
|
+
test_files:
|
114
135
|
- spec/spec_helper.rb
|
115
136
|
- spec/user_spec.rb
|