poi_spreadsheet 0.0.2 → 0.0.3

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: 607ca4f5a407d66ce4c5711dff9cd5d8c111a88a
4
- data.tar.gz: 3095b960c44ad39c9decf20675970c3d175b34fe
3
+ metadata.gz: bf99733cd78a5633c073a993923ad474b1ace841
4
+ data.tar.gz: e05bb309333f10567fde08e09d23663cd0275354
5
5
  SHA512:
6
- metadata.gz: fa8f993e0a157ef915a8c8151b3fa3b312d9f532d9df41fa3895c601916ee6349c7f2774045e931775798355a92f541622c47fcc80516d9ad35c59cb4a450455
7
- data.tar.gz: b13a87dd50b1dbcce23d4de4c623fbc18c02c82da36f635407775cbbcb694d85fefab3ffb0ba1db4c90ef553dada42c3cb4ffb7560cfe1e79e65ec6948863641
6
+ metadata.gz: 9e43a5ac17ca8e062af5d31cf20dcbdfa5189a2b020f66fd74f732bbbcd1c210fa1ccd052dca2b7def713e9357d7aeb272297c7773dd0b29e2c937c1d7fae02c
7
+ data.tar.gz: 3db183d3442ac963f65b61ac902f65000498e252233a50280292a5f9a57d76e571aa45e7269cee411c9583be79a6afedbee4ec9622e3b95328fa7c071097f4d1
data/README.md ADDED
@@ -0,0 +1,80 @@
1
+
2
+ =======
3
+ Poi Spreadheet
4
+ =========
5
+
6
+ This is a simple spreadsheet wrapper around the powerfull Apache POI for Ruby.
7
+
8
+ At this point, simple reading and writing is supported. If you need more, adding functionality is very simple.
9
+ Just look up the Java documentation for Apache POI and add wrapper for what you need (make sure to send a pull request too).
10
+
11
+
12
+ Installation
13
+ ---------------------
14
+ In your Gemfile:
15
+ ```ruby
16
+ gem 'poi_spreadsheet'
17
+ ```
18
+
19
+ Usage
20
+ ---------------------
21
+ ```ruby
22
+ # load your file
23
+ book = PoiSpreadsheet.load 'my_sheet.xls';
24
+
25
+ # read the first sheet
26
+ 10.times { |x|
27
+ 10.times { |y|
28
+ puts "#{x}: #{y} #{book.sheets.first.last[x][y].inspect}"
29
+ }
30
+ }
31
+ ```
32
+
33
+ Write some data
34
+ ```ruby
35
+ book.sheets.first.last[0][0] = 1;
36
+ book.sheets.first.last[0][1] = "Hello World"
37
+ ```
38
+
39
+ Save the document
40
+
41
+ ```ruby
42
+ book.save # save into original
43
+ book.save 'file_name.xls'
44
+ ```
45
+
46
+
47
+ IDEAS
48
+ -----
49
+ - support cell names (A3..)
50
+ - manipulate cells themselves
51
+ - read, write and execute formulas
52
+ - adding/removing/modifying sheets
53
+ - add support for xlsx
54
+ - styling
55
+
56
+
57
+ Problems? Issues? Want to help out?
58
+ ---------------------
59
+ Just submit a Gihub issue or pull request!
60
+
61
+ The MIT License (MIT)
62
+ ---------------------
63
+ Copyright (c) 2014 Michal Hantl
64
+
65
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
66
+ this software and associated documentation files (the "Software"), to deal in
67
+ the Software without restriction, including without limitation the rights to
68
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
69
+ the Software, and to permit persons to whom the Software is furnished to do so,
70
+ subject to the following conditions:
71
+
72
+ The above copyright notice and this permission notice shall be included in all
73
+ copies or substantial portions of the Software.
74
+
75
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
76
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
77
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
78
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
79
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
80
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Binary file
@@ -0,0 +1,23 @@
1
+ lib = File.expand_path('../lib/', __FILE__)
2
+ $:.unshift lib unless $:.include?(lib)
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "poi_spreadsheet"
6
+ s.version = "0.0.3"
7
+ s.date = '2014-09-09'
8
+ s.summary = "Modify excel sheets using the powerfull Apache POI"
9
+ s.description = "There are quite a few pure ruby gems to deal with excel files with various degree of success. This gem's approach is to use powerfull software like Apache POI and simply provide ruby like interface."
10
+ s.authors = ["Michal Hantl"]
11
+ s.email = 'michal@hantl.cz'
12
+ s.files = ["lib/poi_spreadsheet.rb"]
13
+ s.homepage = 'http://github.com/hakunin/poi_spreadsheet'
14
+ s.license = 'MIT'
15
+
16
+ s.add_runtime_dependency "rjb", ["~> 1.4"]
17
+
18
+ s.require_path = 'lib'
19
+ s.files = Dir.glob("{apache,lib}/**/*") + [
20
+ "poi_spreadsheet.gemspec",
21
+ "README.md"
22
+ ]
23
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poi_spreadsheet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Hantl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-08 00:00:00.000000000 Z
11
+ date: 2014-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rjb
@@ -32,7 +32,10 @@ executables: []
32
32
  extensions: []
33
33
  extra_rdoc_files: []
34
34
  files:
35
+ - README.md
36
+ - apache/poi-3.10.1-20140818.jar
35
37
  - lib/poi_spreadsheet.rb
38
+ - poi_spreadsheet.gemspec
36
39
  homepage: http://github.com/hakunin/poi_spreadsheet
37
40
  licenses:
38
41
  - MIT