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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: bd33458823a537773be7030596348d77748afa26
4
- data.tar.gz: 2cd8bfe9ca96357fb7cc58bdef0e7ec6a6ce10df
2
+ SHA256:
3
+ metadata.gz: e9cf75ce1c5791eb1d10e893c199ff27381f624be920a90e7a37fd22ac167a15
4
+ data.tar.gz: fed3419f2f0e7009abffe45ccecf2b3302bbf51b5ae81efb026aa1f3ff196724
5
5
  SHA512:
6
- metadata.gz: e4ac6a80844e7eb02fe26726035bb9969806b8a12abd80d46c75307f7666a20b68e820c388751c732045754477d89acd02633bfb7baa3153629721584edc1b6b
7
- data.tar.gz: 800e91ef1b16110e16509541586e56eb5bff5b2c612c3a24ba34db1984740d2d80b6552e5bb6301ec1beba56239cbba3ca2a64922f65822f61dd7d354ac63144
6
+ metadata.gz: ad1735cc01a4701ea6aaeb8268638bfa2eb29f3ae4c9dab3261eed05283374c37d69edc6d6d16467332a9ebd6d84622edc528d951adb880711080cd4c8a60f51
7
+ data.tar.gz: dd67ca4ccd22c122e2af86b2049d23c13d11f92658aeb43bdf8cf68b3bb59148d1a515dfea28f754551dcd0c202d899a1472ed191bdbee66a9ce3f0197772cb9
@@ -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
- - 1.9.3
6
- - 2.0
7
- - 2.1
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
- matrix:
19
- exclude:
20
- - rvm: jruby-19mode
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
@@ -11,12 +11,10 @@ gem "timecop"
11
11
 
12
12
  platforms :ruby do
13
13
  gem "pg"
14
- gem "mysql"
15
14
  gem "sqlite3"
16
15
  end
17
16
 
18
17
  platforms :jruby do
19
18
  gem "jdbc-postgres"
20
- gem "jdbc-mysql"
21
19
  gem "jdbc-sqlite3"
22
20
  end
data/Rakefile CHANGED
@@ -6,6 +6,7 @@ Rake::TestTask.new do |t|
6
6
  t.libs << "lib"
7
7
  t.pattern = "test/**/*_test.rb"
8
8
  t.verbose = false
9
+ t.warning = false
9
10
  end
10
11
 
11
12
  task :default => :test
@@ -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
@@ -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
@@ -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
@@ -2,7 +2,7 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec :path => "../"
4
4
 
5
- gem 'railties', '~> 3.2.0'
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.8.0"
23
- s.add_dependency "sequel_bitemporal", "~> 0.8.0"
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.exclude_where({:translation_current_version__id => nil}) if with_current
136
+ set = set.exclude({Sequel.qualify(:translation_current_version, :id) => nil}) if with_current
137
137
  set
138
138
  end
139
139
 
@@ -1,5 +1,5 @@
1
1
  module I18n
2
2
  module SequelBitemporal
3
- VERSION = "0.9.0"
3
+ VERSION = "0.10.0"
4
4
  end
5
5
  end
@@ -12,6 +12,8 @@ require 'test_declarative'
12
12
  require 'timecop'
13
13
  I18n::Tests.setup_sequel
14
14
 
15
+ Sequel::Deprecation.output = false
16
+
15
17
  class I18nBitemporalTest < Test::Unit::TestCase
16
18
  def self.with_mocha
17
19
  yield if Object.respond_to?(:expects)
@@ -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.9.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: 2015-02-12 00:00:00.000000000 Z
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.8.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.8.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.4.5
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: