libraries 0.1.2 → 0.1.3
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/lib/libraries/active_record.rb +1 -1
- data/lib/libraries/version.rb +1 -1
- metadata +10 -14
|
@@ -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)
|
data/lib/libraries/version.rb
CHANGED
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:
|
|
5
|
-
|
|
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-
|
|
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.
|
|
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
|