rtiss_acts_as_versioned 0.7.4 → 0.7.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.
- checksums.yaml +7 -0
- data/Gemfile +2 -7
- data/README +13 -1
- data/Rakefile +0 -4
- data/lib/rtiss_acts_as_versioned.rb +2 -2
- data/rtiss_acts_as_versioned.gemspec +7 -25
- metadata +38 -19
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8e2f87959148531233f12e93e4f1eb2378d63a3b
|
4
|
+
data.tar.gz: b3ece4f811f7e33010a16586f002c0f32f6c0fb6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e172aaea0a50d45d804114ecd3a4623edd903f611779e7f452155c2a267740f33a59e1483663e3103b7257b6e3e045e01d9683beb240ab847a2c0d417d67cdf6
|
7
|
+
data.tar.gz: 6619d4c183f74541b815dac8e9196ab4d91efaf1b237bff9435c3ec3147e7c3ac93b7cba4c1abbc188747ecb05114cb7c3d81d93e684a8fd2bc599df47f1cf77
|
data/Gemfile
CHANGED
data/README
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
|
3
3
|
This library adds simple versioning to an ActiveRecord module. ActiveRecord is required.
|
4
4
|
|
5
|
+
This is the patched version for rtiss.
|
6
|
+
|
7
|
+
Versions 0.6.x (rails2 branch) are for rails 2.x
|
8
|
+
Versions 0.7.x (rails3 branch) are for rails 3.x
|
9
|
+
Versions 0.8.x (master branch) are for rails 4.x
|
10
|
+
|
5
11
|
== Resources
|
6
12
|
|
7
13
|
Install
|
@@ -21,4 +27,10 @@ Subversion
|
|
21
27
|
* http://svn.github.com/technoweenie/acts_as_versioned.git
|
22
28
|
|
23
29
|
Special thanks to Dreamer on ##rubyonrails for help in early testing. His ServerSideWiki (http://serversidewiki.com)
|
24
|
-
was the first project to use acts_as_versioned <em>in the wild</em>.
|
30
|
+
was the first project to use acts_as_versioned <em>in the wild</em>.
|
31
|
+
|
32
|
+
== Publishing a new release
|
33
|
+
|
34
|
+
* increase the VERSION in rtiss_acts_as_versioned.rb
|
35
|
+
* run: bundle exec rake test
|
36
|
+
* run: bundle exec rake release
|
data/Rakefile
CHANGED
@@ -88,10 +88,6 @@ end
|
|
88
88
|
#############################################################################
|
89
89
|
|
90
90
|
task :release => :build do
|
91
|
-
unless `git branch` =~ /^\* master$/
|
92
|
-
puts "You must be on the master branch to release!"
|
93
|
-
exit!
|
94
|
-
end
|
95
91
|
sh "git commit --allow-empty -a -m 'Release #{version}'"
|
96
92
|
sh "git tag #{version}"
|
97
93
|
sh "git push origin master --tags"
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
21
21
|
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
22
22
|
|
23
|
-
VERSION = '0.7.
|
23
|
+
VERSION = '0.7.5'
|
24
24
|
|
25
25
|
module ActiveRecord #:nodoc:
|
26
26
|
module Acts #:nodoc:
|
@@ -201,7 +201,7 @@ module ActiveRecord #:nodoc:
|
|
201
201
|
options[:extend] = self.const_get(extension_module_name)
|
202
202
|
end
|
203
203
|
|
204
|
-
class_eval <<-CLASS_METHODS
|
204
|
+
class_eval <<-CLASS_METHODS
|
205
205
|
has_many :versions, version_association_options do
|
206
206
|
# finds earliest version of this record
|
207
207
|
def earliest
|
@@ -7,20 +7,14 @@
|
|
7
7
|
## You can find comprehensive Gem::Specification documentation, at
|
8
8
|
## http://docs.rubygems.org/read/chapter/20
|
9
9
|
Gem::Specification.new do |s|
|
10
|
-
s.specification_version = 2 if s.respond_to? :specification_version=
|
11
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
|
-
s.rubygems_version = '1.3.5'
|
13
10
|
|
14
11
|
## Leave these as is they will be modified for you by the rake gemspec task.
|
15
12
|
## If your rubyforge_project name is different, then edit it and comment out
|
16
13
|
## the sub! line in the Rakefile
|
17
14
|
s.name = 'rtiss_acts_as_versioned'
|
18
|
-
s.version = '0.7.
|
19
|
-
s.date = '2014-
|
15
|
+
s.version = '0.7.5'
|
16
|
+
s.date = '2014-10-30'
|
20
17
|
s.rubyforge_project = 'rtiss_acts_as_versioned'
|
21
|
-
|
22
|
-
## Make sure your summary is short. The description may be as long
|
23
|
-
## as you like.
|
24
18
|
s.summary = "Add simple versioning to ActiveRecord models (TISS version)."
|
25
19
|
s.description = "Add simple versioning to ActiveRecord models (TISS version).
|
26
20
|
|
@@ -30,29 +24,17 @@ used by http://tiss.tuwien.ac.at and substantially differs from the original
|
|
30
24
|
version. If you want to use acts_as_versioned in your project we recommend
|
31
25
|
to use technoweenie's version (can be found also on github)"
|
32
26
|
|
33
|
-
## List the primary authors. If there are a bunch of authors, it's probably
|
34
|
-
## better to set the email to an email list or something. If you don't have
|
35
|
-
## a custom homepage, consider using your GitHub URL or the like.
|
36
27
|
s.authors = ["Rick Olson", "Johannes Thoma", "Igor Jancev"]
|
37
28
|
s.email = 'igor.jancev@tuwien.ac.at'
|
38
29
|
s.homepage = 'http://github.com/rtiss/rtiss_acts_as_versioned'
|
39
|
-
|
40
|
-
## This gets added to the $LOAD_PATH so that 'lib/NAME.rb' can be required as
|
41
|
-
## require 'NAME.rb' or'/lib/NAME/file.rb' can be as require 'NAME/file.rb'
|
42
|
-
s.require_paths = %w[lib]
|
43
|
-
|
44
|
-
## Specify any RDoc options here. You'll want to add your README and
|
45
|
-
## LICENSE files to the extra_rdoc_files list.
|
30
|
+
s.require_paths = ["lib"]
|
46
31
|
s.rdoc_options = ["--charset=UTF-8"]
|
47
32
|
s.extra_rdoc_files = %w[README MIT-LICENSE CHANGELOG]
|
48
33
|
|
49
|
-
|
50
|
-
|
51
|
-
s.
|
52
|
-
|
53
|
-
## List your development dependencies here. Development dependencies are
|
54
|
-
## those that are only needed during development
|
55
|
-
s.add_development_dependency('sqlite3-ruby', ["~> 1.3.1"])
|
34
|
+
s.add_dependency 'activerecord', ">= 3.0.9"
|
35
|
+
s.add_development_dependency 'sqlite3-ruby', "~> 1.3.1"
|
36
|
+
s.add_development_dependency 'rails', "~> 3.0.20"
|
37
|
+
s.add_development_dependency 'mysql', "~> 2.8.1"
|
56
38
|
|
57
39
|
## Leave this section as-is. It will be automatically generated from the
|
58
40
|
## contents of your Git repository via the gemspec task. DO NOT REMOVE
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rtiss_acts_as_versioned
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
5
|
-
prerelease:
|
4
|
+
version: 0.7.5
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Rick Olson
|
@@ -11,28 +10,25 @@ authors:
|
|
11
10
|
autorequire:
|
12
11
|
bindir: bin
|
13
12
|
cert_chain: []
|
14
|
-
date: 2014-
|
13
|
+
date: 2014-10-30 00:00:00.000000000 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: activerecord
|
18
17
|
requirement: !ruby/object:Gem::Requirement
|
19
|
-
none: false
|
20
18
|
requirements:
|
21
|
-
- -
|
19
|
+
- - '>='
|
22
20
|
- !ruby/object:Gem::Version
|
23
21
|
version: 3.0.9
|
24
22
|
type: :runtime
|
25
23
|
prerelease: false
|
26
24
|
version_requirements: !ruby/object:Gem::Requirement
|
27
|
-
none: false
|
28
25
|
requirements:
|
29
|
-
- -
|
26
|
+
- - '>='
|
30
27
|
- !ruby/object:Gem::Version
|
31
28
|
version: 3.0.9
|
32
29
|
- !ruby/object:Gem::Dependency
|
33
30
|
name: sqlite3-ruby
|
34
31
|
requirement: !ruby/object:Gem::Requirement
|
35
|
-
none: false
|
36
32
|
requirements:
|
37
33
|
- - ~>
|
38
34
|
- !ruby/object:Gem::Version
|
@@ -40,12 +36,39 @@ dependencies:
|
|
40
36
|
type: :development
|
41
37
|
prerelease: false
|
42
38
|
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
none: false
|
44
39
|
requirements:
|
45
40
|
- - ~>
|
46
41
|
- !ruby/object:Gem::Version
|
47
42
|
version: 1.3.1
|
48
|
-
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: rails
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ~>
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 3.0.20
|
50
|
+
type: :development
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ~>
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 3.0.20
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: mysql
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ~>
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: 2.8.1
|
64
|
+
type: :development
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ~>
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 2.8.1
|
71
|
+
description: "Add simple versioning to ActiveRecord models (TISS version).\n\nEach
|
49
72
|
model has a to-many model named mymodel_h which records all changes \n(including
|
50
73
|
destroys but not deletes) made to the model. This is the version\nused by http://tiss.tuwien.ac.at
|
51
74
|
and substantially differs from the original\nversion. If you want to use acts_as_versioned
|
@@ -89,30 +112,26 @@ files:
|
|
89
112
|
- test/versioned_test.rb
|
90
113
|
homepage: http://github.com/rtiss/rtiss_acts_as_versioned
|
91
114
|
licenses: []
|
115
|
+
metadata: {}
|
92
116
|
post_install_message:
|
93
117
|
rdoc_options:
|
94
118
|
- --charset=UTF-8
|
95
119
|
require_paths:
|
96
120
|
- lib
|
97
121
|
required_ruby_version: !ruby/object:Gem::Requirement
|
98
|
-
none: false
|
99
122
|
requirements:
|
100
|
-
- -
|
123
|
+
- - '>='
|
101
124
|
- !ruby/object:Gem::Version
|
102
125
|
version: '0'
|
103
|
-
segments:
|
104
|
-
- 0
|
105
|
-
hash: -3475898004561419684
|
106
126
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
|
-
none: false
|
108
127
|
requirements:
|
109
|
-
- -
|
128
|
+
- - '>='
|
110
129
|
- !ruby/object:Gem::Version
|
111
130
|
version: '0'
|
112
131
|
requirements: []
|
113
132
|
rubyforge_project: rtiss_acts_as_versioned
|
114
|
-
rubygems_version:
|
133
|
+
rubygems_version: 2.2.2
|
115
134
|
signing_key:
|
116
|
-
specification_version:
|
135
|
+
specification_version: 4
|
117
136
|
summary: Add simple versioning to ActiveRecord models (TISS version).
|
118
137
|
test_files: []
|