JGailor-except 0.1.0 → 0.1.1
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/History.txt +5 -1
- data/Manifest.txt +2 -0
- data/README +2 -2
- data/lib/except.rb +1 -1
- metadata +1 -1
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
data/README
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
== FEATURES/PROBLEMS:
|
10
10
|
|
11
|
-
* I don't know yet.
|
11
|
+
* I don't know yet. If you use except please give me any feedback to help improve it or to fix bugs.
|
12
12
|
|
13
13
|
== SYNOPSIS:
|
14
14
|
|
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
== INSTALL:
|
22
22
|
|
23
|
-
* sudo gem install
|
23
|
+
* sudo gem install JGailor-except --source http://gems.github.com/
|
24
24
|
|
25
25
|
== LICENSE:
|
26
26
|
|
data/lib/except.rb
CHANGED
@@ -7,7 +7,7 @@ module Except
|
|
7
7
|
def find_with_except(*args)
|
8
8
|
options = args.last.is_a?(::Hash) ? args.pop : {}
|
9
9
|
if exceptions = options.delete(:except)
|
10
|
-
options[:select] = self.column_names
|
10
|
+
options[:select] = (self.column_names - exceptions.split(/,\s?/)).join(", ")
|
11
11
|
end
|
12
12
|
args << options
|
13
13
|
find_without_except(*args)
|