JGailor-except 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/History.txt +5 -1
  2. data/Manifest.txt +2 -0
  3. data/README +2 -2
  4. data/lib/except.rb +1 -1
  5. metadata +1 -1
@@ -1,4 +1,8 @@
1
- === 1.0.0 / 2008-12-27
1
+ === 0.1.1 / 2008-12-28
2
+
3
+ * Replaced the find_all with a simple array subtraction. Duh.
4
+
5
+ === 0.1.0 / 2008-12-27
2
6
 
3
7
  * 1 major enhancement
4
8
 
@@ -1,3 +1,5 @@
1
+ Changelog
2
+ except.gemspec
1
3
  History.txt
2
4
  Manifest.txt
3
5
  README.txt
data/README CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  == FEATURES/PROBLEMS:
10
10
 
11
- * I don't know yet. Feedback will help me find bugs!
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 jgailor-except --source http://gems.github.com
23
+ * sudo gem install JGailor-except --source http://gems.github.com/
24
24
 
25
25
  == LICENSE:
26
26
 
@@ -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.find_all {|name| !exceptions.include?(name)}.join(", ")
10
+ options[:select] = (self.column_names - exceptions.split(/,\s?/)).join(", ")
11
11
  end
12
12
  args << options
13
13
  find_without_except(*args)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: JGailor-except
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Gailor