i18n-sequel_bitemporal 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 581d8e6637cdfe78ce17e618e8338b3b849db05b
4
+ data.tar.gz: 1b6bce5843e969132bd9e5b8c7155af2a37133af
5
+ SHA512:
6
+ metadata.gz: 0c3e9b1b34fb2261e908ce90d67f3ecfb0600c6009d02fbe6354b8db5f5a76b728df80394946c0b9bdbeb1cad3acb1f37b373f1ed1929f33488dadbb08b019eb
7
+ data.tar.gz: 82010d5d3ec381f95d967b4ac25dfb76462c999e3ad9a72dabe97aa95f052cb0d77c62093a51699b4da36037a6cdb0ec0265567db59e902b578518d7dcd8ab9c
data/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  *.gem
2
2
  .bundle
3
3
  Gemfile.lock
4
+ ci/Gemfile.lock
4
5
  pkg/*
@@ -1,8 +1,21 @@
1
1
  rvm:
2
- - 1.9.2
3
2
  - 1.9.3
3
+ - 2.0.0
4
+ - 2.1.0
5
+ - jruby-19mode
6
+ env:
7
+ - ADAPTER=sqlite3
8
+ - ADAPTER=postgres
4
9
  gemfile:
5
10
  - ci/Gemfile.rails-3.x
6
11
  - ci/Gemfile.rails-3.x-i18n-0.6
7
- notifications:
8
- disabled: true
12
+ matrix:
13
+ exclude:
14
+ - rvm: jruby-19mode
15
+ env: ADAPTER=sqlite3
16
+ gemfile: ci/Gemfile.rails-3.x
17
+ - rvm: jruby-19mode
18
+ env: ADAPTER=sqlite3
19
+ gemfile: ci/Gemfile.rails-3.x-i18n-0.6
20
+ before_script:
21
+ - psql -c 'create database i18n_sequel_bitemporal;' -U postgres
data/Gemfile CHANGED
@@ -1,4 +1,21 @@
1
- source "http://rubygems.org"
1
+ source "https://rubygems.org"
2
2
 
3
- # Specify your gem's dependencies in i18n-sequel.gemspec
3
+ # Specify your gem"s dependencies in i18n-sequel.gemspec
4
4
  gemspec
5
+
6
+ gem "test_declarative"
7
+ gem "mocha"
8
+ gem "rake"
9
+ gem "timecop"
10
+
11
+ platforms :ruby do
12
+ gem "pg"
13
+ gem "mysql"
14
+ gem "sqlite3"
15
+ end
16
+
17
+ platforms :jruby do
18
+ gem "jdbc-postgres"
19
+ gem "jdbc-mysql"
20
+ gem "jdbc-sqlite3"
21
+ end
@@ -1,6 +1,6 @@
1
1
  h1. I18n::Backend::SequelBitemporal
2
2
 
3
- This repository contains an "I18n":http://github.com/svenfuchs/i18n Sequel
3
+ This repository contains an "I18n":http://github.com/svenfuchs/i18n Sequel
4
4
  backend storing translations using a bitemporal approach. This allows you go back in time
5
5
  in your translations and schedule new translations to appears in the future without
6
6
  needing any cron task to run.
@@ -51,7 +51,7 @@ Your migration should look like this:
51
51
  TrueClass :is_proc, :null => false, :default => false
52
52
  end
53
53
  end
54
-
54
+
55
55
  def down
56
56
  drop_table :i18n_translation_versions
57
57
  drop_table :i18n_translations
@@ -95,10 +95,8 @@ h2. Runnning tests
95
95
 
96
96
  <pre>
97
97
  gem install bundler
98
- pushd ci
99
98
  BUNDLE_GEMFILE=ci/Gemfile.rails-3.x bundle
100
99
  BUNDLE_GEMFILE=ci/Gemfile.rails-3.x-i18n-0.6 bundle
101
- popd
102
100
  BUNDLE_GEMFILE=ci/Gemfile.rails-3.x rake
103
101
  BUNDLE_GEMFILE=ci/Gemfile.rails-3.x-i18n-0.6 rake
104
102
  </pre>
@@ -112,4 +110,4 @@ DEBUG=true BUNDLE_GEMFILE=ci/Gemfile.rails-3.x-i18n-0.6 rake
112
110
 
113
111
  h2. Maintainers
114
112
 
115
- * Jonathan Tron
113
+ * Jonathan Tron
data/Rakefile CHANGED
@@ -1,10 +1,10 @@
1
1
  require "bundler/gem_tasks"
2
2
 
3
- require 'rake/testtask'
3
+ require "rake/testtask"
4
4
 
5
5
  Rake::TestTask.new do |t|
6
- t.libs << 'lib'
7
- t.pattern = 'test/**/*_test.rb'
6
+ t.libs << "lib"
7
+ t.pattern = "test/**/*_test.rb"
8
8
  t.verbose = false
