ruco 0.2.20 → 0.2.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruco/core_ext/range.rb +0 -6
- data/lib/ruco/editor/colors.rb +2 -2
- data/lib/ruco/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e3f80e4f0c75833f8336e308d3eab516d6fec1d
|
4
|
+
data.tar.gz: d931fa897ac205fa01730fb630249dc40d6ca542
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85bf63c08c961ff925a1a0e868eaa3cac82e05e251b59509e137bcd08254dacbd2b41ad4c309190d47607a03c0a9080e1b6a63c896ae9047fe9c9ed47ac42c4a
|
7
|
+
data.tar.gz: 65411693c6c4cbdf3be7635ae261eb14044b97250d2ebcc5313e122fd9e96107eebf625f557067e874bfcd9d1da254a58c02cb4358f2ca6f17cc7d893bcd5450
|
data/lib/ruco/core_ext/range.rb
CHANGED
@@ -4,12 +4,6 @@ class Range
|
|
4
4
|
(first <= other.last) and (other.first <= last)
|
5
5
|
end
|
6
6
|
|
7
|
-
# (1..2).last_element == 2
|
8
|
-
# (1...3).last_element == 2
|
9
|
-
def last_element
|
10
|
-
Dispel::Tools.last_element(self)
|
11
|
-
end unless defined? last_element
|
12
|
-
|
13
7
|
# (1..2).move(2) == (3..4)
|
14
8
|
def move(n)
|
15
9
|
if exclude_end?
|
data/lib/ruco/editor/colors.rb
CHANGED
@@ -62,11 +62,11 @@ module Ruco
|
|
62
62
|
return columns if left == 0
|
63
63
|
|
64
64
|
# style is out of scope -> add nothing
|
65
|
-
return nil if columns.
|
65
|
+
return nil if columns.max <= left
|
66
66
|
|
67
67
|
# shift style to the left
|
68
68
|
first = [0, columns.first - left].max
|
69
|
-
last = columns.
|
69
|
+
last = columns.max - left
|
70
70
|
first..last
|
71
71
|
end
|
72
72
|
|
data/lib/ruco/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruco
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clipboard
|