public
Description: Keep track of your time on FreshBooks
Homepage: http://b.logi.cx/2008/1/31/laying-down-fresh-tracks
Clone URL: git://github.com/flogic/freshtrack.git
Filling in my name a few times, setting up rspec with mocha. General 
setup.
ymendel (author)
Tue Jan 29 18:14:30 -0800 2008
commit  6a37842d13adb596d8ad434c121b23384ec0fdd7
tree    01a6d9bcfdcf55bcc679a34c14d3822a545e32c9
parent  0090d8f2832d2db4b753ac9f7d63af77a782f7cb
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-Copyright (c) 2008 FIXME full name
0
+Copyright (c) 2008 Yossef Mendelssohn
0
 
0
 Permission is hereby granted, free of charge, to any person obtaining
0
 a copy of this software and associated documentation files (the
...
1
2
3
4
 
 
5
6
7
 
8
9
10
...
59
60
61
62
 
 
 
63
64
65
...
1
2
 
 
3
4
5
6
 
7
8
9
10
...
59
60
61
 
62
63
64
65
66
67
0
@@ -1,10 +1,10 @@
0
 require 'freshtrack/version'
0
 
0
-AUTHOR = 'FIXME full name' # can also be an array of Authors
0
-EMAIL = "ymendel@pobox.com"
0
+AUTHOR = 'Yossef Mendelssohn' # can also be an array of Authors
0
+EMAIL = 'ymendel@pobox.com'
0
 DESCRIPTION = "description of gem"
0
 GEM_NAME = 'freshtrack' # what ppl will type to install your gem
0
-RUBYFORGE_PROJECT = 'freshtrack' # The unix name for your project
0
+RUBYFORGE_PROJECT = 'yomendel' # The unix name for your project
0
 HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
0
 DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
0
 
0
@@ -59,7 +59,9 @@ hoe = Hoe.new(GEM_NAME, VERS) do |p|
0
   
0
   # == Optional
0
   p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
0
- #p.extra_deps = [] # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
0
+ p.extra_deps = [ # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
0
+ ['freshbooks', '>= 1.0.0']
0
+ ]
0
   
0
   #p.spec_extras = {} # A hash of extra values to set in the gemspec.
0
   
...
1
2
 
 
 
...
 
1
2
3
4
0
@@ -1 +1,3 @@
0
---colour
0
\ No newline at end of file
0
+--color
0
+--loadby
0
+mtime
...
4
5
6
7
8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
4
5
6
 
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
0
@@ -4,4 +4,21 @@ rescue LoadError
0
   require 'rubygems'
0
   gem 'rspec'
0
   require 'spec'
0
-end
0
\ No newline at end of file
0
+end
0
+
0
+# this is my favorite way to require ever
0
+begin
0
+ require 'mocha'
0
+rescue LoadError
0
+ require 'rubygems'
0
+ gem 'mocha'
0
+ require 'mocha'
0
+end
0
+
0
+Spec::Runner.configure do |config|
0
+ config.mock_with :mocha
0
+end
0
+
0
+$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
0
+
0
+require 'freshtrack'

Comments

    No one has commented yet.