tapsoob 0.1.17 → 0.1.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 6d660f3fd47b335cd3bf1c785ed7017f21cca341
4
- data.tar.gz: 03a80c0de12b5017ba768c43ece27b2c5feff62a
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZmJiODY2ZTk2ZTEzZTdjZGU1MjQ2MTZhNmZhNjEyZjFlYmUzNWJjZg==
5
+ data.tar.gz: !binary |-
6
+ ZDE0NjE1NjI0ZGI1YjE2NGQwMTk2YjVmNTQzMGYwYjcyZmQzOWI0MA==
5
7
  SHA512:
6
- metadata.gz: 8d8b877ad3dad61d255b3436cedd89e266aca6574aea85a8ede454486bf642457b19c117301f4c561c5e19ce09c9f1fb09e6d03a22385810fa5cc0493a280b15
7
- data.tar.gz: 3b26027e2235ef8b52026c6b61b8299f65bb175ac6f32889a13d75f71ed7f2b974c697d2fe7d714dfa7946b565f186bc70a928acafdd09daa403faa1c882ed5e
8
+ metadata.gz: !binary |-
9
+ ZmU1MmVjZDVhNmQ4OWVjMjMyMjdmZjExYmM5MWFlNDNjNzhhZTVmNjI0YWFl
10
+ M2EzNDkwNjJhM2ViMjllOTJjNTE2YjViNzlhMDI5NjdlNDdkOTJkMjViOGM1
11
+ NWUxMzc3MDBmOTg4MmVlNWUxY2FmOTM4NzhiNWUzNzYyNWZjZTY=
12
+ data.tar.gz: !binary |-
13
+ ZDBjYTBkMTQxZWQxZDU4N2YxOTNhMjNiMTBmZGI4Mjc5ZjNhMmY1OGE4MDJk
14
+ YjViNWRjY2Q1ZDdlZjE0MjQ5MjBkOTBhY2IzODBmNzI4NTgyZWM4ODQ2YTEy
15
+ YTg3NzU5MjU4MzgzNmZmZTE3N2U3ZDcxNjZlNDUzZDBjMTMxNDE=
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Tapsoob
3
- VERSION = "0.1.17".freeze
3
+ VERSION = "0.1.18".freeze
4
4
  end
@@ -25,7 +25,7 @@ namespace :tapsoob do
25
25
  dump_path = Dir[Rails.root.join("db", "*/")].select { |e| e =~ /([0-9]{14})([A-Z]{2})/ }.sort.last
26
26
 
27
27
  # Run operation
28
- Tapsoob::Operation.factory(:push, database_uri, dump_path, opts).run
28
+ Tapsoob::Operation.factory(:push, database_uri, dump_path, opts).run
29
29
  end
30
30
 
31
31
  private
@@ -35,25 +35,25 @@ namespace :tapsoob do
35
35
 
36
36
  case connection_config['adapter']
37
37
  when "mysql", "mysql2"
38
- if RUBY_PLATFORM =~ /java/
39
- uri = "mysql://#{connection_config['host']}/#{connection_config['database']}?user=#{connection_config['username']}&password=#{connection_config['password']}"
40
- else
41
- uri = "#{connection_config['adapter']}://#{connection_config['host']}/#{connection_config['database']}?user=#{connection_config['username']}&password=#{connection_config['password']}"
42
- end
38
+ uri = "mysql://#{connection_config['host']}/#{connection_config['database']}?user=#{connection_config['username']}&password=#{connection_config['password']}"
39
+ when "postgresql", "postgres", "pg"
40
+ uri = "://#{connection_config['host']}/#{connection_config['database']}?user=#{connection_config['username']}&password=#{connection_config['password']}"
41
+ uri = ((RUBY_PLATFORM =~ /java/).nil? ? "postgres" : "postgresql") + uri
43
42
  when "oracle_enhanced"
44
- if RUBY_PLATFORM =~ /java/
45
- uri = "oracle:thin:#{connection_config['username']}/#{connection_config['password']}@#{connection_config['host']}:1521:#{connection_config['database']}"
46
- else
43
+ if (RUBY_PLATFORM =~ /java/).nil?
47
44
  uri = "oracle://#{connection_config['host']}/#{connection_config['database']}?user=#{connection_config['username']}&password=#{connection_config['password']}"
45
+ else
46
+ uri = "oracle:thin:#{connection_config['username']}/#{connection_config['password']}@#{connection_config['host']}:1521:#{connection_config['database']}"
48
47
  end
49
- when "sqlite"
50
- uri = "sqlite://#{connection_config['adapter']}"
48
+ when "sqlite3", "sqlite"
49
+ uri = "sqlite://#{connection_config['database']}"
51
50
  else
52
- uri = "#{connection_config['adapter']}://#{connection_config['host']}/#{connection_config['database']}?user=#{connection_config['username']}&password=#{connection_config['password']}"
51
+ raise Exception, "Unsupported database adapter."
52
+ #uri = "#{connection_config['adapter']}://#{connection_config['host']}/#{connection_config['database']}?user=#{connection_config['username']}&password=#{connection_config['password']}"
53
53
  end
54
54
 
55
- uri = "jdbc:#{uri}" if RUBY_PLATFORM =~ /java/
55
+ uri = "jdbc:#{uri}" unless (RUBY_PLATFORM =~ /java/).nil?
56
56
 
57
57
  uri
58
58
  end
59
- end
59
+ end
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tapsoob
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.17
4
+ version: 0.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Félix Bellanger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-22 00:00:00.000000000 Z
11
+ date: 2014-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sequel
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: 3.45.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: 3.45.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mysql
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: 2.9.1
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: 2.9.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: mysql2
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.3.11
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.3.11
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pg
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: 0.14.1
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
68
  version: 0.14.1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: sqlite3
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ~>
74
74
  - !ruby/object:Gem::Version
75
75
  version: 1.3.7
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ~>
81
81
  - !ruby/object:Gem::Version
82
82
  version: 1.3.7
83
83
  description: Simple tool to import/export databases inspired by taps but OOB, meaning
@@ -89,7 +89,7 @@ executables:
89
89
  extensions: []
90
90
  extra_rdoc_files: []
91
91
  files:
92
- - ".gitignore"
92
+ - .gitignore
93
93
  - Gemfile
94
94
  - Gemfile.lock
95
95
  - README.md
@@ -121,12 +121,12 @@ require_paths:
121
121
  - lib
122
122
  required_ruby_version: !ruby/object:Gem::Requirement
123
123
  requirements:
124
- - - ">="
124
+ - - ! '>='
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0'
127
127
  required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ">="
129
+ - - ! '>='
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  requirements: []