CARVIEW |
gma
(Graham Ashton)
- You’re not logged in!
- Login
- Pricing & Signup
- Name
- Graham Ashton
- Website/Blog
- https://effectif.com
- Company
- Effectif Development
- Location
- London
- Member Since
- Mar 04, 2008
Following 8 coders and watching 57 repositories view all →
Public Repositories (27)
-
python-satisfaction
Python wrapper for the getsatisfaction API
Last updated Tue Apr 27 16:06:04 -0700 2010
-
nesta
A lightweight CMS, implemented in Sinatra.
Last updated Wed Apr 21 12:05:07 -0700 2010
-
nesta-demo
Small sample web site for the Nesta CMS
Last updated Thu Apr 08 01:35:11 -0700 2010
-
bundler-exec
Automatically run Ruby scripts with "bundle exec" (but only when appropriate).
Last updated Tue Apr 06 05:02:44 -0700 2010
-
nesta-theme-postal3
A clean blog theme for the Nesta CMS
Last updated Mon Mar 29 05:37:42 -0700 2010
-
nhs-toolbar
A project developed at Rewired State 2010
Last updated Mon Mar 22 17:49:15 -0700 2010
-
ngram-builder
Python module for creating n-grams from a chunk of text.
Last updated Mon Mar 22 16:16:14 -0700 2010
-
jr
Adds jobs to a persisted queue. Runs as many jobs (in parallel) as you like.
Last updated Tue Mar 16 05:12:08 -0700 2010
-
mongomapper
A Ruby Object Mapper for Mongo
Forked from jnunemaker/mongomapper Tue Mar 02 15:55:26 -0800 2010
Last updated Tue Mar 02 15:56:40 -0800 2010
-
mechanize
Mechanize is a ruby library that makes automated web interaction easy.
Forked from tenderlove/mechanize Wed Jan 27 05:25:10 -0800 2010
Last updated Wed Jan 27 05:26:47 -0800 2010
-
capybara
webrat alternative which aims to support all browser simulators
Forked from jnicklas/capybara Wed Jan 20 16:26:56 -0800 2010
Last updated Wed Jan 20 16:34:03 -0800 2010
-
rack-codehighlighter
Rack Middleware for code highlighting.
Forked from wbzyl/rack-codehighlighter Sun Jan 03 08:02:38 -0800 2010
Last updated Sun Jan 03 08:30:24 -0800 2010
-
rack
a modular Ruby webserver interface
Forked from chneukirchen/rack Mon Dec 07 16:57:19 -0800 2009
Last updated Mon Dec 07 17:01:32 -0800 2009
-
pmock
Python library for generating mock objects, in the style of jMock.
Last updated Fri Nov 06 11:47:26 -0800 2009
-
git-school
Dummy project to help people get familiar with git
Last updated Tue Jul 21 04:16:37 -0700 2009
-
python-netsyslog
Python library for hand crafting and sending syslog packets.
Last updated Thu Jul 02 14:07:11 -0700 2009
-
landialler-client-gtk
LANdialler shares control of a dial up connection between users. This is the GTK+ user interface.
Last updated Mon Jun 29 06:12:38 -0700 2009
-
landialler-server
Server software for sharing control of a dial up connection to the Internet between multiple users.
Last updated Mon Jun 29 06:09:37 -0700 2009
-
uk-parliament-chatter
REST API for finding out which MPs are talking about stuff
Last updated Sun Mar 08 00:35:12 -0800 2009
-
ukcompanies
rails app for serving uk companies data
Forked from robmckinnon/ukcompanies Sat Mar 07 04:04:52 -0800 2009
Last updated Sat Mar 07 03:54:01 -0800 2009
-
integral
Inter-application integration testing
Last updated Tue Mar 03 07:08:39 -0800 2009
-
gma-utils
Handy scripts and snippets
Last updated Sat Jan 10 02:57:20 -0800 2009
-
adl
System administration command logger
Last updated Sun Jan 04 01:55:20 -0800 2009
-
webrat
Webrat - Ruby Acceptance Testing for Web applications
Forked from brynary/webrat Tue Dec 09 03:17:07 -0800 2008
Last updated Tue Dec 09 07:01:41 -0800 2008
-
topcat
Some content. Not a lot of management. Even less "system".
Last updated Sun Oct 05 09:03:17 -0700 2008
-
git-me-up
Automate common steps when getting setup with git-svn.
Last updated Wed Apr 30 16:30:48 -0700 2008
-
god
Ruby process monitor
Forked from mojombo/god Sat Apr 26 06:15:33 -0700 2008
Last updated Sat Apr 26 10:30:22 -0700 2008
Public Activity 
-
e53319d
Iterate over product.topics and topic.replies.
-
412fbe1
Report URL when resource not found.
-
88d6e3b
Started iterating over a product's topics.
- 3 more commits »
-
48fe58d
Read a topic and return its title and content.
Access the Get Satisfaction API using Ruby
How is ruby-satisfaction tested?
Simple test framework for asynchronous testing in Node.js.
Web front-end to LibreList
Access the Get Satisfaction API using Ruby
Rake tasks are misunderstood and misused. Think of rake as the console to your app.
I think of rake as make, rewritten in Ruby. The Ruby community seems to have subverted it, adopting it as the way to write command line utilities. I think this understandable (Ruby ships with relatively weak support for writing command line tools) but a little unfortunate, as rake's ability to parse the command line is pretty poor. You shouldn't have to stuff things into global variables so that you can access them in your code. There are better (and simpler) ways. As I understand it this problem was the inspiration for thor.
And yet rake doesn't feel inappropriate for running test suites; under those circumstances you do want to make sure that a bunch of stuff has been done before you launch your tests (e.g. db:test:prepare -- you only want to do that once). The dependency chain matters.
I don't know what exactly you mean about invoking the same rake task twice. There's
Rake::Task["themes:list"].execute
.People who aren't intimately familiar with rake don't appreciate that
execute
exists, and often useinvoke
when they meanexecute
. That leads to bugs when you're using Rake to write something that could be coded just as easily in a script (I've learnt this the hard way). I'd also much rather that people poking about in my code were readinglist_themes
than the equivalent code for executing a rake task.Trollop looks great. Bookmarked.
Don't worry, I don't need convincing. I've been using it for a few months now, with no problems. I've always flatly refused to vendor gems and check them in (it's just wrong) and have typically tied down the versions that are installed in development/production using package managers instead. Bundler is a breath of fresh air. I was even toying with writing an ebook on it!
How do you cope with typing
bundle exec
so often? I got hacked off with it and wrote bundler-exec (the repo is gma/bundler-exec). Haven't touted it, as I'm sure a decent solution will come with bundler before too long (or has already been sorted; I'm still at 0.9.11).
Thanks. You've probably already guessed from my last comment that I don't feel that Rake is a great fit. Maybe (given the language community) ./scripts/theme should be a Ruby script, but bash does feel appropriate and I'm a big fan of using the right tool for the job.
I love the idea of listing the available themes. That's neat. It'd be really nice for a theme to show up in the list simply because it's on GitHub, and has conformed to the naming convention. I'm wondering if it would be worth the effort of parsing the output of search? Probably overkill. On the other hand, the YAML file would need maintaining, and I can imagine myself forever applying patches when somebody releases a new theme (I have misguided dreams of world domination, in which there are hundreds of themes...). I also wonder whether the list would be useful to somebody without screenshots. Not sure. Maybe a web page with screenshots and their associated installation command (ready to be copied to the clipboard) would be a good compromise.
And I didn't know about clone's
--depth
option. That'll be handy; somebody was asking me about ways to achieve something similar just yesterday.
This file has always been a it messy, and in pointing this out you've given me a good idea.
I don't think Rake is really a suitable tool for creating these files; we're not using it's ability to work out if the files exist/have changed, I'm just using it to dump some content out. It's yet another rake task that's pretending to be a script. I don't really understand why Rake tasks are so popular in the Ruby community when a script would actually be more appropriate (i.e. when the actions to take aren't conditional on the presence of a file on disk, or similar). I've seen the misuse of rake lead to subtle bugs (largely related to the fact that you can't invoke the same task twice) on several occasions.
So here's my idea... I think we need a demo content repository on github, which could be pulled in by an installation script. I just created https://github.com/gma/nesta-demo for just this purpose. It'll allow me to show people how to use local overrides, how to do clever things with Haml templates, etc. The pages would be a lot easier to update than the current situation.
I'll write a bash script to pull it in, then update the docs.
Cheers!
Cheers for that. The reason I've not checked one in yet is simply that I've not sorted out other Bundler related stuff. Most specifically, deployment. Once I've got that tested properly on my own site I'll be finishing the bundling. At the moment Bundler's only real contribution is to make the
gem install sinatra builder haml...
line much shorter...I can't really merge it in until I've had a chance to make sure that it's all sorted as it could stop all new users in their tracks (they have to install from master) and would generate plenty of support requests. I've made that mistake before...
I'll come back to your other patches when I get there though.
Yeah, this isn't right. My plan is to give the install command an option to add it as a submodule, but default behaviour will be to clone and then to drop the .git directory. That way deploying to heroku will be a no brainer; you'd just check the theme into the main repo.
This is the main thing that I was referring to on the site when I said there were some "deployment related issues for me to test out and document" before merging the themes branch into master.
I'd not seen giternal; will have a look.
A theme for Nesta CMS