yomise 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 2b7a8b8f154e4e7353ac87bbe7f87677a11b9b4d9fb92843cbe43d69f1ad55f6
4
+ data.tar.gz: 33635b64c5b492dff53353d98d4c527948e716def4faa90ada74c880a77c9f4c
5
+ SHA512:
6
+ metadata.gz: cba1da8161b7378a39f0c6f1f529e579e425938d942ceb9e327e7af815d9f59344473881f53cf06c8dba90ce4c978248a2f0222ee2f7f04fe20174aadf4bfc9a
7
+ data.tar.gz: 7928f92a011a14e83c4a51e971467ad423f40a204ee7e1fc63b4c86e6c8619ab8aa842b1d13c7a8b2814ff49cd887f9e55d8ca0aace320f1601f8fcc3706ba4c
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at shun_yamaguchi_tc@live.jp. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in yomise.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "rspec", "~> 3.0"
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 showata
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # Yomise
2
+
3
+ TODO: Delete this and the text below, and describe your gem
4
+
5
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/yomise`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+
7
+ ## Installation
8
+
9
+ TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
+
11
+ Install the gem and add to the application's Gemfile by executing:
12
+
13
+ $ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
14
+
15
+ If bundler is not being used to manage dependencies, install the gem by executing:
16
+
17
+ $ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Development
24
+
25
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
26
+
27
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
28
+
29
+ ## Contributing
30
+
31
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/yomise. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/yomise/blob/master/CODE_OF_CONDUCT.md).
32
+
33
+ ## License
34
+
35
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
36
+
37
+ ## Code of Conduct
38
+
39
+ Everyone interacting in the Yomise project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/yomise/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
@@ -0,0 +1,4 @@
1
+ class Array
2
+ # Returns line No. of longest line(not the length of it).
3
+ def longest_line = self.map(&:length).max
4
+ end
data/lib/to_csv.rb ADDED
@@ -0,0 +1,72 @@
1
+ require "daru"
2
+ require "rover"
3
+
4
+ class Daru::DataFrame
5
+ def to_csv()
6
+ a = self.to_a.transpose
7
+
8
+ ans = self.map(&:name).join ","
9
+ self.to_a[0].each do |item|
10
+ ans += "\n"
11
+ ans += item.map{|k, v| v}.join(",")
12
+ end
13
+
14
+ return ans
15
+ end
16
+
17
+ def write_csv(path, encoding: nil)
18
+ enc = encoding.nil? ? "" : ":#{encoding}"
19
+ open(path, "w#{enc}") { _1.write to_csv }
20
+ end
21
+
22
+ # To avoid bug about adding column to Daru::DataFrame
23
+ def add_vector(vecname, vec)
24
+ self[vecname] = vec
25
+ self.rename_vectors({vecname => vecname})
26
+ end
27
+
28
+ ### エンコード関連 ###
29
+ # vector_i番目のヘッダー名を読めるようにエンコード
30
+ def encode_vector_name(vector_i)
31
+ if self.vectors.to_a[vector_i].is_a?(String)
32
+ self.vectors.to_a[vector_i].encode Encoding::UTF_8, Encoding::Windows_31J
33
+ end
34
+ end
35
+
36
+ # すべての列に対し上記を実施
37
+ def encode_vectors!
38
+ self.vectors = Daru::Index.new(Range.new(0, self.vectors.size-1).map {|i| encode_vector_name i })
39
+ end
40
+
41
+ # ver.0.3.8~ Convert Daru::DF encoding
42
+ def convert_enc!(from: "cp932", to: "utf-8")
43
+ self.vectors.each do |col|
44
+ self[col] = self[col].each {|val| val.encode!(to, from_encoding: from) if val.is_a?(String)}
45
+ end
46
+
47
+ self.encode_vectors!
48
+ end
49
+ #####################
50
+
51
+ # rover not suppoted yet about indexing
52
+ def set_index!(indexcolumn)
53
+ self.index = self[indexcolumn]
54
+ end
55
+
56
+ # To revice pivot index
57
+ def simplify_multi_index(vector_names_ary)
58
+ self.vectors = Daru::Index.new(vector_names_ary)
59
+ self.index = Daru::Vector.new(self.index.to_a.map{_1[0]})
60
+ end
61
+
62
+ alias_method :addvec, :add_vector
63
+ end
64
+
65
+ class Rover::DataFrame
66
+ # Rover#to_csv is already exist.
67
+
68
+ def write_csv(path, encoding: nil)
69
+ enc = encoding.nil? ? "" : ":#{encoding}"
70
+ open(path, "w#{enc}") {|f| f.write self.to_csv}
71
+ end
72
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Yomise
4
+ VERSION = "0.1.0"
5
+ end
data/lib/yomise.rb ADDED
@@ -0,0 +1,256 @@
1
+ # frozen_string_literal: true
2
+ require "csv"
3
+ require "roo-xls"
4
+ require "spreadsheet"
5
+ require "rover"
6
+ require "daru"
7
+ require_relative "./to_csv"
8
+ require_relative "./longest_line"
9
+ require_relative "yomise/version"
10
+
11
+ module Yomise
12
+ class Error < StandardError; end
13
+
14
+ module_function
15
+
16
+ def read(path, **opt)
17
+ return /csv$/ === path ? read_csv(path, **opt) : read_excel(path, **opt)
18
+ end
19
+
20
+ # ##Generate Array from CSV File, and convert it to Hash or DataFrame.
21
+ # **opt candidate= line_from: 1, header: 0
22
+ # ver. 0.3.8~ default format=:daru
23
+ def read_csv(path, format: :daru, encoding: "utf-8", col_sep: ",", index: nil, **opt)
24
+ ## TODO.. index: option that designate column number to generate DF index.
25
+ ## That is, revicing set_index method.
26
+
27
+ # Get 2D Array
28
+ begin
29
+ csv = CSV.parse(File.open(path, encoding: encoding, &:read), col_sep: col_sep)
30
+ rescue
31
+ # Try Another Encoding
32
+ ## puts "Fail Encoding #{encoding}. Trying cp932..."
33
+ csv = CSV.parse(File.open(path, encoding: "cp932", &:read), col_sep: col_sep)
34
+ encoding = "cp932"
35
+ end
36
+
37
+ if format.to_s == "array"
38
+ return csv
39
+ elsif format.to_s == "hash"
40
+ h, i = to_hash(csv, **opt)
41
+ return h
42
+ else # include format.nil? (in this case, convert to Daru::DF).
43
+
44
+ h, ind_orig = to_hash(csv, index: index, **opt)
45
+ ans = to_df(h, format: format)
46
+
47
+ # Converting Encode and Setting index.. rover not supported yet
48
+ if format.to_s == "daru" || format.nil?
49
+ ans.convert_enc!(from: encoding, to: "utf-8")
50
+ begin
51
+ ans.index = ind_orig if index
52
+ rescue
53
+ warn "Indexing failed (Parhaps due to duplicated index)."
54
+ end
55
+ end
56
+
57
+ return ans
58
+ end
59
+ end
60
+
61
+ # ##Generate Array from EXCEL File, and convert it to Hash or DataFrame.
62
+ # **opt candidate= line_from: 1, header: 0)
63
+ def read_excel(path, sheet_i: 0, format: :daru, encoding: "utf-8", index: nil, **opt)
64
+ a2d = open_excel(path, sheet_i, encoding: encoding) # Get 2D Array
65
+
66
+ if format.to_s == "array"
67
+ return a2d
68
+ elsif format.to_s == "hash"
69
+ h, i = to_hash(a2d, **opt)
70
+ return h
71
+ else # include format.nil?
72
+ h, ind_orig = to_hash(a2d, index: index, **opt)
73
+ ans = to_df(h, format: format)
74
+ if format.to_s == "daru" || format.nil?
75
+ begin
76
+ ans.index = ind_orig if index
77
+ rescue
78
+ warn "Indexing failed (Parhaps due to duplicated index)."
79
+ end
80
+ end
81
+ return ans
82
+ end
83
+ end
84
+
85
+ # Convert 2d Array to Hash
86
+ ## header: nil -> Default Headers(:column1, column2,...) are generated.
87
+ ## Option line_ignored, is not implemented yet.
88
+ def to_hash(array2d, line_from: 1, line_until: nil, line_ignored: nil,
89
+ column_from: nil, column_until: nil,
90
+ header: 0, symbol_header: false,
91
+ replaced_by_nil: [], analyze_type: true,
92
+ index: nil)
93
+ ## TODO.. column_from: , column_until:
94
+
95
+ # Define Read Range------------
96
+ lfrom, luntil = line_from, line_until
97
+ lf_reg, lu_reg = line_from.kind_of?(Regexp), line_until.kind_of?(Regexp)
98
+
99
+ if lf_reg || lu_reg
100
+ lines_ary = array2d.map{ _1.join "," }
101
+ lfrom = lines_ary.find_index{ line_from === _1 } if lf_reg
102
+ luntil = (lines_ary.length-1) - lines_ary.reverse.find_index{ line_until === _1 } if lu_reg
103
+ end
104
+
105
+ # And get originally array-----
106
+ output = array2d[lfrom...luntil]
107
+ # -----------------------------
108
+
109
+ # Then get data of index-------
110
+ ind_orig = index ? output.map{ _1[index] } : nil
111
+ # -----------------------------
112
+
113
+ # Selecct Column---------------
114
+ output = output.map { _1[column_from...column_until] } if column_from || column_until
115
+
116
+ # Define Data Array------------
117
+ output_transpose = output[0].zip(*output[1..])
118
+ output_transpose = fix_array(output_transpose, replaced_by_nil, analyze_type)
119
+ # -----------------------------
120
+
121
+ # Define Header----------------
122
+ if header
123
+ hd = check_header(array2d[header])[column_from...column_until]
124
+ else
125
+ hd = [*0...(output.longest_line)].map{"column#{_1}"}
126
+ end
127
+ # hd = header.nil? ? [*0...(output.longest_line)].map{"column#{_1}"} : check_header(array2d[header])
128
+
129
+ hd = hd.map { _1.intern } if symbol_header
130
+ # -----------------------------
131
+
132
+ # Make Hash(Header => Data Array)
133
+ return hd.each_with_object({}).with_index {|(hdr, hash), i| hash[hdr]=output_transpose[i]}, ind_orig
134
+ end
135
+
136
+ # Convert Hash to DataFrame
137
+ def to_df(d, format: :daru)
138
+ if format.to_s == "daru" || format.nil?
139
+ Daru::DataFrame.new(d)
140
+ else
141
+ Rover::DataFrame.new(d)
142
+ end
143
+ end
144
+
145
+ #----------------------------
146
+ # Private metods from here
147
+ #----------------------------
148
+
149
+ # Genarate Array from excel file
150
+ def open_excel(path, sheet_i, encoding: "utf-8")
151
+ if /xlsx$/ === path
152
+ puts "Sorry, encoding option is not supported yet for xlsx file." if encoding != "utf-8"
153
+
154
+ book = Roo::Excelx.new(path)
155
+ s = book.sheet(sheet_i)
156
+
157
+ ## bottole neck
158
+ return s.to_a
159
+
160
+ # xls
161
+ else
162
+ begin
163
+ Spreadsheet.client_encoding = encoding
164
+ ss = Spreadsheet.open(path)
165
+ rescue Encoding::InvalidByteSequenceError
166
+ puts "Fail Encoding #{encoding}. Trying Windows-31J..."
167
+ Spreadsheet.client_encoding = "Windows-31J"
168
+ ss = Spreadsheet.open(path)
169
+ end
170
+
171
+ a2d = []
172
+ ss.worksheets[sheet_i].rows.each do |row|
173
+ a1d = []
174
+ row.each {|cell| a1d.push cell}
175
+ a2d.push a1d
176
+ end
177
+
178
+ return a2d
179
+ end
180
+ end
181
+
182
+ # Fix Array (Replace specific values to nil, recognize value type and cast values to the type.)
183
+ def fix_array(array2d, replaced_by_nil, analyze_type)
184
+ ans = array2d
185
+
186
+ ## Replace Blank or User-Selected Value
187
+ ans = ans.map do |column|
188
+ column.map { |cell| replaced_by_nil.include?(cell) || /^\s*$/ === cell ? nil : cell }
189
+ end
190
+
191
+ ## Replace Number Values to Integer or Float
192
+ if analyze_type
193
+ ans = ans.map.with_index do |column, i|
194
+ type_of_column = :any
195
+ column.each { |cell| type_of_column = recognize_type(cell, type_of_column) }
196
+
197
+ # p type_of_column
198
+ case type_of_column
199
+ when :int
200
+ column.map { _1.nil? ? nil : _1.to_i }
201
+ when :float
202
+ column.map { _1.nil? ? nil : _1.to_f }
203
+ else
204
+ column
205
+ end
206
+ end
207
+ end
208
+
209
+ return ans
210
+ end
211
+
212
+ def recognize_type(str, expected)
213
+ return expected if str.nil?
214
+
215
+ order = {:any => 0, :int => 1, :float => 2, :string => 3}
216
+ if /^\s*(-|\+)?\d+\s*$/ === str
217
+ type_of_str = :int
218
+ elsif /^\s*(-|\+)?\d*\.\d*\s*$/ === str || /^\s*(-|\+)?(\d*\.\d+|\d+)(e|E)(-|\+)?\d+\s*$/ === str
219
+ type_of_str = :float
220
+ else
221
+ type_of_str = :string
222
+ end
223
+
224
+ # p "#{type_of_str}, #{str}" if order[type_of_str] > order[expected]
225
+
226
+ return order[type_of_str] > order[expected] ? type_of_str : expected
227
+ end
228
+
229
+ # Fix blank or duplicated header
230
+ def check_header(header_array)
231
+ # Check Blank
232
+ ans = header_array.map.with_index do |item, i|
233
+ if item.nil?
234
+ "column#{i}"
235
+ elsif item.kind_of?(String)
236
+ temp = /^\s*$/ === item ? "column#{i}" : item.gsub(/\s+/, "")
237
+ /^\d+$/ === temp ? "column#{i}" : temp
238
+ else
239
+ item.to_s
240
+ end
241
+ end
242
+
243
+ # Check Duplicated Value
244
+ dup_check = (0...(header_array.length)).group_by {|i| ans[i]}
245
+ dup_check.each do |item, i_s|
246
+ if i_s.length > 1
247
+ i_s.each_with_index {|i, index_in_i_s| ans[i] = "#{ans[i]}_#{index_in_i_s}"}
248
+ end
249
+ end
250
+
251
+ return ans
252
+ end
253
+
254
+ private_class_method :open_excel, :fix_array, :check_header
255
+
256
+ end
data/sig/yomise.rbs ADDED
@@ -0,0 +1,4 @@
1
+ module Yomise
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,127 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: yomise
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - showata
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2023-11-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: daru
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0.3'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rover-df
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.2.7
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 0.2.7
41
+ - !ruby/object:Gem::Dependency
42
+ name: smarter_csv
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 1.4.2
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 1.4.2
55
+ - !ruby/object:Gem::Dependency
56
+ name: roo-xls
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 1.2.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: 1.2.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: spreadsheet
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: 1.3.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: 1.3.0
83
+ description: A simple way to Open .csv, .xls, .xlsx files. You can convert it to 2D
84
+ array, hash, data frame.
85
+ email:
86
+ - shun_yamaguchi_tc@live.jp
87
+ executables: []
88
+ extensions: []
89
+ extra_rdoc_files: []
90
+ files:
91
+ - ".rspec"
92
+ - CODE_OF_CONDUCT.md
93
+ - Gemfile
94
+ - LICENSE.txt
95
+ - README.md
96
+ - Rakefile
97
+ - lib/longest_line.rb
98
+ - lib/to_csv.rb
99
+ - lib/yomise.rb
100
+ - lib/yomise/version.rb
101
+ - sig/yomise.rbs
102
+ homepage: https://github.com/show-o-atakun/yomise
103
+ licenses:
104
+ - MIT
105
+ metadata:
106
+ homepage_uri: https://github.com/show-o-atakun/yomise
107
+ source_code_uri: https://github.com/show-o-atakun/yomise
108
+ post_install_message:
109
+ rdoc_options: []
110
+ require_paths:
111
+ - lib
112
+ required_ruby_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: 3.0.0
117
+ required_rubygems_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ requirements: []
123
+ rubygems_version: 3.2.3
124
+ signing_key:
125
+ specification_version: 4
126
+ summary: A simple way to Open .csv, .xls, .xlsx files. (formerly easy_sheet_io)
127
+ test_files: []