9
9
  end
10
10
 
@@ -1,10 +1,22 @@
1
- source :rubygems
1
+ source "https://rubygems.org"
2
2
 
3
- gem 'i18n', '~> 0.5.0'
3
+ gemspec :path => "../"
4
4
 
5
- gem 'sequel_bitemporal', '~> 0.4.0'
6
- gem 'sqlite3-ruby'
7
- gem 'mocha'
8
- gem 'test_declarative'
9
- gem 'rake'
10
- gem 'timecop'
5
+ gem "i18n", "~> 0.5.0"
6
+
7
+ gem "test_declarative"
8
+ gem "mocha"
9
+ gem "rake"
10
+ gem "timecop"
11
+
12
+ platforms :ruby do
13
+ gem "pg"
14
+ gem "mysql"
15
+ gem "sqlite3"
16
+ end
17
+
18
+ platforms :jruby do
19
+ gem "jdbc-postgres"
20
+ gem "jdbc-mysql"
21
+ gem "jdbc-sqlite3"
22
+ end
@@ -1,10 +1,22 @@
1
- source :rubygems
1
+ source "https://rubygems.org"
2
2
 
3
- gem 'i18n', '~> 0.6.0'
3
+ gemspec :path => "../"
4
4
 
5
- gem 'sequel_bitemporal', '~> 0.4.0'
6
- gem 'sqlite3-ruby'
7
- gem 'mocha'
8
- gem 'test_declarative'
9
- gem 'rake'
10
- gem 'timecop'
5
+ gem "i18n", "~> 0.6.0"
6
+
7
+ gem "test_declarative"
8
+ gem "mocha"
9
+ gem "rake"
10
+ gem "timecop"
11
+
12
+ platforms :ruby do
13
+ gem "pg"
14
+ gem "mysql"
15
+ gem "sqlite3"
16
+ end
17
+
18
+ platforms :jruby do
19
+ gem "jdbc-postgres"
20
+ gem "jdbc-mysql"
21
+ gem "jdbc-sqlite3"
22
+ end
@@ -19,12 +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.5', "< 0.7.0"
23
- s.add_dependency 'sequel_bitemporal', '~> 0.6.1'
24
-
25
- s.add_development_dependency "test_declarative"
26
- s.add_development_dependency "mocha"
27
- s.add_development_dependency "rake"
28
- s.add_development_dependency "sqlite3"
29
- s.add_development_dependency "timecop"
22
+ s.add_dependency "i18n", ">= 0.5", "< 0.7.0"
23
+ s.add_dependency "sequel_bitemporal", "~> 0.7.0"
30
24
  end
@@ -35,15 +35,21 @@ module I18n
35
35
  module Missing
36
36
  include Flatten
37
37
 
38
+ RESERVED_KEYS = if defined?(I18n::RESERVED_KEYS)
39
+ I18n::RESERVED_KEYS
40
+ else
41
+ I18n::Backend::Base::RESERVED_KEYS
42
+ end
43
+
38
44
  def store_default_translations(locale, key, options = {})
39
- count, scope, default, separator = options.values_at(:count, :scope, :default, :separator)
45
+ count, scope, separator = options.values_at(:count, :scope, :separator)
40
46
  separator ||= I18n.default_separator
41
47
  key = normalize_flat_keys(locale, key, scope, separator)
42
48
 
43
49
  if Translation.locale(locale).lookup(key).empty?
44
- interpolations = options.keys - I18n::RESERVED_KEYS
50
+ interpolations = options.keys - RESERVED_KEYS
45
51
  keys = count ? I18n.t('i18n.plural.keys', :locale => locale).map { |k| [key, k].join(FLATTEN_SEPARATOR) } : [key]
