Skip to content

Commit

Permalink
Manage the gem via bundler. Makes it easier for development.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Egan committed Sep 12, 2010
1 parent 83a52a4 commit 77ae4ed
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 47 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -3,3 +3,4 @@
coverage
rdoc
pkg
.bundle
4 changes: 4 additions & 0 deletions Gemfile
@@ -0,0 +1,4 @@
source :rubygems

# Specify your gem's dependencies in google-weather.gemspec
gemspec
20 changes: 20 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,20 @@
PATH
remote: .
specs:
google-weather (0.2.0)
httparty (= 0.5.2)

GEM
remote: http://rubygems.org/
specs:
crack (0.1.6)
httparty (0.5.2)
crack (= 0.1.6)

PLATFORMS
ruby

DEPENDENCIES
bundler (>= 1.0.0)
google-weather!
httparty (= 0.5.2)
19 changes: 2 additions & 17 deletions Rakefile
@@ -1,19 +1,5 @@
require 'rubygems'
require 'rake'

begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "google-weather"
gem.summary = "stupid simple fetching of the weather using google's api"
gem.email = "nunemaker@gmail.com"
gem.homepage = "http://github.com/jnunemaker/google-weather"
gem.authors = ["John Nunemaker"]
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
require 'bundler'
Bundler::GemHelper.install_tasks

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
Expand Down Expand Up @@ -44,5 +30,4 @@ rescue LoadError
end
end


task :default => :test
4 changes: 0 additions & 4 deletions VERSION.yml

This file was deleted.

Empty file modified bin/weather 100644 → 100755
Empty file.
42 changes: 19 additions & 23 deletions google-weather.gemspec
@@ -1,31 +1,27 @@
# -*- encoding: utf-8 -*-
require File.expand_path("../lib/google_weather/version", __FILE__)

Gem::Specification.new do |s|
s.name = %q{google-weather}
s.version = "0.2.0"
s.name = "google-weather"
s.version = GoogleWeather::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["John Nunemaker"]
s.email = ["nunemaker@gmail.com"]
s.homepage = "http://rubygems.org/gems/google-weather"
s.summary = "stupid simple fetching of the weather using google's api"
s.description = "stupid simple fetching of the weather using google's api"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["John Nunemaker"]
s.date = %q{2009-03-27}
s.default_executable = %q{weather}
s.email = %q{nunemaker@gmail.com}
s.executables = ["weather"]
s.required_rubygems_version = ">= 1.3.6"
s.rubyforge_project = "google-weather"

s.add_development_dependency "bundler", ">= 1.0.0"
s.add_dependency "httparty", "0.5.2"

s.files = `git ls-files`.split("\n")
s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
s.require_path = 'lib'
s.extra_rdoc_files = ["README.rdoc", "LICENSE"]
s.files = ["README.rdoc", "VERSION.yml", "bin/weather", "lib/google_weather", "lib/google_weather/data.rb", "lib/google_weather.rb", "test/fixtures", "test/fixtures/46544.xml", "test/google_weather_test.rb", "test/test_helper.rb", "LICENSE"]
s.has_rdoc = true
s.homepage = %q{http://github.com/jnunemaker/google-weather}
s.homepage = "http://github.com/jnunemaker/google-weather"
s.rdoc_options = ["--inline-source", "--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.1}
s.summary = %q{stupid simple fetching of the weather using google's api}

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 2

if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
else
end
else
end
end
2 changes: 0 additions & 2 deletions lib/google_weather.rb
@@ -1,5 +1,3 @@
require 'rubygems'
gem 'httparty'
require 'httparty'
require File.dirname(__FILE__) + '/google_weather/data'

Expand Down
2 changes: 1 addition & 1 deletion lib/google_weather/data.rb
Expand Up @@ -20,4 +20,4 @@ def inspect
class ForecastInformation < Data; end
class CurrentConditions < Data; end
class ForecastCondition < Data; end
end
end
3 changes: 3 additions & 0 deletions lib/google_weather/version.rb
@@ -0,0 +1,3 @@
class GoogleWeather
VERSION = "0.2.0"
end

0 comments on commit 77ae4ed

Please sign in to comment.