taps2 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/taps/db_session.rb +4 -6
- data/lib/taps/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65cea327975921536a282b29801cc88f07412101
|
4
|
+
data.tar.gz: 69f684383a7e8d307c1be038458cfc147a54d2be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98e52a0ce16c292f8e06933b3c170844767af8e5a794d39d1689b0412894a005e2b33091de1cef931c4a44d3a668f02324d03a0539ca22accfb2ea078956808c
|
7
|
+
data.tar.gz: 7554c32f9da29e4f449c003bb801fac5c69c20e0dedd8c8c72e6fb2fe28843aea2b45f26076e10a3716d7f515bef486cf6fb7d654a5627ebeac2cd2acd82998d
|
data/README.md
CHANGED
@@ -8,16 +8,16 @@ A simple database agnostic import/export app to transfer data to/from a remote d
|
|
8
8
|
|
9
9
|
Renamed gem
|
10
10
|
|
11
|
-
|
11
|
+
$ gem install taps2
|
12
12
|
|
13
13
|
By default, Taps will attempt to create a SQLite3 database for sessions. Unless you specify a different database type, you'll need to install SQLite3. (See _Environment Variables_ for alternative session databases.)
|
14
14
|
|
15
|
-
|
15
|
+
$ gem install sqlite3
|
16
16
|
|
17
17
|
Install the gems to support databases you want to work with, such as MySQL or PostgreSQL.
|
18
18
|
|
19
|
-
|
20
|
-
|
19
|
+
$ gem install mysql2
|
20
|
+
$ gem install pg
|
21
21
|
|
22
22
|
## Configuration: Environment Variables
|
23
23
|
|
data/lib/taps/db_session.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
-
|
1
|
+
#Sequel::Model.require_valid_table = false
|
2
|
+
Sequel::Model.strict_param_setting = false
|
3
|
+
Sequel::Model.db = Sequel.connect(Taps::Config.taps_database_url)
|
2
4
|
|
3
|
-
|
4
|
-
DB.create_table? :db_session do
|
5
|
+
Sequel::Model.db.create_table? :db_sessions do
|
5
6
|
primary_key :id
|
6
7
|
text :key
|
7
8
|
text :database_url
|
@@ -9,9 +10,6 @@ DB.create_table? :db_session do
|
|
9
10
|
timestamp :last_access
|
10
11
|
end
|
11
12
|
|
12
|
-
Sequel::Model.db = DB
|
13
|
-
Sequel::Model.require_valid_table = false
|
14
|
-
|
15
13
|
class DbSession < Sequel::Model
|
16
14
|
def conn
|
17
15
|
Sequel.connect(database_url) do |db|
|
data/lib/taps/version.rb
CHANGED