i18n-sequel_bitemporal 0.9.0 → 0.10.0
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/.travis.yml +8 -22
- data/Gemfile +0 -2
- data/Rakefile +1 -0
- data/ci/Gemfile.rails-4.0 +0 -2
- data/ci/Gemfile.rails-4.1 +0 -2
- data/ci/Gemfile.rails-4.2 +0 -2
- data/ci/{Gemfile.rails-3.2 → Gemfile.rails-5.0} +1 -3
- data/ci/Gemfile.rails-5.1 +21 -0
- data/ci/Gemfile.rails-5.2 +21 -0
- data/i18n-sequel_bitemporal.gemspec +2 -2
- data/lib/i18n/backend/sequel_bitemporal/translation.rb +1 -1
- data/lib/i18n/sequel_bitemporal/version.rb +1 -1
- data/test/test_helper.rb +2 -0
- data/test/test_setup.rb +0 -12
- metadata +10 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e9cf75ce1c5791eb1d10e893c199ff27381f624be920a90e7a37fd22ac167a15
|
4
|
+
data.tar.gz: fed3419f2f0e7009abffe45ccecf2b3302bbf51b5ae81efb026aa1f3ff196724
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad1735cc01a4701ea6aaeb8268638bfa2eb29f3ae4c9dab3261eed05283374c37d69edc6d6d16467332a9ebd6d84622edc528d951adb880711080cd4c8a60f51
|
7
|
+
data.tar.gz: dd67ca4ccd22c122e2af86b2049d23c13d11f92658aeb43bdf8cf68b3bb59148d1a515dfea28f754551dcd0c202d899a1472ed191bdbee66a9ce3f0197772cb9
|
data/.travis.yml
CHANGED
@@ -1,33 +1,19 @@
|
|
1
1
|
language: ruby
|
2
2
|
cache: bundler
|
3
3
|
sudo: false
|
4
|
+
before_script:
|
5
|
+
- psql -c 'create database i18n_sequel_bitemporal;' -U postgres
|
4
6
|
rvm:
|
5
|
-
-
|
6
|
-
- 2.
|
7
|
-
- 2.
|
8
|
-
- 2.2
|
9
|
-
- jruby-19mode
|
7
|
+
- 2.3.8
|
8
|
+
- 2.4.5
|
9
|
+
- 2.5.3
|
10
10
|
env:
|
11
11
|
- ADAPTER=sqlite3
|
12
12
|
- ADAPTER=postgres
|
13
13
|
gemfile:
|
14
|
-
- ci/Gemfile.rails-3.2
|
15
14
|
- ci/Gemfile.rails-4.0
|
16
15
|
- ci/Gemfile.rails-4.1
|
17
16
|
- ci/Gemfile.rails-4.2
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
env: ADAPTER=sqlite3
|
22
|
-
gemfile: ci/Gemfile.rails-3.2
|
23
|
-
- rvm: jruby-19mode
|
24
|
-
env: ADAPTER=sqlite3
|
25
|
-
gemfile: ci/Gemfile.rails-4.0
|
26
|
-
- rvm: jruby-19mode
|
27
|
-
env: ADAPTER=sqlite3
|
28
|
-
gemfile: ci/Gemfile.rails-4.1
|
29
|
-
- rvm: jruby-19mode
|
30
|
-
env: ADAPTER=sqlite3
|
31
|
-
gemfile: ci/Gemfile.rails-4.2
|
32
|
-
before_script:
|
33
|
-
- psql -c 'create database i18n_sequel_bitemporal;' -U postgres
|
17
|
+
- ci/Gemfile.rails-5.0
|
18
|
+
- ci/Gemfile.rails-5.1
|
19
|
+
- ci/Gemfile.rails-5.2
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
data/ci/Gemfile.rails-4.0
CHANGED
data/ci/Gemfile.rails-4.1
CHANGED
data/ci/Gemfile.rails-4.2
CHANGED
@@ -2,7 +2,7 @@ source "https://rubygems.org"
|
|
2
2
|
|
3
3
|
gemspec :path => "../"
|
4
4
|
|
5
|
-
gem 'railties', '~>
|
5
|
+
gem 'railties', '~> 5.0.0'
|
6
6
|
|
7
7
|
gem "test-unit"
|
8
8
|
gem "test_declarative"
|
@@ -12,12 +12,10 @@ gem "timecop"
|
|
12
12
|
|
13
13
|
platforms :ruby do
|
14
14
|
gem "pg"
|
15
|
-
gem "mysql"
|
16
15
|
gem "sqlite3"
|
17
16
|
end
|
18
17
|
|
19
18
|
platforms :jruby do
|
20
19
|
gem "jdbc-postgres"
|
21
|
-
gem "jdbc-mysql"
|
22
20
|
gem "jdbc-sqlite3"
|
23
21
|
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
gemspec :path => "../"
|
4
|
+
|
5
|
+
gem 'railties', '~> 5.1.0'
|
6
|
+
|
7
|
+
gem "test-unit"
|
8
|
+
gem "test_declarative"
|
9
|
+
gem "mocha"
|
10
|
+
gem "rake"
|
11
|
+
gem "timecop"
|
12
|
+
|
13
|
+
platforms :ruby do
|
14
|
+
gem "pg"
|
15
|
+
gem "sqlite3"
|
16
|
+
end
|
17
|
+
|
18
|
+
platforms :jruby do
|
19
|
+
gem "jdbc-postgres"
|
20
|
+
gem "jdbc-sqlite3"
|
21
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
gemspec :path => "../"
|
4
|
+
|
5
|
+
gem 'railties', '~> 5.2.0'
|
6
|
+
|
7
|
+
gem "test-unit"
|
8
|
+
gem "test_declarative"
|
9
|
+
gem "mocha"
|
10
|
+
gem "rake"
|
11
|
+
gem "timecop"
|
12
|
+
|
13
|
+
platforms :ruby do
|
14
|
+
gem "pg"
|
15
|
+
gem "sqlite3"
|
16
|
+
end
|
17
|
+
|
18
|
+
platforms :jruby do
|
19
|
+
gem "jdbc-postgres"
|
20
|
+
gem "jdbc-sqlite3"
|
21
|
+
end
|
@@ -19,6 +19,6 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
20
|
s.require_paths = ["lib"]
|
21
21
|
|
22
|
-
s.add_dependency "i18n", ">= 0.6", "< 0.
|
23
|
-
s.add_dependency "sequel_bitemporal", "
|
22
|
+
s.add_dependency "i18n", ">= 0.6", "< 0.9.0"
|
23
|
+
s.add_dependency "sequel_bitemporal", ">= 0.8.0"
|
24
24
|
end
|
@@ -133,7 +133,7 @@ module I18n
|
|
133
133
|
|
134
134
|
namespace = "#{keys.last}#{I18n::Backend::Flatten::FLATTEN_SEPARATOR}%"
|
135
135
|
set = eager_graph(:current_version).where(Sequel.|({:key => keys}, Sequel.like(:key, namespace)))
|
136
|
-
set = set.
|
136
|
+
set = set.exclude({Sequel.qualify(:translation_current_version, :id) => nil}) if with_current
|
137
137
|
set
|
138
138
|
end
|
139
139
|
|
data/test/test_helper.rb
CHANGED
data/test/test_setup.rb
CHANGED
@@ -1,19 +1,7 @@
|
|
1
|
-
$KCODE = "u" if RUBY_VERSION <= "1.9"
|
2
|
-
|
3
1
|
require "rubygems"
|
4
2
|
require "test/unit"
|
5
3
|
require "optparse"
|
6
4
|
|
7
|
-
# Do not load the i18n gem from libraries like active_support.
|
8
|
-
#
|
9
|
-
# This is required for testing against Rails 2.3 because active_support/vendor.rb#24 tries
|
10
|
-
# to load I18n using the gem method. Instead, we want to test the local library of course.
|
11
|
-
alias :gem_for_ruby_19 :gem # for 1.9. gives a super ugly seg fault otherwise
|
12
|
-
def gem(gem_name, *version_requirements)
|
13
|
-
puts("skipping loading the i18n gem ...") && return if gem_name =="i18n"
|
14
|
-
super(gem_name, *version_requirements)
|
15
|
-
end
|
16
|
-
|
17
5
|
module I18n
|
18
6
|
module Tests
|
19
7
|
class << self
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: i18n-sequel_bitemporal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Tron
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '0.6'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.
|
22
|
+
version: 0.9.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,19 +29,19 @@ dependencies:
|
|
29
29
|
version: '0.6'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.
|
32
|
+
version: 0.9.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: sequel_bitemporal
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "
|
37
|
+
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: 0.8.0
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- - "
|
44
|
+
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 0.8.0
|
47
47
|
description: I18n Bitemporal Sequel backend. Allows to store translations in a database
|
@@ -60,10 +60,12 @@ files:
|
|
60
60
|
- MIT-LICENSE
|
61
61
|
- README.textile
|
62
62
|
- Rakefile
|
63
|
-
- ci/Gemfile.rails-3.2
|
64
63
|
- ci/Gemfile.rails-4.0
|
65
64
|
- ci/Gemfile.rails-4.1
|
66
65
|
- ci/Gemfile.rails-4.2
|
66
|
+
- ci/Gemfile.rails-5.0
|
67
|
+
- ci/Gemfile.rails-5.1
|
68
|
+
- ci/Gemfile.rails-5.2
|
67
69
|
- i18n-sequel_bitemporal.gemspec
|
68
70
|
- lib/i18n/backend/sequel_bitemporal.rb
|
69
71
|
- lib/i18n/backend/sequel_bitemporal/missing.rb
|
@@ -97,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
99
|
version: '0'
|
98
100
|
requirements: []
|
99
101
|
rubyforge_project: "[none]"
|
100
|
-
rubygems_version: 2.
|
102
|
+
rubygems_version: 2.7.6
|
101
103
|
signing_key:
|
102
104
|
specification_version: 4
|
103
105
|
summary: I18n Bitemporal Sequel backend
|
@@ -109,4 +111,3 @@ test_files:
|
|
109
111
|
- test/sequel_test.rb
|
110
112
|
- test/test_helper.rb
|
111
113
|
- test/test_setup.rb
|
112
|
-
has_rdoc:
|