Skip to content

Commit 3da4214

Browse files
Merge pull request #2 from masood-anwer/master
Aspose.Email Java for Ruby
2 parents 6ab6116 + 7679ad9 commit 3da4214

39 files changed

+948
-0
lines changed
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: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Aspose_Email_Java_for_Ruby
2+
Aspose.Email Java for Ruby is a gem that demonstrates / provides the Aspose.Email 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 asposeemailjava
9+
10+
To download Aspose.Email 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.email-for-java/default.aspx
13+
14+
Note: Create jars folder at root of the gem folder and copy downloaded Aspose.Email for java component into it.
15+
16+
For most complete documentation of the project, check Aspose.Email Java for Ruby confluence wiki link:
17+
18+
http://www.aspose.com/docs/display/emailjava/2.+Aspose.Email+Java+For+Ruby
19+
20+
## Usage
21+
22+
```ruby
23+
require File.dirname(File.dirname(File.dirname(__FILE__))) + '/lib/asposeemailjava'
24+
include Asposeemailjava
25+
include Asposeemailjava::CreateNewEmail
26+
27+
initialize_aspose_email
28+
```
29+
Lets understand the above code
30+
* The first line makes sure that the Aspose.Email is loaded and available
31+
* Include the files that are required to access the Aspose.Email
32+
* 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 'asposeemailjava/version'
5+
6+
Gem::Specification.new do |spec|
7+
spec.name = 'asposeemailjava'
8+
spec.version = Asposeemailjava::VERSION
9+
spec.authors = ['Aspose Marketplace']
10+
spec.email = ['[email protected]']
11+
spec.summary = %q{A Ruby gem to work with Aspose.Email for Java libraries}
12+
spec.description = %q{AsposeEmailJava is a Ruby gem that can help working with Aspose.Email for Java libraries}
13+
spec.homepage = 'https://github.com/asposeemail/Aspose_Email_Java/tree/master/Plugins/Aspose_Email_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: ../asposeemailjava/jars
2+
license_path: ../asposeemailjava/license/path
3+
jvm_args: -Xms512m -Xmx1G
4+
5+
15 KB
Binary file not shown.
8.52 KB
Binary file not shown.
7.87 KB
Loading
265 KB
Binary file not shown.

0 commit comments

Comments
 (0)