Displaying 20 results from an estimated 8000 matches similar to: "Kernel.require behavior"
2006 Nov 04
0
page caching urls with space characters broken in webrick and mongrel
Page caching of urls with spaces in them using WEBrick and Mongrel is
broken in Edge Rails (and Rails 1.1.6, where I started). This is due
to the dispatch flow of control in both servers converting ''+'' in
requested paths into '' '' chars, whereas the page caching system writes
cache files for URLs with spaces in them out as encoded ''+''
2006 Feb 19
8
require ''digest/md5'' not working on Mac or Windows
I''ve tried the following line in ruby script/console
require ''digest/md5''
Both my Mac (Intel iMac) and my Windows box return "false"... Any ideas
what could be wrong? I was trying to do the RoR Recipe on page 54 of
Chad Fowler''s new (beta) book.
-Mark
--
Posted via http://www.ruby-forum.com/.
2006 Jul 26
1
lesson learned: script/runner does not abort on failed require
After a fresh installation of an application, some utility scripts
run with script/runner quietly aborted right after their start. No
error message whatsoever, just a new shell prompt. The reason was an
uninstalled dependecy, but that was difficult to determine because
the load failure was not reported:
% ruby script/runner ''require "foobarbaz"''
%
Why
2013 Mar 11
0
test.rb:1:in `require': no such file to load -- yaml (LoadError)
Hello
I am trying to migrate my ruby from old server to new server.
I did a copy of all the binaries and have set all the relevant patch.
However I am not sure what I am missing. Below require works completely
fine on my old server. however , does not work fine in new server.
How can I know where is the yaml file located on the old server and any
advise how to fix this issue.
File Content:
2011 Oct 12
1
`require': no such file to load -- rspec/rails (LoadError)
Getting strange loading problem..
>> bundle exec rspec -p spec/models/*
give error:
..
.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/
dependencies.rb:240:in `require'': no such file to load -- rspec/rails
(LoadError)
from /home/slava/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/
lib/active_support/dependencies.rb:240:in `block in require''
from
2006 Jan 20
2
what''s the right way to require a file?
I''m having a problem importing a class from another project (not a RoR
application). What''s the right way to require such a file?
I have a class ModelPathwayObject. It''s in
#{RAILS_ROOT}/../lib/model_pathway_object.rb , so I add that path to
config.load_paths. In config/environment.rb:
Rails::Initializer.run do |config|
config.load_paths += %W(
2023 Feb 15
0
Question about italics in legendg() - plotrix
Hi Nicole,
plotrix is intended to be modular, that is, it builds plots step by step.
This makes it easier to understand code that you haven't written or haven't
seen for a while. Here is an example showing how to change the font using
par():
library(plotrix)
plot(0,type="n",xlim=c(0,1),ylim=c(-1,0))
par(font=3)
legendg(0.115,-0.055,legend=c("Pan
2006 Aug 02
1
unable to "require" installed gems
Hi,
I''ve installed sqlite3 (via the instructions at
http://wiki.rubyonrails.org/rails/pages/HowtoUseSQLite), and all went
well
OSX 10.4.7
ruby 1.8.4 (2005-12-24) [powerpc-darwin8.6.0]
and sqlite3.rb is in
/usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib
but I can''t <require ''sqlite3''>
caw$ irb
irb(main):001:0> require
2006 Jan 13
1
Rails newbie on Debian: require ''pathname'' error
Hello,
Trying to get this ''thing'' to do something for me - whenever I run
script/something I get the following error:
./script/../config/boot.rb:6:in `require'': No such file to load --
pathname (LoadError)
from ./script/../config/boot.rb:6
from script/generate:2:in `require''
from script/generate:2
and boot.rb:6 says require
2013 Jun 18
2
`require': cannot load such file -- nokogiri (LoadError) in rubyXL
Hi All
Getting the below error when running the source code
My requirement is : I want read / write the excel sheet ( both xls / xlsx )
from Ruby , if you have any other solution also share with me ..
*Source Code :*
*
*
*
bash-3.2$ cat rubyXL.rb
require ''rubyXL''
workbook = RubyXL::Parser.parse("test.xlsx")
workbook = RubyXL::Workbook.new
sheet_Name =
2010 Nov 14
1
Error with require "wx"
I have installed the wxruby gem, with no errors, but when I try to
inclue the gem, I get this error:
<internal:lib/rubygems/custom_require>:29:in `require'': 126: The
specified module could not be found. -
C:/Ruby192/lib/ruby/gems/1.9.1/gems/wxruby-2.0.1-x86-mingw32/lib/wxruby2.so
(LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require''
2007 Jun 03
1
Require not working
Hi,
I installed the require ruby gems and it is there in the lib
directory ..
but when i tried to call it using require its not working
1) with irb: i tired require ''rubygems'' its throwing me false
and for require ''scrubyt'' its throwing the below given error message
LoadError: no such file to load -- parse_tree_reloaded
from
2007 Feb 03
0
Bus error in IRB when trying: require "fox16"
On 2/2/07, Zane <zcvohland at gmail.com> wrote:
> I have spent a couple of days trying to get the Fox GUI library to
> interact with ruby. Now I think I am getting close. Before I go on to
> explain my problem here is some information that may be necessary...
<snip>
> Software Versions:
> ----------------------
> Ruby 1.8.1
Just curious: Why still running Ruby
2006 May 30
1
Apache can''t load/require rubygems
Hi,
I have rubygems installed in my home directory as I''d like to have
control over gems without requiring root access. I''m trying to deploy
a known working rails app on this machine but it falls down at the
"require ''rubygems''" line in boot.rb. I have added the path to
rubygems to LOAD_PATH in environment.rb; this is confirmed by dumping
$: to a
2014 Nov 29
4
Adding Support for Krovetz Stemmer Algo in Xapian
Hello,
As mentioned on the project ideas page, Adding more support for stemmer
algorithm,
i found an implementation of Krovetz Stemmer Algo in C++ but before
working on it to merge it into xapian, i needed help in recognizing the
license information associated with the source code.
To avoid further licensing issues kindly someone check the link
2006 Apr 10
2
Outbound calls through Broadvoice
Hi all, a noob here, I am trying to get outbound calls through asterisk
working with Broadvoice.
I have consulted the following two online tutorials:
http://www.broadvoice.com/support_install_asterisk.html
http://www.voip-info.org/wiki/view/Asterisk+settings+Broadvoice
in an effort to make outbound calls.
My current settings are as follows:
sip.conf
register =>
2011 Apr 12
4
OS X - `require': no such file to load -- sqlite3/sqlite3_native
I''ve searched and search, tried a number of things like unstalling
sqlite3 and reinstalling. Reinstalling Rails, building sqlite3 from
source, etc. Nothing seems to work. When I try to start up my server I
get the following:
MacBook-Pro:splash Ross$ rails server
/Volumes/Macintosh
HD/Users/Ross/rails_projects/splash/json/ruby/1.9.1/gems/sqlite3-1.3.3/lib/sqlite3.rb:6:in
2008 Jul 02
3
undefined method `name' for nil:NilClass
I''m a new puppet user. I can''t puppetmasterd to start. I searched this
group for the error message I get, but found nothing. Any ideas?
[root@puppet ~]# puppetmasterd
undefined method `name'' for nil:NilClass
Using the --debug switch and ruby''s --debug option shows the
following:
[root@puppet ~]# puppetmasterd --debug
debug: Parsing /etc/puppet/puppet.conf
2008 Jan 08
2
Problems with rspec 1.1 required inside rake tasks
This is interesting.
The default rspec rake tasks generated by Hoe give you an rspec.rake
file that looks like:
> begin
> require ''spec''
> rescue LoadError
> require ''rubygems''
> require ''spec''
> end
>
So far so good.
When you invoke rake to do something, say check_manifest
> rake check_manifest
>
You
2008 Nov 19
1
ruby xapian bindings and windows
Hi,
I've compiled xapian 1.0.9 (core and buildings) on Windows Xp, using
Lemur's nmake files[1].
I'm trying to use acts_as_xapian [2] on RubyOnRails, but I'm facing a
problem with the rebuild index process.
in acts_as_xapian, to rebuild the index, a new
Xapian::WritableDatabase is created with a different path, then
flush() is invoked; lastly, the new path is renamed to the old