Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Manage the gem via bundler. Makes it easier for development.

  • Loading branch information...
commit 77ae4ede3fd55aad8de0744dcfb106e3d5ada563 1 parent 83a52a4
@dylanegan dylanegan authored
View
1  .gitignore
@@ -3,3 +3,4 @@
coverage
rdoc
pkg
+.bundle
View
4 Gemfile
@@ -0,0 +1,4 @@
+source :rubygems
+
+# Specify your gem's dependencies in google-weather.gemspec
+gemspec
View
20 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)
View
19 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|
@@ -44,5 +30,4 @@ rescue LoadError
end
end
-
task :default => :test
View
4 VERSION.yml
@@ -1,4 +0,0 @@
----
-:minor: 2
-:patch: 0
-:major: 0
View
0  bin/weather 100644 → 100755
File mode changed
View
42 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
View
2  lib/google_weather.rb
@@ -1,5 +1,3 @@
-require 'rubygems'
-gem 'httparty'
require 'httparty'
require File.dirname(__FILE__) + '/google_weather/data'
View
2  lib/google_weather/data.rb
@@ -20,4 +20,4 @@ def inspect
class ForecastInformation < Data; end
class CurrentConditions < Data; end
class ForecastCondition < Data; end
-end
+end
View
3  lib/google_weather/version.rb
@@ -0,0 +1,3 @@
+class GoogleWeather
+ VERSION = "0.2.0"
+end
Please sign in to comment.
Something went wrong with that request. Please try again.