originator 3.0 → 3.2
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.
- checksums.yaml +5 -5
- data/CHANGELOG +8 -0
- data/Gemfile +9 -5
- data/Rakefile +14 -14
- data/VERSION +1 -1
- data/lib/migration_helper.rb +3 -1
- data/lib/stampable.rb +48 -39
- data/lib/stamper.rb +5 -5
- data/lib/userstamp.rb +28 -26
- data/originator.gemspec +8 -32
- data/test/compatibility_stamping_test.rb +6 -17
- data/test/controllers/posts_controller.rb +14 -14
- data/test/controllers/users_controller.rb +2 -2
- data/test/controllers/userstamp_controller.rb +5 -5
- data/test/helper.rb +25 -33
- data/test/models/comment.rb +3 -3
- data/test/models/foo.rb +1 -1
- data/test/models/person.rb +2 -1
- data/test/models/post.rb +6 -7
- data/test/models/user.rb +1 -1
- data/test/schema.rb +32 -33
- data/test/stamping_test.rb +15 -16
- data/test/userstamp_controller_test.rb +49 -49
- data/test/userstamp_test.rb +2 -2
- metadata +16 -43
- data/rdoc/classes/Ddb/Controller/Userstamp/InstanceMethods.html +0 -105
- data/rdoc/classes/Ddb/Controller/Userstamp.html +0 -125
- data/rdoc/classes/Ddb/Controller.html +0 -111
- data/rdoc/classes/Ddb/Userstamp/MigrationHelper/InstanceMethods.html +0 -142
- data/rdoc/classes/Ddb/Userstamp/MigrationHelper.html +0 -111
- data/rdoc/classes/Ddb/Userstamp/Stampable/ClassMethods.html +0 -225
- data/rdoc/classes/Ddb/Userstamp/Stampable.html +0 -128
- data/rdoc/classes/Ddb/Userstamp/Stamper/ClassMethods.html +0 -142
- data/rdoc/classes/Ddb/Userstamp/Stamper/InstanceMethods.html +0 -207
- data/rdoc/classes/Ddb/Userstamp/Stamper.html +0 -112
- data/rdoc/classes/Ddb/Userstamp.html +0 -121
- data/rdoc/classes/Userstamp.html +0 -118
- data/rdoc/created.rid +0 -1
- data/rdoc/files/CHANGELOG.html +0 -137
- data/rdoc/files/LICENSE.html +0 -129
- data/rdoc/files/Readme_rdoc.html +0 -301
- data/rdoc/files/lib/migration_helper_rb.html +0 -101
- data/rdoc/files/lib/stampable_rb.html +0 -101
- data/rdoc/files/lib/stamper_rb.html +0 -101
- data/rdoc/files/lib/userstamp_rb.html +0 -110
- data/rdoc/fr_class_index.html +0 -38
- data/rdoc/fr_file_index.html +0 -33
- data/rdoc/fr_method_index.html +0 -33
- data/rdoc/index.html +0 -24
- data/rdoc/rdoc-style.css +0 -208
data/test/models/post.rb
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
class Post < ActiveRecord::Base
|
|
2
|
-
stampable :stamper_class_name =>
|
|
2
|
+
stampable :stamper_class_name => "::Person", :deleter => true
|
|
3
3
|
has_many :comments
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
# override destroy to get soft delete like acts_as_paranoid style delete
|
|
6
6
|
# Note: delete_all (used in helper) bypasses this and deletes all rows.
|
|
7
7
|
def destroy
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
run_callbacks :destroy do
|
|
9
|
+
self.deleted_at = DateTime.now
|
|
10
|
+
end
|
|
11
11
|
end
|
|
12
|
-
|
|
13
|
-
end
|
|
12
|
+
end
|
data/test/models/user.rb
CHANGED
data/test/schema.rb
CHANGED
|
@@ -1,54 +1,53 @@
|
|
|
1
1
|
ActiveRecord::Schema.define(:version => 0) do
|
|
2
2
|
# Users are created and updated by other Users
|
|
3
3
|
create_table :users, :force => true do |t|
|
|
4
|
-
t.column :name,
|
|
5
|
-
t.column :creator_id,
|
|
6
|
-
t.column :
|
|
7
|
-
t.column :updater_id,
|
|
8
|
-
t.column :updated_at,
|
|
4
|
+
t.column :name, :string
|
|
5
|
+
t.column :creator_id, :integer
|
|
6
|
+
t.column :created_at, :datetime
|
|
7
|
+
t.column :updater_id, :integer
|
|
8
|
+
t.column :updated_at, :datetime
|
|
9
9
|
end
|
|
10
10
|
|
|
11
11
|
# People are created and updated by Users
|
|
12
12
|
create_table :people, :force => true do |t|
|
|
13
|
-
t.column :name,
|
|
14
|
-
t.column :creator_id,
|
|
15
|
-
t.column :
|
|
16
|
-
t.column :updater_id,
|
|
17
|
-
t.column :updated_at,
|
|
13
|
+
t.column :name, :string
|
|
14
|
+
t.column :creator_id, :integer
|
|
15
|
+
t.column :created_at, :datetime
|
|
16
|
+
t.column :updater_id, :integer
|
|
17
|
+
t.column :updated_at, :datetime
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
# Posts are created and updated by People
|
|
21
21
|
create_table :posts, :force => true do |t|
|
|
22
|
-
t.column :title,
|
|
23
|
-
t.column :creator_id,
|
|
24
|
-
t.column :
|
|
25
|
-
t.column :updater_id,
|
|
26
|
-
t.column :updated_at,
|
|
27
|
-
t.column :deleter_id,
|
|
28
|
-
t.column :deleted_at,
|
|
22
|
+
t.column :title, :string
|
|
23
|
+
t.column :creator_id, :integer
|
|
24
|
+
t.column :created_at, :datetime
|
|
25
|
+
t.column :updater_id, :integer
|
|
26
|
+
t.column :updated_at, :datetime
|
|
27
|
+
t.column :deleter_id, :integer
|
|
28
|
+
t.column :deleted_at, :datetime
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
# Comments are created and updated by People
|
|
32
32
|
# and also use non-standard foreign keys.
|
|
33
33
|
create_table :comments, :force => true do |t|
|
|
34
|
-
t.column :post_id,
|
|
35
|
-
t.column :comment,
|
|
36
|
-
t.column :created_by,
|
|
37
|
-
t.column :created_at,
|
|
38
|
-
t.column :updated_by,
|
|
39
|
-
t.column :updated_at,
|
|
40
|
-
t.column :deleted_by,
|
|
41
|
-
t.column :deleted_at,
|
|
34
|
+
t.column :post_id, :integer
|
|
35
|
+
t.column :comment, :string
|
|
36
|
+
t.column :created_by, :integer
|
|
37
|
+
t.column :created_at, :datetime
|
|
38
|
+
t.column :updated_by, :integer
|
|
39
|
+
t.column :updated_at, :datetime
|
|
40
|
+
t.column :deleted_by, :integer
|
|
41
|
+
t.column :deleted_at, :datetime
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
# only used to test :stampable args
|
|
45
45
|
create_table :foos, :force => true do |t|
|
|
46
|
-
t.column :created_by,
|
|
47
|
-
t.column :created_at,
|
|
48
|
-
t.column :updated_by,
|
|
49
|
-
t.column :updated_at,
|
|
50
|
-
t.column :deleted_by,
|
|
51
|
-
t.column :deleted_at,
|
|
46
|
+
t.column :created_by, :integer
|
|
47
|
+
t.column :created_at, :datetime
|
|
48
|
+
t.column :updated_by, :integer
|
|
49
|
+
t.column :updated_at, :datetime
|
|
50
|
+
t.column :deleted_by, :integer
|
|
51
|
+
t.column :deleted_at, :datetime
|
|
52
52
|
end
|
|
53
|
-
|
|
54
|
-
end
|
|
53
|
+
end
|
data/test/stamping_test.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
require_relative "helper"
|
|
2
2
|
|
|
3
|
-
class StampingTests < Test::Unit::TestCase
|
|
3
|
+
class StampingTests < Test::Unit::TestCase # :nodoc:
|
|
4
4
|
def setup
|
|
5
5
|
reset_to_defaults
|
|
6
6
|
User.stamper = @zeus
|
|
@@ -9,7 +9,7 @@ class StampingTests < Test::Unit::TestCase # :nodoc:
|
|
|
9
9
|
|
|
10
10
|
def test_person_creation_with_stamped_object
|
|
11
11
|
assert_equal @zeus.id, User.stamper
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
person = Person.create(:name => "David")
|
|
14
14
|
assert_equal @zeus.id, person.creator_id
|
|
15
15
|
assert_equal @zeus.id, person.updater_id
|
|
@@ -23,7 +23,7 @@ class StampingTests < Test::Unit::TestCase # :nodoc:
|
|
|
23
23
|
|
|
24
24
|
person = Person.create(:name => "Daniel")
|
|
25
25
|
assert_equal @hera.id, person.creator_id
|
|
26
|
-
assert_equal @hera.id,
|
|
26
|
+
assert_equal @hera.id, person.updater_id
|
|
27
27
|
assert_equal @hera, person.creator
|
|
28
28
|
assert_equal @hera, person.updater
|
|
29
29
|
end
|
|
@@ -114,25 +114,24 @@ class StampingTests < Test::Unit::TestCase # :nodoc:
|
|
|
114
114
|
assert_not_equal nil, @first_post.deleted_at
|
|
115
115
|
assert_equal @nicole.id, @first_post.deleter_id
|
|
116
116
|
end
|
|
117
|
-
|
|
117
|
+
|
|
118
118
|
def test_deleter_not_present_did_not_create_deleter_relation
|
|
119
119
|
@comment = Comment.create
|
|
120
|
-
assert_equal true, @comment.respond_to?(
|
|
121
|
-
assert_equal true, @comment.respond_to?(
|
|
122
|
-
assert_equal false, @comment.respond_to?(
|
|
120
|
+
assert_equal true, @comment.respond_to?("creator")
|
|
121
|
+
assert_equal true, @comment.respond_to?("updater")
|
|
122
|
+
assert_equal false, @comment.respond_to?("deleter")
|
|
123
123
|
end
|
|
124
124
|
|
|
125
125
|
def test_deleter_true_created_deleter_relation
|
|
126
|
-
assert_equal true, @first_post.respond_to?(
|
|
127
|
-
assert_equal true, @first_post.respond_to?(
|
|
128
|
-
assert_equal true, @first_post.respond_to?(
|
|
126
|
+
assert_equal true, @first_post.respond_to?("creator")
|
|
127
|
+
assert_equal true, @first_post.respond_to?("updater")
|
|
128
|
+
assert_equal true, @first_post.respond_to?("deleter")
|
|
129
129
|
end
|
|
130
130
|
|
|
131
131
|
def test_deleter_attribute_set_created_deleter_relation
|
|
132
132
|
@foo = Foo.create
|
|
133
|
-
assert_equal true, @foo.respond_to?(
|
|
134
|
-
assert_equal true, @foo.respond_to?(
|
|
135
|
-
assert_equal true, @foo.respond_to?(
|
|
133
|
+
assert_equal true, @foo.respond_to?("creator")
|
|
134
|
+
assert_equal true, @foo.respond_to?("updater")
|
|
135
|
+
assert_equal true, @foo.respond_to?("deleter")
|
|
136
136
|
end
|
|
137
|
-
|
|
138
|
-
end
|
|
137
|
+
end
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
|
|
1
|
+
require_relative "helper"
|
|
2
2
|
|
|
3
3
|
class PostsControllerTest < ActionController::TestCase
|
|
4
4
|
def setup
|
|
5
5
|
reset_to_defaults
|
|
6
|
-
@controller
|
|
7
|
-
@request
|
|
8
|
-
@response
|
|
6
|
+
@controller = PostsController.new
|
|
7
|
+
@request = ActionController::TestRequest.new
|
|
8
|
+
@response = ActionController::TestResponse.new
|
|
9
9
|
end
|
|
10
10
|
|
|
11
11
|
def test_update_post
|
|
12
|
-
@request.session
|
|
13
|
-
post :update, :id => @first_post.id, :post => {:title =>
|
|
12
|
+
@request.session = { :person_id => @delynn.id }
|
|
13
|
+
post :update, :id => @first_post.id, :post => { :title => "Different" }
|
|
14
14
|
assert_response :success
|
|
15
|
-
assert_equal
|
|
15
|
+
assert_equal "Different", assigns["post"].title
|
|
16
16
|
assert_equal @delynn, assigns["post"].updater
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
def test_update_with_multiple_requests
|
|
20
|
-
@request.session = {:person_id => @delynn.id}
|
|
20
|
+
@request.session = { :person_id => @delynn.id }
|
|
21
21
|
get :edit, :id => @first_post.id
|
|
22
22
|
assert_response :success
|
|
23
23
|
|
|
24
|
-
simulate_second_request
|
|
24
|
+
simulate_second_request
|
|
25
25
|
|
|
26
|
-
post :update, :id => @first_post.id, :post => {:title =>
|
|
26
|
+
post :update, :id => @first_post.id, :post => { :title => "Different" }
|
|
27
27
|
assert_response :success
|
|
28
|
-
assert_equal
|
|
29
|
-
assert_equal
|
|
28
|
+
assert_equal "Different", assigns["post"].title
|
|
29
|
+
assert_equal @delynn, assigns["post"].updater
|
|
30
30
|
end
|
|
31
|
-
|
|
31
|
+
|
|
32
32
|
def simulate_second_request
|
|
33
|
-
@second_controller
|
|
34
|
-
@second_request
|
|
35
|
-
@second_response
|
|
36
|
-
@second_response.session = {:person_id => @nicole.id}
|
|
33
|
+
@second_controller = PostsController.new
|
|
34
|
+
@second_request = ActionController::TestRequest.new
|
|
35
|
+
@second_response = ActionController::TestResponse.new
|
|
36
|
+
@second_response.session = { :person_id => @nicole.id }
|
|
37
37
|
|
|
38
|
-
@second_request.env[
|
|
39
|
-
@second_request.action =
|
|
38
|
+
@second_request.env["REQUEST_METHOD"] = "POST"
|
|
39
|
+
@second_request.action = "update"
|
|
40
40
|
|
|
41
|
-
parameters = {:id => @first_post.id, :post => {:title =>
|
|
42
|
-
@second_request.assign_parameters(@second_controller.class.controller_path,
|
|
41
|
+
parameters = { :id => @first_post.id, :post => { :title => "Different Second" } }
|
|
42
|
+
@second_request.assign_parameters(@second_controller.class.controller_path, "update", parameters)
|
|
43
43
|
@second_request.session = ActionController::TestSession.new(@second_response.session)
|
|
44
|
-
|
|
44
|
+
|
|
45
45
|
options = @second_controller.send(:rewrite_options, parameters)
|
|
46
|
-
options.update(:only_path => true, :action =>
|
|
47
|
-
|
|
46
|
+
options.update(:only_path => true, :action => "update")
|
|
47
|
+
|
|
48
48
|
url = ActionController::UrlRewriter.new(@second_request, parameters)
|
|
49
49
|
@second_request.set_REQUEST_URI(url.rewrite(options))
|
|
50
50
|
@second_controller.process(@second_request, @second_response)
|
|
51
|
-
|
|
51
|
+
|
|
52
52
|
assert_equal @nicole, @second_response.template.instance_variable_get("@post").updater
|
|
53
53
|
end
|
|
54
54
|
end
|
|
@@ -57,47 +57,47 @@ class UsersControllerTest < ActionController::TestCase
|
|
|
57
57
|
def setup
|
|
58
58
|
reset_to_defaults
|
|
59
59
|
@controller = UsersController.new
|
|
60
|
-
@request
|
|
61
|
-
@response
|
|
60
|
+
@request = ActionController::TestRequest.new
|
|
61
|
+
@response = ActionController::TestResponse.new
|
|
62
62
|
end
|
|
63
63
|
|
|
64
64
|
def test_update_user
|
|
65
|
-
@request.session
|
|
66
|
-
post :update, :id => @hera.id, :user => {:name =>
|
|
65
|
+
@request.session = { :user_id => @hera.id }
|
|
66
|
+
post :update, :id => @hera.id, :user => { :name => "Different" }
|
|
67
67
|
assert_response :success
|
|
68
|
-
assert_equal
|
|
69
|
-
assert_equal
|
|
68
|
+
assert_equal "Different", assigns["user"].name
|
|
69
|
+
assert_equal @hera, assigns["user"].updater
|
|
70
70
|
end
|
|
71
|
-
|
|
71
|
+
|
|
72
72
|
def test_update_with_multiple_requests
|
|
73
|
-
@request.session
|
|
74
|
-
get :edit, :id =>
|
|
73
|
+
@request.session = { :user_id => @hera.id }
|
|
74
|
+
get :edit, :id => @hera.id
|
|
75
75
|
assert_response :success
|
|
76
|
-
|
|
76
|
+
|
|
77
77
|
simulate_second_request
|
|
78
78
|
end
|
|
79
79
|
|
|
80
80
|
def simulate_second_request
|
|
81
|
-
@second_controller
|
|
82
|
-
@second_request
|
|
83
|
-
@second_response
|
|
84
|
-
@second_response.session = {:user_id => @zeus.id}
|
|
81
|
+
@second_controller = UsersController.new
|
|
82
|
+
@second_request = ActionController::TestRequest.new
|
|
83
|
+
@second_response = ActionController::TestResponse.new
|
|
84
|
+
@second_response.session = { :user_id => @zeus.id }
|
|
85
|
+
|
|
86
|
+
@second_request.env["REQUEST_METHOD"] = "POST"
|
|
87
|
+
@second_request.action = "update"
|
|
85
88
|
|
|
86
|
-
@
|
|
87
|
-
@second_request.
|
|
89
|
+
parameters = { :id => @hera.id, :user => { :name => "Different Second" } }
|
|
90
|
+
@second_request.assign_parameters(@second_controller.class.controller_path, "update", parameters)
|
|
88
91
|
|
|
89
|
-
parameters = {:id => @hera.id, :user => {:name => 'Different Second'}}
|
|
90
|
-
@second_request.assign_parameters(@second_controller.class.controller_path, 'update', parameters)
|
|
91
|
-
|
|
92
92
|
@second_request.session = ActionController::TestSession.new(@second_response.session)
|
|
93
|
-
|
|
93
|
+
|
|
94
94
|
options = @second_controller.send(:rewrite_options, parameters)
|
|
95
|
-
options.update(:only_path => true, :action =>
|
|
96
|
-
|
|
95
|
+
options.update(:only_path => true, :action => "update")
|
|
96
|
+
|
|
97
97
|
url = ActionController::UrlRewriter.new(@second_request, parameters)
|
|
98
98
|
@second_request.set_REQUEST_URI(url.rewrite(options))
|
|
99
99
|
@second_controller.process(@second_request, @second_response)
|
|
100
|
-
|
|
100
|
+
|
|
101
101
|
assert_equal @zeus, @second_response.template.instance_variable_get("@user").updater
|
|
102
102
|
end
|
|
103
|
-
end
|
|
103
|
+
end
|
data/test/userstamp_test.rb
CHANGED
metadata
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: originator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '3.
|
|
4
|
+
version: '3.2'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- DeLynn Berry
|
|
8
8
|
- Thomas von Deyen
|
|
9
|
-
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date:
|
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: actionpack
|
|
@@ -18,9 +17,6 @@ dependencies:
|
|
|
18
17
|
- - ">="
|
|
19
18
|
- !ruby/object:Gem::Version
|
|
20
19
|
version: '4.0'
|
|
21
|
-
- - "<"
|
|
22
|
-
- !ruby/object:Gem::Version
|
|
23
|
-
version: '5.1'
|
|
24
20
|
type: :runtime
|
|
25
21
|
prerelease: false
|
|
26
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -28,9 +24,6 @@ dependencies:
|
|
|
28
24
|
- - ">="
|
|
29
25
|
- !ruby/object:Gem::Version
|
|
30
26
|
version: '4.0'
|
|
31
|
-
- - "<"
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: '5.1'
|
|
34
27
|
- !ruby/object:Gem::Dependency
|
|
35
28
|
name: activerecord
|
|
36
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -38,9 +31,6 @@ dependencies:
|
|
|
38
31
|
- - ">="
|
|
39
32
|
- !ruby/object:Gem::Version
|
|
40
33
|
version: '4.0'
|
|
41
|
-
- - "<"
|
|
42
|
-
- !ruby/object:Gem::Version
|
|
43
|
-
version: '5.1'
|
|
44
34
|
type: :runtime
|
|
45
35
|
prerelease: false
|
|
46
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -48,9 +38,20 @@ dependencies:
|
|
|
48
38
|
- - ">="
|
|
49
39
|
- !ruby/object:Gem::Version
|
|
50
40
|
version: '4.0'
|
|
51
|
-
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: activesupport
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ">="
|
|
52
46
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: '
|
|
47
|
+
version: '4.0'
|
|
48
|
+
type: :runtime
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ">="
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '4.0'
|
|
54
55
|
description: This gem extends ActiveRecord::Base to add automatic updating of created_by
|
|
55
56
|
and updated_by attributes of your models in much the same way that the ActiveRecord::Timestamp
|
|
56
57
|
module updates created_(at/on) and updated_(at/on) attributes.
|
|
@@ -72,31 +73,6 @@ files:
|
|
|
72
73
|
- lib/stamper.rb
|
|
73
74
|
- lib/userstamp.rb
|
|
74
75
|
- originator.gemspec
|
|
75
|
-
- rdoc/classes/Ddb/Controller.html
|
|
76
|
-
- rdoc/classes/Ddb/Controller/Userstamp.html
|
|
77
|
-
- rdoc/classes/Ddb/Controller/Userstamp/InstanceMethods.html
|
|
78
|
-
- rdoc/classes/Ddb/Userstamp.html
|
|
79
|
-
- rdoc/classes/Ddb/Userstamp/MigrationHelper.html
|
|
80
|
-
- rdoc/classes/Ddb/Userstamp/MigrationHelper/InstanceMethods.html
|
|
81
|
-
- rdoc/classes/Ddb/Userstamp/Stampable.html
|
|
82
|
-
- rdoc/classes/Ddb/Userstamp/Stampable/ClassMethods.html
|
|
83
|
-
- rdoc/classes/Ddb/Userstamp/Stamper.html
|
|
84
|
-
- rdoc/classes/Ddb/Userstamp/Stamper/ClassMethods.html
|
|
85
|
-
- rdoc/classes/Ddb/Userstamp/Stamper/InstanceMethods.html
|
|
86
|
-
- rdoc/classes/Userstamp.html
|
|
87
|
-
- rdoc/created.rid
|
|
88
|
-
- rdoc/files/CHANGELOG.html
|
|
89
|
-
- rdoc/files/LICENSE.html
|
|
90
|
-
- rdoc/files/Readme_rdoc.html
|
|
91
|
-
- rdoc/files/lib/migration_helper_rb.html
|
|
92
|
-
- rdoc/files/lib/stampable_rb.html
|
|
93
|
-
- rdoc/files/lib/stamper_rb.html
|
|
94
|
-
- rdoc/files/lib/userstamp_rb.html
|
|
95
|
-
- rdoc/fr_class_index.html
|
|
96
|
-
- rdoc/fr_file_index.html
|
|
97
|
-
- rdoc/fr_method_index.html
|
|
98
|
-
- rdoc/index.html
|
|
99
|
-
- rdoc/rdoc-style.css
|
|
100
76
|
- test/compatibility_stamping_test.rb
|
|
101
77
|
- test/controllers/posts_controller.rb
|
|
102
78
|
- test/controllers/users_controller.rb
|
|
@@ -115,7 +91,6 @@ homepage: https://github.com/AlchemyCMS/originator
|
|
|
115
91
|
licenses:
|
|
116
92
|
- MIT
|
|
117
93
|
metadata: {}
|
|
118
|
-
post_install_message:
|
|
119
94
|
rdoc_options: []
|
|
120
95
|
require_paths:
|
|
121
96
|
- lib
|
|
@@ -130,9 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
130
105
|
- !ruby/object:Gem::Version
|
|
131
106
|
version: '0'
|
|
132
107
|
requirements: []
|
|
133
|
-
|
|
134
|
-
rubygems_version: 2.6.11
|
|
135
|
-
signing_key:
|
|
108
|
+
rubygems_version: 4.0.3
|
|
136
109
|
specification_version: 3
|
|
137
110
|
summary: Adds originator attributes to your ActiveRecord models.
|
|
138
111
|
test_files: []
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
-
<!DOCTYPE html
|
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
-
|
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
7
|
-
<head>
|
|
8
|
-
<title>Module: Ddb::Controller::Userstamp::InstanceMethods</title>
|
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
11
|
-
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
12
|
-
<script type="text/javascript">
|
|
13
|
-
// <![CDATA[
|
|
14
|
-
|
|
15
|
-
function popupCode( url ) {
|
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function toggleCode( id ) {
|
|
20
|
-
if ( document.getElementById )
|
|
21
|
-
elem = document.getElementById( id );
|
|
22
|
-
else if ( document.all )
|
|
23
|
-
elem = eval( "document.all." + id );
|
|
24
|
-
else
|
|
25
|
-
return false;
|
|
26
|
-
|
|
27
|
-
elemStyle = elem.style;
|
|
28
|
-
|
|
29
|
-
if ( elemStyle.display != "block" ) {
|
|
30
|
-
elemStyle.display = "block"
|
|
31
|
-
} else {
|
|
32
|
-
elemStyle.display = "none"
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// Make codeblocks hidden by default
|
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
-
|
|
41
|
-
// ]]>
|
|
42
|
-
</script>
|
|
43
|
-
|
|
44
|
-
</head>
|
|
45
|
-
<body>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<div id="classHeader">
|
|
50
|
-
<table class="header-table">
|
|
51
|
-
<tr class="top-aligned-row">
|
|
52
|
-
<td><strong>Module</strong></td>
|
|
53
|
-
<td class="class-name-in-header">Ddb::Controller::Userstamp::InstanceMethods</td>
|
|
54
|
-
</tr>
|
|
55
|
-
<tr class="top-aligned-row">
|
|
56
|
-
<td><strong>In:</strong></td>
|
|
57
|
-
<td>
|
|
58
|
-
<a href="../../../../files/lib/userstamp_rb.html">
|
|
59
|
-
lib/userstamp.rb
|
|
60
|
-
</a>
|
|
61
|
-
<br />
|
|
62
|
-
</td>
|
|
63
|
-
</tr>
|
|
64
|
-
|
|
65
|
-
</table>
|
|
66
|
-
</div>
|
|
67
|
-
<!-- banner header -->
|
|
68
|
-
|
|
69
|
-
<div id="bodyContent">
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
<div id="contextContent">
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
</div>
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
</div>
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
<!-- if includes -->
|
|
84
|
-
|
|
85
|
-
<div id="section">
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
<!-- if method_list -->
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
</div>
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
<div id="validator-badges">
|
|
101
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
102
|
-
</div>
|
|
103
|
-
|
|
104
|
-
</body>
|
|
105
|
-
</html>
|