46
- keys.each { |key| store_default_translation(locale, key, interpolations) }
52
+ keys.each { |k| store_default_translation(locale, k, interpolations) }
47
53
  end
48
54
  end
49
55
 
@@ -70,4 +76,4 @@ module I18n
70
76
  end
71
77
  end
72
78
  end
73
- end
79
+ end
@@ -14,7 +14,7 @@ module I18n
14
14
  # String :key, :null => false
15
15
  # index [:locale, :key], :unique => true
16
16
  # end
17
- #
17
+ #
18
18
  # create_table :i18n_translation_versions do
19
19
  # primary_key :id
20
20
  # foreign_key :master_id, :i18n_translations, :on_delete => :cascade
@@ -71,7 +71,7 @@ module I18n
71
71
  def interpolations
72
72
  super || []
73
73
  end
74
-
74
+
75
75
  def interpolates?(key)
76
76
  self.interpolations.include?(key) if self.interpolations
77
77
  end
@@ -99,13 +99,13 @@ module I18n
99
99
  super(value)
100
100
  end
101
101
  end
102
-
102
+
103
103
  class Translation < ::Sequel::Model(:i18n_translations)
104
104
  extend Forwardable
105
105
  plugin :bitemporal, version_class: TranslationVersion
106
-
106
+
107
107
  delegate [:value, :interpolations, :interpolates?] => :pending_or_current_version
108
-
108
+
109
109
  def_dataset_method :locale do |locale|
110
110
  filter(:locale => locale.to_s)
111
111
  end
@@ -122,7 +122,7 @@ module I18n
122
122
  keys = Array(keys).map! { |key| key.to_s }
123
123
  eager_graph(:current_version).filter(:key => keys.last)
124
124
  end
125
-
125
+
126
126
  def_dataset_method :lookup_and_current do |with_current, keys, *separator|
127
127
  keys = Array(keys).map! { |key| key.to_s }
128
128
 
@@ -132,8 +132,8 @@ module I18n
132
132
  end
133
133
 
134
134
  namespace = "#{keys.last}#{I18n::Backend::Flatten::FLATTEN_SEPARATOR}%"
135
- set = eager_graph(:current_version).filter({:key => keys} | :key.like(namespace))
136
- set = set.filter({:translation_current_version__id => nil}.sql_negate) if with_current
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
137
137
  set
138
138
  end
139
139
 
@@ -1,3 +1,4 @@
1
+ require "sequel_bitemporal"
1
2
  require "i18n"
2
3
  require "i18n/sequel_bitemporal/version"
3
4
  require "i18n/backend/sequel_bitemporal"
@@ -1,5 +1,5 @@
1
1
  module I18n
2
2
  module SequelBitemporal
3
- VERSION = "0.6.1"
3
+ VERSION = "0.7.0"
4
4
  end
5
5
  end
@@ -2,11 +2,11 @@ require File.expand_path('../test_helper', __FILE__)
2
2
 
3
3
  class I18nSequelBitemporalApiTest < Test::Unit::TestCase
4
4
  def setup
5
- I18n::Backend::SequelBitemporal::Translation.delete
5
+ I18n::Backend::SequelBitemporal::Translation.dataset.delete
6
6
  I18n.backend = I18n::Backend::SequelBitemporal.new
7
7
  super
8
8
  end
9
-
9
+
10
10
  def self.can_store_procs?
11
11
  I18n::Backend::SequelBitemporal.included_modules.include?(I18n::Backend::SequelBitemporal::StoreProcs)
12
12
  end
@@ -18,12 +18,12 @@ class I18nSequelBitemporalApiTest < Test::Unit::TestCase
18
18
  include I18n::Tests::Lookup
19
19
  include I18n::Tests::Pluralization
20
20
  include I18n::Tests::Procs if can_store_procs?
21
-
21
+
22
22
  include I18n::Tests::Localization::Date
23
23
  include I18n::Tests::Localization::DateTime
24
24
  include I18n::Tests::Localization::Time
25
25
  include I18n::Tests::Localization::Procs if can_store_procs?
26
-
26
+
27
27
  test "make sure we use a Sequel backend" do
28
28
  assert_equal I18n::Backend::SequelBitemporal, I18n.backend.class
29
29
  end
@@ -8,12 +8,12 @@ class I18nSequelBitemporalMissingTest < Test::Unit::TestCase
8
8
  def setup
