sql_record 1.0.1 → 1.0.3
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.
- data/VERSION +1 -1
- data/lib/sql_record/attributes/mapper.rb +6 -0
- data/sql_record.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.3
|
@@ -3,6 +3,8 @@ module SQLRecord
|
|
3
3
|
module Attributes
|
4
4
|
module Mapper
|
5
5
|
|
6
|
+
attr_reader :sql_select_columns
|
7
|
+
|
6
8
|
# with_opts blocks specify default options for calls to {#column}
|
7
9
|
#
|
8
10
|
# @param opts [Hash] anything that {#column} supports. Currently this should only be :class
|
@@ -57,6 +59,10 @@ module SQLRecord
|
|
57
59
|
(@sql_select_columns ||= []) << select_column
|
58
60
|
end
|
59
61
|
|
62
|
+
def sql_select_helper
|
63
|
+
@sql_select_columns.join(', ')
|
64
|
+
end
|
65
|
+
|
60
66
|
end
|
61
67
|
end
|
62
68
|
end
|
data/sql_record.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sql_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 3
|
10
|
+
version: 1.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Rasheed Abdul-Aziz
|