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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6bf22e117f5f3d843c74fd5529c973ac69e43fa5
4
- data.tar.gz: cee3104fcf49411526f06be23000f416ee4a5169
3
+ metadata.gz: 1f2462b03efc2d1277715298baa047464004c9df
4
+ data.tar.gz: 98c8dac65aa9f74d1873c17c836a33eae154dbbe
5
5
  SHA512:
6
- metadata.gz: ee5754c2315e527cb6d992c22ac1749f1f59e64ba581feb7610ce4515705a38f7ed627f6b41da55c1c03bcb066ccc134d127ebd55005bf8bd043ffee22861b37
7
- data.tar.gz: f6cf8bc46bf7c53291944dce2fb98f8bb27245f6c4e556542236513886de0fbe7ecd3d7ac37d406a7663d10ef4b6e6f0f308c5b9537ec18c95607f1c63bcbffb
6
+ metadata.gz: 9759db40b86c8f260bd3901c871fe16970ef5f9af3478e4fa38a9e6ddc6630a00c6644e9eceecbbc123ac5637d0c6e3f1b9ee67ee02ce286912cde0717c74ff1
7
+ data.tar.gz: '03292cae909a04bed8e99f2530317489011f1531f99dee61c3fec587367215ab135933ff11cbe1a8e6bc1f22a928d945c3dc27b142772bd8ebdb16fa2a7a7fa3'
@@ -1,3 +1,3 @@
1
1
  module SheetWrap
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -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
@@ -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.0
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-24 00:00:00.000000000 Z
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.4.5.1
110
+ rubygems_version: 2.6.10
97
111
  signing_key:
98
112
  specification_version: 4
99
113
  summary: Google spreadsheet wrapper