Permalink
Browse files

Use Sinatra extensions structure

  • Loading branch information...
1 parent 233b81d commit a3a7f815a27c70a67199e68f1830e064cb488861 @peteog committed Dec 15, 2011
@@ -1,9 +0,0 @@
-require "sinatra-simple-assets/version"
-
-module Sinatra
- module Simple
- module Assets
- # Your code goes here...
- end
- end
-end
@@ -1,7 +0,0 @@
-module Sinatra
- module Simple
- module Assets
- VERSION = "0.0.1"
- end
- end
-end
@@ -0,0 +1,7 @@
+require 'sinatra/base'
+
+module Sinatra
+ module SimpleAssets
+ VERSION = '0.0.1'
+ end
+end
@@ -1,24 +1,20 @@
# -*- encoding: utf-8 -*-
-$:.push File.expand_path("../lib", __FILE__)
-require "sinatra-simple-assets/version"
+$:.push File.expand_path('../lib', __FILE__)
+require 'sinatra/simple_assets'
Gem::Specification.new do |s|
- s.name = "sinatra-simple-assets"
- s.version = Sinatra::Simple::Assets::VERSION
+ s.name = 'sinatra-simple-assets'
+ s.version = Sinatra::SimpleAssets::VERSION
s.authors = ["Pete O'Grady"]
- s.email = ["pete@peteogrady.com"]
+ s.email = ['pete@peteogrady.com']
s.homepage = ""
s.summary = %q{TODO: Write a gem summary}
s.description = %q{TODO: Write a gem description}
- s.rubyforge_project = "sinatra-simple-assets"
-
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
- s.require_paths = ["lib"]
+ s.require_paths = ['lib']
- # specify any dependencies here; for example:
- # s.add_development_dependency "rspec"
- # s.add_runtime_dependency "rest-client"
+ s.add_dependency 'sinatra', '~> 1.3.0'
end

0 comments on commit a3a7f81

Please sign in to comment.