include_date_scopes 0.9.4 → 0.9.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e4b57e4f256f05cb34e6ea7e11c639b293aa7b87
4
- data.tar.gz: 8c35adefc851df2c4e37ad8b05f5ed3d4185aede
3
+ metadata.gz: 63855b44770da7082e79b4ad9b1d317aab8b02f2
4
+ data.tar.gz: 7ff4713ba792bdcc53e85472e9f3b141bf8b9937
5
5
  SHA512:
6
- metadata.gz: 744b30ac18ac870e1c951c03c30990186b95ccadcb6d6d743f6748147d6f4ad5952b8f16be64da240a16f8fcdd5ba671242bebfc6b842109231f27712d21d56e
7
- data.tar.gz: cf8c6ad8fc127d2267de4260fd1270765458708a84c1c45c8aa482a10d14e67d578acbfffc319f07ae6df777fe07e5dfd36101cc0069116bd1f692b6d2f9f9b4
6
+ metadata.gz: f8e1dc80bcbce8d9e59b2d550ef3f31c022437e3cb6b3b1e2f54a4a5f01e019664e4b7e873a76a4b53bc137a1e2fd3f947a972f50402416a763b3ddf8759cf03
7
+ data.tar.gz: abf3f8fb2c86393cb0291f3276234a8f32dbfe27ab7f909ea78918f37d8a9731493d76be19deb251546e5eaac1063924d3ba9826ddfe022167ee8d39c44ccd9c
data/Gemfile.lock CHANGED
@@ -1,9 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- include_date_scopes (0.9.3)
4
+ include_date_scopes (0.0.0)
5
5
  activerecord (< 4)
6
6
  railties
7
+ squeel
7
8
 
8
9
  GEM
9
10
  remote: http://rubygems.org/
@@ -30,60 +31,50 @@ GEM
30
31
  i18n (~> 0.6, >= 0.6.4)
31
32
  multi_json (~> 1.0)
32
33
  arel (3.0.3)
33
- better_errors (2.0.0)
34
+ better_errors (1.1.0)
34
35
  coderay (>= 1.0.0)
35
36
  erubis (>= 2.6.6)
36
- rack (>= 0.9.0)
37
37
  builder (3.0.4)
38
- bullet (4.13.2)
39
- activesupport (>= 3.0.0)
40
- uniform_notifier (>= 1.6.0)
41
- byebug (3.4.0)
42
- columnize (~> 0.8)
43
- debugger-linecache (~> 1.2)
44
- slop (~> 3.6)
45
- celluloid (0.16.0)
46
- timers (~> 4.0.0)
38
+ bullet (4.8.0)
39
+ activesupport
40
+ uniform_notifier (>= 1.4.0)
47
41
  coderay (1.1.0)
48
- columnize (0.8.9)
42
+ columnize (0.3.6)
43
+ daemons (1.1.9)
44
+ debugger (1.6.6)
45
+ columnize (>= 0.3.1)
46
+ debugger-linecache (~> 1.2.0)
47
+ debugger-ruby_core_source (~> 1.3.2)
49
48
  debugger-linecache (1.2.0)
49
+ debugger-ruby_core_source (1.3.2)
50
50
  diff-lcs (1.2.5)
51
51
  erubis (2.7.0)
52
+ eventmachine (1.0.3)
52
53
  ffi (1.9.3)
53
- formatador (0.2.5)
54
- guard (2.6.1)
55
- formatador (>= 0.2.4)
56
- listen (~> 2.7)
57
- lumberjack (~> 1.0)
58
- pry (>= 0.9.12)
59
- thor (>= 0.18.1)
60
- guard-ctags-bundler (1.1.0)
61
- guard (~> 2.0)
62
54
  hike (1.2.3)
63
- hitimes (1.2.2)
64
55
  i18n (0.6.9)
65
56
  interactive_editor (0.0.10)
66
57
  spoon (>= 0.0.1)
67
58
  journey (1.0.4)
68
59
  json (1.8.1)
69
- listen (2.7.9)
70
- celluloid (>= 0.15.2)
71
- rb-fsevent (>= 0.9.3)
72
- rb-inotify (>= 0.9)
73
- lumberjack (1.0.9)
74
60
  method_source (0.8.2)
75
61
  multi_json (1.9.2)
76
- pry (0.10.1)
77
- coderay (~> 1.1.0)
78
- method_source (~> 0.8.1)
62
+ polyamorous (0.6.4)
63
+ activerecord (>= 3.0)
64
+ pry (0.9.12.6)
65
+ coderay (~> 1.0)
66
+ method_source (~> 0.8)
79
67
  slop (~> 3.4)
