globalize-versioning 0.2.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +2 -17
- data/Gemfile.lock +38 -37
- data/lib/globalize/versioning.rb +4 -1
- data/lib/globalize/versioning/instance_methods.rb +9 -0
- data/lib/globalize/versioning/paper_trail.rb +4 -2
- data/lib/globalize/versioning/version.rb +3 -1
- metadata +18 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8151cd9c9c6e670eb4a2f94cbec7035356f6a13fd195cd45f818ad8ff4454fbe
|
4
|
+
data.tar.gz: e9f6622524416a5c1f656769f461b165036fd3ceecdb2649fe5dc75a5df014e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4e84120120c1bf06c0d3a33ffc2709f8cb888bd25f9f0c03db0edadb0b6ab83c0bf7eeff851036fe220fd7a3a4812bfdc97e4d08b1961bdfb189a994cde2408
|
7
|
+
data.tar.gz: 71c230be02191be18d5876c9696587dd23bba6a2f96d4355f97ce78cbc209c4eea1c6f426ff8ed92f1f08f300686c661707e5df0703aff6e44edbfc3c874b07c
|
data/Gemfile
CHANGED
@@ -1,20 +1,5 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
3
|
gemspec
|
4
|
-
|
5
|
-
|
6
|
-
gem 'activerecord', '~> 3.2.0'
|
7
|
-
gem 'activemodel', '~> 3.2.0'
|
8
|
-
gem 'globalize', '~> 3.0.4'
|
9
|
-
elsif ENV['RAILS'] == "4.0"
|
10
|
-
gem 'activerecord', '~> 4.0.0'
|
11
|
-
gem 'activemodel', '~> 4.0.0'
|
12
|
-
gem 'globalize', '~> 4.0'
|
13
|
-
elsif ENV['RAILS'] == "4.1"
|
14
|
-
gem 'activerecord', '~> 4.1.0'
|
15
|
-
gem 'activemodel', '~> 4.1.0'
|
16
|
-
gem 'globalize', '~> 4.0'
|
17
|
-
else # Rails 4.2
|
18
|
-
gem 'globalize', '~> 5.0'
|
19
|
-
gem 'paper_trail', '4.0.0.beta2'
|
20
|
-
end
|
4
|
+
gem 'globalize', '~> 5.1'
|
5
|
+
gem 'paper_trail', '~> 10.3.1'
|
data/Gemfile.lock
CHANGED
@@ -1,60 +1,61 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
globalize-versioning (0.
|
5
|
-
activemodel (>=
|
6
|
-
activerecord (>=
|
7
|
-
globalize (>=
|
8
|
-
paper_trail (>=
|
4
|
+
globalize-versioning (0.4.0)
|
5
|
+
activemodel (>= 4.2.0, < 6.1)
|
6
|
+
activerecord (>= 4.2.0, < 6.1)
|
7
|
+
globalize (>= 5.1.0, < 6)
|
8
|
+
paper_trail (>= 8, < 12)
|
9
9
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
activemodel (
|
14
|
-
activesupport (=
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
i18n (~> 0.7)
|
22
|
-
json (~> 1.7, >= 1.7.7)
|
13
|
+
activemodel (6.0.0)
|
14
|
+
activesupport (= 6.0.0)
|
15
|
+
activerecord (6.0.0)
|
16
|
+
activemodel (= 6.0.0)
|
17
|
+
activesupport (= 6.0.0)
|
18
|
+
activesupport (6.0.0)
|
19
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
20
|
+
i18n (>= 0.7, < 2)
|
23
21
|
minitest (~> 5.1)
|
24
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
25
22
|
tzinfo (~> 1.1)
|
26
|
-
|
27
|
-
|
28
|
-
database_cleaner (1.
|
29
|
-
globalize (5.0
|
30
|
-
activemodel (>= 4.2
|
31
|
-
activerecord (>= 4.2
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
23
|
+
zeitwerk (~> 2.1, >= 2.1.8)
|
24
|
+
concurrent-ruby (1.1.5)
|
25
|
+
database_cleaner (1.7.0)
|
26
|
+
globalize (5.3.0)
|
27
|
+
activemodel (>= 4.2, < 6.1)
|
28
|
+
activerecord (>= 4.2, < 6.1)
|
29
|
+
request_store (~> 1.0)
|
30
|
+
i18n (1.6.0)
|
31
|
+
concurrent-ruby (~> 1.0)
|
32
|
+
minitest (5.11.3)
|
33
|
+
paper_trail (10.3.1)
|
34
|
+
activerecord (>= 4.2)
|
35
|
+
request_store (~> 1.1)
|
36
|
+
rack (2.0.7)
|
37
|
+
rake (12.3.3)
|
38
|
+
rdoc (6.2.0)
|
39
|
+
request_store (1.4.1)
|
40
|
+
rack (>= 1.4)
|
41
|
+
sqlite3 (1.4.1)
|
42
|
+
thread_safe (0.3.6)
|
43
|
+
tzinfo (1.2.5)
|
44
44
|
thread_safe (~> 0.1)
|
45
|
+
zeitwerk (2.1.10)
|
45
46
|
|
46
47
|
PLATFORMS
|
47
48
|
ruby
|
48
49
|
|
49
50
|
DEPENDENCIES
|
50
51
|
database_cleaner (>= 1.2.0)
|
51
|
-
globalize (~> 5.
|
52
|
+
globalize (~> 5.1)
|
52
53
|
globalize-versioning!
|
53
54
|
minitest
|
54
|
-
paper_trail (
|
55
|
+
paper_trail (~> 10.3.1)
|
55
56
|
rake
|
56
57
|
rdoc
|
57
58
|
sqlite3
|
58
59
|
|
59
60
|
BUNDLED WITH
|
60
|
-
|
61
|
+
2.0.2
|
data/lib/globalize/versioning.rb
CHANGED
@@ -2,6 +2,7 @@ require 'globalize'
|
|
2
2
|
|
3
3
|
module Globalize::Versioning
|
4
4
|
autoload :PaperTrail, 'globalize/versioning/paper_trail'
|
5
|
+
autoload :InstanceMethods, 'globalize/versioning/instance_methods'
|
5
6
|
end
|
6
7
|
|
7
8
|
Globalize::ActiveRecord::ActMacro.module_eval do
|
@@ -9,6 +10,7 @@ Globalize::ActiveRecord::ActMacro.module_eval do
|
|
9
10
|
setup_translates_without_versioning!(options)
|
10
11
|
|
11
12
|
if options[:versioning]
|
13
|
+
include Globalize::Versioning::InstanceMethods
|
12
14
|
|
13
15
|
# hard-coded for now
|
14
16
|
class_attribute :versioning_gem, :instance_accessor => false
|
@@ -23,5 +25,6 @@ Globalize::ActiveRecord::ActMacro.module_eval do
|
|
23
25
|
end
|
24
26
|
end
|
25
27
|
|
26
|
-
|
28
|
+
alias_method :setup_translates_without_versioning!, :setup_translates!
|
29
|
+
alias_method :setup_translates!, :setup_translates_with_versioning!
|
27
30
|
end
|
@@ -18,7 +18,8 @@ ActiveRecord::Base.class_eval do
|
|
18
18
|
has_paper_trail_without_globalize(*args)
|
19
19
|
include Globalize::Versioning::PaperTrail
|
20
20
|
end
|
21
|
-
|
21
|
+
alias_method :has_paper_trail_without_globalize, :has_paper_trail
|
22
|
+
alias_method :has_paper_trail, :has_paper_trail_with_globalize
|
22
23
|
end
|
23
24
|
end
|
24
25
|
|
@@ -38,5 +39,6 @@ version_class.class_eval do
|
|
38
39
|
def sibling_versions_with_locales
|
39
40
|
sibling_versions_without_locales.for_this_locale
|
40
41
|
end
|
41
|
-
|
42
|
+
alias_method :sibling_versions_without_locales, :sibling_versions
|
43
|
+
alias_method :sibling_versions, :sibling_versions_with_locales
|
42
44
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: globalize-versioning
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philip Arndt
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-09-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -17,47 +17,47 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: 4.2.0
|
21
21
|
- - "<"
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: '
|
23
|
+
version: '6.1'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
27
27
|
requirements:
|
28
28
|
- - ">="
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
version:
|
30
|
+
version: 4.2.0
|
31
31
|
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '6.1'
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: activemodel
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 4.2.0
|
41
41
|
- - "<"
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: '
|
43
|
+
version: '6.1'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
46
|
version_requirements: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
48
|
- - ">="
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version:
|
50
|
+
version: 4.2.0
|
51
51
|
- - "<"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
53
|
+
version: '6.1'
|
54
54
|
- !ruby/object:Gem::Dependency
|
55
55
|
name: globalize
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
60
|
+
version: 5.1.0
|
61
61
|
- - "<"
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: '6'
|
@@ -67,7 +67,7 @@ dependencies:
|
|
67
67
|
requirements:
|
68
68
|
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version:
|
70
|
+
version: 5.1.0
|
71
71
|
- - "<"
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '6'
|
@@ -77,20 +77,20 @@ dependencies:
|
|
77
77
|
requirements:
|
78
78
|
- - ">="
|
79
79
|
- !ruby/object:Gem::Version
|
80
|
-
version:
|
80
|
+
version: '8'
|
81
81
|
- - "<"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '
|
83
|
+
version: '12'
|
84
84
|
type: :runtime
|
85
85
|
prerelease: false
|
86
86
|
version_requirements: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
88
|
- - ">="
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version:
|
90
|
+
version: '8'
|
91
91
|
- - "<"
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version: '
|
93
|
+
version: '12'
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
95
|
name: database_cleaner
|
96
96
|
requirement: !ruby/object:Gem::Requirement
|
@@ -174,6 +174,7 @@ files:
|
|
174
174
|
- Rakefile
|
175
175
|
- lib/globalize-versioning.rb
|
176
176
|
- lib/globalize/versioning.rb
|
177
|
+
- lib/globalize/versioning/instance_methods.rb
|
177
178
|
- lib/globalize/versioning/paper_trail.rb
|
178
179
|
- lib/globalize/versioning/version.rb
|
179
180
|
homepage: http://github.com/globalize/globalize-versioning
|
@@ -195,8 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
195
196
|
- !ruby/object:Gem::Version
|
196
197
|
version: '0'
|
197
198
|
requirements: []
|
198
|
-
|
199
|
-
rubygems_version: 2.5.1
|
199
|
+
rubygems_version: 3.0.3
|
200
200
|
signing_key:
|
201
201
|
specification_version: 4
|
202
202
|
summary: Adapter for using versioning gems with Globalize
|