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 +4 -4
- data/lib/app/models/trecord_base.rb +6 -6
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 71be7ad2d871e1e2517999baf6851e3931e78ec9
|
|
4
|
+
data.tar.gz: 1eb87f3b582c78f1212ebec1ad6ce9dc3e99e7ff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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