cline 0.3.0 → 0.3.1
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/cline/notification.rb +2 -5
- data/lib/cline/version.rb +1 -1
- metadata +4 -4
data/lib/cline/notification.rb
CHANGED
@@ -8,7 +8,7 @@ module Cline
|
|
8
8
|
validate :message, presence: true, uniqueness: true
|
9
9
|
validate :display_count, presence: true, numerically: true
|
10
10
|
|
11
|
-
|
11
|
+
default_scope -> {
|
12
12
|
select('(id - (SELECT MIN(id) FROM notifications)) AS id_alias, *')
|
13
13
|
}
|
14
14
|
|
@@ -38,10 +38,7 @@ module Cline
|
|
38
38
|
|
39
39
|
class << self
|
40
40
|
def display(offset = 0)
|
41
|
-
|
42
|
-
earliest(1, offset).
|
43
|
-
first.
|
44
|
-
display
|
41
|
+
earliest(1, offset).first.display
|
45
42
|
end
|
46
43
|
|
47
44
|
def normalize_message(m)
|
data/lib/cline/version.rb
CHANGED
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.3.
|
4
|
+
version: 0.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
@@ -311,7 +311,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
311
311
|
version: '0'
|
312
312
|
segments:
|
313
313
|
- 0
|
314
|
-
hash:
|
314
|
+
hash: -262284518797567991
|
315
315
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
316
316
|
none: false
|
317
317
|
requirements:
|
@@ -320,7 +320,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
320
320
|
version: '0'
|
321
321
|
segments:
|
322
322
|
- 0
|
323
|
-
hash:
|
323
|
+
hash: -262284518797567991
|
324
324
|
requirements: []
|
325
325
|
rubyforge_project:
|
326
326
|
rubygems_version: 1.8.23
|