sprocketizer 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,9 @@
1
+ module Sprocketizer
2
+ class SprocketsController < ActionController::Base
3
+ caches_page :show
4
+
5
+ def show
6
+ render :text => Sprocketizer::Sprocket.new(params[:file]).source, :content_type => "text/javascript"
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,2 @@
1
+ require 'sprockets'
2
+ require 'sprocketizer/sprocket'
data/config/routes.rb ADDED
@@ -0,0 +1,3 @@
1
+ Rails.application.routes.draw do |map|
2
+ match "/javascripts/*file.js", :to => "sprocketizer/sprockets#show", :via => "get"
3
+ end
@@ -1,3 +1,3 @@
1
1
  module Sprocketizer
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprocketizer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matt Hodgson
@@ -44,6 +44,9 @@ extensions: []
44
44
  extra_rdoc_files: []
45
45
 
46
46
  files:
47
+ - app/controllers/sprocketizer/sprockets_controller.rb
48
+ - config/initializers/sprocketizer.rb
49
+ - config/routes.rb
47
50
  - lib/engine.rb
48
51
  - lib/sprocketizer/sprocket.rb
49
52
  - lib/sprocketizer/version.rb