i18n-sequel_bitemporal 0.10.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e9cf75ce1c5791eb1d10e893c199ff27381f624be920a90e7a37fd22ac167a15
4
- data.tar.gz: fed3419f2f0e7009abffe45ccecf2b3302bbf51b5ae81efb026aa1f3ff196724
3
+ metadata.gz: f731e3323b34e7a0253dee70fbd08d2dd8cff9b3589347908663d8905840baff
4
+ data.tar.gz: d42a2810825195aec26371edd59724e1058b994c8c8215f56cd9b5595272072a
5
5
  SHA512:
6
- metadata.gz: ad1735cc01a4701ea6aaeb8268638bfa2eb29f3ae4c9dab3261eed05283374c37d69edc6d6d16467332a9ebd6d84622edc528d951adb880711080cd4c8a60f51
7
- data.tar.gz: dd67ca4ccd22c122e2af86b2049d23c13d11f92658aeb43bdf8cf68b3bb59148d1a515dfea28f754551dcd0c202d899a1472ed191bdbee66a9ce3f0197772cb9
6
+ metadata.gz: da5c601442f074c486ff12ddae35576a73bdc33ad269b9a1463360d404dbce1d8843215db794e079046b8b85d8571a376c2a57ad25f966b554e9a43853ac783d
7
+ data.tar.gz: 4467d7ffa4f04ada44ac4df07906ae17c2ae2e49b4fbd6714d4910503a456be800a2f6918b769e75b84511030203ab7e3ef2db508edf5de9c3b9e4c49af0c465
@@ -1 +1 @@
1
- 2.1.2
1
+ 2.5.1
@@ -11,9 +11,6 @@ env:
11
11
  - ADAPTER=sqlite3
12
12
  - ADAPTER=postgres
13
13
  gemfile:
14
- - ci/Gemfile.rails-4.0
15
- - ci/Gemfile.rails-4.1
16
- - ci/Gemfile.rails-4.2
17
14
  - ci/Gemfile.rails-5.0
18
15
  - ci/Gemfile.rails-5.1
19
16
  - ci/Gemfile.rails-5.2
