xmlblog-acts_as_versioned 0.6.4 → 0.6.5

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.
Files changed (3) hide show
  1. data/CHANGELOG +5 -0
  2. data/lib/acts_as_versioned.rb +1 -1
  3. metadata +38 -7
data/CHANGELOG CHANGED
@@ -2,6 +2,11 @@
2
2
  [master]
3
3
 
4
4
  *
5
+
6
+ [0.6.5]
7
+ * (22 Jul 2009) Fixed bug where version class would not use the connection of the acts_as_versioned class
8
+ This means you can now use acts_as_versioned with multiple databases and have the version table live
9
+ in the same database as its "parent" [Christian Romney (xmlblog)]
5
10
 
6
11
  [0.6.4]
7
12
  * (12 Jun 2009) Merged from technoweenie/master with adaptation to MetaSkills' test format [xmlblog]
@@ -224,7 +224,7 @@ module ActiveRecord #:nodoc:
224
224
  CLASS_METHODS
225
225
 
226
226
  # create the dynamic versioned model
227
- const_set(versioned_class_name, Class.new(ActiveRecord::Base)).class_eval do
227
+ const_set(versioned_class_name, Class.new(superclass)).class_eval do
228
228
  def self.reloadable? ; false ; end
229
229
  # find first version before the given version
230
230
  def self.before(version)
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xmlblog-acts_as_versioned
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 6
8
+ - 5
9
+ version: 0.6.5
5
10
  platform: ruby
6
11
  authors:
7
12
  - xmlblog
@@ -11,11 +16,11 @@ autorequire:
11
16
  bindir: bin
12
17
  cert_chain: []
13
18
 
14
- date: 2009-06-12 00:00:00 -07:00
19
+ date: 2009-07-22 00:00:00 -04:00
15
20
  default_executable:
16
21
  dependencies: []
17
22
 
18
- description: ActiveRecord plugin for versioning your models.
23
+ description: ActiveRecord plugin for versioning your models. Based on an old version of metaskills' fork.
19
24
  email: christian@kipdigitalmedia.com
20
25
  executables: []
21
26
 
@@ -32,8 +37,30 @@ files:
32
37
  - README.rdoc
33
38
  - RUNNING_UNIT_TESTS
34
39
  - lib/acts_as_versioned.rb
40
+ - test/fixtures/authors.yml
41
+ - test/fixtures/landmark_versions.yml
42
+ - test/fixtures/landmarks.yml
43
+ - test/fixtures/locked_pages_revisions.yml
44
+ - test/fixtures/locked_pages.yml
45
+ - test/fixtures/page_versions.yml
46
+ - test/fixtures/pages.yml
47
+ - test/fixtures/widgets.yml
48
+ - test/helper.rb
49
+ - test/lib/boot.rb
50
+ - test/lib/database.yml
51
+ - test/lib/schema.rb
52
+ - test/migration_test.rb
53
+ - test/migrations/1_add_versioned_tables.rb
54
+ - test/models/author.rb
55
+ - test/models/landmark.rb
56
+ - test/models/page.rb
57
+ - test/models/thing.rb
58
+ - test/models/widget.rb
59
+ - test/versioned_test.rb
35
60
  has_rdoc: true
36
61
  homepage: http://github.com/xmlblog/acts_as_versioned/
62
+ licenses: []
63
+
37
64
  post_install_message:
38
65
  rdoc_options:
39
66
  - --main
@@ -41,23 +68,27 @@ rdoc_options:
41
68
  require_paths:
42
69
  - lib
43
70
  required_ruby_version: !ruby/object:Gem::Requirement
71
+ none: false
44
72
  requirements:
45
73
  - - ">="
46
74
  - !ruby/object:Gem::Version
75
+ segments:
76
+ - 0
47
77
  version: "0"
48
- version:
49
78
  required_rubygems_version: !ruby/object:Gem::Requirement
79
+ none: false
50
80
  requirements:
51
81
  - - ">="
52
82
  - !ruby/object:Gem::Version
83
+ segments:
84
+ - 0
53
85
  version: "0"
54
- version:
55
86
  requirements: []
56
87
 
57
88
  rubyforge_project:
58
- rubygems_version: 1.2.0
89
+ rubygems_version: 1.3.7
59
90
  signing_key:
60
- specification_version: 2
91
+ specification_version: 3
61
92
  summary: ActiveRecord plugin for versioning your models.
62
93
  test_files:
63
94
  - test/fixtures/authors.yml