bives 0.10 → 1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YmIxZGRkYzM0NDJmZWIzOWFlZmJlNjg1NmQyNWFjOTQ2ZWRlNjk1ZA==
5
- data.tar.gz: !binary |-
6
- NWZhMTQ0OGI0ZmJlYzliMzM2ZTIxOTZjMDhiM2Q0NGMwNGM2YjY1NA==
2
+ SHA1:
3
+ metadata.gz: 78a248354dc4356b69fe053804f03193eb952c23
4
+ data.tar.gz: 218969612f8e304136fecbd39c9f853aaad5e688
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MDk1MTk2NmFjOWZmMTdmOThjMGIxYmM1MDFlNDY3Y2Y3OTc3NjE2YmE0MTM0
10
- ODg3ZDIyZWU5YmI3ZGU4NDlmOGMxZjUzNmQyNGE5NWFjNGQwMWVmYmEwYTA2
11
- ZGQ0ZDJjYTIxYzlkYWZkOTVhYjU0OTc3MTQxMjY0ZWFkMjRmZGU=
12
- data.tar.gz: !binary |-
13
- NjAwYTIzNjcwMWZmZThhMWRmMjlhZWVlYTFjOWJkZTUxYzg3NjMzZDlhZmE3
14
- YTE5OGVlZjY0NTIyY2JlZjEwNzRhYmY2NzZhMzI3NTlmODMxMjAwMzZkZTU5
15
- MjAxMjY5ZmM4NWVmYTQ3NTBlMTBkMDk4MjhhMmY4OTExN2YxYjg=
6
+ metadata.gz: 7fa418934de669742b83847fe9beaa3519ae9fd62124e2e252f26eff6f93d8a57f2f154b73f48e416f8d47161eceece77b9031ca64a92e46cecbcb6b678ff030
7
+ data.tar.gz: a8f14085079e21f07fcfaa8d9e5ed092ac2258e20b344b748724ac5fcb4fc52bdb8843c92341d09907195a592fa4d4974a800f32f7d8d342c9b68e96f0c24d92
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-1.9.3-p484
1
+ ruby-2.1.6
data/.travis.yml ADDED
@@ -0,0 +1,11 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - 2.1.6
5
+
6
+ env:
7
+ - SUITE="rake test"
8
+ - SUITE="rake build"
9
+
10
+ script: bundle exec $SUITE
11
+
data/Gemfile CHANGED
@@ -2,6 +2,3 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in bevis.gemspec
4
4
  gemspec
5
-
6
- gem "open4","1.3.0"
7
- gem "minitest"
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013, University of Manchester and University of Rostock
1
+ Copyright (c) 2013-2015, University of Manchester and University of Rostock
2
2
 
3
3
  Apache License
4
4
  Version 2.0, January 2004
