search for: ruby_version

Displaying 20 results from an estimated 25 matches for "ruby_version".

2013 Feb 21
6
Using Facter to find the Java version running on the machine
Hello all, I am currently trying to setup a Custom Fact that will can be used to determine the version of the Java JRE running on a machine, in order to use it in my manifests to ensure the proper JARS are distribured based on environment. I''m trying to use the java -version command and then capture the JRE release (eg "1.6.0_37"). No matter what I have tried, the output
2010 Sep 04
8
sqlite3/sqlite3_native (LoadError)
Hi, I have installed ruby 1.9.2, rubygems 1.3.7 and rails 3.0. created a demo application. when I start ''rails server'' I get: ''require'': no such file to load -- sqlite3/sqlite3_native (LoadError) any idea ? Thank you. Dani -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on
2010 Apr 21
0
can't seem to install bleak house
...ynamic -Wl,-export-dynamic -rdynamic -Wl,-export-dynamic main.o -lruby-static -lrt -ldl -lcrypt -lm -lpthread -lrt -ldl - lcrypt -lm -o ruby make[1]: Leaving directory `/tmp/bleak_house/ruby-1.8.7-p174'' -%{ BUILDING SNAPSHOT }%- build_snapshot.rb:1: warning: already initialized constant RUBY_VERSION /usr/local/lib/ruby/1.9.1/x86_64-linux/rbconfig.rb:7: ruby lib version (1.9.1) doesn''t match executable version (1.9.1p376) (RuntimeError) from /usr/local/lib/ruby/1.9.1/mkmf.rb:4:in `require'' from /usr/local/lib/ruby/1.9.1/mkmf.rb:4 from build_snapshot.rb:...
2016 Apr 12
3
selinux getsebool request
On 04/12/2016 02:31 PM, James Hogarth wrote: > For example: > > unless => "/usr/sbin/getsebool httpd_can_network_connect | /usr/bin/grep on > &> /dev/null" D'oh! That's what I get for overcomplicating the whole darn thing. :) > > Incidentally one nice trick if you're dealing with potentially changing > multiple booleans and the policy compile
2009 Mar 11
3
install rubygems
...sudo ruby setup.rb i get error is >/home/test/rubygems-1.3.1/lib/rubygems/version.rb:53:in `initialize'': Malformed version number string 1.8.8.-1 (ArgumentError) from /home/test/rubygems-1.3.1/lib/rubygems.rb:676:in `new'' from /home/test/rubygems-1.3.1/lib/rubygems.rb:676:in `ruby_version'' from setup.rb:111 pls ,give comment for me what wrong in the installation rubygems --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to...
2016 Apr 13
0
selinux getsebool request
...ut committing to on-disk policy alarms me. I'm not sure I entirely understand this discussion. Isn't this what puppet does by default with selboolean? # puppet resource selboolean httpd_can_network_connect value=on persistent=true --debug Debug: Runtime environment: puppet_version=3.8.6, ruby_version=2.0.0, run_mode=user, default_encoding=UTF-8 Debug: Loaded state in 0.15 seconds Debug: Selboolean[httpd_can_network_connect](provider=getsetsebool): Retrieving value of selboolean httpd_can_network_connect Debug: Executing '/usr/sbin/getsebool httpd_can_network_connect' Debug: Selboolean[h...
2009 Jun 18
3
Date.new.to_time.to_i
What''s going on here!? >> Date.new.to_time.to_i NoMethodError: undefined method `to_i'' for Mon, 01 Jan -4712 00:00:00 -0800:DateTime from (irb):25 >> Date.today.to_time.to_i => 1245308400 >> RUBY_VERSION => "1.8.7" >> Rails.version => "2.1.1" (I''m not sure if this is a rails thing, or just a ruby thing) -- Posted via http://www.ruby-forum.com/.
2011 Apr 18
2
rubygems fail - require hpricot!
...Users/Anush/.rvm/environments/ruby-1.9.2-p180 export PATH="/Users/Anush/.rvm/gems/ruby-1.9.2-p180/bin:/Users/Anush/.rvm/gems/ruby-1.9.2-p180@global/bin:/Users/Anush/.rvm/rubies/ruby-1.9.2-p180/bin:/Users/Anush/.rvm/bin:$PATH" rvm_path=''/Users/Anush/.rvm'' export rvm_path RUBY_VERSION=''ruby-1.9.2-p180'' export RUBY_VERSION GEM_HOME=''/Users/Anush/.rvm/gems/ruby-1.9.2-p180'' export GEM_HOME GEM_PATH=''/Users/Anush/.rvm/gems/ruby-1.9.2-p180'' export GEM_PATH MY_RUBY_HOME=''/Users/Anush/.rvm/rubies/ruby-1.9.2-p180'' e...
2018 Oct 01
2
[PATCH nbdkit] plugins: Add scripting language version to --dump-plugin output.
...k_defined ("dump_plugin", &fn)) { PyErr_Clear (); diff --git a/plugins/ruby/ruby.c b/plugins/ruby/ruby.c index aa57f65..a3d7a42 100644 --- a/plugins/ruby/ruby.c +++ b/plugins/ruby/ruby.c @@ -41,6 +41,9 @@ #include <nbdkit-plugin.h> #include <ruby.h> +#ifdef HAVE_RUBY_VERSION_H +#include <ruby/version.h> +#endif static VALUE nbdkit_module = Qnil; static int last_error; @@ -168,6 +171,17 @@ plugin_rb_unload (void) static void plugin_rb_dump_plugin (void) { +#ifdef RUBY_API_VERSION_MAJOR + printf ("ruby_api_version=%d", RUBY_API_VERSION_MAJOR); +#i...
2010 Sep 09
3
1.9.2 why does relative_require need an additional backtrack in path
Why does Ruby-1.9.2-p0 require an additional ../ for relative paths when compared to the same code for ruby1.8? if RUBY_VERSION < ''1.9'' require File.dirname(__FILE__) + library else require_relative File.dirname(__FILE__) + ''/..'' + library end -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group,...
2010 Apr 19
10
Overview of Ruby 1.9 encoding problem tickets
...ding would also be BINARY. I would propose merging the following with the patch above: def compile(template) input = "<% __in_erb_template=true %>#{template.source}" src = ::ERB.new(input, nil, erb_trim_mode, ''@output_buffer'').src if RUBY_VERSION >= ''1.9'' and src.encoding != input.encoding if src.encoding == Encoding::ASCII_8BIT src = src.force_encoding(input.encoding) #ERB workaround else src = src.encode(input.encoding) end end # Ruby 1.9 prepends...
2007 Dec 18
3
First Shoot, many more to appear: Rails on Ruby 1.9
...still, we need to work on something that: Warn the user on running mongrel with 1.9 (until we got it working). Limit the gem to work only with 1.8 line (instead of >= 1.8.4) #=> ''>= 1.8.4'', ''< 1.9.0'' or #=> ''~> 1.8.4'' ? Do a RUBY_VERSION check in the code and warn the user about it. Thoughts? -- Luis Lavena Multimedia systems - A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. Douglas Adams
2018 Oct 01
0
Re: [PATCH nbdkit] plugins: Add scripting language version to --dump-plugin output.
...ersion=5.3.4 > > On Perl: > > perl_version=5.28.0 > > On Python 2: > > python_version=2.7.15 > > On Python 3: > > python_version=3.7.0 > python_pep_384_abi_version=3 > > On Ruby 2.5.1p57: > > ruby_api_version=2.5.0 Should this be ruby_version, to be like the others? Other than that, LGTM. -- Pino Toscano
2009 Mar 07
2
[rspec/tm] When running the textmate bundle hook using command-r I get an error about missing rubygems
I get the following error using both edge version of the TM bundle and rspec/rspec-rails in vendor/plugins. /Users/nshb/Library/Application Support/TextMate/Bundles/ RSpec.tmbundle/Support/lib/spec/mate.rb:2:in `require'': No such file to load -- rubygems (LoadError) from /Users/nshb/Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/mate.rb:2 from
2009 Apr 01
2
hpricot won't scrape! (newb question)
...#39;'open-uri'' require ''hpricot'' @url = "http://www.greatnonprofits.org/" @response = '''' begin # open-uri RDoc: http://stdlib.rubyonrails.org/libdoc/open-uri/rdoc/index.html open(@url, "User-Agent" => "Ruby/#{RUBY_VERSION}", "From" => "email-LLpXEq4AMUA@public.gmane.org", "Referer" => "http://www.igvita.com/blog/") { |f| puts "Fetched document: #{f.base_uri}" puts "\t Content Type: #{f.content_type}\n" puts "\t Chars...
2005 Mar 15
6
New Beta version of Rake for Rails Users ... Fix for Ruby 1.8.2 unit test bug
I have a new version of Rake that I''m (almost) ready to release. But before I make an official release, I would like some Rails folk to give it it try ... Why? Because it contains a workaround for the notorious Ruby 1.8.2 test/unit bug. Using this version of rails, it should be possible to unit test a rails app without patching the Ruby 1.8.2 test/unit library. Where to get it?
2013 Oct 25
2
[PATCH] support SO_REUSEPORT on new listeners (:reuseport)
.../test_socket_helper.rb b/test/unit/test_socket_helper.rb index a38082c..abc177b 100644 --- a/test/unit/test_socket_helper.rb +++ b/test/unit/test_socket_helper.rb @@ -184,4 +184,12 @@ class TestSocketHelper < Test::Unit::TestCase assert_equal 1, cur rescue Errno::EAFNOSUPPORT end if RUBY_VERSION >= "1.9.2" + + def test_reuseport + port = unused_port @test_addr + name = "#@test_addr:#{port}" + sock = bind_listen(name, :reuseport => true) + cur = sock.getsockopt(Socket::SOL_SOCKET, SO_REUSEPORT).unpack(''i'')[0] + assert_equal 1, cur...
2014 Apr 26
0
jquery_ujs.js 404
...t; <li> <%= link_to "Home", :controller => "home", :action => "index" %> </li> <li> <%= link_to "Bureaus", :controller => "bureaus", :action => "index" %> </li> <%= RUBY_VERSION%> - <%= Rails.env %> <% if !session[:user_id].nil? %> <li> <%= link_to "Minha Conta", :controller => "my_account", :action => "index" %> </li> <% end %> <l...
2007 Dec 10
7
Serious Geek RoR newbie: wishes to know EXACTLY what/where all is installed by packages. Tnx!
[TOP lINE: is there a linux program that will tell me where all the installed files went?] Hi all....great to be here... i''m pretty relentless yet very new to RoR and fairly new to Linux [went with ubuntu 7.10 for the time being - learing pure Deb and/or Slack/BDS for the future] anyhooo.. So... Coming from my highly understood XP install [frankly it feels yuk these days] i''m
2004 Apr 27
15
Building wxruby on Solaris 9
Hi all, Ruby 1.8.1 Solaris 9 wxwindows 2.4.2 (package from blastwave.org) wxruby 0.3.0 I''m having trouble getting this sucker to build on my Solaris box. Here''s how I''m building: ruby extconf.rb --with-xrc-dir=/opt/csw --with-xrc-include=/opt/csw/lib/wx The include directive I added because the setup.h file is there (for whatever reason). And yes, /opt/csw/bin and