bezel-app 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da42b52738e7a8b2bbc186c370d521d9bb224798
4
- data.tar.gz: a128061d83d357c00136e3e74230442356153f73
3
+ metadata.gz: ac6c4590e97465f84a00a9533fda71a8f1eb03f9
4
+ data.tar.gz: eaa8b176e9f8fefb6bd2a78e7d38d1df5e7cabb5
5
5
  SHA512:
6
- metadata.gz: 5323de1b0140e84082c1a54cd3443e0a8b37d3aab75c1309141976499ace71daa8cb3622d70401149f5b6618476b8f851334441b2949a759dd209f2c9943f9d9
7
- data.tar.gz: 488d5820e1f7912d9e6a16d9dc6455135e1694c4309fdaf6828318049010968463ea482dcbb60cfb830c01a93f9d5ce5fd19727843fec60a88a5f7a0c6d249a3
6
+ metadata.gz: 19b5d719325199d3bcb59fd16f2fd6309998d166df2ee8e09c3c7de1a129c5e3e8cc7eedda2c60c03039f6fb1e98bbd8c72660dd02a0a1438d11ed8d8bcb33e6
7
+ data.tar.gz: 47eb2fe9d430bc5ce7397b8e93f033a29574afcf64d37e1990855d8483f7a856342914268bf90282354852763d03cc71d2f19b693bd32e62643de694bb06ba92
data/bezel-app.gemspec CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'bezel-app'
8
- spec.version = '0.1.7'
8
+ spec.version = '0.1.8'
9
9
  spec.authors = ['Keith Thompson']
10
10
  spec.email = ['KeithM_Thompson@outlook.com']
11
11
 
@@ -83,13 +83,13 @@ module Bezel
83
83
 
84
84
  def attribute_values
85
85
  table_cols = self.class.columns
86
- table_cols
86
+ table_cols = table_cols.reject { |col| col == :id }
87
87
  table_cols.map{ |col| self.send("#{col}")}
88
88
  end
89
89
 
90
90
  def insert
91
91
  columns = self.class.columns
92
-
92
+ columns = columns.reject { |col| col == :id }
93
93
  DBConnection.execute(<<-SQL, *attribute_values)
94
94
  INSERT INTO
95
95
  #{ self.class.table_name } (#{ columns.join(", ") })
data/lib/db_connection.rb CHANGED
@@ -1,4 +1,3 @@
1
- require 'byebug'
2
1
  require 'pg'
3
2
  require 'yaml'
4
3
 
@@ -99,7 +98,6 @@ MIGRATIONS = Dir.glob('./db/migrate/*.sql').to_a
99
98
  end
100
99
 
101
100
  def self.open
102
- debugger
103
101
  if (ENV['DATABASE_URL'])
104
102
  uri = URI.parse(ENV['DATABASE_URL'])
105
103
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bezel-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keith Thompson