Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor patches

  • Loading branch information...
commit 6e3a40b8e140da05c7057f5553a96f90d615cc9d 1 parent cbf9c03
Josep M. Bach txus authored
2  .gitignore
View
@@ -2,3 +2,5 @@ pkg/*
*.gem
.bundle
spec/support/api_key.yml
+coverage
+*.rbc
6 Gemfile.lock
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
2  Readme.md
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
3  lastfm.gemspec
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
2  lib/lastfm/version.rb
View
@@ -1,3 +1,3 @@
module LastFM
- VERSION = "1.0.1"
+ VERSION = "1.0.2"
end
6 spec/lastfm/connection_spec.rb
View
@@ -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
4 spec/spec_helper.rb
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
Please sign in to comment.
Something went wrong with that request. Please try again.