gkosae-spreadshot 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
  SHA256:
3
- metadata.gz: d791d40e930be4758677eaf69b0e06626a6bf3d486f450f613f9f1fe44414024
4
- data.tar.gz: 80828c259225f8b85a8596f6a28592add0331763b424d85ec8fb09a748365c2f
3
+ metadata.gz: f10ecb1ff5c62f2e80dd9af45a0b4a7d4203d1ffd9d630efcd146ecfabf1ca13
4
+ data.tar.gz: 7d7442ad75b9ff5f60d50a2a4e7289cdb5fd4ce90ee67131b3815bc4c431dc77
5
5
  SHA512:
6
- metadata.gz: 1ce21cdac4b7f5b2bdcf5cc988b5ecca9e3369871fab128d85ccf05f82fe087991a077525962edd600b3c08aa2eaf4b3c694e5004e0372546d13f6170102651a
7
- data.tar.gz: 04504d3c45b1daaa784b4c52b18c46bbdb53420de53ec59e5b6638ee5d237f50f9abb71772570388e47c58908f66c47070fe03c7b45bcbbdd97c60dbf4693999
6
+ metadata.gz: d5170a63d30da51675486bdf5b98a1366832c1df6d67a486065b573ac710e9d07ada85b1519bcde313cbab794235459a3283521ae77162331da2d3d6663d0b21
7
+ data.tar.gz: 07ddcd0c4e9c878b76841e48b761f21a5f13a208a625e7bae40f2f52cd67b91de3d03f5099539b897360eb4ac1f8328b7ae229398ca2904b556ce1d5e6e49c00
@@ -1,3 +1,9 @@
1
1
  # Changelog
2
+ ## v0.1.1, 2019-11-01 (Maintenance Release)
3
+ - Updated gemspec with CHANGELOG URI and documentation URI
4
+ - Corrected RubyXL backend usage instructions in README
5
+ - Updated README installation instructions with new gem name
6
+ - Changed gem name from 'spreadshot' to 'gkosae-spreadshot' to circumvent rubygems typo protections
7
+
2
8
  ## v0.1.0, 2019-10-31 (Feature Release)
3
9
  - Initial release
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gkosae-spreadshot (0.1.0)
4
+ gkosae-spreadshot (0.1.1)
5
5
  rubyXL (~> 3.3.33)
6
6
  smarter_csv (~> 1.2.6)
7
7
 
data/README.md CHANGED
@@ -12,7 +12,7 @@ The name was inspired by the names of [battle chips from Megaman Battle Network
12
12
  Add this line to your application's Gemfile:
13
13
 
14
14
  ```ruby
15
- gem 'spreadshot'
15
+ gem 'gkosae-spreadshot'
16
16
  ```
17
17
 
18
18
  And then execute:
@@ -20,8 +20,9 @@ And then execute:
20
20
  $ bundle
21
21
 
22
22
  Or install it yourself as:
23
-
24
- $ gem install spreadshot
23
+ ```bash
24
+ $ gem install 'gkosae-spreadshot'
25
+ ```
25
26
 
26
27
  ## Usage
27
28
 
@@ -46,7 +47,9 @@ end
46
47
  # A cell_index_to_field_mapper must be provided for the RubyXL backend to map values read from a column to a unique key in the yielded hash
47
48
  xlsx_reader = Spreadshot::Reader.new(
48
49
  backend: :ruby_xl,
49
- cell_index_to_field_mapper: {0 => :h1, 1 => :h2, 2 => :h3, 3 => :h4}
50
+ backend_options: {
51
+ cell_index_to_field_mapper: {0 => :h1, 1 => :h2, 2 => :h3, 3 => :h4}
52
+ }
50
53
  )
51
54
 
52
55
  begin
@@ -68,9 +71,11 @@ end
68
71
  ```ruby
69
72
  xlsx_reader = Spreadshot::Reader.new(
70
73
  backend: :ruby_xl,
71
- worksheet_index: 1, # Index of the worksheet to read from (defaults to 0, i.e. the first worksheet)
72
- headers: false,
73
- cell_index_to_field_mapper: {0 => :h1, 1 => :h2, 2 => :h3, 3 => :h4}
74
+ backend_options: {
75
+ worksheet_index: 1, # Index of the worksheet to read from (defaults to 0, i.e. the first worksheet)
76
+ headers: false,
77
+ cell_index_to_field_mapper: {0 => :h1, 1 => :h2, 2 => :h3, 3 => :h4}
78
+ }
74
79
  )
75
80
  begin
76
81
  xlsx_reader.read(path_to_sample_xlsx_file) do |row_index, row_data|
@@ -124,7 +129,13 @@ reader.set_backend(xlsx)
124
129
 
125
130
  #OR
126
131
 
127
- reader.set_backend(:ruby_xl)
132
+ reader.set_backend(
133
+ :ruby_xl,
134
+ {
135
+ headers: false,
136
+ cell_index_to_field_mapper: {0 => :h1, 1 => :h2, 2 => :h3, 3 => :h4}
137
+ }
138
+ )
128
139
  ```
129
140
 
130
141
 
@@ -140,4 +151,4 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/gkosae
140
151
 
141
152
  ## License
142
153
 
143
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
154
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -1,3 +1,3 @@
1
1
  module Spreadshot
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -16,7 +16,8 @@ Gem::Specification.new do |spec|
16
16
 
17
17
  spec.metadata["homepage_uri"] = spec.homepage
18
18
  spec.metadata["source_code_uri"] = "https://github.com/gkosae/spreadshot.git"
19
- # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
19
+ spec.metadata["changelog_uri"] = "https://github.com/gkosae/spreadshot/blob/master/CHANGELOG.md"
20
+ spec.metadata["documentation_uri"] = "https://www.rubydoc.info/github/gkosae/spreadshot"
20
21
 
21
22
  # Specify which files should be added to the gem when it is released.
22
23
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gkosae-spreadshot
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
  - George Osae
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-31 00:00:00.000000000 Z
11
+ date: 2019-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: smarter_csv
@@ -127,6 +127,8 @@ metadata:
127
127
  allowed_push_host: https://rubygems.org
128
128
  homepage_uri: https://github.com/gkosae/spreadshot.git
129
129
  source_code_uri: https://github.com/gkosae/spreadshot.git
130
+ changelog_uri: https://github.com/gkosae/spreadshot/blob/master/CHANGELOG.md
131
+ documentation_uri: https://www.rubydoc.info/github/gkosae/spreadshot
130
132
  post_install_message:
131
133
  rdoc_options: []
132
134
  require_paths: