cline 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,11 +11,9 @@ module Cline
11
11
  }
12
12
 
13
13
  scope :earliest, ->(limit = 1, offset = 0) {
14
- order_by_default_priority_for_display.order(:notified_at).limit(limit).offset(offset)
14
+ order(:display_count).order(:notified_at).limit(limit).offset(offset)
15
15
  }
16
16
 
17
- scope :order_by_default_priority_for_display, order(:display_count)
18
-
19
17
  scope :displayed, where('display_count > 0')
20
18
 
21
19
  scope :recent_notified, ->(limit = 1) {
@@ -38,8 +36,8 @@ module Cline
38
36
  end
39
37
 
40
38
  def clean(pool_size)
41
- order_by_default_priority_for_display.
42
39
  order('notified_at DESC').
40
+ order(:display_count).
43
41
  offset(pool_size).
44
42
  destroy_all
45
43
  end
data/lib/cline/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cline
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-12-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
16
- requirement: &70363467909660 !ruby/object:Gem::Requirement
16
+ requirement: &70118105424140 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.14.6
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70363467909660
24
+ version_requirements: *70118105424140
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: activerecord
27
- requirement: &70363467907460 !ruby/object:Gem::Requirement
27
+ requirement: &70118105422360 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 3.1.1
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70363467907460
35
+ version_requirements: *70118105422360
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: sqlite3
38
- requirement: &70363467903860 !ruby/object:Gem::Requirement
38
+ requirement: &70118105420160 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.3.4
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70363467903860
46
+ version_requirements: *70118105420160
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: feedzirra
49
- requirement: &70363467902320 !ruby/object:Gem::Requirement
49
+ requirement: &70118105435580 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 0.0.31
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70363467902320
57
+ version_requirements: *70118105435580
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: notify
60
- requirement: &70363467916860 !ruby/object:Gem::Requirement
60
+ requirement: &70118105434400 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 0.3.0
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70363467916860
68
+ version_requirements: *70118105434400
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
- requirement: &70363467911660 !ruby/object:Gem::Requirement
71
+ requirement: &70118105431120 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 0.9.2
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70363467911660
79
+ version_requirements: *70118105431120
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: ir_b
82
- requirement: &70363467924200 !ruby/object:Gem::Requirement
82
+ requirement: &70118105429620 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 1.4.0
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70363467924200
90
+ version_requirements: *70118105429620
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: tapp
93
- requirement: &70363467921920 !ruby/object:Gem::Requirement
93
+ requirement: &70118105441320 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: 1.1.0
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *70363467921920
101
+ version_requirements: *70118105441320
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: rspec
104
- requirement: &70363467920900 !ruby/object:Gem::Requirement
104
+ requirement: &70118105439820 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: 2.6.0
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *70363467920900
112
+ version_requirements: *70118105439820
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: rr
115
- requirement: &70363467919920 !ruby/object:Gem::Requirement
115
+ requirement: &70118105451120 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ! '>='
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: 1.0.4
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *70363467919920
123
+ version_requirements: *70118105451120
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: fabrication
126
- requirement: &70363467919320 !ruby/object:Gem::Requirement
126
+ requirement: &70118105448320 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ! '>='
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: 1.2.0
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *70363467919320
134
+ version_requirements: *70118105448320
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: fuubar
137
- requirement: &70363467918440 !ruby/object:Gem::Requirement
137
+ requirement: &70118105446240 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ! '>='
@@ -142,10 +142,10 @@ dependencies:
142
142
  version: 0.0.6
143
143
  type: :development
144
144
  prerelease: false
145
- version_requirements: *70363467918440
145
+ version_requirements: *70118105446240
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: simplecov
148
- requirement: &70363467928960 !ruby/object:Gem::Requirement
148
+ requirement: &70118105445080 !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
151
151
  - - ! '>='
@@ -153,10 +153,10 @@ dependencies:
153
153
  version: 0.5.3
154
154
  type: :development
155
155
  prerelease: false
156
- version_requirements: *70363467928960
156
+ version_requirements: *70118105445080
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: activesupport
159
- requirement: &70363467942860 !ruby/object:Gem::Requirement
159
+ requirement: &70118105457040 !ruby/object:Gem::Requirement
160
160
  none: false
161
161
  requirements:
162
162
  - - ! '>='
@@ -164,7 +164,7 @@ dependencies:
164
164
  version: 3.1.1
165
165
  type: :development
166
166
  prerelease: false
167
- version_requirements: *70363467942860
167
+ version_requirements: *70118105457040
168
168
  description: Cline - CLI Line Notifier
169
169
  email:
170
170
  - celluloid.key@gmail.com