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

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: 6f773a832c426c91f08b4f762ba31386b2a67c97
4
- data.tar.gz: afc4d930b4be5a8df89e0c98e87c718a98547bed
3
+ metadata.gz: 13487e1af8843cf222bca82957a6abaef20a0bf9
4
+ data.tar.gz: cbbaaff48223d24f49830d6b85d430a6c93fbd90
5
5
  SHA512:
6
- metadata.gz: 18c2351bcd75b82402ecca28998f2ec4c51b8df4fdf32539f6119cf2fe1552020804403200fbd58408b6f107ed5ec063c23afd2461c8f5f28c77be3aff5dd687
7
- data.tar.gz: 43fbef2dbef5a32d8754a6cc59c6048b2a191adbfb787f2cf8f6294d39f0524a43d5c77e867eaae95cf3fa17d95d6385d00bd84bb39151a570fad30648631723
6
+ metadata.gz: 41f6d63f6f7897ec5892202af8ef1839e6dfef1a18e23bd443fa67a7a0894daaca3ed11c68b9dc7a7a9a5b5e305f84093d355c4547b6c9ba1ed06b741bf7e626
7
+ data.tar.gz: d0e26d209f4294061b11935918042e45dbe8687359de88d1536ef1ccd74020b92f4fef924f8719783f8142b1af15c9c0196a88c58167d5065a01035b5f529446
@@ -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.8.rc
4
+ version: 0.1.8
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-14 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.8.rc
19
+ version: 0.1.8
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.8.rc
26
+ version: 0.1.8
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
@@ -52,7 +52,7 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '4.43'
55
- description: Make the Domain the center of your programming world
55
+ description: Hecks SQL Database
56
56
  email: chris@example.com
57
57
  executables: []
58
58
  extensions: []
@@ -92,13 +92,13 @@ 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
101
101
  signing_key:
102
102
  specification_version: 4
103
- summary: DDD and Hexagonal Code Generators
103
+ summary: Drive a SQL Database with Domains created with Hecks::Domain
104
104
  test_files: []