9
9
  I18n.backend.store_translations(:en, :bar => 'Bar', :i18n => { :plural => { :keys => [:zero, :one, :other] } })
10
10
  I18n.backend = I18n::Backend::Chain.new(Backend.new, I18n.backend)
11
- I18n::Backend::SequelBitemporal::Translation.delete
11
+ I18n::Backend::SequelBitemporal::Translation.dataset.delete
12
12
  end
13
13
 
14
14
  test "can persist interpolations" do
15
15
  translation = I18n::Backend::SequelBitemporal::Translation.new(:key => 'foo', :locale => :en)
16
- translation.attributes = {:value => 'bar', :interpolations => %w(count name)}
16
+ translation.attributes = {:value => 'bar', :interpolations => %w(count name)}
17
17
  translation.save
18
18
  assert translation.valid?
19
19
  end
@@ -2,18 +2,20 @@ require File.expand_path('../test_helper', __FILE__)
2
2
 
3
3
  class I18nBackendSequelBitemporalCacheTest < Test::Unit::TestCase
4
4
  def clear_all
5
- I18n::Backend::SequelBitemporal::Translation.delete
5
+ I18n::Backend::SequelBitemporal::Translation.dataset.delete
6
6
  end
7
7
 
8
8
  def setup
9
+ super
10
+ I18n::Backend::SequelBitemporal::Translation.unstub(:all_for_locale)
9
11
  I18n.backend = I18n::Backend::SequelBitemporal.new :preload_all => true
10
12
  store_translations(:en, :foo => { :bar => 'bar', :baz => 'baz' })
11
13
  store_translations(:fr, :foo => { :bar => 'bar', :baz => 'baz' })
12
14
  end
13
15
 
14
16
  def teardown
15
- clear_all
16
17
  super
18
+ clear_all
17
19
  end
18
20
 
19
21
  with_mocha do
@@ -2,17 +2,19 @@ require File.expand_path('../test_helper', __FILE__)
2
2
 
3
3
  class I18nBackendSequelBitemporalTest < Test::Unit::TestCase
4
4
  def clear_all
5
- I18n::Backend::SequelBitemporal::Translation.delete
5
+ I18n::Backend::SequelBitemporal::Translation.dataset.delete
6
6
  end
7
7
 
8
8
  def setup
9
+ super
10
+ I18n::Backend::SequelBitemporal::Translation.unstub(:available_locales)
9
11
  I18n.backend = I18n::Backend::SequelBitemporal.new
10
12
  store_translations(:en, :foo => { :bar => 'bar', :baz => 'baz' })
11
13
  end
12
14
 
13
15
  def teardown
14
- clear_all
15
16
  super
17
+ clear_all
16
18
  end
17
19
 
18
20
  test "store_translations does not allow ambiguous keys (1)" do
@@ -7,7 +7,7 @@ require 'bundler/setup'
7
7
  $:.unshift File.expand_path("../lib", File.dirname(__FILE__))
8
8
  require 'i18n/sequel_bitemporal'
9
9
  require 'i18n/tests'
10
- require 'mocha'
10
+ require 'mocha/test_unit'
11
11
  require 'test_declarative'
12
12
  require 'timecop'
13
13
  I18n::Tests.setup_sequel
@@ -1,8 +1,8 @@
1
- $KCODE = 'u' if RUBY_VERSION <= '1.9'
1
+ $KCODE = "u" if RUBY_VERSION <= "1.9"
2
2
 
3
- require 'rubygems'
4
- require 'test/unit'
5
- require 'optparse'
3
+ require "rubygems"
4
+ require "test/unit"
5
+ require "optparse"
6
6
 
7
7
  # Do not load the i18n gem from libraries like active_support.
8
8
  #
@@ -10,7 +10,7 @@ require 'optparse'
10
10
  # to load I18n using the gem method. Instead, we want to test the local library of course.
11
11
  alias :gem_for_ruby_19 :gem # for 1.9. gives a super ugly seg fault otherwise
12
12
  def gem(gem_name, *version_requirements)
13
- puts("skipping loading the i18n gem ...") && return if gem_name =='i18n'
13
+ puts("skipping loading the i18n gem ...") && return if gem_name =="i18n"
14
14
  super(gem_name, *version_requirements)
15
15
  end
16
16
 
@@ -18,43 +18,30 @@ module I18n
18
18
  module Tests
