rubyXL-addressing 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b27386b029963ccb2f11d6e9324d41fb903f1c7a
4
- data.tar.gz: 9f62f5a03c5212eed1d739256b26092a75404ef2
2
+ SHA256:
3
+ metadata.gz: 1af5fe155ee47093e73a69f9cab10aa3df2e1dbaec92c58654251c1b7b1cd8a5
4
+ data.tar.gz: 6bcdf9608bc4d5e71e9aeda4467d0d60e7f6a817ee4dea894147227aaeb2ddc5
5
5
  SHA512:
6
- metadata.gz: 2c4469b190ff194cd6e5bc8475e07c1b7939d9eacf496b911a359d80b973a88104be3eb59cbc36ddba39781d78ab9607658a506ac657a5bb1bd5f82b3416e890
7
- data.tar.gz: c82f77ee0daa53f1a6dd5c04d57c4dab75d6bb69706fb47f8c83f7cf74cb4af658990a338829e0056bd1b1241d9aabbdf24df85c572aa546783a99cd0d98ebf0
6
+ metadata.gz: 8bc7bd4de827d0bb094bdfd3e73daa8b3411ec04c000df9cf6d86e3c8d88a81d26577ba8f067a27d3b555bbae7805fd36a67523e19c4ee6093cd277044ec991e
7
+ data.tar.gz: 2889c7f3ef262e20e35309327d724a9aa2e296b0d2ef169042fdb0984ad8360fc5bc16a2f68ba769d38385426142dbb3949d24eefb168cf08476275d6f385ece
data/.gitignore CHANGED
@@ -1,11 +1,8 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
4
3
  /_yardoc/
5
4
  /coverage/
6
5
  /doc/
7
6
  /pkg/
8
7
  /spec/reports/
9
8
  /tmp/
