railz_lite 0.2.8 → 0.2.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
  SHA256:
3
- metadata.gz: aff7d4d6f62b5eee1669eef62895d5170f55a5d3241db179191a690bb9dc26f1
4
- data.tar.gz: 2ab955ed52a300dcf3c614e1a0c4bcbf9f0e8ef81613e2bae9aa7324f08980db
3
+ metadata.gz: 9da64c4f69092de235e6a5c3602a2e6f8fc6be5ac6e3fb88b6621246e8dc3bc4
4
+ data.tar.gz: 8c44980e47498b3be67ce7d894d3fe2a7eb8c18335e7fe68b56b74f198fe0cd8
5
5
  SHA512:
6
- metadata.gz: 0b6b915059bf4ed2ce158b1b6eef235fb742cac8fa3a416bdd88df3d4183510c632021181cec277551e86b3142253bf09732d6aed1954cf1c92b08c820c02b2b
7
- data.tar.gz: 7118f1462ba3e8d772d4e64bfea0304f8cae53cebd073d9b38c97e318a3129f42bf5560369c96f7edc7b916b9a1e77e22d7d713c18ed31526a189f080f00c25b
6
+ metadata.gz: e3b0ffdd0f01715fadc5b5d1a9d1c9cefc5b01295d5b46a1b05c9ff4794b0dc8cd789b96adec8a556602835a7a7cbac57fa38bff8ae18ceef4220afe6c7c3802
7
+ data.tar.gz: 56f7965f2bd969c47924b173933566a147d5718d0495d32dc9041afb5dd4c6b44a33d480faee63c972e4ebd03336f4731591d167b6e13bbaf56d054dc1f19dce
@@ -13,7 +13,7 @@ module RailzLite
13
13
  SELECT
14
14
  *
15
15
  FROM
16
- #{table_name}
16
+ #{table_name};
17
17
  SQL
18
18
  @columns.first.map(&:to_sym)
19
19
  end
@@ -42,7 +42,7 @@ module RailzLite
42
42
  SELECT
43
43
  *
44
44
  FROM
45
- #{table_name}
45
+ #{table_name};
46
46
  SQL
47
47
  parse_all(results)
48
48
  end
@@ -58,7 +58,7 @@ module RailzLite
58
58
  FROM
59
59
  #{table_name}
60
60
  WHERE
61
- ID = ?
61
+ ID = ?;
62
62
  SQL
63
63
 
64
64
  return nil if target.empty?
@@ -86,7 +86,7 @@ module RailzLite
86
86
  INSERT INTO
87
87
  #{self.class.table_name}(#{self.class.columns.join(',')})
88
88
  VALUES
89
- (#{(["?"] * attribute_values.length).join(',')})
89
+ (#{(["?"] * attribute_values.length).join(',')});
90
90
  SQL
91
91
  self.id = last_row_id
92
92
  end
@@ -98,7 +98,7 @@ module RailzLite
98
98
  SET
99
99
  #{self.class.columns.map { |attr_name| "#{attr_name}=?"}.join(',')}
100
100
  WHERE
101
- id = ?
101
+ id = ?;
102
102
  SQL
103
103
  end
104
104
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailzLite
4
- VERSION = "0.2.8"
4
+ VERSION = "0.2.9"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railz_lite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - bryan lynch