conditions_fu 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ pkg/*
Binary file
@@ -2,7 +2,7 @@
2
2
  module ConditionsFu
3
3
 
4
4
  # :stopdoc:
5
- VERSION = '0.5.0'
5
+ VERSION = '0.5.1'
6
6
  LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
7
7
  PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
8
8
  # :startdoc:
@@ -150,11 +150,11 @@ module ConditionsFu
150
150
  def is_false(options = {}, binding = :and, &block)
151
151
  return if options.values.include?(nil)
152
152
  if block_given?
153
- @conditions << ["(#{options.keys.first} IS NOT ?", true, binding.to_s.upcase]
153
+ @conditions << ["(#{options.keys.first} != ?", true, binding.to_s.upcase]
154
154
  yield
155
155
  @conditions.last.first << ")"
156
156
  else
157
- @conditions << ["#{options.keys.first} IS NOT ?", true, binding.to_s.upcase]
157
+ @conditions << ["#{options.keys.first} != ?", true, binding.to_s.upcase]
158
158
  end
159
159
  end
160
160
 
@@ -181,4 +181,4 @@ module ConditionsFu
181
181
  @blueprints = {}
182
182
  end
183
183
  end
184
- end
184
+ end
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conditions_fu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 5
8
+ - 1
9
+ version: 0.5.1
5
10
  platform: ruby
6
11
  authors:
7
12
  - Cameron Barrie
@@ -9,19 +14,23 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-01-06 00:00:00 +11:00
17
+ date: 2010-10-18 00:00:00 +11:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: bones
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 3
29
+ - 2
30
+ - 0
23
31
  version: 3.2.0
24
- version:
32
+ type: :development
33
+ version_requirements: *id001
25
34
  description: A little DSL to allow you to map url parameters to an Active Record conditions array.
26
35
  email: camwritescode@gmail.com
27
36
  executables: []
@@ -31,10 +40,13 @@ extensions: []
31
40
  extra_rdoc_files:
32
41
  - History.txt
33
42
  - README.txt
43
+ - lib/.conditions_fu.rb.swp
34
44
  files:
45
+ - .gitignore
35
46
  - History.txt
36
47
  - README.txt
37
48
  - Rakefile
49
+ - lib/.conditions_fu.rb.swp
38
50
  - lib/conditions_fu.rb
39
51
  - lib/conditions_fu/builder.rb
40
52
  - spec/conditions_fu/builder_spec.rb
@@ -54,18 +66,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
54
66
  requirements:
55
67
  - - ">="
56
68
  - !ruby/object:Gem::Version
69
+ segments:
70
+ - 0
57
71
  version: "0"
58
- version:
59
72
  required_rubygems_version: !ruby/object:Gem::Requirement
60
73
  requirements:
61
74
  - - ">="
62
75
  - !ruby/object:Gem::Version
76
+ segments:
77
+ - 0
63
78
  version: "0"
64
- version:
65
79
  requirements: []
66
80
 
67
81
  rubyforge_project: conditions_fu
68
- rubygems_version: 1.3.5
82
+ rubygems_version: 1.3.6
69
83
  signing_key:
70
84
  specification_version: 3
71
85
  summary: A little DSL to allow you to map url parameters to an Active Record conditions array