10
-
11
- /gemfiles/*.gemfile.lock
@@ -1,13 +1,29 @@
1
+ dist: xenial
2
+ sudo: false
1
3
  language: ruby
4
+
2
5
  rvm:
3
- - 2.1.8
4
- - 2.2.4
5
- - 2.3.0
6
- gemfile:
7
- - gemfiles/2.1.gemfile
8
- - gemfiles/2.5.gemfile
9
- - gemfiles/3.0.gemfile
10
- - gemfiles/3.1.gemfile
11
- - gemfiles/3.2.gemfile
12
- - gemfiles/3.3.gemfile
13
- before_install: gem install bundler -v 1.11.2
6
+ - 2
7
+ - 2.3
8
+
9
+ install:
10
+ - bundle install --jobs=3 --retry=3
11
+ - bundle exec appraisal install
12
+
13
+ before_script:
14
+ - |
15
+ if [ "$TRAVIS_PULL_REQUEST" = false -a "$TRAVIS_RUBY_VERSION" = 2 ]; then
16
+ curl -fL -o cc-test-reporter \
17
+ https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
18
+ chmod +x cc-test-reporter
19
+ fi
20
+
21
+ script:
22
+ - if [ -e cc-test-reporter ]; then export COVERAGE=true; fi
23
+ - bundle exec appraisal rake
24
+
25
+ after_script:
26
+ - |
27
+ if [ -e cc-test-reporter ]; then
28
+ ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
29
+ fi
data/Appraisals CHANGED
@@ -1,12 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  %w(
4
- 2.1.1
5
- 2.5.7
6
4
  3.0.2
7
5
  3.1.2
8
6
  3.2.7
9
- 3.3.17
7
+ 3.3.33
8
+ 3.4.3
10
9
  ).each do |version|
11
10
  appraise version[/\d+\.\d+/] do
12
11
  gem 'rubyXL', version
@@ -0,0 +1,44 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rubyXL-addressing (0.5.0)
5
+ rubyXL (>= 3)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ appraisal (2.2.0)
11
+ bundler
12
+ rake
13
+ thor (>= 0.14.0)
14
+ docile (1.3.1)
15
+ json (2.2.0)
16
+ mini_portile2 (2.4.0)
17
+ minitest (5.11.3)
18
+ nokogiri (1.10.3)
19
+ mini_portile2 (~> 2.4.0)
20
+ rake (10.5.0)
21
+ rubyXL (3.4.3)
22
+ nokogiri (>= 1.4.4)
23
+ rubyzip (>= 1.1.6)
24
+ rubyzip (1.2.2)
25
+ simplecov (0.16.1)
26
+ docile (~> 1.1)
27
+ json (>= 1.8, < 3)
28
+ simplecov-html (~> 0.10.0)
29
+ simplecov-html (0.10.2)
30
+ thor (0.20.3)
31
+
32
+ PLATFORMS
33
+ ruby
34
+
35
+ DEPENDENCIES
36
+ appraisal
37
+ bundler (~> 1.11)
38
+ minitest (~> 5.0)
39
+ rake (~> 10.0)
40
+ rubyXL-addressing!
41
+ simplecov
42
+
43
+ BUNDLED WITH
44
+ 1.17.3
data/README.md CHANGED
@@ -6,7 +6,6 @@ Addressing for [rubyXL](https://github.com/weshatheleopard/rubyXL)
6
6
  [![Build Status](https://travis-ci.org/m4i/rubyXL-addressing.svg?branch=master)](https://travis-ci.org/m4i/rubyXL-addressing)
7
7
  [![Test Coverage](https://codeclimate.com/github/m4i/rubyXL-addressing/badges/coverage.svg)](https://codeclimate.com/github/m4i/rubyXL-addressing/coverage)
8
8
  [![Code Climate](https://codeclimate.com/github/m4i/rubyXL-addressing/badges/gpa.svg)](https://codeclimate.com/github/m4i/rubyXL-addressing)
9
- [![Dependency Status](https://gemnasium.com/m4i/rubyXL-addressing.svg)](https://gemnasium.com/m4i/rubyXL-addressing)
10
9
 
11
10
  ## Installation
12
11
 
@@ -4,4 +4,4 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "rubyXL", "3.0.2"
6
6
 
7
- gemspec :path => "../"
7
+ gemspec path: "../"
@@ -0,0 +1,45 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ rubyXL-addressing (0.5.0)
5
+ rubyXL (>= 3)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ appraisal (2.2.0)
11
+ bundler
12
+ rake
13
+ thor (>= 0.14.0)
14
+ docile (1.3.1)
15
+ json (2.2.0)
16
+ mini_portile2 (2.4.0)
17
+ minitest (5.11.3)
18
+ nokogiri (1.10.3)
19
+ mini_portile2 (~> 2.4.0)
20
+ rake (10.5.0)
21
+ rubyXL (3.0.2)
22
+ nokogiri (>= 1.4.4)
23
+ rubyzip (>= 1.0.0)
24
+ rubyzip (1.2.2)
25
+ simplecov (0.16.1)
26
+ docile (~> 1.1)
27
+ json (>= 1.8, < 3)
28
+ simplecov-html (~> 0.10.0)
29
+ simplecov-html (0.10.2)
30
+ thor (0.20.3)
31
+
32
+ PLATFORMS
33
+ ruby
34
+
35
+ DEPENDENCIES
36
+ appraisal
37
+ bundler (~> 1.11)
38
+ minitest (~> 5.0)
39
+ rake (~> 10.0)
40
+ rubyXL (= 3.0.2)
41
+ rubyXL-addressing!
42
+ simplecov
43
+
44
+ BUNDLED WITH
45
+ 1.17.3
@@ -4,4 +4,4 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "rubyXL", "3.1.2"
6
6
 
7
- gemspec :path => "../"
7
+ gemspec path: "../"
@@ -0,0 +1,45 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ rubyXL-addressing (0.5.0)
5
+ rubyXL (>= 3)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ appraisal (2.2.0)
11
+ bundler
12
+ rake
13
+ thor (>= 0.14.0)
14
+ docile (1.3.1)
15
+ json (2.2.0)
16
+ mini_portile2 (2.4.0)
17
+ minitest (5.11.3)
18
+ nokogiri (1.10.3)
19
+ mini_portile2 (~> 2.4.0)
20
+ rake (10.5.0)
21
+ rubyXL (3.1.2)
22
+ nokogiri (>= 1.4.4)
23
+ rubyzip (>= 1.1.6)
24
+ rubyzip (1.2.2)
25
+ simplecov (0.16.1)
26
+ docile (~> 1.1)
27
+ json (>= 1.8, < 3)
28
+ simplecov-html (~> 0.10.0)
29
+ simplecov-html (0.10.2)
30
+ thor (0.20.3)
31
+
32
+ PLATFORMS
33
+ ruby
34
+
35
+ DEPENDENCIES
36
+ appraisal
37
+ bundler (~> 1.11)
38
+ minitest (~> 5.0)
39
+ rake (~> 10.0)
40
+ rubyXL (= 3.1.2)
41
+ rubyXL-addressing!
42
+ simplecov
43
+
44
+ BUNDLED WITH
45
+ 1.17.3
@@ -4,4 +4,4 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "rubyXL", "3.2.7"
6
6
 
7
- gemspec :path => "../"
7
+ gemspec path: "../"
@@ -0,0 +1,45 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ rubyXL-addressing (0.5.0)
5
+ rubyXL (>= 3)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ appraisal (2.2.0)
11
+ bundler
12
+ rake
13
+ thor (>= 0.14.0)
14
+ docile (1.3.1)
15
+ json (2.2.0)
16
+ mini_portile2 (2.4.0)
17
+ minitest (5.11.3)
18
+ nokogiri (1.10.3)
19
+ mini_portile2 (~> 2.4.0)
20
+ rake (10.5.0)
21
+ rubyXL (3.2.7)
22
+ nokogiri (>= 1.4.4)
23
+ rubyzip (>= 1.1.6)
24
+ rubyzip (1.2.2)
25
+ simplecov (0.16.1)
26
+ docile (~> 1.1)
27
+ json (>= 1.8, < 3)
28
+ simplecov-html (~> 0.10.0)
29
+ simplecov-html (0.10.2)
30
+ thor (0.20.3)
31
+
32
+ PLATFORMS
33
+ ruby
34
+
35
+ DEPENDENCIES
36
+ appraisal
37
+ bundler (~> 1.11)
38
+ minitest (~> 5.0)
39
+ rake (~> 10.0)
40
+ rubyXL (= 3.2.7)
41
+ rubyXL-addressing!
42
+ simplecov
43
+
44
+ BUNDLED WITH
45
+ 1.17.3
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rubyXL", "3.3.17"
5
+ gem "rubyXL", "3.3.33"
6
6
 
7
- gemspec :path => "../"
7
+ gemspec path: "../"
@@ -0,0 +1,45 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ rubyXL-addressing (0.5.0)
5
+ rubyXL (>= 3)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ appraisal (2.2.0)
11
+ bundler
12
+ rake
13
+ thor (>= 0.14.0)
14
+ docile (1.3.1)
15
+ json (2.2.0)
16
+ mini_portile2 (2.4.0)
17
+ minitest (5.11.3)
18
+ nokogiri (1.10.3)
19
+ mini_portile2 (~> 2.4.0)
20
+ rake (10.5.0)
21
+ rubyXL (3.3.33)
22
+ nokogiri (>= 1.4.4)
23
+ rubyzip (>= 1.1.6)
24
+ rubyzip (1.2.2)
25
+ simplecov (0.16.1)
26
+ docile (~> 1.1)
27
+ json (>= 1.8, < 3)
28
+ simplecov-html (~> 0.10.0)
29
+ simplecov-html (0.10.2)
30
+ thor (0.20.3)
31
+
32
+ PLATFORMS
33
+ ruby
34
+
35
+ DEPENDENCIES
36
+ appraisal
37
+ bundler (~> 1.11)
38
+ minitest (~> 5.0)
39
+ rake (~> 10.0)
40
+ rubyXL (= 3.3.33)
41
+ rubyXL-addressing!
42
+ simplecov
43
+
44
+ BUNDLED WITH
45
+ 1.17.3
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rubyXL", "2.1.1"
5
+ gem "rubyXL", "3.4.3"
6
6
 
7
- gemspec :path => "../"
7
+ gemspec path: "../"
@@ -0,0 +1,45 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ rubyXL-addressing (0.5.0)
5
+ rubyXL (>= 3)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ appraisal (2.2.0)
11
+ bundler
12
+ rake
13
+ thor (>= 0.14.0)
14
+ docile (1.3.1)
15
+ json (2.2.0)
16
+ mini_portile2 (2.4.0)
17
+ minitest (5.11.3)
18
+ nokogiri (1.10.3)
19
+ mini_portile2 (~> 2.4.0)
20
+ rake (10.5.0)
21
+ rubyXL (3.4.3)
22
+ nokogiri (>= 1.4.4)
23
+ rubyzip (>= 1.1.6)
24
+ rubyzip (1.2.2)
25
+ simplecov (0.16.1)
26
+ docile (~> 1.1)
27
+ json (>= 1.8, < 3)
28
+ simplecov-html (~> 0.10.0)
29
+ simplecov-html (0.10.2)
30
+ thor (0.20.3)
31
+
32
+ PLATFORMS
33
+ ruby
34
+
35
+ DEPENDENCIES
36
+ appraisal
37
+ bundler (~> 1.11)
38
+ minitest (~> 5.0)
39
+ rake (~> 10.0)
40
+ rubyXL (= 3.4.3)
41
+ rubyXL-addressing!
42
+ simplecov
43
+
44
+ BUNDLED WITH
45
+ 1.17.3
@@ -1,6 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'rubyXL/objects/reference'
3
+ require 'rubyXL'
4
+ begin
5
+ # >= rubyXL 3.4.0
6
+ require 'rubyXL/convenience_methods/cell'
7
+ rescue LoadError
8
+ end
4
9
 
5
10
  module RubyXL
6
11
  class Address
@@ -200,11 +205,8 @@ module RubyXL
200
205
  # @param [Object] value
201
206
  # @return [Object]
202
207
  def value=(value)
203
- if cell
204
- cell.change_contents(value)
205
- else
206
- @worksheet.add_cell(@row, @column, value)
207
- end
208
+ @worksheet.add_cell(@row, @column) unless cell
209
+ cell.change_contents(value)
208
210
  end
209
211
  end
210
212
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RubyXL
4
4
  module Addressing
5
- VERSION = '0.4.0'
5
+ VERSION = '0.5.0'
6
6
  end
7
7
  end
@@ -20,13 +20,13 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ['lib']
22
22
 
23
- spec.required_ruby_version = '>= 2.1.0'
23
+ spec.required_ruby_version = '>= 2.3.0'
24
24
 
25
- spec.add_dependency 'rubyXL', '>= 2.1.1'
25
+ spec.add_dependency 'rubyXL', '>= 3'
26
26
 
27
27
  spec.add_development_dependency 'bundler', '~> 1.11'
28
28
  spec.add_development_dependency 'rake', '~> 10.0'
29
29
  spec.add_development_dependency 'minitest', '~> 5.0'
30
30
  spec.add_development_dependency 'appraisal'
31
- spec.add_development_dependency 'codeclimate-test-reporter'
31
+ spec.add_development_dependency 'simplecov'
32
32
  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.0
4
+ version: 0.5.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-27 00:00:00.000000000 Z
11
+ date: 2019-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyXL
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 2.1.1
19
+ version: '3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 2.1.1
26
+ version: '3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: codeclimate-test-reporter
84
+ name: simplecov
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -108,17 +108,22 @@ files:
108
108
  - Appraisals
109
109
  - CODE_OF_CONDUCT.md
110
110
  - Gemfile
111
+ - Gemfile.lock
111
112
  - LICENSE.txt
112
113
  - README.md
113
114
  - Rakefile
114
115
  - bin/console
115
116
  - bin/setup
116
- - gemfiles/2.1.gemfile
117
- - gemfiles/2.5.gemfile
118
117
  - gemfiles/3.0.gemfile
118
+ - gemfiles/3.0.gemfile.lock
119
119
  - gemfiles/3.1.gemfile
120
+ - gemfiles/3.1.gemfile.lock
120
121
  - gemfiles/3.2.gemfile
122
+ - gemfiles/3.2.gemfile.lock
121
123
  - gemfiles/3.3.gemfile
124
+ - gemfiles/3.3.gemfile.lock
125
+ - gemfiles/3.4.gemfile
126
+ - gemfiles/3.4.gemfile.lock
122
127
  - lib/rubyXL/address.rb
123
128
  - lib/rubyXL/addressing.rb
124
129
  - lib/rubyXL/addressing/version.rb
@@ -135,15 +140,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
135
140
  requirements:
136
141
  - - ">="
137
142
  - !ruby/object:Gem::Version
138
- version: 2.1.0
143
+ version: 2.3.0
139
144
  required_rubygems_version: !ruby/object:Gem::Requirement
140
145
  requirements:
141
146
  - - ">="
142
147
  - !ruby/object:Gem::Version
143
148
  version: '0'
144
149
  requirements: []
145
- rubyforge_project:
146
- rubygems_version: 2.5.1
150
+ rubygems_version: 3.0.3
147
151
  signing_key:
148
152
  specification_version: 4
149
153
  summary: Addressing for rubyXL.
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rubyXL", "2.5.7"
6
-
7
- gemspec :path => "../"