19
19
  class << self
20
20
  def options
21
- @options ||= { :with => [], :adapter => 'sqlite3' }
21
+ @options ||= { :with => [], :adapter => "sqlite3" }
22
22
  end
23
23
 
24
24
  def parse_options!
25
25
  OptionParser.new do |o|
26
- o.on('-w', '--with DEPENDENCIES', 'Define dependencies') do |dep|
27
- options[:with] = dep.split(',').map { |group| group.to_sym }
26
+ o.on("-w", "--with DEPENDENCIES", "Define dependencies") do |dep|
27
+ options[:with] = dep.split(",").map { |group| group.to_sym }
28
28
  end
29
29
  end.parse!
30
-
31
- options[:with].each do |dep|
32
- case dep
33
- when :sqlite3, :mysql, :postgres
34
- @options[:adapter] = dep
35
- when :r23, :'rails-2.3.x'
36
- ENV['BUNDLE_GEMFILE'] = 'ci/Gemfile.rails-2.3.x'
37
- when :r3, :'rails-3.0.x'
38
- ENV['BUNDLE_GEMFILE'] = 'ci/Gemfile.rails-3.x'
39
- when :'no-rails'
40
- ENV['BUNDLE_GEMFILE'] = 'ci/Gemfile.no-rails'
41
- end
42
- end
43
30
 
44
- ENV['BUNDLE_GEMFILE'] ||= 'ci/Gemfile.all'
31
+ options[:adapter] = ENV["ADAPTER"] || "postgres"
45
32
  end
46
33
 
47
34
  def setup_sequel
48
35
  begin
49
- require 'sequel'
36
+ require "sequel"
50
37
  ::Sequel::Model.db
51
38
  true
52
39
  rescue LoadError => e
53
40
  puts "can't use Sequel backend because: #{e.message}"
54
41
  rescue ::Sequel::Error
55
42
  connect_sequel
56
- require 'i18n/backend/sequel_bitemporal'
57
- require 'i18n/backend/sequel_bitemporal/store_procs'
43
+ require "i18n/backend/sequel_bitemporal"
44
+ require "i18n/backend/sequel_bitemporal/store_procs"
58
45
  true
59
46
  end
60
47
  end
@@ -62,6 +49,10 @@ module I18n
62
49
  def connect_sequel
63
50
  connect_adapter
64
51
  ::Sequel.extension :migration
52
+ opts = {}
53
+ opts[:cascade] = true if options[:adapter].to_sym==:postgres
54
+ ::Sequel::Model.db.drop_table? :i18n_translations, opts
55
+ ::Sequel::Model.db.drop_table? :i18n_translation_versions, opts
65
56
  ::Sequel.migration do
66
57
  change do
67
58
  create_table :i18n_translations do
@@ -94,14 +85,28 @@ module I18n
94
85
  end
95
86
  case options[:adapter].to_sym
96
87
  when :sqlite3
97
- ::Sequel.sqlite(":memory:", :logger => logger)
88
+ if (defined?(RUBY_ENGINE) && RUBY_ENGINE=="jruby") || defined?(JRUBY_VERSION)
89
+ ::Sequel.connect("jdbc:sqlite::memory:", :logger => logger)
90
+ else
91
+ ::Sequel.sqlite(":memory:", :logger => logger)
92
+ end
93
+ when :postgres
94
+ if (defined?(RUBY_ENGINE) && RUBY_ENGINE=="jruby") || defined?(JRUBY_VERSION)
95
+ ::Sequel.connect("jdbc:postgresql://localhost/i18n_sequel_bitemporal", :logger => logger)
96
+ else
97
+ ::Sequel.postgres("i18n_sequel_bitemporal", :logger => logger)
98
+ end
98
99
  when :mysql
99
100
  # CREATE DATABASE i18n_unittest;
100
- # CREATE USER 'i18n'@'localhost' IDENTIFIED BY '';
101
- # GRANT ALL PRIVILEGES ON i18n_unittest.* to 'i18n'@'localhost';
102
- ::Sequel.mysql(:database => "i18n_unittest", :user => "i18n", :password => "", :host => "localhost", :logger => logger)
101
+ # CREATE USER "i18n"@"localhost" IDENTIFIED BY "";
102
+ # GRANT ALL PRIVILEGES ON i18n_unittest.* to "i18n"@"localhost";
103
+ if (defined?(RUBY_ENGINE) && RUBY_ENGINE=="jruby") || defined?(JRUBY_VERSION)
104
+ ::Sequel.connect("jdbc:mysql://localhost/i18n_sequel_bitemporal", :logger => logger)
105
+ else
106
+ ::Sequel.mysql(:database => "i18n_unittest", :user => "i18n", :password => "", :host => "localhost", :logger => logger)
107
+ end
103
108
  end
