arsystem 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/.project +11 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +62 -0
- data/Rakefile +7 -0
- data/arsystem.gemspec +24 -0
- data/lib/arsystem/version.rb +3 -0
- data/lib/arsystem.rb +8 -0
- data/spec/arsystem_spec.rb +31 -0
- data/spec/spec_helper.rb +1 -0
- metadata +99 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 286a457f50d70e44a13274f0b5bbc3056207152b
|
4
|
+
data.tar.gz: fb991696d13931a65f4307ea14067c72a73ef6a1
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 32faab56e0ca9a46f2d278e0ebe73647b27aef11b66cdfe636e5dcfa55ecb6c459f522d2f5d13277c0c2d3bbfe8766d25d7916819478a9f8d536dc00e260ecba
|
7
|
+
data.tar.gz: 5e30859f97fc7efbfb50789cd16ba1b89d34c61d26ca4c593c5ff595a13ffeadac29b96e640ff54b4d9dc3d21d80ab126adaf3615b499af5d08359f703994f46
|
data/.gitignore
ADDED
data/.project
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 johanwasserman
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
# Arsystem
|
2
|
+
|
3
|
+
Exposes all the ARAPI classes and methods to jRuby.
|
4
|
+
Note: ARAPI jar files not included. See instructions below.
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem 'arsystem'
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
|
16
|
+
$ bundle
|
17
|
+
|
18
|
+
Or install it yourself as:
|
19
|
+
|
20
|
+
$ gem install arsystem
|
21
|
+
|
22
|
+
Create a /lib/java directory in your project and copy the following files in to it;
|
23
|
+
arapi81_build001.jar
|
24
|
+
log4j-1.2.14.jar
|
25
|
+
log4j.xml
|
26
|
+
|
27
|
+
Except fo the xml file, these jars are pretty much hard coded, so ensure the correct vesrions. I will make them a little more dynamic in a future release.
|
28
|
+
|
29
|
+
## Usage
|
30
|
+
```ruby
|
31
|
+
require "arsystem"
|
32
|
+
|
33
|
+
class Test
|
34
|
+
config = {
|
35
|
+
:username => "Demo",
|
36
|
+
:password => "",
|
37
|
+
:locale => "",
|
38
|
+
:server => "127.0.0.1",
|
39
|
+
:port => 5000
|
40
|
+
}
|
41
|
+
|
42
|
+
#initialise a connection
|
43
|
+
@user = Arsystem::ARServerUser.new(
|
44
|
+
config[:username],
|
45
|
+
config[:password],
|
46
|
+
config[:locale],
|
47
|
+
config[:server],
|
48
|
+
config[:port]
|
49
|
+
)
|
50
|
+
|
51
|
+
puts @user.getServerVersion
|
52
|
+
|
53
|
+
@user.logout
|
54
|
+
end
|
55
|
+
```
|
56
|
+
## Contributing
|
57
|
+
|
58
|
+
1. Fork it ( https://github.com/johanwasserman/arsystem/fork )
|
59
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
60
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
61
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
62
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
data/arsystem.gemspec
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'arsystem/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "arsystem"
|
8
|
+
spec.version = Arsystem::VERSION
|
9
|
+
spec.authors = ["Johan Wasserman"]
|
10
|
+
spec.email = ["johan.wasserman@gmial.com"]
|
11
|
+
spec.summary = %q{JRuby Remedy API wrapper}
|
12
|
+
spec.description = %q{JRuby Remedy API wrapper - written written initially to extract data for Neo4J}
|
13
|
+
spec.homepage = "https://github.com/johanwasserman/jARSystem"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
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
|
+
end
|
data/lib/arsystem.rb
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe Arsystem do
|
4
|
+
context "arsystem" do
|
5
|
+
before(:all) {
|
6
|
+
config = {
|
7
|
+
:username => 'Demo',
|
8
|
+
:password => '',
|
9
|
+
:server => '192.168.56.1',
|
10
|
+
:locale => '',
|
11
|
+
:port => 20000,
|
12
|
+
}
|
13
|
+
@user = Arsystem::ARServerUser.new(
|
14
|
+
config[:username],
|
15
|
+
config[:password],
|
16
|
+
config[:locale],
|
17
|
+
config[:server],
|
18
|
+
config[:port])
|
19
|
+
}
|
20
|
+
|
21
|
+
after(:all) { @user.logout }
|
22
|
+
|
23
|
+
context "initialize" do
|
24
|
+
it "should return version staring with a number" do
|
25
|
+
expect(@user.getServerVersion).to eql "8.1.00 201301251157"
|
26
|
+
#expect().to match(/a regex/)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "arsystem"
|
metadata
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: arsystem
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Johan Wasserman
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-02-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
version_requirements: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.7'
|
20
|
+
requirement: !ruby/object:Gem::Requirement
|
21
|
+
requirements:
|
22
|
+
- - ~>
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: '1.7'
|
25
|
+
prerelease: false
|
26
|
+
type: :development
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ~>
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '10.0'
|
39
|
+
prerelease: false
|
40
|
+
type: :development
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - '>='
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
53
|
+
prerelease: false
|
54
|
+
type: :development
|
55
|
+
description: JRuby Remedy API wrapper - written written initially to extract data for Neo4J
|
56
|
+
email:
|
57
|
+
- johan.wasserman@gmial.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- .gitignore
|
63
|
+
- .project
|
64
|
+
- Gemfile
|
65
|
+
- LICENSE.txt
|
66
|
+
- README.md
|
67
|
+
- Rakefile
|
68
|
+
- arsystem.gemspec
|
69
|
+
- lib/arsystem.rb
|
70
|
+
- lib/arsystem/version.rb
|
71
|
+
- spec/arsystem_spec.rb
|
72
|
+
- spec/spec_helper.rb
|
73
|
+
homepage: https://github.com/johanwasserman/jARSystem
|
74
|
+
licenses:
|
75
|
+
- MIT
|
76
|
+
metadata: {}
|
77
|
+
post_install_message:
|
78
|
+
rdoc_options: []
|
79
|
+
require_paths:
|
80
|
+
- lib
|
81
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
83
|
+
- - '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - '>='
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
requirements: []
|
92
|
+
rubyforge_project:
|
93
|
+
rubygems_version: 2.4.5
|
94
|
+
signing_key:
|
95
|
+
specification_version: 4
|
96
|
+
summary: JRuby Remedy API wrapper
|
97
|
+
test_files:
|
98
|
+
- spec/arsystem_spec.rb
|
99
|
+
- spec/spec_helper.rb
|