wvanbergen-scoped_search 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -45,18 +45,18 @@ module ScopedSearch
45
45
  keyword_name = "keyword_#{index}".to_sym
46
46
  conditions << case search_condition.last
47
47
  # :like also handles integers
48
- when :like: like_condition(keyword_name, search_condition.first)
49
- when :not: not_like_condition(keyword_name, search_condition.first)
48
+ when :like then like_condition(keyword_name, search_condition.first)
49
+ when :not then not_like_condition(keyword_name, search_condition.first)
50
50
 
51
- when :or: or_condition(keyword_name, search_condition.first)
51
+ when :or then or_condition(keyword_name, search_condition.first)
52
52
 
53
- when :less_than_date: less_than_date(keyword_name, search_condition.first)
54
- when :less_than_or_equal_to_date: less_than_or_equal_to_date(keyword_name, search_condition.first)
55
- when :as_of_date: as_of_date(keyword_name, search_condition.first)
56
- when :greater_than_date: greater_than_date(keyword_name, search_condition.first)
57
- when :greater_than_or_equal_to_date: greater_than_or_equal_to_date(keyword_name, search_condition.first)
53
+ when :less_than_date then less_than_date(keyword_name, search_condition.first)
54
+ when :less_than_or_equal_to_date then less_than_or_equal_to_date(keyword_name, search_condition.first)
55
+ when :as_of_date then as_of_date(keyword_name, search_condition.first)
56
+ when :greater_than_date then greater_than_date(keyword_name, search_condition.first)
57
+ when :greater_than_or_equal_to_date then greater_than_or_equal_to_date(keyword_name, search_condition.first)
58
58
 
59
- when :between_dates: between_dates(keyword_name, search_condition.first)
59
+ when :between_dates then between_dates(keyword_name, search_condition.first)
60
60
  end
61
61
  end
62
62
 
@@ -232,10 +232,10 @@ module Rake
232
232
 
233
233
  def create_version_tag!
234
234
  # commit the gemspec file
235
- git_commit_file(gemspec_file, "Updated #{gemspec_file} for release of version #{@specification.version}") if git_modified?(gemspec_file)
235
+ git_commit_file(gemspec_file, "Released #{@name} version #{@specification.version}") if git_modified?(gemspec_file)
236
236
 
237
237
  # create tag and push changes
238
- git_create_tag("#{@name}-#{@specification.version}", "Tagged version #{@specification.version}")
238
+ git_create_tag("#{@name}-#{@specification.version}", "Tagged #{@name} version #{@specification.version}")
239
239
  git_push('origin', 'master', [:tags])
240
240
  end
241
241
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wvanbergen-scoped_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Willem van Bergen
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-02-23 00:00:00 -08:00
13
+ date: 2009-06-18 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies: []
16
16