rubyXL-addressing 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.hound.yml +2 -0
- data/.rubocop.yml +1 -6
- data/Appraisals +2 -0
- data/Gemfile +2 -0
- data/README.md +1 -1
- data/Rakefile +2 -0
- data/bin/console +1 -0
- data/lib/rubyXL/address.rb +2 -7
- data/lib/rubyXL/addressing.rb +3 -3
- data/lib/rubyXL/addressing/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 366a2c486d1f03f243734f41717c5ead0f479df6
|
4
|
+
data.tar.gz: fab7783dec00ce4309892f36cffb668101741eba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8291d02ca52a48f944f33aa57dcd20071c07e4e34c05b7fcb3f24bfdc513e23d3b2c9477a3f4fede4989118af8c85522d0b30772605b45d89c151d3629934df
|
7
|
+
data.tar.gz: 9f0ee399e07d073cd0b81246752a19018e31db311041476aa69a17a77a5255f32785b74220b4677e835355c41bc423f9cc365ce451977d7b00fd2341a2b13f70
|
data/.hound.yml
ADDED
data/.rubocop.yml
CHANGED
@@ -4,7 +4,7 @@ AllCops:
|
|
4
4
|
- Appraisals
|
5
5
|
- Gemfile
|
6
6
|
- Rakefile
|
7
|
-
TargetRubyVersion: 2.
|
7
|
+
TargetRubyVersion: 2.3
|
8
8
|
|
9
9
|
Metrics/AbcSize:
|
10
10
|
Exclude:
|
@@ -29,11 +29,6 @@ Style/ClassVars:
|
|
29
29
|
Style/Documentation:
|
30
30
|
Enabled: false
|
31
31
|
|
32
|
-
# does not consider `frozen_string_literal: true`
|
33
|
-
Style/MutableConstant:
|
34
|
-
Exclude:
|
35
|
-
- lib/rubyXL/addressing/version.rb
|
36
|
-
|
37
32
|
Style/TrailingCommaInLiteral:
|
38
33
|
EnforcedStyleForMultiline: comma
|
39
34
|
|
data/Appraisals
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
data/Rakefile
CHANGED
data/bin/console
CHANGED
data/lib/rubyXL/address.rb
CHANGED
@@ -51,13 +51,13 @@ module RubyXL
|
|
51
51
|
# @param [Integer, String, Symbol] row
|
52
52
|
# @return [Integer, String, Symbol]
|
53
53
|
def row=(row)
|
54
|
-
@row = Addressing.__send__(:normalize,
|
54
|
+
@row = Addressing.__send__(:normalize, :row, row)
|
55
55
|
end
|
56
56
|
|
57
57
|
# @param [Integer, String, Symbol] column
|
58
58
|
# @return [Integer, String, Symbol]
|
59
59
|
def column=(column)
|
60
|
-
@column = Addressing.__send__(:normalize,
|
60
|
+
@column = Addressing.__send__(:normalize, :column, column)
|
61
61
|
end
|
62
62
|
|
63
63
|
# @return [String]
|
@@ -127,11 +127,6 @@ module RubyXL
|
|
127
127
|
(row = @worksheet[@row]) && row[@column]
|
128
128
|
end
|
129
129
|
|
130
|
-
# @return [Boolean]
|
131
|
-
def exists?
|
132
|
-
!cell.nil?
|
133
|
-
end
|
134
|
-
|
135
130
|
# @return [Object]
|
136
131
|
def value
|
137
132
|
cell && cell.value
|
data/lib/rubyXL/addressing.rb
CHANGED
@@ -14,7 +14,7 @@ module RubyXL
|
|
14
14
|
# @param [Integer] ind
|
15
15
|
# @return [String]
|
16
16
|
def row_ind2ref(ind)
|
17
|
-
validate_index(
|
17
|
+
validate_index(:row, ind)
|
18
18
|
|
19
19
|
(ind + 1).to_s.freeze
|
20
20
|
end
|
@@ -22,7 +22,7 @@ module RubyXL
|
|
22
22
|
# @param [Integer] ind
|
23
23
|
# @return [String]
|
24
24
|
def column_ind2ref(ind)
|
25
|
-
validate_index(
|
25
|
+
validate_index(:column, ind)
|
26
26
|
|
27
27
|
ref = ''.dup
|
28
28
|
loop do
|
@@ -85,5 +85,5 @@ module RubyXL
|
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
88
|
-
Worksheet.
|
88
|
+
Worksheet.include(Addressing)
|
89
89
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubyXL-addressing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masaki Takeuchi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyXL
|
@@ -102,6 +102,7 @@ extensions: []
|
|
102
102
|
extra_rdoc_files: []
|
103
103
|
files:
|
104
104
|
- ".gitignore"
|
105
|
+
- ".hound.yml"
|
105
106
|
- ".rubocop.yml"
|
106
107
|
- ".travis.yml"
|
107
108
|
- Appraisals
|