Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Initial commit to google-weather.

  • Loading branch information...
commit 57d4fcdb51a72f40d55bd77b7970970a3828c548 0 parents
John Nunemaker authored
5 .gitignore
... ... @@ -0,0 +1,5 @@
  1 +*.sw?
  2 +.DS_Store
  3 +coverage
  4 +rdoc
  5 +pkg
20 LICENSE
... ... @@ -0,0 +1,20 @@
  1 +Copyright (c) 2009 John Nunemaker
  2 +
  3 +Permission is hereby granted, free of charge, to any person obtaining
  4 +a copy of this software and associated documentation files (the
  5 +"Software"), to deal in the Software without restriction, including
  6 +without limitation the rights to use, copy, modify, merge, publish,
  7 +distribute, sublicense, and/or sell copies of the Software, and to
  8 +permit persons to whom the Software is furnished to do so, subject to
  9 +the following conditions:
  10 +
  11 +The above copyright notice and this permission notice shall be
  12 +included in all copies or substantial portions of the Software.
  13 +
  14 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  15 +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  16 +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  17 +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  18 +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  19 +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  20 +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7 README.rdoc
Source Rendered
... ... @@ -0,0 +1,7 @@
  1 += google-weather
  2 +
  3 +Description goes here.
  4 +
  5 +== Copyright
  6 +
  7 +Copyright (c) 2009 John Nunemaker. See LICENSE for details.
48 Rakefile
... ... @@ -0,0 +1,48 @@
  1 +require 'rubygems'
  2 +require 'rake'
  3 +
  4 +begin
  5 + require 'jeweler'
  6 + Jeweler::Tasks.new do |gem|
  7 + gem.name = "google-weather"
  8 + gem.summary = %Q{TODO}
  9 + gem.email = "nunemaker@gmail.com"
  10 + gem.homepage = "http://github.com/jnunemaker/google-weather"
  11 + gem.authors = ["John Nunemaker"]
  12 + # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
  13 + end
  14 +rescue LoadError
  15 + puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
  16 +end
  17 +
  18 +require 'rake/rdoctask'
  19 +Rake::RDocTask.new do |rdoc|
  20 + rdoc.rdoc_dir = 'rdoc'
  21 + rdoc.title = 'google-weather'
  22 + rdoc.options << '--line-numbers' << '--inline-source'
  23 + rdoc.rdoc_files.include('README*')
  24 + rdoc.rdoc_files.include('lib/**/*.rb')
  25 +end
  26 +
  27 +require 'rake/testtask'
  28 +Rake::TestTask.new(:test) do |test|
  29 + test.libs << 'lib' << 'test'
  30 + test.pattern = 'test/**/*_test.rb'
  31 + test.verbose = false
  32 +end
  33 +
  34 +begin
  35 + require 'rcov/rcovtask'
  36 + Rcov::RcovTask.new do |test|
  37 + test.libs << 'test'
  38 + test.pattern = 'test/**/*_test.rb'
  39 + test.verbose = true
  40 + end
  41 +rescue LoadError
  42 + task :rcov do
  43 + abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
  44 + end
  45 +end
  46 +
  47 +
  48 +task :default => :test
0  lib/google_weather.rb
No changes.
7 test/google_weather_test.rb
... ... @@ -0,0 +1,7 @@
  1 +require 'test_helper'
  2 +
  3 +class GoogleWeatherTest < Test::Unit::TestCase
  4 + should "probably rename this file and start testing for real" do
  5 + flunk "hey buddy, you should probably rename this file and start testing for real"
  6 + end
  7 +end
10 test/test_helper.rb
... ... @@ -0,0 +1,10 @@
  1 +require 'rubygems'
  2 +require 'test/unit'
  3 +require 'shoulda'
  4 +
  5 +$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
  6 +$LOAD_PATH.unshift(File.dirname(__FILE__))
  7 +require 'google_weather'
  8 +
  9 +class Test::Unit::TestCase
  10 +end

0 comments on commit 57d4fcd

Please sign in to comment.
Something went wrong with that request. Please try again.