tgauge 0.2.1 → 0.2.2

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: 73b2b3db2f85b943689e0723a12bf9b435ea2848
4
- data.tar.gz: 8eef2939792e26d21bb50e51dab5e7f76488f1db
3
+ metadata.gz: 71be7ad2d871e1e2517999baf6851e3931e78ec9
4
+ data.tar.gz: 1eb87f3b582c78f1212ebec1ad6ce9dc3e99e7ff
5
5
  SHA512:
6
- metadata.gz: d4d6076e55107411894019362b0a40e928a34a6869cd9df867be8523b8c20297e8887a234f12ef91684236358be5170f4894d186199e6afd733f9635ab49696e
7
- data.tar.gz: fd3fcf8fbd05bff41e049f660ff3bf591dcfcf927758c47259ee2ddbc17456611df801aa01fa9de780b367d34705486eb634fede4a3afec01a611625016c5e5a
6
+ metadata.gz: 83d1d6109d7d61a1962a3af26967104a39eb6e16886f64adbfa37743fefe21281465355d92decaa8b3d786184b0fc1385a48f07083cd411a59134259a28a2d87
7
+ data.tar.gz: 3922e629d4774668237591752215dda7abc1711b095ad34d82fe0c30f884cef4d84695b3c2241faf857c1a5f8d93bb0fe790e8ad0e383bd35bc056d68a4cbe2b
@@ -36,7 +36,7 @@ module TGauge
36
36
  # ...
37
37
  return @columns if @columns
38
38
 
39
- arr = DBConnection.execute(<<-SQL)
39
+ arr = TGauge::DBConnection.execute(<<-SQL)
40
40
  SELECT
41
41
  *
42
42
  FROM
@@ -71,7 +71,7 @@ module TGauge
71
71
  end
72
72
 
73
73
  def self.all
74
- objs_arr = DBConnection.execute(<<-SQL)
74
+ objs_arr = TGauge::DBConnection.execute(<<-SQL)
75
75
  SELECT
76
76
  #{table_name}.*
77
77
  FROM
@@ -87,7 +87,7 @@ module TGauge
87
87
  end
88
88
 
89
89
  def self.find(id)
90
- obj = DBConnection.execute(<<-SQL, id)
90
+ obj = TGauge::DBConnection.execute(<<-SQL, id)
91
91
  SELECT
92
92
  #{table_name}.*
93
93
  FROM
@@ -122,7 +122,7 @@ module TGauge
122
122
  column_str = cols.join(", ")
123
123
  quest_str = Array.new(attr_count) {"?"}.join(", ")
124
124
 
125
- DBConnection.execute(<<-SQL, attribute_values)
125
+ TGauge::DBConnection.execute(<<-SQL, attribute_values)
126
126
  INSERT INTO
127
127
  #{table_name} (#{column_str})
128
128
  VALUES
@@ -132,7 +132,7 @@ module TGauge
132
132
 
133
133
  def destroy!
134
134
  if self.class.find(id)
135
- Puffs::DBConnection.execute(<<-SQL)
135
+ TGauge::DBConnection.execute(<<-SQL)
136
136
  DELETE
137
137
  FROM
138
138
  #{self.class.table_name}
@@ -147,7 +147,7 @@ module TGauge
147
147
  attr_count = columns.count - 1
148
148
  column_str = columns[1..-1].map { |col| "#{col} = ?" }.join(", ")
149
149
 
150
- DBConnection.execute(<<-SQL, attribute_values)
150
+ TGauge::DBConnection.execute(<<-SQL, attribute_values)
151
151
  UPDATE
152
152
  #{table_name}
153
153
  SET
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module TGauge
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tgauge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nam Kim