data/README.rdoc ADDED
@@ -0,0 +1,41 @@
1
+ = BiVeS Ruby Gem
2
+
3
+ {<img src="https://codeclimate.com/github/SysMO-DB/bives.svg" />}[https://codeclimate.com/github/SysMO-DB/bives]
4
+ {<img src="https://travis-ci.org/SysMO-DB/bives.svg?branch=update" alt="Build Status" />}[https://travis-ci.org/SysMO-DB/bives]
5
+
6
+ Authors:: Stuart Owen, Martin Scharm
7
+ Contact:: http://fair-dom.org/contact
8
+ Homepage:: http://fair-dom.org
9
+ Source code:: https://github.com/SysMO-DB/bives
10
+ Licence:: Apache 2.0 (See Licence file or http://opensource.org/licenses/Apache-2.0)
11
+ Copyright:: (c) 2014, 2015 The University of Manchester, UK
12
+
13
+
14
+ == Synopsis
15
+
16
+ This is a Ruby Gem which wraps the BiVeS java tool.
17
+
18
+ Its purpose is to produce and comparison of difference between two SBML models, based on the XyDiff algorithm.
19
+
20
+ BiVeS is developed at SEMS, Rostock, Germany, and more information can be found at https://sems.uni-rostock.de/projects/bives/ .
21
+
22
+ BiVeS is used as part of the {Seek4Science}[http://seek4science.org] project, but is a standalone library.
23
+
24
+
25
+ == Usage
26
+
27
+ include the gem in your Gemfile with:
28
+
29
+ gem 'bives'
30
+
31
+ then to use in your code
32
+
33
+ include Bives
34
+ compare(file1,file2)
35
+
36
+ where file1 and file2 are File objects.
37
+
38
+ The result is a HTML report of the differences.
39
+
40
+ You can see an example in our {Tests}[https://github.com/SysMO-DB/bives/blob/master/test/bives_test.rb]
41
+
data/Rakefile CHANGED
@@ -1 +1,10 @@
1
1
  require "bundler/gem_tasks"
2
+ require 'rake/testtask'
3
+
4
+ Rake::TestTask.new do |t|
5
+ t.libs << 'lib/bives'
6
+ t.test_files = FileList['test/*_test.rb']
7
+ t.verbose = true
8
+ end
9
+
10
+ task :default => :test
data/bives.gemspec CHANGED
@@ -1,16 +1,8 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'bives/version'
5
- require "bundler/gem_tasks"
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
6
3
 
7
- require 'rake/testtask'
4
+ require 'bives/version'
8
5
 
9
- Rake::TestTask.new do |t|
10
- t.libs << 'lib/bives'
11
- t.test_files = FileList['test/*_test.rb']
12
- t.verbose = true
13
- end
14
6
 
15
7
  Gem::Specification.new do |spec|
16
8
  spec.name = "bives"
@@ -20,15 +12,18 @@ Gem::Specification.new do |spec|
20
12
  spec.description = %q{Ruby wrapper for the BiVeS model version comparison tool}
21
13
  spec.summary = %q{Ruby wrapper to interface with the BiVeS model version comparison tool - http://sems.uni-rostock.de/projects/bives/}
22
14
  spec.homepage = ""
23
- spec.license = "MIT"
15
+ spec.license = "Apache 2.0"
24
16
 
25
17
  spec.files = `git ls-files`.split($/)
26
18
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
27
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
28
20
  spec.require_paths = ["lib"]
29
21
 
30
- spec.add_development_dependency "bundler", "~> 1.3"
31
22
  spec.add_development_dependency "rake"
23
+ spec.add_development_dependency "test-unit", "~> 3.0"
24
+
25
+ spec.add_runtime_dependency "open4","~>1.3.0"
26
+
32
27
  end
33
28
 
34
29
 
data/lib/bives/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Bives
2
- VERSION = "0.10"
2
+ VERSION = "1.0"
3
3
  end
data/lib/bives.rb CHANGED
@@ -10,7 +10,7 @@ module Bives
10
10
 
11
11
  end
12
12
 
13
- JAR_FILENAME = "BiVeS-1.1.3-SNAPSHOT-fat.jar"
13
+ JAR_FILENAME = "BiVeS-1.3.12-jar-with-dependencies.jar"
14
14
  JAR_FILEPATH = File.join File.dirname(__FILE__),"jars","#{JAR_FILENAME}"
15
15
 
16
16
  def self.included(mod)
metadata CHANGED
@@ -1,43 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bives
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.10'
4
+ version: '1.0'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stuart Owen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-20 00:00:00.000000000 Z
11
+ date: 2015-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.3'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.3'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: test-unit
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '3.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '3.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: open4
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 1.3.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 1.3.0
41
55
  description: Ruby wrapper for the BiVeS model version comparison tool
42
56
  email:
43
57
  - stuart.owen@manchester.ac.uk
@@ -45,23 +59,24 @@ executables: []
45
59
  extensions: []
46
60
  extra_rdoc_files: []
47
61
  files:
48
- - .gitignore
49
- - .ruby-gemset
50
- - .ruby-version
62
+ - ".gitignore"
63
+ - ".ruby-gemset"
64
+ - ".ruby-version"
65
+ - ".travis.yml"
51
66
  - Gemfile
52
67
  - LICENSE
53
- - README.md
68
+ - README.rdoc
54
69
  - Rakefile
55
70
  - bives.gemspec
56
71
  - lib/bives.rb
57
72
  - lib/bives/version.rb
58
- - lib/jars/BiVeS-1.1.3-SNAPSHOT-fat.jar
73
+ - lib/jars/BiVeS-1.3.12-jar-with-dependencies.jar
59
74
  - test/bives_test.rb
60
75
  - test/models/potato1.xml
61
76
  - test/models/potato2.xml
62
77
  homepage: ''
63
78
  licenses:
64
- - MIT
79
+ - Apache 2.0
65
80
  metadata: {}
66
81
  post_install_message:
67
82
  rdoc_options: []
@@ -69,17 +84,17 @@ require_paths:
69
84
  - lib
70
85
  required_ruby_version: !ruby/object:Gem::Requirement
71
86
  requirements:
72
- - - ! '>='
87
+ - - ">="
73
88
  - !ruby/object:Gem::Version
74
89
  version: '0'
75
90
  required_rubygems_version: !ruby/object:Gem::Requirement
76
91
  requirements:
77
- - - ! '>='
92
+ - - ">="
78
93
  - !ruby/object:Gem::Version
79
94
  version: '0'
80
95
  requirements: []
81
96
  rubyforge_project:
82
- rubygems_version: 2.1.11
97
+ rubygems_version: 2.2.3
83
98
  signing_key:
84
99
  specification_version: 4
85
100
  summary: Ruby wrapper to interface with the BiVeS model version comparison tool -
data/README.md DELETED
@@ -1,9 +0,0 @@
1
- # Bivis
2
-
3
-
4
- ## Installation
5
-
6
- Add this line to your application's Gemfile:
7
-
8
- gem 'bives'
9
-
Binary file