104
109
  end
105
110
  end
106
111
  end
107
- end
112
+ end
metadata CHANGED
@@ -1,134 +1,49 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n-sequel_bitemporal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
5
- prerelease:
4
+ version: 0.7.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jonathan Tron
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-01-24 00:00:00.000000000 Z
11
+ date: 2014-02-04 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: i18n
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0.5'
22
- - - <
20
+ - - "<"
23
21
  - !ruby/object:Gem::Version
24
22
  version: 0.7.0
25
23
  type: :runtime
26
24
  prerelease: false
27
25
  version_requirements: !ruby/object:Gem::Requirement
28
- none: false
29
26
  requirements:
30
- - - ! '>='
27
+ - - ">="
31
28
  - !ruby/object:Gem::Version
32
29
  version: '0.5'
33
- - - <
30
+ - - "<"
34
31
  - !ruby/object:Gem::Version
35
32
  version: 0.7.0
36
33
  - !ruby/object:Gem::Dependency
37
34
  name: sequel_bitemporal
38
35
  requirement: !ruby/object:Gem::Requirement
39
- none: false
40
36
  requirements:
41
- - - ~>
37
+ - - "~>"
42
38
  - !ruby/object:Gem::Version
43
- version: 0.6.1
39
+ version: 0.7.0
44
40
  type: :runtime
45
41
  prerelease: false
46
42
  version_requirements: !ruby/object:Gem::Requirement
47
- none: false
48
- requirements:
49
- - - ~>
50
- - !ruby/object:Gem::Version
51
- version: 0.6.1
52
- - !ruby/object:Gem::Dependency
53
- name: test_declarative
54
- requirement: !ruby/object:Gem::Requirement
55
- none: false
56
- requirements:
57
- - - ! '>='
58
- - !ruby/object:Gem::Version
59
- version: '0'
60
- type: :development
61
- prerelease: false
62
- version_requirements: !ruby/object:Gem::Requirement
63
- none: false
64
- requirements:
65
- - - ! '>='
66
- - !ruby/object:Gem::Version
67
- version: '0'
68
- - !ruby/object:Gem::Dependency
69
- name: mocha
70
- requirement: !ruby/object:Gem::Requirement
71
- none: false
72
- requirements:
73
- - - ! '>='
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- none: false
80
- requirements:
81
- - - ! '>='
82
- - !ruby/object:Gem::Version
83
- version: '0'
84
- - !ruby/object:Gem::Dependency
85
- name: rake
86
- requirement: !ruby/object:Gem::Requirement
87
- none: false
88
- requirements:
89
- - - ! '>='
90
- - !ruby/object:Gem::Version
91
- version: '0'
92
- type: :development
93
- prerelease: false
94
- version_requirements: !ruby/object:Gem::Requirement
95
- none: false
96
43
  requirements:
97
- - - ! '>='
44
+ - - "~>"
98
45
  - !ruby/object:Gem::Version
99
- version: '0'
100
- - !ruby/object:Gem::Dependency
101
- name: sqlite3
102
- requirement: !ruby/object:Gem::Requirement
103
- none: false
104
- requirements:
105
- - - ! '>='
106
- - !ruby/object:Gem::Version
107
- version: '0'
108
- type: :development
109
- prerelease: false
110
- version_requirements: !ruby/object:Gem::Requirement
111
- none: false
112
- requirements:
113
- - - ! '>='
114
- - !ruby/object:Gem::Version
115
- version: '0'
116
- - !ruby/object:Gem::Dependency
117
- name: timecop
118
- requirement: !ruby/object:Gem::Requirement
119
- none: false
120
- requirements:
121
- - - ! '>='
122
- - !ruby/object:Gem::Version
123
- version: '0'
124
- type: :development
125
- prerelease: false
126
- version_requirements: !ruby/object:Gem::Requirement
127
- none: false
128
- requirements:
129
- - - ! '>='
130
- - !ruby/object:Gem::Version
131
- version: '0'
46
+ version: 0.7.0
132
47
  description: I18n Bitemporal Sequel backend. Allows to store translations in a database
