sheet_wrap 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sheet_wrap/version.rb +1 -1
- data/lib/sheet_wrap/worksheet.rb +3 -2
- data/sheet_wrap.gemspec +2 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f2462b03efc2d1277715298baa047464004c9df
|
4
|
+
data.tar.gz: 98c8dac65aa9f74d1873c17c836a33eae154dbbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9759db40b86c8f260bd3901c871fe16970ef5f9af3478e4fa38a9e6ddc6630a00c6644e9eceecbbc123ac5637d0c6e3f1b9ee67ee02ce286912cde0717c74ff1
|
7
|
+
data.tar.gz: '03292cae909a04bed8e99f2530317489011f1531f99dee61c3fec587367215ab135933ff11cbe1a8e6bc1f22a928d945c3dc27b142772bd8ebdb16fa2a7a7fa3'
|
data/lib/sheet_wrap/version.rb
CHANGED
data/lib/sheet_wrap/worksheet.rb
CHANGED
@@ -4,6 +4,8 @@ module SheetWrap
|
|
4
4
|
|
5
5
|
attr_reader :drive_worksheet, :headers, :rows
|
6
6
|
|
7
|
+
def_delegator :@drive_worksheet, :title, :title
|
8
|
+
def_delegator :@drive_worksheet, :title=, :title=
|
7
9
|
def_delegator :@drive_worksheet, :[], :[]
|
8
10
|
def_delegator :@drive_worksheet, :[]=, :[]=
|
9
11
|
def_delegator :@drive_worksheet, :num_cols, :num_cols
|
@@ -18,8 +20,7 @@ module SheetWrap
|
|
18
20
|
def load
|
19
21
|
@headers = (1..num_cols).map{|col| drive_worksheet[1, col] }
|
20
22
|
|
21
|
-
@rows =
|
22
|
-
(2..num_rows).map do |row|
|
23
|
+
@rows = (2..num_rows).map do |row|
|
23
24
|
::SheetWrap::Row.new(self, row)
|
24
25
|
end
|
25
26
|
end
|
data/sheet_wrap.gemspec
CHANGED
@@ -20,6 +20,8 @@ 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.add_dependency "google_drive", "~> 2"
|
24
|
+
|
23
25
|
spec.add_development_dependency "bundler", "~> 1.14"
|
24
26
|
spec.add_development_dependency "rake", "~> 10.0"
|
25
27
|
spec.add_development_dependency "rspec", "~> 3.0"
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sheet_wrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hogelog
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: google_drive
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: bundler
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -93,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
107
|
version: '0'
|
94
108
|
requirements: []
|
95
109
|
rubyforge_project:
|
96
|
-
rubygems_version: 2.
|
110
|
+
rubygems_version: 2.6.10
|
97
111
|
signing_key:
|
98
112
|
specification_version: 4
|
99
113
|
summary: Google spreadsheet wrapper
|