maxs 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/i.rb +34 -0
  3. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f8a291d6524604071107f425dba45bf25c3c15fb
4
+ data.tar.gz: 707bc6294b9164302fc068e24a768d8c397cad9c
5
+ SHA512:
6
+ metadata.gz: f3179252de90d5a3e689e9c9b08e6d9c5ef02841bb273d3d17a563e82036c5213f784a20edd9332453d7665cbf9d004b8070d0818383d4d5fd0dd4c4215aef40
7
+ data.tar.gz: cd2eddfd5f5daf35aa263371c8153d81d26d86d49a7c540f5e754cbd8216c6813186b442bffe62fada7dadd50edd5a904c0e28fcf80db66b9436bbb74fc9cfae
data/lib/i.rb ADDED
@@ -0,0 +1,34 @@
1
+ #requiring the zip librari that will open the archive
2
+ require 'zip'
3
+
4
+
5
+
6
+
7
+ class MAXS
8
+ def self.hi
9
+ puts "Hello world!"
10
+ end
11
+
12
+ def openmax
13
+ Zip::File.open('te.xls') do |zip_file|
14
+ # Handle entries one by one
15
+ zip_file.each do |entry|
16
+ # Extract to file/directory/symlink
17
+ puts "archivos contenidos #{entry.name}"
18
+ ##entry.extract(dest_file)
19
+
20
+ # Read into memory
21
+ content = entry.get_input_stream.read
22
+ puts content
23
+ end
24
+
25
+ # Find specific entry
26
+ ##entry = zip_file.glob('*.csv').first
27
+ ##puts entry.get_input_stream.read
28
+ puts "esos fueron"
29
+ end
30
+ end
31
+
32
+
33
+
34
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: maxs
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Max Antonio
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-09-15 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: 'A simple Spreadsheets gem '
14
+ email: i@maxantonio.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/i.rb
20
+ homepage: https://github.com/maxantonio/maxs
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubyforge_project:
40
+ rubygems_version: 2.4.3
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: Max Spreadsheets
44
+ test_files: []