@@ -1,36 +1,41 @@
1
- !https://travis-ci.org/TalentBox/i18n-sequel_bitemporal.svg?branch=master!:https://travis-ci.org/TalentBox/i18n-sequel_bitemporal
1
+ [![Build Status](https://travis-ci.org/TalentBox/i18n-sequel_bitemporal.svg?branch=master)](https://travis-ci.org/TalentBox/i18n-sequel_bitemporal)
2
2
 
3
- h1. I18n::Backend::SequelBitemporal
3
+ # I18n::Backend::SequelBitemporal
4
4
 
5
- This repository contains an "I18n":http://github.com/svenfuchs/i18n Sequel
6
- backend storing translations using a bitemporal approach. This allows you go back in time
7
- in your translations and schedule new translations to appears in the future without
5
+ This repository contains an [I18n](http://github.com/svenfuchs/i18n)
6
+ Sequel
7
+ backend storing translations using a bitemporal approach. This allows
8
+ you go back in time
9
+ in your translations and schedule new translations to appears in the
10
+ future without
8
11
  needing any cron task to run.
9
12
 
10
- Most of the code is a port of the "ActiveRecord backend":http://github.com/svenfuchs/i18n-activerecord from SvenFuchs.
13
+ Most of the code is a port of the [ActiveRecord
14
+ backend](http://github.com/svenfuchs/i18n-activerecord) from SvenFuchs.
11
15
 
12
- It's compatible with both I18n ~> 0.5.0 (Rails 3.0.x) and ~> 0.6.0 (Rails 3.1.x)
16
+ Its compatible with I18n \>= 1.0.0 (Rails 5.x)
13
17
 
14
- h2. Installation
18
+ ## Installation
15
19
 
16
20
  For Bundler put the following in your Gemfile:
17
21
 
18
- <pre>
22
+ ```
19
23
  gem 'i18n-sequel_bitemporal', :require => 'i18n/sequel_bitemporal'
20
- </pre>
24
+ ```
21
25
 
22
- or to track master's HEAD:
26
+ or to track masters HEAD:
23
27
 
24
- <pre>
28
+ ```
25
29
  gem 'i18n-sequel_bitemporal',
26
30
  :github => 'TalentBox/i18n-sequel_bitemporal',
27
31
  :require => 'i18n/sequel_bitemporal'
28
- </pre>
32
+ ```
29
33
 
30
- Next create a sequel migration with the Rails Generator (if you're using rails-sequel).
34
+ Next create a sequel migration with the Rails Generator (if youre using
35
+ rails-sequel).
31
36
  Your migration should look like this:
32
37
 
33
- <pre>
38
+ ```
34
39
  class CreateI18nTranslationsMigration < Sequel::Migration
35
40
 
36
41
  def up
@@ -60,24 +65,27 @@ Your migration should look like this:
60
65
  end
61
66
 
62
67
  end
63
- </pre>
68
+ ```
64
69
 
65
- With these translation tables you will be able to manage your translation, and add new translations or languages.
70
+ With these translation tables you will be able to manage your
71
+ translation, and add new translations or languages.
66
72
 
67
- To load @I18n::Backend::SequelBitemporal@ into your Rails application, create a new file in *config/initializers* named *locale.rb*.
73
+ To load `I18n::Backend::SequelBitemporal` into your Rails application,
74
+ create a new file in **config/initializers** named **locale.rb**.
68
75
 
69
76
  A simple configuration for your locale.rb could look like this:
70
77
 
71
- <pre>
78
+ ```
72
79
  require 'i18n/backend/sequel_bitemporal'
73
80
  I18n.backend = I18n::Backend::SequelBitemporal.new
74
- </pre>
81
+ ```
75
82
 
76
- A more advanced example (Thanks Moritz), which uses YAML files and ActiveRecord for lookups:
83
+ A more advanced example (Thanks Moritz), which uses YAML files and
84
+ ActiveRecord for lookups:
77
85
 
78
86
  Memoization is highly recommended if you use a DB as your backend.
79
87
 
80
- <pre>
88
+ ```
81
89
  require 'i18n/backend/sequel_bitemporal'
82
90
  I18n.backend = I18n::Backend::SequelBitemporal.new
83
91
 
@@ -87,46 +95,44 @@ Memoization is highly recommended if you use a DB as your backend.
87
95
  I18n::Backend::Simple.send(:include, I18n::Backend::Pluralization)
88
96
 
89
97
  I18n.backend = I18n::Backend::Chain.new(I18n::Backend::Simple.new, I18n.backend)
90
- </pre>
98
+ ```
91
99
 
92
100
  You can also customize table names for the backing models:
93
101
 
94
- <pre>
102
+ ```
95
103
  require 'i18n/backend/sequel_bitemporal'
96
104
  I18n::Backend::SequelBitemporal.master_table_name = :my_translations
97
105
  I18n::Backend::SequelBitemporal.version_table_name = :my_translation_versions
98
- </pre>
106
+ ```
99
107
 
100
- Please note names can be anything you can use in `Sequel::Model#set_dataset`.
108
+ Please note names can be anything you can use in
109
+ \`Sequel::Model\#set\_dataset\`.
101
110
  For example you want your translations table to be in a specific schema:
102
111
 
103
- <pre>
112
+ ```
104
113
  require 'i18n/backend/sequel_bitemporal'
105
114
  I18n::Backend::SequelBitemporal.master_table_name = Sequel.qualify(:translations, :i18n_translations)
106
115
  I18n::Backend::SequelBitemporal.version_table_name = Sequel.qualify(:translations, :i18n_translation_versions)
107
- </pre>
116
+ ```
108
117
 
109
- h2. Usage
118
+ ## Usage
110
119
 
111
- You can now use @I18n.t('Your String')@ to lookup translations in the database.
120
+ You can now use `I18n.t('Your String')` to lookup translations in the
121
+ database.
112
122
 
113
- h2. Runnning tests
123
+ ## Runnning tests
114
124
 
115
- <pre>
116
- gem install bundler
117
- BUNDLE_GEMFILE=ci/Gemfile.rails-3.x bundle
118
- BUNDLE_GEMFILE=ci/Gemfile.rails-3.x-i18n-0.6 bundle
119
- BUNDLE_GEMFILE=ci/Gemfile.rails-3.x rake
120
- BUNDLE_GEMFILE=ci/Gemfile.rails-3.x-i18n-0.6 rake
121
- </pre>
125
+ gem install bundler
126
+ BUNDLE_GEMFILE=ci/Gemfile.rails-5.x bundle
127
+ BUNDLE_GEMFILE=ci/Gemfile.rails-5.x-i18n-0.6 bundle
128
+ BUNDLE_GEMFILE=ci/Gemfile.rails-5.x rake
129
+ BUNDLE_GEMFILE=ci/Gemfile.rails-5.x-i18n-0.6 rake
122
130
 
123
131
  If you want to see what queries are executed:
124
132
 
125
- <pre>
126
- DEBUG=true BUNDLE_GEMFILE=ci/Gemfile.rails-3.x rake
127
- DEBUG=true BUNDLE_GEMFILE=ci/Gemfile.rails-3.x-i18n-0.6 rake
128
- </pre>
133
+ DEBUG=true BUNDLE_GEMFILE=ci/Gemfile.rails-5.x rake
134
+ DEBUG=true BUNDLE_GEMFILE=ci/Gemfile.rails-5.x-i18n-0.6 rake
129
135
 
130
- h2. Maintainers
136
+ ## Maintainers
131
137
 
132
- * Jonathan Tron
138
+ - Jonathan Tron
@@ -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.9.0"
22
+ s.add_dependency "i18n", ">= 1.0.0"
23
23
  s.add_dependency "sequel_bitemporal", ">= 0.8.0"
24
24
  end
@@ -1,5 +1,5 @@
1
1
  module I18n
2
2
  module SequelBitemporal
3
- VERSION = "0.10.0"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
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.10.0
4
+ version: 1.0.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: 2018-11-29 00:00:00.000000000 Z
11
+ date: 2018-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -16,20 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.6'
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: 0.9.0
19
+ version: 1.0.0
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - ">="
28
25
  - !ruby/object:Gem::Version
29
- version: '0.6'
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: 0.9.0
26
+ version: 1.0.0
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: sequel_bitemporal
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,11 +52,8 @@ files:
58
52
  - ".travis.yml"
59
53
  - Gemfile
60
54
  - MIT-LICENSE
61
- - README.textile
55
+ - README.md
62
56
  - Rakefile
63
- - ci/Gemfile.rails-4.0
64
- - ci/Gemfile.rails-4.1
65
- - ci/Gemfile.rails-4.2
66
57
  - ci/Gemfile.rails-5.0
67
58
  - ci/Gemfile.rails-5.1
68
59
  - ci/Gemfile.rails-5.2
@@ -1,21 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec :path => "../"
4
-
5
- gem 'railties', '~> 4.0.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
@@ -1,21 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec :path => "../"
4
-
5
- gem 'railties', '~> 4.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
@@ -1,21 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec :path => "../"
4
-
5
- gem 'railties', '~> 4.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