version_fu 1.0.1 → 1.0.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 +7 -0
- data/README.rdoc +6 -14
- data/VERSION +1 -1
- data/lib/version_fu/version_fu.rb +2 -2
- metadata +26 -46
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 751d630a1bf1c99bb8dd05df6baa6f529ed062ab
|
|
4
|
+
data.tar.gz: a6bd4433c5a10a51cd39a8808754c378fdc0999a
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 2648c9e9289b54a8a952f171ad2877799e9a6e181ad294475d317beea5fe10f78bc2f06e28811a7f26f54932df2855cd0f1657a7350ce611ab8e7ee452e2c782
|
|
7
|
+
data.tar.gz: 3afe2304f08ea4b9d8ca51adf0ef98a95aab10cb77d845c19da1cc7981efd4ddec09ac2077f3b0be6e6c0834393c8fd76ad15aa23233ed0c51fe91efc7b07710
|
data/README.rdoc
CHANGED
|
@@ -1,22 +1,14 @@
|
|
|
1
1
|
= version_fu
|
|
2
2
|
|
|
3
|
-
version_fu is a ActveRecord versioning plugin that
|
|
4
|
-
|
|
5
|
-
nbudin-version_fu is Nat Budin's attempt to merge revo's Gemified version with jmckible's latest additions and fixes. Nat hopes to have these changes merged into mainline version_fu eventually so that it can be released as a gem.
|
|
3
|
+
version_fu is a ActveRecord versioning plugin that that is based on the dirty attribute checking introduced in Rails 2.1. It has been updated for compatibility with Rails 3.
|
|
6
4
|
|
|
7
5
|
== Installation
|
|
8
6
|
|
|
9
|
-
gem install
|
|
10
|
-
|
|
11
|
-
=== Installation in a Rails application
|
|
12
|
-
|
|
13
|
-
In your config/environment.rb, or in an initializer, add the line:
|
|
14
|
-
|
|
15
|
-
config.gem "nbudin-version_fu", :lib => "version_fu", :source => "http://gemcutter.org"
|
|
7
|
+
gem install version_fu
|
|
16
8
|
|
|
17
|
-
|
|
9
|
+
If you're using Rails 3, add it to your Gemfile
|
|
18
10
|
|
|
19
|
-
|
|
11
|
+
gem 'version_fu'
|
|
20
12
|
|
|
21
13
|
== Usage
|
|
22
14
|
|
|
@@ -114,8 +106,8 @@ By default a new version will be saved whenever a versioned column is changed.
|
|
|
114
106
|
|
|
115
107
|
* version_fu was created by Jordan McKible http://jordan.mckible.com
|
|
116
108
|
|
|
117
|
-
* Available on GitHub at http://github.com/jmckible/version_fu
|
|
109
|
+
* Available on GitHub at http://github.com/jmckible/version_fu
|
|
118
110
|
|
|
119
|
-
*
|
|
111
|
+
* Available on RubyGems.org at http://rubygems.org/gems/version_fu
|
|
120
112
|
|
|
121
113
|
* acts_as_versioned by Rick Olson http://github.com/technoweenie/acts_as_versioned/tree/master
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.2
|
|
@@ -55,7 +55,7 @@ module VersionFu
|
|
|
55
55
|
# Housekeeping on versioned class
|
|
56
56
|
versioned_class.cattr_accessor :original_class
|
|
57
57
|
versioned_class.original_class = self
|
|
58
|
-
versioned_class.
|
|
58
|
+
versioned_class.table_name = versioned_table_name
|
|
59
59
|
|
|
60
60
|
# Version parent association
|
|
61
61
|
versioned_class.belongs_to self.to_s.demodulize.underscore.to_sym,
|
|
@@ -106,4 +106,4 @@ module VersionFu
|
|
|
106
106
|
self.version = version_number
|
|
107
107
|
end
|
|
108
108
|
end
|
|
109
|
-
end
|
|
109
|
+
end
|
metadata
CHANGED
|
@@ -1,33 +1,23 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: version_fu
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
5
|
-
prerelease: false
|
|
6
|
-
segments:
|
|
7
|
-
- 1
|
|
8
|
-
- 0
|
|
9
|
-
- 1
|
|
10
|
-
version: 1.0.1
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.2
|
|
11
5
|
platform: ruby
|
|
12
|
-
authors:
|
|
6
|
+
authors:
|
|
13
7
|
- Jordan McKible
|
|
14
8
|
autorequire:
|
|
15
9
|
bindir: bin
|
|
16
10
|
cert_chain: []
|
|
17
|
-
|
|
18
|
-
date: 2010-09-01 00:00:00 -07:00
|
|
19
|
-
default_executable:
|
|
11
|
+
date: 2013-05-20 00:00:00.000000000 Z
|
|
20
12
|
dependencies: []
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
email:
|
|
13
|
+
description: version_fu helps version your ActiveRecord models. It is based on Rick
|
|
14
|
+
Olson's acts_as_versioned and is compatible with Rails 3.
|
|
15
|
+
email: ''
|
|
24
16
|
executables: []
|
|
25
|
-
|
|
26
17
|
extensions: []
|
|
27
|
-
|
|
28
|
-
extra_rdoc_files:
|
|
18
|
+
extra_rdoc_files:
|
|
29
19
|
- README.rdoc
|
|
30
|
-
files:
|
|
20
|
+
files:
|
|
31
21
|
- init.rb
|
|
32
22
|
- MIT-LICENSE
|
|
33
23
|
- Rakefile
|
|
@@ -45,41 +35,31 @@ files:
|
|
|
45
35
|
- test/models/page.rb
|
|
46
36
|
- test/test_helper.rb
|
|
47
37
|
- test/version_fu_test.rb
|
|
48
|
-
|
|
49
|
-
homepage: ""
|
|
38
|
+
homepage: ''
|
|
50
39
|
licenses: []
|
|
51
|
-
|
|
40
|
+
metadata: {}
|
|
52
41
|
post_install_message:
|
|
53
|
-
rdoc_options:
|
|
42
|
+
rdoc_options:
|
|
54
43
|
- --charset=UTF-8
|
|
55
|
-
require_paths:
|
|
44
|
+
require_paths:
|
|
56
45
|
- lib
|
|
57
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
none: false
|
|
68
|
-
requirements:
|
|
69
|
-
- - ">="
|
|
70
|
-
- !ruby/object:Gem::Version
|
|
71
|
-
hash: 3
|
|
72
|
-
segments:
|
|
73
|
-
- 0
|
|
74
|
-
version: "0"
|
|
46
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
47
|
+
requirements:
|
|
48
|
+
- - '>='
|
|
49
|
+
- !ruby/object:Gem::Version
|
|
50
|
+
version: '0'
|
|
51
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
52
|
+
requirements:
|
|
53
|
+
- - '>='
|
|
54
|
+
- !ruby/object:Gem::Version
|
|
55
|
+
version: '0'
|
|
75
56
|
requirements: []
|
|
76
|
-
|
|
77
57
|
rubyforge_project:
|
|
78
|
-
rubygems_version:
|
|
58
|
+
rubygems_version: 2.0.3
|
|
79
59
|
signing_key:
|
|
80
60
|
specification_version: 3
|
|
81
61
|
summary: Gemified version of the version_fu plugin.
|
|
82
|
-
test_files:
|
|
62
|
+
test_files:
|
|
83
63
|
- test/db/database.yml
|
|
84
64
|
- test/db/schema.rb
|
|
85
65
|
- test/fixtures/author_versions.yml
|