hecks-adapters-sql-database 0.1.9.rc → 0.1.9

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
  SHA1:
3
- metadata.gz: 8cae9f46dfa0c8b83cdd3d7099bb36129daf1080
4
- data.tar.gz: af25ced360e161531608aeee2186cef483c83bb1
3
+ metadata.gz: 32c12127e080405124c867c785233bf285be84bb
4
+ data.tar.gz: e57c3c9cd80d83133d1ff9bc455d96b991b970b2
5
5
  SHA512:
6
- metadata.gz: 5a28ce87ccd27e595f902ca0cf1e6a4635d36e32110a63455af9f944928885c7274982b5982d5f21863b77fe99b8c12b200dcdd355874c7db6109dc75b090f93
7
- data.tar.gz: e5d3c4ad8e2459a634aeaeef47fdf3f21363c8ce77e4f2a9114f183ab9aa3cd78b977f1236791ba23ff405e7b6c890ba2f278e978ce5dbada812266f4f11e29d
6
+ metadata.gz: 2b7e093a590e1f5f65272ee2a81d6cafeb1c00f255f4dd4ab870033391208c1607ff082cedad91f3b8f0a6c9d5aff1b2bb7ba7cfc9cdcb718e033deecb321074
7
+ data.tar.gz: 37ca307b030d7e0fa1476bf175b8f4e33416eb8dcaf808d478fbbc860fb902a23a85f9f9537a4270e7846019b741686d325a0636ee33577e8e5f9578b47b5fc8
@@ -28,7 +28,7 @@ module Hecks
28
28
  result = DB[column.to_table_name].first(attributes)
29
29
 
30
30
  @reference_ids[reference.name] = result[:id] and return if result
31
- @reference_ids[reference.name] = DB[column.as_table_name].insert(attributes)
31
+ @reference_ids[reference.name] = DB[column.to_table_name].insert(attributes)
32
32
  end
33
33
  end
34
34
 
@@ -1,5 +1,11 @@
1
1
  require 'sequel'
2
- require 'hecks-application'
2
+ require 'mysql2'
3
+
4
+ if ENV['HECKS_PATH']
5
+ require_relative '../../hecks-application/lib/hecks-application'
6
+ else
7
+ require 'hecks-application'
8
+ end
3
9
 
4
10
  require_relative 'column'
5
11
  require_relative 'join_table'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hecks-adapters-sql-database
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9.rc
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Young
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-15 00:00:00.000000000 Z
11
+ date: 2017-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hecks-application
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.1.9.rc
19
+ version: 0.1.9
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
- version: 0.1.9.rc
26
+ version: 0.1.9
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mysql2
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: '0.4'
33
+ version: 0.3.18
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: '0.4'
40
+ version: 0.3.18
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sequel
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -92,9 +92,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
92
92
  version: '0'
93
93
  required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - ">"
95
+ - - ">="
96
96
  - !ruby/object:Gem::Version
97
- version: 1.3.1
97
+ version: '0'
98
98
  requirements: []
99
99
  rubyforge_project:
100
100
  rubygems_version: 2.6.10