kelredd-sprockets-sinatra 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -6,11 +6,12 @@ This gem extends a sinatra app with helpers for using sprockets. It was inspire
6
6
 
7
7
  == Installation
8
8
 
9
- sudo gem install sprockets-sinatra --source=http://gems.github.com
9
+ sudo gem install kelredd-sprockets-sinatra --source=http://gems.github.com
10
10
 
11
11
  == Usage
12
12
 
13
13
  (in main app file)
14
+ require 'rubygems'
14
15
  require 'sprockets_sinatra'
15
16
 
16
17
  (create a file config/sprocket.yml, and put something like this in it)
@@ -21,11 +21,11 @@ module Sinatra
21
21
 
22
22
 
23
23
  def self.registered(app)
24
- app.helpers SprocketsSinatra::Helpers
25
- app.get "/sprockets-sinatra-test" do
24
+ Sinatra::Application.helpers SprocketsSinatra::Helpers
25
+ Sinatra::Application.get "/sprockets-sinatra-test" do
26
26
  SprocketsSinatra::CONFIG ? "sprockets-sinatra is ready :)" : "sprockets-sinatra is not ready :("
27
27
  end
28
- app.get "/#{SprocketsSinatra::CONFIG[:file_name]}.js" do
28
+ Sinatra::Application.get "/#{SprocketsSinatra::CONFIG[:file_name]}.js" do
29
29
  secretary = Sprockets::Secretary.new(SprocketsSinatra::CONFIG.merge(:root => Sinatra::Application.root))
30
30
  content_type "text/javascript; charset=utf-8"
31
31
  headers['Cache-Control'] = SprocketsSinatra::CONFIG[:cache_control]
@@ -34,5 +34,5 @@ module Sinatra
34
34
  end
35
35
  end
36
36
 
37
- register SprocketsSinatra
37
+ Sinatra::Application.register Sinatra::SprocketsSinatra
38
38
  end
@@ -3,7 +3,7 @@ module SprocketsSinatra
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 2
6
- TINY = 0
6
+ TINY = 1
7
7
 
8
8
  def self.to_s # :nodoc:
9
9
  [MAJOR, MINOR, TINY].join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kelredd-sprockets-sinatra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelredd
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-21 00:00:00 -07:00
12
+ date: 2009-05-22 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15