saasposesdk 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/saaspose_cells.rb +2 -2
- data/lib/saaspose_common.rb +4 -4
- data/lib/saaspose_pdf.rb +2 -2
- data/lib/saaspose_slides.rb +2 -2
- data/lib/saaspose_words.rb +2 -2
- metadata +3 -3
data/lib/saaspose_cells.rb
CHANGED
@@ -10,8 +10,8 @@ module Cells
|
|
10
10
|
# Instance variables
|
11
11
|
@name = name
|
12
12
|
end
|
13
|
-
#
|
14
|
-
# * :localFile represents
|
13
|
+
# Converts the file available at Saaspose Storage and saves converted file locally.
|
14
|
+
# * :localFile represents converted local file path and name
|
15
15
|
# * :saveFormat represents the converted format. For a list of supported formats, please visit
|
16
16
|
# http://saaspose.com/docs/display/cells/workbook
|
17
17
|
def convert(localFile,saveFormat)
|
data/lib/saaspose_common.rb
CHANGED
@@ -6,12 +6,13 @@ require 'base64'
|
|
6
6
|
require 'uri'
|
7
7
|
require 'rexml/document'
|
8
8
|
|
9
|
-
# This module provide common classes and methods to be ued by other modules
|
9
|
+
# This module provide common classes and methods to be ued by other SDK modules
|
10
10
|
module Common
|
11
11
|
|
12
12
|
# This class allows you to set the base host Saaspose URI
|
13
13
|
class Product
|
14
|
-
|
14
|
+
# Sets the host product URI.
|
15
|
+
def self.setBaseProductUri(productURI)
|
15
16
|
$productURI = productURI
|
16
17
|
end
|
17
18
|
end
|
@@ -28,8 +29,6 @@ module Common
|
|
28
29
|
class Utils
|
29
30
|
# Signs a URI with your appSID and Key.
|
30
31
|
# * :url describes the URL to sign
|
31
|
-
# * :appSID holds the appSID value
|
32
|
-
# * :key holds the key value
|
33
32
|
def self.sign(url)
|
34
33
|
url = URI.escape(url)
|
35
34
|
parsedURL = URI.parse(url)
|
@@ -89,6 +88,7 @@ module Common
|
|
89
88
|
end
|
90
89
|
return pages.size
|
91
90
|
end
|
91
|
+
# Saves the response stream to a local file.
|
92
92
|
def self.saveFile(responseStream,localFile)
|
93
93
|
open(localFile, "wb") do |file|
|
94
94
|
file.write(responseStream.body)
|
data/lib/saaspose_pdf.rb
CHANGED
@@ -10,8 +10,8 @@ module Pdf
|
|
10
10
|
# Instance variables
|
11
11
|
@name = name
|
12
12
|
end
|
13
|
-
|
14
|
-
# * :localFile represents
|
13
|
+
# Converts the file available at Saaspose Storage and saves converted file locally.
|
14
|
+
# * :localFile represents converted local file path and name
|
15
15
|
# * :saveImageFormat represents the converted image format. For a list of supported image formats, please visit
|
16
16
|
# http://saaspose.com/docs/display/pdf/page
|
17
17
|
# * :pageNumber represents the page number in the PDF document
|
data/lib/saaspose_slides.rb
CHANGED
@@ -10,8 +10,8 @@ module Slides
|
|
10
10
|
# Instance variables
|
11
11
|
@name = name
|
12
12
|
end
|
13
|
-
|
14
|
-
# * :localFile represents
|
13
|
+
# Converts the file available at Saaspose Storage and saves converted file locally.
|
14
|
+
# * :localFile represents converted local file path and name
|
15
15
|
# * :saveFormat represents the converted format. For a list of supported formats, please visit
|
16
16
|
# http://saaspose.com/docs/display/slides/presentation+Resource
|
17
17
|
def convert(localFile,saveFormat)
|
data/lib/saaspose_words.rb
CHANGED
@@ -10,8 +10,8 @@ module Words
|
|
10
10
|
# Instance variables
|
11
11
|
@name = name
|
12
12
|
end
|
13
|
-
#
|
14
|
-
# * :localFile represents
|
13
|
+
# Converts the file available at Saaspose Storage and saves converted file locally.
|
14
|
+
# * :localFile represents converted local file path and name
|
15
15
|
# * :saveFormat represents the converted format. For a list of supported formats, please visit
|
16
16
|
# http://saaspose.com/docs/display/words/document
|
17
17
|
def convert(localFile,saveFormat)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: saasposesdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-04-
|
12
|
+
date: 2012-04-13 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Saaspose.SDK for Ruby allows you to use Saaspose API in your Ruby applications
|
15
15
|
email: contact@saaspose.com
|
@@ -44,7 +44,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
44
44
|
version: '0'
|
45
45
|
requirements: []
|
46
46
|
rubyforge_project:
|
47
|
-
rubygems_version: 1.8.
|
47
|
+
rubygems_version: 1.8.21
|
48
48
|
signing_key:
|
49
49
|
specification_version: 3
|
50
50
|
summary: Saaspose.SDK for Ruby
|