80
- pry-byebug (2.0.0)
81
- byebug (~> 3.4)
82
- pry (~> 0.10)
68
+ pry-debugger (0.2.2)
69
+ debugger (~> 1.3)
70
+ pry (~> 0.9.10)
71
+ pry-doc (0.6.0)
72
+ pry (~> 0.9)
73
+ yard (~> 0.8)
83
74
  rack (1.4.5)
84
75
  rack-cache (1.2)
85
76
  rack (>= 0.4)
86
- rack-mini-profiler (0.9.2)
77
+ rack-mini-profiler (0.9.1)
87
78
  rack (>= 1.1.3)
88
79
  rack-ssl (1.3.4)
89
80
  rack
@@ -97,9 +88,6 @@ GEM
97
88
  rdoc (~> 3.4)
98
89
  thor (>= 0.14.6, < 2.0)
99
90
  rake (10.2.2)
100
- rb-fsevent (0.9.4)
101
- rb-inotify (0.9.5)
102
- ffi (>= 0.5.0)
103
91
  rdoc (3.12.2)
104
92
  json (~> 1.4)
105
93
  rspec-core (2.14.8)
@@ -114,7 +102,7 @@ GEM
114
102
  rspec-core (~> 2.14.0)
115
103
  rspec-expectations (~> 2.14.0)
116
104
  rspec-mocks (~> 2.14.0)
117
- slop (3.6.0)
105
+ slop (3.5.0)
118
106
  spoon (0.0.4)
119
107
  ffi
120
108
  sprockets (2.2.2)
@@ -123,13 +111,20 @@ GEM
123
111
  rack (~> 1.0)
124
112
  tilt (~> 1.1, != 1.3.0)
125
113
  sqlite3 (1.3.9)
114
+ squeel (1.1.1)
115
+ activerecord (>= 3.0)
116
+ activesupport (>= 3.0)
117
+ polyamorous (~> 0.6.0)
118
+ thin (1.6.2)
119
+ daemons (>= 1.0.9)
120
+ eventmachine (>= 1.0.0)
121
+ rack (>= 1.0.0)
126
122
  thor (0.19.1)
127
123
  tilt (1.4.1)
128
124
  timecop (0.7.1)
129
- timers (4.0.1)
130
- hitimes
131
125
  tzinfo (0.3.39)
132
- uniform_notifier (1.6.2)
126
+ uniform_notifier (1.4.0)
127
+ yard (0.8.7.4)
133
128
 
134
129
  PLATFORMS
135
130
  ruby
@@ -137,12 +132,14 @@ PLATFORMS
137
132
  DEPENDENCIES
138
133
  better_errors
139
134
  bullet
140
- guard-ctags-bundler
135
+ debugger
141
136
  include_date_scopes!
142
137
  interactive_editor
143
138
  pry
144
- pry-byebug
139
+ pry-debugger
140
+ pry-doc
145
141
  rack-mini-profiler
146
142
  rspec-rails
147
143
  sqlite3
144
+ thin
148
145
  timecop
@@ -1,4 +1,3 @@
1
- require 'pry'
2
1
  # Add the below date based scopes to a model.
3
2
  #
4
3
  # between(start_date_or_time, stop_date_or_time)
@@ -57,7 +56,6 @@ module IncludeDateScopes
57
56
  end
58
57
 
59
58
  def column_type_for(column)
60
- # raise "Cannot find column #{column}" unless columns_hash.include? column.to_s
61
59
  columns_hash[column.to_s].type
62
60
  end
63
61
  end
@@ -1,4 +1,4 @@
1
1
 
2
2
  module IncludeDateScopes
3
- VERSION = '0.9.4'.freeze
3
+ VERSION = '0.9.5'.freeze
4
4
  end
@@ -107,6 +107,13 @@ shared_examples "timestamp scopes" do |date_column = :created_at, prefix = '' |
107
107
  include_examples 'between time scope','tomorrow'
108
108
  end
109
109
 
110
+ describe ":next_minute" do
111
+ let(:bottom_threshold) { 1.minute.from_now }
112
+ let(:top_threshold) { Time.now }
113
+ let(:arguments) { [] }
114
+ include_examples 'between time scope','next_minute'
115
+ end
116
+
110
117
  describe ":next_hour" do
111
118
  let(:bottom_threshold) { 1.hour.from_now }
112
119
  let(:top_threshold) { Time.now }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: include_date_scopes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Todd