bezel-app 0.1.16 → 0.1.17

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: 8c0e53db27abfcb8c3096c9663ec01ce2c3ca9e0
4
- data.tar.gz: b71744d6e34a3a1bbc5be50d2e7e2b3d08643646
3
+ metadata.gz: 1e3c9d54d59269af1cad562a0099b776879e843b
4
+ data.tar.gz: 8ad869b889ddadc4465960c623c9432740fff0c5
5
5
  SHA512:
6
- metadata.gz: b4482a91994b995e2a80fab5953a68b264cf09cc50d8d490762ae4dbeb065e0b8bc3d4edb71c6558cb92ca8a19e7ddf4997dc5399deb16646c53b19ea8562fa2
7
- data.tar.gz: 7b9902e016b810361040039d5e90135d2a05b72b56eaff8d4fbed1ff772d053fa6ebdd5c5788cc9c6efdab8fc2bf104d9f5c4214883f17ca07048bcc1d35fa7d
6
+ metadata.gz: e346d0b1f1500e3cca024895ddda27bbee34e337a4402e5f0a8234dd9333ce85a9faa56ff215d5b84a703e7ec0bd485a781aa9326ee6c13aba279b71c3a53751
7
+ data.tar.gz: ff7835f6c23fe6849042afcc657a6278ef795f042c06c2fa588ce467463ed897da69e00b32f62e7e8b11e7b0462bbd6bf71cf85547d95aea502b0084fed39454
@@ -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.16'
8
+ spec.version = '0.1.17'
9
9
  spec.authors = ['Keith Thompson']
10
10
  spec.email = ['KeithM_Thompson@outlook.com']
11
11
 
@@ -84,7 +84,6 @@ module Bezel
84
84
 
85
85
  def attribute_values
86
86
  table_cols = self.class.columns
87
- table_cols = table_cols.reject { |col| col == :id }
88
87
  table_cols.map{ |col| self.send("#{col}")}
89
88
  end
90
89
 
@@ -92,7 +91,10 @@ module Bezel
92
91
  columns = self.class.columns
93
92
  columns = columns.reject { |col| col == :id }
94
93
 
95
- id = DBConnection.execute(<<-SQL, attribute_values)
94
+ attr_vals = attribute_values
95
+ attr_vals = attr_vals[1..-1]
96
+
97
+ id = DBConnection.execute(<<-SQL, attr_vals)
96
98
  INSERT INTO
97
99
  #{ self.class.table_name } (#{ columns.join(", ") })
98
100
  VALUES
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.16
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keith Thompson