aspose_barcode_cloud 1.0.2 → 1.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: 0f172da688dd2ea8a6124270a1276ca8f7bb9c9f
4
- data.tar.gz: 08d210313308bdad086b4c5f13d1b28eb9aeaf6f
3
+ metadata.gz: 390b1025ddcb8a3d05f089c017f9080f01fca02e
4
+ data.tar.gz: 2141153c7b40d5f6dbb133592e925e8c51841a81
5
5
  SHA512:
6
- metadata.gz: 88e561f1395b823a7e0304ab12b56c44ddbbb26f5809ba7352babe015ceb1d75ff636bb00975e2280c4fdeeb8ec527b5296db86b191af4a41b35694c5edbbba5
7
- data.tar.gz: a136bae88e3087cfdfef324ac99ebcc9570a9af4055b7a1922012d836ca69e4620fe8e31ae8adf6a1841151b211564b460fc7d7bae848d4dfe4edc789d7b5e1d
6
+ metadata.gz: e902664afb8db711165eecce4dd2945b6b34baff1351285b1ec04135e16ef965b565ee955951ae69c2b179435ba3853643fec996d05d275df7b4b0b3c52d9366
7
+ data.tar.gz: 5125a82714d3655651b511ba9b1875bfce0d89fc68f4024e5fb1ab79c228a0b61403f0a2167d1d6ab2208b06f8bfb766a659699955c9d55efbdf07bbd4702415
data/README.md CHANGED
@@ -1,10 +1,14 @@
1
1
  # Aspose.BarCode Cloud SDK For Ruby
