Thanks to Maniax who spotted two nasty bugs in the Invoker: we now evaluate floats/doubles correctly (as true when they are equal to zero), and we return an Iterator for an empty collection.
9 lines of code changed in:
did some currying to spice it up a bit
44 lines of code changed in:
remove duplicated headers inrtoduced in the last commit
0 lines of code changed in:
Replace a java like string concatination with a GString
18 lines of code changed in:
Slurp the XML directly from the response rather than creating a String and parsing that
5 lines of code changed in:
Deal with the fact that the description element is optional in RSS 2.0
Use XMLSlurper so that we can get rid of redundant [0] in GPath expressions
Also we can ommit the text() call when we want a String
7 lines of code changed in:
Modified to use slightly more idiomatic forms of Groovy
70 lines of code changed in:
Add versions of collect which take a Collection parameter
The parremeter is used to collect the results of executing the closure
and is returned as the result of calling collect
58 lines of code changed in:
An example of the Bloglines Web Services.
Written by Marc Hedlund <marc@precipice.org>, September 2004.
Used in Marc's article at:
http://www.oreillynet.com/pub/a/network/2004/09/28/bloglines.html
Requirements:
- install Groovy as detailed at <http://groovy.codehaus.org/>.
- put commons-httpclient-2.0.1.jar into GROOVY_HOME/lib
see <http://jakarta.apache.org/commons/httpclient/>.
note: this is currently designed for HttpClient2.x and not HttpClient3.x
To Launch:
groovy BloglinesClient.groovy
Thanks for sharing this example Marc!
167 lines of code changed in:
updated version number to next snapshot
1 lines of code changed in:
changed version number, ready for release
1 lines of code changed in:
bringing the reference card in line with the current Groovy JDK methods
7 lines of code changed in:
* added byte[] as specific RHS of << operator
- the RHS can still be of type Object, but if we have a stream on LHS
and a byte[] on the RHS, then raw byte data will be sent down that stream
(Socket, Process etc)
78 lines of code changed in:
refactored readline stuff into external module
106 lines of code changed in:
added support for ScrolledComposite
4 lines of code changed in:
Avoid namespace clash for mock (MockInputStream)
3 lines of code changed in:
* Added socket << obj and process << obj
* Added test cases for Groovy Socket methods
* Added test cases for Groovy Process methods
157 lines of code changed in:
Make the Xml Element Writable
21 lines of code changed in:
Make text() work with mixed content
2 lines of code changed in:
Allow text() to be ommitted in contexts which require a string
19 lines of code changed in:
Updated to hide GroovyJ action when event did not originate from a *.groovy file
6 lines of code changed in:
Renamed to match the corresponding category under IDEA's IDE settings
71 lines of code changed in:
Initial check-in of libraries, tests, and other project artifacts
1738 lines of code changed in:
Removed in preparation for the revamped build...
0 lines of code changed in:
Make a Wriatble Closure's toString() method return the result of executing the closure
10 lines of code changed in:
Add a contents() method to XmlList
This allows the contents of a node to be pasted into the thing being built by a Builder
22 lines of code changed in:
Fixed bug that caused the parser to hang on unterminated GStrings.
35 lines of code changed in:
Allow arbitrary subscripts in GPath expressions on the result of running XmlSlurper
Begin the work to allow GPath expressions to be used to specify markup to be generated by Builders
71 lines of code changed in:
added a small getting strated guided, upgraded to latest groovy build
88 lines of code changed in: