Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 29 lines (26 sloc) 0.807 kb
df6af451 » technoweenie
2011-06-02 add a test harness
1 require 'rake/testtask'
2 Rake::TestTask.new(:test) do |test|
3 test.libs << 'lib' << 'test'
4 test.pattern = 'test/**/*_test.rb'
5 test.verbose = true
6 end
7
de59debc » technoweenie
2011-06-10 remove mention of rspec
8 task :default => :test
9
da3e470b » technoweenie
2011-06-12 epic tomdoc
10 task :console do
11 sh "irb -r ./config/load"
12 end
fb1721c9 » technoweenie
2011-06-22 add services:config task for generating the services.json file
13
14 namespace :services do
ac026bf4 » technoweenie
2011-07-19 describe the services:config task
15 desc "Writes a JSON config to FILE || config/services.json"
fb1721c9 » technoweenie
2011-06-22 add services:config task for generating the services.json file
16 task :config do
17 file = ENV["FILE"] || File.expand_path("../config/services.json", __FILE__)
18 require File.expand_path("../config/load", __FILE__)
79061d8d » technoweenie
2011-10-11 services.json should be a sorted array so changes are easier to spot
19 services = []
20 Service.services.each do |svc|
e2470baa » technoweenie
2011-10-24 Services can now define what events should be registered when a Hook …
21 services << {:name => svc.hook_name, :events => svc.default_events,
22 :title => svc.title, :schema => svc.schema}
fb1721c9 » technoweenie
2011-06-22 add services:config task for generating the services.json file
23 end
79061d8d » technoweenie
2011-10-11 services.json should be a sorted array so changes are easier to spot
24 services.sort! { |x, y| x[:name] <=> y[:name] }
fb1721c9 » technoweenie
2011-06-22 add services:config task for generating the services.json file
25 File.open file, 'w' do |io|
e31df7aa » technoweenie
2011-08-18 generate pretty services json config
26 io << Yajl.dump(services, :pretty => true)
fb1721c9 » technoweenie
2011-06-22 add services:config task for generating the services.json file
27 end
28 end
29 end
Something went wrong with that request. Please try again.