Displaying 20 results from an estimated 600 matches similar to: "Help with Writing Meaningful Specs"
2006 Jun 29
7
Mongrel says it works, but it doesn''t
Hello, I came to know of mongrel by pure chance, it interrested me cause
webrick never worked and instantrails for rails was very slow. the problem
with webrick is/was is that it says just this:
>ruby script/server
c:/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning: character class
has `-'' without escape
c:/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning: character
2008 Oct 15
5
REXML vs libxml
Hi all,
I''ve been looking at the performance of my fb app and one glaring issue
seems to be with the parsing speed of rexml in processing the results. Has
anyone looked into porting the facebooker parser from rexml to libxml? If
not, any reason I shouldn''t try?
Thanks!
Yu-Shan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2007 Oct 27
3
rake spec:rcov failing
Running rails 1.2.3, rcov (0.8.0.2), rspec trunk (2865) -
When running rake spec:rcov, I''m getting the following:
Finished in 245.717813 seconds
856 examples, 0 failures, 48 pending
/usr/local/lib/ruby/1.8/rexml/text.rb:292:in `normalize'': private
method `gsub'' called for 0:Fixnum (NoMethodError)
from /usr/local/lib/ruby/1.8/rexml/element.rb:1084:in
2006 Feb 01
4
REXML::ParseException - but the feed IS valid
I am using Ruby feedparser and when I try to parse this feed:
http://feeds.feedburner.com/Mobilecrunch
I get an error:
REXML::ParseException: Declarations can only occur in the doctype
declaration.
This feed does validate at feedvalidator.org. Any idea why it would raise
an exception?
Thanks,
eduard
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2008 Jan 02
3
REXML::Comment:Class
I have this field in my app where a logged in user can enter a comment,
but when I click on the link bringing me to that page I get the
following error message:
undefined method `table_name'' for REXML::Comment:Class
I am doing some encrypting that has an ''include REXML'' statement but
when I comment that out I still get this error. Does anyone know where
this is coming
2007 Dec 10
3
Road to 0.7.0
Hey everyone,
I''ve been refactoring Mechanize for an 0.7.0 release. Basically I''m
trying to clean the code up and there are a few features that I think
are unnecessary, but I would like to ask people first.
1) REXML as a parser.
I want to remove support for REXML. I don''t use it. Hpricot seems to
do everything I need.
2) 1.8.2 thru 1.8.4 support
2006 Aug 30
1
xml - get values
Hi
I have the following xml string that I have loaded into an REXML object
as shown below.
#xml stuff for saveRoute
require ''rexml/document''
include REXML
Xml = "<test>
<name>sam</name>
<description>this is a test</description>
<description>this is a test2</description>
</test>"
XmlObject = Document.new(Xml)
2006 Feb 01
3
XML on a external website
In my rails application i want to fetch an external xml file
So my website www.test.com needs an xml file from
www.example.com/xml.asp?query=hallo. In my rails application i want to
fetch and handle this file as an xml object.
Can anyone help me?
Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 Apr 08
1
How do I fix these annoying errors?
C:\rails\brablog>ruby script/generate scaffold
c:/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning: character
class has
`-'' without escape
c:/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning: character
class has
`-'' without escape
c:/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning: character
class has
`-'' without escape
2006 May 30
11
Display XML file, with some formatting.
Hi.
Im quite new to this Rails thing, but it seems like a good product so
why not try it out whit a little prototype i need to build.
What i want is to load any given XML file, and display it with some
formatting.
I have some XSD shemes to validate the XML files against, but its not
vital rigth now.
But how should i approach this task?
At first it would proberly be a good idea to load the
2004 Aug 20
8
wxruby-swig: where does wxclasses-2.4.2.xml comes from?
Was trying to understand more about the internals of wxruby-swig, where
does the big chunk of XML comes from? I saw something similiar in
Python, is that massaged out of there?
The codes produced by extractxml.rb and wxclasses-2.4.2.xml is quite
different from the original header files. Just for example the WxDialog
class.
OnXXX are non-virtual in WxWidgets, but virtual in wxruby-swig
2004 Aug 20
1
Any plans to switch wxruby-swig to using rexml?
since http://nqxml.sourceforge.net/
also recommends that we switch to use rexml which is shipped with ruby?
If there are plans for it but no developers, I might take it up as an
exercise to learn the internals of wxruby-swig.
Cheers,
Phuah Yee Keat
2009 Aug 14
9
Rescuing from REXML::ParseException
Hello,
When I call an action with some invalid XML or JSON data a parse
exception gets raised from within Rails/Ruby (REXML or
ActiveSupport::JSON). The problem that I''ve got is how to handle these
exceptions. In my application_controller.rb I have the following for
debugging purposes:
def rescue_action_in_public(exception)
respond_to do |request|
request.all { render :text =>
2006 Jul 18
9
Simple Array Issue - HELP
Ok, I am interfacing with the del.icio.us API and I want to collect the
links in an @instance variable for my view. But I''m having trouble with
that part. Here''s what I have:
def get_authenticated(path, http)
request = Net::HTTP::Get.new(path)
request.basic_auth ''user'', ''pass''
response = http.request(request)
response.value
response.body
end
2015 May 15
1
[PATCH] builder: Remove a few unnecessary 'virt-builder' strings from error messages.
---
builder/cmdline.ml | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/builder/cmdline.ml b/builder/cmdline.ml
index 7aa0c45..67a279d 100644
--- a/builder/cmdline.ml
+++ b/builder/cmdline.ml
@@ -234,11 +234,11 @@ read the man page virt-builder(1).
)
| `List ->
if format <> None then
- error (f_"virt-builder --list: use
2006 Jul 14
2
RESTful thinking - Need some guidance.
This is my first time working with REST and XML. My goal is to access
Google''s geocoding service using HTTP. Here''s the code I have so far:
require ''open-uri''
require ''rexml/document''
include REXML
url=''http://maps.google.com/maps/geo?''
address = ''q=1600 Amphitheatre Parkway Mountin View,CA''
address1 =
2010 Aug 05
7
Search large XML file -- REXML slower than a slug, regex instantaneous
Got a question hopefully someone can answer -
I am working on functionality to match on certain nodes of a largish (65mb)
xml file. I implemented this with REXML and was 2 minutes and counting
before I killed the process. After this, I just opened the console and
loaded the file into a string and did a regex search for my data -- the
result was almost instantaneous.
The question is, if I can get
2006 Mar 10
2
Generating RSS 1.0
Hi All,
I bought the ''beta book'' of Rails Recipes from pragprog and there''s a
tutorial in there for producing RSS 2.0, i''d like to generate RSS (RDF)
1.0 though. Can anyone point in the right direction. I''ve had little
luck finding detailed information on the ruby XML class.
Thanks
--
Posted via http://www.ruby-forum.com/.
2006 Jan 30
3
Which library for reading RSS ?
Hi all,
I''m looking for a library for reading RSS feeds. Do you know a good one
?
Thanks for your help.
--
Posted via http://www.ruby-forum.com/.
2005 Aug 22
5
XML "Un-Builder?"
I''ve been unserializing XML in PHP with the XML_Serializer class, and
I''m wondering if anyone knows of such a class for Ruby. Nothing
fancy, just perhaps a simple way of converting arbitrary XML to a
Ruby object. Maybe this has been implemented somewhere already?
Thanks,
Raymond