Skip to content

Commit

Permalink
adding gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
Oshuma committed May 19, 2011
1 parent 1ccdc73 commit 7b7bedb
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Original file line Diff line number Diff line change
@@ -1,2 +1,3 @@
.rvmrc .rvmrc
doc/api/ doc/api/
pkg/
7 changes: 2 additions & 5 deletions Gemfile
Original file line number Original file line Diff line number Diff line change
@@ -1,7 +1,4 @@
source :rubygems source :rubygems


gem 'json' # Dependencies in .gemspec

gemspec
group :test do
gem 'rspec', '>= 2.6.0'
end
2 changes: 2 additions & 0 deletions README.rdoc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ You can request an API key here: {http://tinysong.com/api}[http://tinysong.com/a


In a nutshell: In a nutshell:


require 'grooveshark/tiny_song'

# Required to use the service. # Required to use the service.
api_key = 'YOUR_TINYSONG_API_KEY' api_key = 'YOUR_TINYSONG_API_KEY'


Expand Down
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ require 'bundler'
require 'rake/rdoctask' require 'rake/rdoctask'
require 'rspec/core/rake_task' require 'rspec/core/rake_task'


Bundler::GemHelper.install_tasks

task :default => :spec task :default => :spec


desc 'Run the specs' desc 'Run the specs'
Expand Down
20 changes: 20 additions & 0 deletions tiny_song.gemspec
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,20 @@
$:.push File.expand_path("../lib", __FILE__)
require 'grooveshark/tiny_song'

Gem::Specification.new do |s|
s.name = "tiny_song"
s.version = Grooveshark::TinySong::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Dale Campbell"]
s.email = ["dale.campbell@escapemg.com"]
s.homepage = "https://github.com/grooveshark/tiny_song"
s.summary = "A TinySong Ruby library."
s.description = "A TinySong Ruby library."

s.add_dependency('json')
s.add_development_dependency('rspec', '>= 2.6.0')

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.require_paths = ["lib"]
end

0 comments on commit 7b7bedb

Please sign in to comment.