sql_record 0.2.0 → 1.0.0
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/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/sql_record/attributes/mapper.rb +0 -6
- data/sql_record.gemspec +1 -2
- metadata +3 -3
data/Rakefile
CHANGED
|
@@ -16,7 +16,7 @@ Jeweler::Tasks.new do |gem|
|
|
|
16
16
|
gem.homepage = "http://github.com/visfleet/sql_record"
|
|
17
17
|
gem.license = "MIT"
|
|
18
18
|
gem.summary = %Q{SQL direct mapping to ActiveRecord}
|
|
19
|
-
gem.description = %Q{Do you use ActiveRecord::Connection.execute for speed sometimes? Does it bother you that the results are not mapped to your schema and type-cast as ActiveRecord would? Well that's what SQLRecord does.}
|
|
19
|
+
# gem.description = %Q{Do you use ActiveRecord::Connection.execute for speed sometimes? Does it bother you that the results are not mapped to your schema and type-cast as ActiveRecord would? Well that's what SQLRecord does.}
|
|
20
20
|
gem.email = "rasheed@visfleet.com"
|
|
21
21
|
gem.authors = ["Rasheed Abdul-Aziz"]
|
|
22
22
|
# Include your dependencies below. Runtime dependencies are required when using your gem,
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
1.0.0
|
|
@@ -3,8 +3,6 @@ module SQLRecord
|
|
|
3
3
|
module Attributes
|
|
4
4
|
module Mapper
|
|
5
5
|
|
|
6
|
-
attr_reader :sql_select_columns
|
|
7
|
-
|
|
8
6
|
# with_opts blocks specify default options for calls to {#column}
|
|
9
7
|
#
|
|
10
8
|
# @param opts [Hash] anything that {#column} supports. Currently this should only be :class
|
|
@@ -59,10 +57,6 @@ module SQLRecord
|
|
|
59
57
|
(@sql_select_columns ||= []) << select_column
|
|
60
58
|
end
|
|
61
59
|
|
|
62
|
-
def sql_select_helper
|
|
63
|
-
@sql_select_columns.join(', ')
|
|
64
|
-
end
|
|
65
|
-
|
|
66
60
|
end
|
|
67
61
|
end
|
|
68
62
|
end
|
data/sql_record.gemspec
CHANGED
|
@@ -5,12 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{sql_record}
|
|
8
|
-
s.version = "0.
|
|
8
|
+
s.version = "1.0.0"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Rasheed Abdul-Aziz"]
|
|
12
12
|
s.date = %q{2011-04-08}
|
|
13
|
-
s.description = %q{Do you use ActiveRecord::Connection.execute for speed sometimes? Does it bother you that the results are not mapped to your schema and type-cast as ActiveRecord would? Well that's what SQLRecord does.}
|
|
14
13
|
s.email = %q{rasheed@visfleet.com}
|
|
15
14
|
s.extra_rdoc_files = [
|
|
16
15
|
"LICENSE.txt",
|
metadata
CHANGED
|
@@ -4,10 +4,10 @@ version: !ruby/object:Gem::Version
|
|
|
4
4
|
hash: 23
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
|
+
- 1
|
|
7
8
|
- 0
|
|
8
|
-
- 2
|
|
9
9
|
- 0
|
|
10
|
-
version: 0.
|
|
10
|
+
version: 1.0.0
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Rasheed Abdul-Aziz
|
|
@@ -110,7 +110,7 @@ dependencies:
|
|
|
110
110
|
prerelease: false
|
|
111
111
|
type: :development
|
|
112
112
|
requirement: *id006
|
|
113
|
-
description:
|
|
113
|
+
description:
|
|
114
114
|
email: rasheed@visfleet.com
|
|
115
115
|
executables: []
|
|
116
116
|
|