Skip to content

Commit 0c35817

Browse files
Merge pull request #2 from masood-anwer/master
Aspose.Barcode Java for Ruby
2 parents f984cc8 + 4dc4150 commit 0c35817

61 files changed

Lines changed: 1377 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source 'https://rubygems.org'
2+
3+
gemspec
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2001-2015 Aspose Pty Ltd
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Aspose_Barcode_Java_for_Ruby
2+
Aspose.Barcode Java for Ruby is a gem that demonstrates / provides the Aspose.Barcode for Java API usage examples in Ruby by using Rjb - Ruby Java Bridge.
3+
4+
## Installation
5+
6+
Execute following command.
7+
8+
$ gem install asposebarcodejava
9+
10+
To download Aspose.BarCode for Java API to be used with these examples through RJB, Please navigate to:
11+
12+
http://www.aspose.com/community/files/72/java-components/aspose.barcode-for-java/
13+
14+
Note: Create jars folder at root of the gem folder and copy downloaded Aspose.BarCode for java component into it.
15+
16+
For most complete documentation of the project, check Aspose.BarCode Java for Ruby confluence wiki link:
17+
18+
http://www.aspose.com/docs/display/barcodejava/2.+Aspose.Barcode+Java+For+Ruby
19+
20+
## Usage
21+
22+
```ruby
23+
require File.dirname(File.dirname(File.dirname(__FILE__))) + '/lib/asposebarcodejava'
24+
include Asposebarcodejava
25+
include Asposebarcodejava::RecognizeBarcode
26+
initialize_aspose_barcode
27+
```
28+
Lets understand the above code
29+
* The first line makes sure that the Aspose.BarCode is loaded and available
30+
* Include the files that are required to access the Aspose.BarCode
31+
* Initialize the libraries. The aspose JAVA classes are loaded from the path provided in the aspose.yml file
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
require "bundler/gem_tasks"
2+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# coding: utf-8
2+
lib = File.expand_path('../lib', __FILE__)
3+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4+
require 'asposebarcodejava/version'
5+
6+
Gem::Specification.new do |spec|
7+
spec.name = 'asposebarcodejava'
8+
spec.version = Asposebarcodejava::VERSION
9+
spec.authors = ['Aspose Marketplace']
10+
spec.email = ['marketplace@aspose.com']
11+
spec.summary = %q{A Ruby gem to work with Aspose.BarCode for Java libraries}
12+
spec.description = %q{AsposeBarcodeJava is a Ruby gem that can help working with Aspose.BarCode for Java libraries}
13+
spec.homepage = 'https://github.com/asposebarcode/Aspose_Barcode_Java/tree/master/Plugins/Aspose_Barcode_Java_for_Ruby'
14+
spec.license = 'MIT'
15+
16+
spec.files = `git ls-files`.split($/)
17+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19+
spec.require_paths = ['lib']
20+
21+
spec.add_development_dependency 'bundler', '~> 1.7'
22+
spec.add_development_dependency 'rake', '~> 10.0'
23+
spec.add_development_dependency 'rspec'
24+
25+
spec.add_dependency 'rjb', '~> 1.5.2'
26+
27+
end
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
jar_dir: ../asposebarcodejava/jars
2+
license_path: ../asposebarcodejava/license/path
3+
jvm_args: -Xms512m -Xmx1G
4+
5+
1.63 KB
Loading
4.73 KB
Loading
8.91 KB
Loading
3.88 KB
Loading

0 commit comments

Comments
 (0)