Permalink
Browse files

Minor patches

  • Loading branch information...
1 parent cbf9c03 commit 6e3a40b8e140da05c7057f5553a96f90d615cc9d @txus txus committed Oct 14, 2010
Showing with 21 additions and 4 deletions.
  1. +2 −0 .gitignore
  2. +5 −1 Gemfile.lock
  3. +1 −1 Readme.md
  4. +2 −1 lastfm.gemspec
  5. +1 −1 lib/lastfm/version.rb
  6. +6 −0 spec/lastfm/connection_spec.rb
  7. +4 −0 spec/spec_helper.rb
View
@@ -2,3 +2,5 @@ pkg/*
*.gem
.bundle
spec/support/api_key.yml
+coverage
+*.rbc
View
@@ -20,7 +20,10 @@ GEM
rspec-mocks (2.0.0)
rspec-core (= 2.0.0)
rspec-expectations (= 2.0.0)
- vcr (1.1.2)
+ simplecov (0.3.6)
+ simplecov-html (>= 0.3.7)
+ simplecov-html (0.3.8)
+ vcr (1.2.0)
PLATFORMS
java
@@ -32,4 +35,5 @@ DEPENDENCIES
fakeweb
lastfm!
rspec (>= 2.0.0)
+ simplecov
vcr
View
@@ -6,7 +6,7 @@ anyway, though (you can get one for free at [Last.fm](http://www.last.fm/api/acc
Returns a hash with all the entries you requested.
-Compatible with Ruby 1.8, 1.9 and JRuby.
+Compatible with Ruby 1.8, 1.9, JRuby, 1.5.3 and Rubinius 1.1.
## Usage
View
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
s.email = ['info@codegram.com']
s.homepage = "http://github.com/codegram/lastfm"
s.summary = "Simple LastFM client"
- s.description = "Simple LatFM client"
+ s.description = "Simple LastFM client"
s.required_rubygems_version = ">= 1.3.6"
s.rubyforge_project = "lastfm"
@@ -20,6 +20,7 @@ Gem::Specification.new do |s|
s.add_development_dependency "rspec", ">= 2.0.0"
s.add_development_dependency "fakeweb"
s.add_development_dependency "vcr"
+ s.add_development_dependency "simplecov"
s.files = `git ls-files`.split("\n")
s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
View
@@ -1,3 +1,3 @@
module LastFM
- VERSION = "1.0.1"
+ VERSION = "1.0.2"
end
@@ -8,6 +8,12 @@ module LastFM
LastFM.connect(api_key)
end
+ describe "unobtrusive method_missing" do
+ it "ignores any method that doesn't look like one of the API" do
+ expect{connection.send(:some_method)}.to raise_error(NoMethodError)
+ end
+ end
+
describe "API methods (which do not require authentication)" do
after(:each) do
View
@@ -1,4 +1,8 @@
require 'bundler'
+require 'simplecov'
+SimpleCov.start do
+ add_group "Lib", "lib"
+end
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e

0 comments on commit 6e3a40b

Please sign in to comment.