You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use the slack-notifier gem on the latest version of Puppet Servers which embed unfortunately only jruby 1.7.26 (running 1.9.3p551 ruby).
$> puppetserver ruby --version
jruby 1.7.26 (1.9.3p551) 2016-08-26 69763b8 on OpenJDK 64-Bit Server VM 1.8.0_131-b11 +jit [linux-amd64]
So far, slack-notifier fails on this version:
#> puppetserver gem install slack-notifier
Fetching: slack-notifier-2.1.0.gem (100%)
Successfully installed slack-notifier-2.1.0
1 gem installed
#> puppetserver irb
irb(main):001:0> require 'slack-notifier'
SyntaxError: /opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/slack-notifier-2.1.0/lib/slack-notifier/util/link_formatter.rb:20: syntax error, unexpected tLABEL
def initialize string, formats: [:html, :markdown]
^
from org/jruby/RubyKernel.java:1040:in `require'
from /opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:54:in `require'
from file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/jruby/kernel19/kernel.rb:13:in `require_relative'
from /opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/slack-notifier-2.1.0/lib/slack-notifier.rb:6:in `(root)'
from org/jruby/RubyKernel.java:1040:in `require'
from /opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1:in `(root)'
from /opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:128:in `require'
from org/jruby/RubyKernel.java:1079:in `eval'
from (irb):1:in `evaluate'
from org/jruby/RubyKernel.java:1479:in `loop'
from org/jruby/RubyKernel.java:1242:in `catch'
from org/jruby/RubyKernel.java:1242:in `catch'
from org/jruby/RubyKernel.java:1059:in `load'
from /opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/bin/irb:17:in `(root)'
from jruby_core.clj:259:in `invoke'
from jruby_core.clj:253:in `invoke'
from jruby_core.clj:270:in `invoke'
from jruby_core.clj:261:in `invoke'
from irb.clj:9:in `invokeStatic'
from irb.clj:6:in `invoke'
from subcommand.clj:37:in `invokeStatic'
from subcommand.clj:26:in `invoke'
from irb.clj:13:in `invokeStatic'
from irb.clj:11:in `doInvoke'
from core.clj:646:in `invokeStatic'
from main.clj:314:in `invokeStatic'
from main.clj:310:in `invoke'
from main.clj:421:in `invokeStatic'
from main.clj:384:in `doInvoke'irb(main):002:0>
Is there a chance you can make your code backward compliant for this version of Ruby ? I confess I don't know how to change util/link_formatter.rb:20 to make it possible, nor if other piece of code use ruby >= 2.0 code.
The text was updated successfully, but these errors were encountered:
Falkor
changed the title
Support for jruby-1.7.26 (1.9.3-
Support for jruby-1.7.26 (1.9.3-p551)
May 26, 2017
I would like to use the
slack-notifier
gem on the latest version of Puppet Servers which embed unfortunately only jruby 1.7.26 (running 1.9.3p551 ruby).So far,
slack-notifier
fails on this version:Is there a chance you can make your code backward compliant for this version of Ruby ? I confess I don't know how to change
util/link_formatter.rb:20
to make it possible, nor if other piece of code use ruby >= 2.0 code.The text was updated successfully, but these errors were encountered: