libraries 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,7 +23,7 @@ module ActiveRecord
23
23
 
24
24
  def date_range(options)
25
25
  options.reverse_merge! :field => "created_at", :start => Time.now, :end => Time.now
26
- scoped :conditions => { options[:field] => options[:range] || (options[:start]..options[:end]) }
26
+ scoped :conditions => { options[:field] => options[:range] || (options[:start].beginning_of_day..options[:end].end_of_day) }
27
27
  end
28
28
 
29
29
  def sort_scope(options)
@@ -1,3 +1,3 @@
1
1
  module Libraries
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libraries
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 2
9
- version: 0.1.2
4
+ prerelease:
5
+ version: 0.1.3
10
6
  platform: ruby
11
7
  authors:
12
8
  - On-Site.com
@@ -14,7 +10,7 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2011-01-18 00:00:00 -08:00
13
+ date: 2011-03-09 00:00:00 -07:00
18
14
  default_executable:
19
15
  dependencies: []
20
16
 
@@ -61,23 +57,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
61
57
  requirements:
62
58
  - - ">="
63
59
  - !ruby/object:Gem::Version
64
- segments:
65
- - 0
66
60
  version: "0"
67
61
  required_rubygems_version: !ruby/object:Gem::Requirement
68
62
  none: false
69
63
  requirements:
70
64
  - - ">="
71
65
  - !ruby/object:Gem::Version
72
- segments:
73
- - 0
74
66
  version: "0"
75
67
  requirements: []
76
68
 
77
69
  rubyforge_project: libraries
78
- rubygems_version: 1.3.7
70
+ rubygems_version: 1.5.0
79
71
  signing_key:
80
72
  specification_version: 3
81
73
  summary: Common Libraries and Ruby/Rails extensions
82
- test_files: []
83
-
74
+ test_files:
75
+ - spec/libraries/array_spec.rb
76
+ - spec/libraries/hash_spec.rb
77
+ - spec/libraries/object_spec.rb
78
+ - spec/libraries/string_spec.rb
79
+ - spec/spec_helper.rb