asposecellsjava 0.0.1 → 0.0.2

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: cbaa278efed46b4db09f23bae691ff0cda98c031
4
- data.tar.gz: f9fdba855bb7035d44b43c3e7965e48b6a148acd
3
+ metadata.gz: e5d79bb944cf1936d222e7dc26437ecf9fc77a59
4
+ data.tar.gz: d7ac828b2f5f40dfa260a7b1bfd6cd9c07cabf39
5
5
  SHA512:
6
- metadata.gz: eb4d7ee8d45c705e8e7ffebe2574b506775fb6fbd7e3ccc9c3e111ee9ac91766c3160971a482ffb1cdba33d58ba1117dbce17a2dc80c6a116baddaccd316ba1d
7
- data.tar.gz: 60206355c79e7fbfd3c4cc9cace000b31cd8744c2e56708b20e29e076bf3bb5a375037238dd5aa7a3d6ac9b11a1a44d87b82b48ef559e85bebfd9a87665913fa
6
+ metadata.gz: 074c39a019c01e0b59af99a5ea9a38fb4d8caec43c0d757483669cdd62b4247f4fcc910946aeb9211c0f5d4ed28f574d6d51c827d6db837378ec76743458a3e7
7
+ data.tar.gz: 6872aa35c4b5757f1ff9bae5211b800f91b302434b74c692f9f33774760a83eb4669c75a301c125d2ae6778ee7662b97230fe7a35be796acd0179bc7740408c1
data/README.md CHANGED
@@ -23,14 +23,14 @@ http://www.aspose.com/community/files/72/java-components/aspose.cells-for-java/
23
23
 
24
24
  For most complete documentation of the project, check Aspose.Cells Java for Ruby confluence wiki link:
25
25
 
26
- http://www.aspose.com/docs/display/cellssjava/3.+Aspose.Cells+Java+For+Ruby
26
+ http://www.aspose.com/docs/display/cellsjava/4.+Aspose.Cells+Java+For+Ruby
27
27
 
28
28
  ## Usage
29
29
 
30
30
  ```ruby
31
- require '../lib/asposecellsjava'
31
+ require require File.dirname(File.dirname(File.dirname(__FILE__))) + '/lib/asposecellsjava'
32
32
  include Asposecellsjava
33
- include Asposecellsjava::HideUnhideWorksheet
33
+ include Asposecellsjava::HelloWorld
34
34
  initialize_aspose_cells
35
35
  ```
36
36
  Lets understand the above code
@@ -1,3 +1,4 @@
1
+ require_relative 'helloworld'
1
2
  require_relative 'hideunhideworksheet'
2
3
  require_relative 'displayhidetabs'
3
4
  require_relative 'displayhidescrollbars'
@@ -0,0 +1,27 @@
1
+ module Asposecellsjava
2
+ module HelloWorld
3
+ def initialize()
4
+ data_dir = File.dirname(File.dirname(File.dirname(__FILE__))) + '/data/'
5
+
6
+ # Instantiating a Workbook object that represents a Microsoft Excel file.
7
+ workbook = Rjb::import('com.aspose.cells.Workbook').new
8
+
9
+ # Note when you create a new workbook, a default worksheet,
10
+ # "Sheet1", is by default added to the workbook.
11
+ # Accessing the first worksheet in the book ("Sheet1").
12
+ sheet = workbook.getWorksheets().get(0)
13
+
14
+ # Access cell "A1" in the sheet.
15
+ cell = sheet.getCells().get("A1")
16
+
17
+ # Input the "Hello World!" text into the "A1" cell
18
+ cell.setValue("Hello World!")
19
+
20
+ # Saving the modified Excel file in default (that is Excel 2003) format
21
+ file_format_type = Rjb::import('com.aspose.cells.FileFormatType')
22
+ workbook.save(data_dir + "HelloWorld.xls", file_format_type.EXCEL_97_TO_2003)
23
+
24
+ puts "Document has been saved, please check the output file."
25
+ end
26
+ end
27
+ end
@@ -1,3 +1,3 @@
1
1
  module Asposecellsjava
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
@@ -1,6 +1,6 @@
1
1
  require '../lib/asposecellsjava'
2
2
  include Asposecellsjava
3
- include Asposecellsjava::HideUnhideWorksheet
3
+ include Asposecellsjava::HelloWorld
4
4
 
5
5
  initialize_aspose_cells
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asposecellsjava
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aspose Marketplace
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-06 00:00:00.000000000 Z
11
+ date: 2015-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -82,6 +82,7 @@ files:
82
82
  - config/aspose.yml
83
83
  - data/Book1.xls
84
84
  - data/index.html
85
+ - jars/aspose-cells-8.4.2.jar
85
86
  - lib/asposecellsjava.rb
86
87
  - lib/asposecellsjava/asposecells.rb
87
88
  - lib/asposecellsjava/converter.rb
@@ -93,6 +94,7 @@ files:
93
94
  - lib/asposecellsjava/document.rb
94
95
  - lib/asposecellsjava/encrypt.rb
95
96
  - lib/asposecellsjava/freezepanes.rb
97
+ - lib/asposecellsjava/helloworld.rb
96
98
  - lib/asposecellsjava/hideunhideworksheet.rb
97
99
  - lib/asposecellsjava/managingworksheets.rb
98
100
  - lib/asposecellsjava/pagebreakpreview.rb