133
48
  using Sequel using a bitemporal approach, e.g. for providing a web-interface for
134
49
  managing translations.
@@ -138,16 +53,14 @@ executables: []
138
53
  extensions: []
139
54
  extra_rdoc_files: []
140
55
  files:
141
- - .gitignore
142
- - .travis.yml
56
+ - ".gitignore"
57
+ - ".travis.yml"
143
58
  - Gemfile
144
59
  - MIT-LICENSE
145
60
  - README.textile
146
61
  - Rakefile
147
62
  - ci/Gemfile.rails-3.x
148
63
  - ci/Gemfile.rails-3.x-i18n-0.6
149
- - ci/Gemfile.rails-3.x-i18n-0.6.lock
150
- - ci/Gemfile.rails-3.x.lock
151
64
  - i18n-sequel_bitemporal.gemspec
152
65
  - lib/i18n/backend/sequel_bitemporal.rb
153
66
  - lib/i18n/backend/sequel_bitemporal/missing.rb
@@ -164,33 +77,26 @@ files:
164
77
  - test/test_setup.rb
165
78
  homepage: http://github.com/TalentBox/i18n-sequel_bitemporal
166
79
  licenses: []
80
+ metadata: {}
167
81
  post_install_message:
168
82
  rdoc_options: []
169
83
  require_paths:
170
84
  - lib
171
85
  required_ruby_version: !ruby/object:Gem::Requirement
172
- none: false
173
86
  requirements:
174
- - - ! '>='
87
+ - - ">="
175
88
  - !ruby/object:Gem::Version
176
89
  version: '0'
177
- segments:
178
- - 0
179
- hash: 4227525195841819409
180
90
  required_rubygems_version: !ruby/object:Gem::Requirement
181
- none: false
182
91
  requirements:
183
- - - ! '>='
92
+ - - ">="
184
93
  - !ruby/object:Gem::Version
185
94
  version: '0'
186
- segments:
187
- - 0
188
- hash: 4227525195841819409
189
95
  requirements: []
190
- rubyforge_project: ! '[none]'
191
- rubygems_version: 1.8.24
96
+ rubyforge_project: "[none]"
97
+ rubygems_version: 2.2.1
192
98
  signing_key:
193
- specification_version: 3
99
+ specification_version: 4
194
100
  summary: I18n Bitemporal Sequel backend
195
101
  test_files:
196
102
  - test/all.rb
@@ -1,28 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- i18n (0.6.0)
5
- metaclass (0.0.1)
6
- mocha (0.11.3)
7
- metaclass (~> 0.0.1)
8
- rake (0.9.2.2)
9
- sequel (3.30.0)
10
- sequel_bitemporal (0.4.9)
11
- sequel (~> 3.30.0)
12
- sqlite3 (1.3.6)
13
- sqlite3-ruby (1.3.3)
14
- sqlite3 (>= 1.3.3)
15
- test_declarative (0.0.5)
16
- timecop (0.3.5)
17
-
18
- PLATFORMS
19
- ruby
20
-
21
- DEPENDENCIES
22
- i18n (~> 0.6.0)
23
- mocha
24
- rake
25
- sequel_bitemporal (~> 0.4.0)
26
- sqlite3-ruby
27
- test_declarative
28
- timecop
@@ -1,28 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- i18n (0.5.0)
5
- metaclass (0.0.1)
6
- mocha (0.11.3)
7
- metaclass (~> 0.0.1)
8
- rake (0.9.2.2)
9
- sequel (3.30.0)
10
- sequel_bitemporal (0.4.9)
11
- sequel (~> 3.30.0)
12
- sqlite3 (1.3.6)
13
- sqlite3-ruby (1.3.3)
14
- sqlite3 (>= 1.3.3)
15
- test_declarative (0.0.5)
16
- timecop (0.3.5)
17
-
18
- PLATFORMS
19
- ruby
20
-
21
- DEPENDENCIES
22
- i18n (~> 0.5.0)
23
- mocha
24
- rake
25
- sequel_bitemporal (~> 0.4.0)
26
- sqlite3-ruby
27
- test_declarative
28
- timecop