Skip to content

Commit

Permalink
another try at travis / better gem name
Browse files Browse the repository at this point in the history
  • Loading branch information
mach-kernel committed Nov 20, 2017
1 parent c17719b commit c08c440
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@ rvm:
- jruby-9.1.9.0
gemfile:
- Gemfile
- Gemfile-java
- Gemfile-jruby

matrix:
exclude:
- rvm: jruby-9.1.9.0
gemfile: Gemfile
- rvm: 2.0.0
gemfile: Gemfile-java
gemfile: Gemfile-jruby
- rvm: 2.1.10
gemfile: Gemfile-java
gemfile: Gemfile-jruby
- rvm: 2.2.6
gemfile: Gemfile-java
gemfile: Gemfile-jruby
- rvm: 2.3.3
gemfile: Gemfile-java
gemfile: Gemfile-jruby
- rvm: 2.4.0
gemfile: Gemfile-java
gemfile: Gemfile-jruby

notifications:
irc:
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
source 'https://rubygems.org'
gemspec
gemspec name: 'classifier-reborn'
2 changes: 0 additions & 2 deletions Gemfile-java

This file was deleted.

2 changes: 2 additions & 0 deletions Gemfile-jruby
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
source 'https://rubygems.org'
gemspec name: 'classifier-reborn-jruby'
4 changes: 4 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ For more information read the following documentation topics.

### Notes on JRuby support

```ruby
gem 'classifier-reborn-jruby', platforms: :java
```

While experimental, this gem should work on JRuby without any kind of additional changes. Unfortunately, you will **not** be able to use C bindings to GNU/GSL or similar performance-enhancing native code. Additionally, we do not use `fast_stemmer`, but rather [an implementation](https://tartarus.org/martin/PorterStemmer/java.txt) of the [Porter Stemming](https://tartarus.org/martin/PorterStemmer/) algorithm. Stemming will differ between MRI and JRuby, however you may choose to [disable stemming](https://tartarus.org/martin/PorterStemmer/) and do your own manual preprocessing (or use some other [popular Java library](https://opennlp.apache.org/)).

If you encounter a problem, please submit your issue with `[JRuby]` in the title.
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require 'bundler/gem_helper'

install_config = case RUBY_PLATFORM
when 'java'
{ name: 'classifier-reborn-java' }
{ name: 'classifier-reborn-jruby' }
else
{ name: 'classifier-reborn' }
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Gem::Specification.new do |s|
s.rubygems_version = '2.2.2'
s.required_ruby_version = '>= 1.9.3'

s.name = 'classifier-reborn'
s.name = 'classifier-reborn-jruby'
s.version = ClassifierReborn::VERSION
s.license = 'LGPL'
s.summary = 'A general classifier module to allow Bayesian and other types of classifications.'
Expand Down

0 comments on commit c08c440

Please sign in to comment.