2
2
  This SDK lets you use [Aspose Cloud Barcode APIs](http://www.aspose.com/cloud/barcode-api.aspx) in your Ruby web apps.
3
3
 
4
- ## Installing
5
- You can simply install Aspose Barcode Cloud SDK with gem:
4
+ <p align="center">
5
+ <a title="Download complete Aspose.BarCode for Cloud source code" href="https://github.com/asposebarcode/Aspose_BarCode_Cloud/archive/master.zip">
6
+ <img src="https://raw.github.com/AsposeExamples/java-examples-dashboard/master/images/downloadZip-Button-Large.png" />
7
+ </a>
8
+ </p>
6
9
 
7
- `gem install aspose_barcode_cloud`
10
+ ##How to use the SDK?
11
+ The complete source code is available in this repository folder, you can either directly use it in your project or use RubyGems. For more details, please visit our [documentation website](http://www.aspose.com/docs/display/barcodecloud/Available+SDKs).
8
12
 
9
13
  ## Usage
10
14
  APIs of this SDK can be called as follows:
@@ -34,8 +38,5 @@ end
34
38
  ## Unit Tests
35
39
  Aspose Barcode SDK includes a suite of unit tests within the [test](https://github.com/asposebarcode/Aspose_BarCode_Cloud/blob/master/SDKs/Aspose.BarCode_Cloud_SDK_for_Ruby/test/barcode_tests.rb) subdirectory. These Unit Tests also serves as examples of how to use the Aspose Barcode SDK.
36
40
 
37
- ## Contact
38
- Your feedback is very important to us. Please email us all your queries and feedback at marketplace@aspose.com.
39
-
40
- ## License
41
- Aspose Barcode SDK is available under the MIT license. See the [LICENSE](https://github.com/asposebarcode/Aspose_BarCode_Cloud/blob/master/SDKs/Aspose.BarCode_Cloud_SDK_for_Ruby/LICENSE) file for more info.
41
+ ##Contact Us
42
+ Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://www.aspose.com/community/forums/).
@@ -1,3 +1,3 @@
1
1
  module AsposeBarcodeCloud
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
@@ -9,8 +9,8 @@ class BarcodeTests < Minitest::Test
9
9
  include AsposeStorageCloud
10
10
 
11
11
  def setup
12
- #Get App key and App SID from https://cloud.aspose.com
13
- AsposeApp.app_key_and_sid("", "")
12
+ #Get App key and App SID from https://cloud.aspose.com
13
+ AsposeApp.app_key_and_sid("", "")
14
14
  @barcode_api = BarcodeApi.new
15
15
  end
16
16
 
@@ -18,86 +18,86 @@ class BarcodeTests < Minitest::Test
18
18
  end
19
19
 
20
20
  def upload_file(file_name)
21
- @storage_api = StorageApi.new
22
- response = @storage_api.put_create(file_name, File.open("data/" << file_name,"r") { |io| io.read } )
21
+ @storage_api = StorageApi.new
22
+ response = @storage_api.put_create(file_name, File.open("../../../data/" << file_name,"r") { |io| io.read } )
23
23
  assert(response, message="Failed to upload {file_name} file.")
24
24
  end
25
25
 
26
26
  def test_get_barcode_generate
27
- opts = {text: "Dairy Products", type: "qr", format: "png"}
27
+ opts = {text: "Dairy Products", type: "qr", format: "png"}
28
28
 
29
- response = @barcode_api.get_barcode_generate(opts)
29
+ response = @barcode_api.get_barcode_generate(opts)
30
30
  assert(response, message="Failed to generate barcode")
31
31
  end
32
32
 
33
33
  def test_post_generate_multiple
34
- barcode_builders_list = BarcodeBuildersList.new
35
- barcode_builders_list.x_step = 1
36
- barcode_builders_list.y_step = 2
37
- barcode_builder_1 = BarcodeBuilder.new
38
- barcode_builder_1.type_of_barcode = "qr"
39
- barcode_builder_1.text = "Aspose Your File Format APIs"
40
- barcode_builder_2 = BarcodeBuilder.new
41
- barcode_builder_2.type_of_barcode = "qr"
42
- barcode_builder_2.text = "Aspose.Barcode for Cloud"
43
- barcode_builders_list.barcode_builders = [barcode_builder_1, barcode_builder_2]
44
- opts = {format: "png"}
45
-
46
- response = @barcode_api.post_generate_multiple(barcode_builders_list, opts)
34
+ barcode_builders_list = BarcodeBuildersList.new
35
+ barcode_builders_list.x_step = 1
36
+ barcode_builders_list.y_step = 2
37
+ barcode_builder_1 = BarcodeBuilder.new
38
+ barcode_builder_1.type_of_barcode = "qr"
39
+ barcode_builder_1.text = "Aspose Your File Format APIs"
40
+ barcode_builder_2 = BarcodeBuilder.new
41
+ barcode_builder_2.type_of_barcode = "qr"
42
+ barcode_builder_2.text = "Aspose.Barcode for Cloud"
43
+ barcode_builders_list.barcode_builders = [barcode_builder_1, barcode_builder_2]
44
+ opts = {format: "png"}
45
+
46
+ response = @barcode_api.post_generate_multiple(barcode_builders_list, opts)
47
47
  assert(response, message="Failed to generate multiple barcodes and return in response stream")
48
48
  end
49
49
 
50
50
  def test_post_barcode_recognize_from_urlor_content
51
- opts = {type: "Code39Standard", url: "http://www.barcoding.com/images/Barcodes/code93.gif"}
51
+ opts = {type: "Code39Standard", url: "http://www.barcoding.com/images/Barcodes/code93.gif"}
52
52
 
53
- response = @barcode_api.post_barcode_recognize_from_urlor_content(opts)
53
+ response = @barcode_api.post_barcode_recognize_from_urlor_content(opts)
54
54
  assert(response, message="Failed to recognize barcode from an url.")
55
55
  end
56
56
 
57
57
  def test_put_barcode_generate_file
58
58
  name = "NewBarcode.png"
59
- opts = {text: "Aspose.Barcode for Cloud", type: "qr"}
59
+ opts = {text: "Aspose.Barcode for Cloud", type: "qr"}
60
60
 
61
- response = @barcode_api.put_barcode_generate_file(name, opts)
61
+ response = @barcode_api.put_barcode_generate_file(name, opts)
62
62
  assert(response, message="Failed to generate barcode and save on server.")
63
63
  end
64
64
 
65
65
  def test_put_generate_multiple
66
66
  name = "AsposeBarcode.png"
67
- barcode_builders_list = BarcodeBuildersList.new
68
- barcode_builders_list.x_step = 1
69
- barcode_builders_list.y_step = 2
70
- barcode_builder_1 = BarcodeBuilder.new
71
- barcode_builder_1.type_of_barcode = "qr"
72
- barcode_builder_1.text = "Aspose Your File Format APIs"
73
- barcode_builder_2 = BarcodeBuilder.new
74
- barcode_builder_2.type_of_barcode = "qr"
75
- barcode_builder_2.text = "Aspose.Barcode for Cloud"
76
- barcode_builders_list.barcode_builders = [barcode_builder_1, barcode_builder_2]
77
-
78
- response = @barcode_api.put_generate_multiple(name, barcode_builders_list)
67
+ barcode_builders_list = BarcodeBuildersList.new
68
+ barcode_builders_list.x_step = 1
69
+ barcode_builders_list.y_step = 2
70
+ barcode_builder_1 = BarcodeBuilder.new
71
+ barcode_builder_1.type_of_barcode = "qr"
72
+ barcode_builder_1.text = "Aspose Your File Format APIs"
73
+ barcode_builder_2 = BarcodeBuilder.new
74
+ barcode_builder_2.type_of_barcode = "qr"
75
+ barcode_builder_2.text = "Aspose.Barcode for Cloud"
76
+ barcode_builders_list.barcode_builders = [barcode_builder_1, barcode_builder_2]
77
+
78
+ response = @barcode_api.put_generate_multiple(name, barcode_builders_list)
79
79
  assert(response, message="Failed to generate image with multiple barcodes and put new file on server")
80
80
  end
81
81
 
82
82
  def test_get_barcode_recognize
83
- file_name = "barcode.png"
84
- upload_file(file_name)
85
- opts = {type: "Code39Standard"}
83
+ file_name = "barcode.png"
84
+ upload_file(file_name)
85
+ opts = {type: "Code39Standard"}
86
86
 
87
- response = @barcode_api.get_barcode_recognize(file_name, opts)
87
+ response = @barcode_api.get_barcode_recognize(file_name, opts)
88
88
  assert(response, message="Failed to recognize barcode from a file on server.")
89
89
  end
90
90
 
91
91
  def test_put_barcode_recognize_from_body
92
- file_name = "sample-barcode.jpeg"
93
- upload_file(file_name)
94
- barcode_reader = BarcodeReader.new
95
- barcode_reader.strip_fnc = true
96
- barcode_reader.checksum_validation = "Off"
97
- opts = {type: "Code39Standard"}
98
-
99
- response = @barcode_api.put_barcode_recognize_from_body(file_name, barcode_reader, opts)
92
+ file_name = "sample-barcode.jpeg"
93
+ upload_file(file_name)
94
+ barcode_reader = BarcodeReader.new
95
+ barcode_reader.strip_fnc = true
96
+ barcode_reader.checksum_validation = "Off"
97
+ opts = {type: "Code39Standard"}
98
+
99
+ response = @barcode_api.put_barcode_recognize_from_body(file_name, barcode_reader, opts)
100
100
  assert(response, message="Failed to recognize barcode from file on server with parameters in body.")
101
101
  end
102
102
 
103
- end
103
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspose_barcode_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - M. Sohail Ismail
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-09 00:00:00.000000000 Z
11
+ date: 2017-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -105,9 +105,6 @@ files:
105
105
  - lib/aspose_barcode_cloud/models/resolution.rb
106
106
  - lib/aspose_barcode_cloud/version.rb
107
107
  - test/barcode_tests.rb
108
- - test/data/barcode.png
109
- - test/data/sample-barcode.jpeg
110
- - test/data/sample.txt
111
108
  homepage: http://www.aspose.com/cloud/barcode-api.aspx
112
109
  licenses:
113
110
  - MIT
@@ -128,12 +125,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
125
  version: '0'
129
126
  requirements: []
130
127
  rubyforge_project:
131
- rubygems_version: 2.5.1
128
+ rubygems_version: 2.6.8
132
129
  signing_key:
133
130
  specification_version: 4
134
131
  summary: Aspose.Barcode for Cloud
135
132
  test_files:
136
133
  - test/barcode_tests.rb
137
- - test/data/barcode.png
138
- - test/data/sample-barcode.jpeg
139
- - test/data/sample.txt
Binary file
@@ -1,12 +0,0 @@
1
- {
2
- "BarcodeBuilders": [
3
- {
4
- "TypeOfBarcode": "qr",
5
- "Text": "Aspose.com"
6
- }
7
- {
8
- "TypeOfBarcode": "qr",
9
- "Text": "Aspose.Barcode for Cloud"
10
- }
11
- ]
12
- }