txdb 1.2.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/txdb/backends/globalize/helpers.rb +1 -1
- data/lib/txdb/connection_string.rb +2 -2
- data/lib/txdb/database.rb +2 -2
- data/lib/txdb/handlers/triggers/handler.rb +1 -1
- data/lib/txdb/version.rb +1 -1
- data/spec/connection_string_spec.rb +1 -1
- data/spec/handlers/triggers/pull_handler_spec.rb +1 -1
- data/spec/handlers/triggers/push_handler_spec.rb +1 -1
- data/spec/spec_helpers/test_configurator.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bc37bfdf9e73758b78be101dc440f0354078f8d
|
4
|
+
data.tar.gz: e71385526e032e713be01aa01ce0a0277f11c84d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c14ff5270d2d43875180d98e5d27a64fc03f822bde72e0ed6b718ed502281f4aa4b8a0df00bcb4cebd090b11ff61d3a5d1469556b6b7fc9aaecaff1ac4e646d8
|
7
|
+
data.tar.gz: 88b8256d21d523d520e5cc9942fdf784f6719a102a26eb92ce1a3b6210fd43699249ebd6b9eb57fae48d529645f9d27b4a2e01bd17e575b3e77783fdaa63c19e
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Txdb
|
2
2
|
class ConnectionString
|
3
3
|
TEMPLATES = {
|
4
|
-
mysql2: "%{adapter}://%{username}:%{password}@%{host}:%{port}/%{
|
5
|
-
sqlite: "%{adapter}://%{
|
4
|
+
mysql2: "%{adapter}://%{username}:%{password}@%{host}:%{port}/%{name}",
|
5
|
+
sqlite: "%{adapter}://%{name}"
|
6
6
|
}
|
7
7
|
|
8
8
|
attr_reader :options
|
data/lib/txdb/database.rb
CHANGED
@@ -6,7 +6,7 @@ module Txdb
|
|
6
6
|
DEFAULT_PORT = '3306'
|
7
7
|
DEFAULT_POOL = 10
|
8
8
|
|
9
|
-
attr_reader :adapter, :backend, :username, :password, :host, :port, :
|
9
|
+
attr_reader :adapter, :backend, :username, :password, :host, :port, :name
|
10
10
|
attr_reader :pool, :transifex_project, :tables, :connection_string
|
11
11
|
|
12
12
|
def initialize(options = {})
|
@@ -16,7 +16,7 @@ module Txdb
|
|
16
16
|
@password = options.fetch(:password)
|
17
17
|
@host = options.fetch(:host, DEFAULT_HOST)
|
18
18
|
@port = options.fetch(:port, DEFAULT_PORT)
|
19
|
-
@
|
19
|
+
@name = options.fetch(:name)
|
20
20
|
@pool = options.fetch(:pool, DEFAULT_POOL)
|
21
21
|
@transifex_project = TransifexProject.new(options.fetch(:transifex))
|
22
22
|
@connection_string = ConnectionString.new(options).string
|
data/lib/txdb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: txdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cameron Dutro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|