rails_serve_static_assets 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c97acc1ac0ac5b35f8df33a199194a56c965b460
4
+ data.tar.gz: 9a7cfad2603853e8226686e5a17d8bbe20f898e5
5
+ SHA512:
6
+ metadata.gz: c918f58c01c40382422babdcda8dbf34212bb3d58736a78453bef1ad98c68982bedf54315d652835658f3ee3eef6c5bc2ec3dfb430b1cb269c910854de725792
7
+ data.tar.gz: 7646f45633f778039876d5db8acaf90ef5f14d7ed773c988f0cf3c8bb3e5d92bcddae26709455d8b65454df2718f606a6a1e9b78aaeded63866d02c6f048ca24
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in rails_serve_static_assets.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,24 @@
1
+ Copyright (c) 2011, Heroku
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are met:
6
+ * Redistributions of source code must retain the above copyright
7
+ notice, this list of conditions and the following disclaimer.
8
+ * Redistributions in binary form must reproduce the above copyright
9
+ notice, this list of conditions and the following disclaimer in the
10
+ documentation and/or other materials provided with the distribution.
11
+ * Neither the name of the WAL-E project nor the
12
+ names of its contributors may be used to endorse or promote products
13
+ derived from this software without specific prior written permission.
14
+
15
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
19
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,8 @@
1
+ # Serve Static Assets
2
+
3
+ Rails gem to enable serving of static assets
4
+
5
+ Supports:
6
+
7
+ - Rails 3
8
+ - Rails 4
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
@@ -0,0 +1,2 @@
1
+ require 'rails_serve_static_assets/version'
2
+ require 'rails_serve_static_assets/railtie' if defined?(Rails)
@@ -0,0 +1,7 @@
1
+ module RailsServeStaticAssets
2
+ class Railtie < Rails::Railtie
3
+ config.before_initialize do
4
+ ::Rails.configuration.serve_static_assets = true
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,3 @@
1
+ module RailsServeStaticAssets
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,17 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/rails_serve_static_assets/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Pedro Belo", "Jonathan Dance"]
6
+ gem.email = ["pedro@heroku.com", "jd@heroku.com"]
7
+ gem.description = %q{Force Rails to serve static assets}
8
+ gem.summary = %q{Sets serve_static_assets to true so Rails will sere your static assets}
9
+ gem.homepage = "https://github.com/heroku/rails_serve_static_assets"
10
+
11
+ gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
12
+ gem.files = `git ls-files`.split("\n")
13
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
14
+ gem.name = "rails_serve_static_assets"
15
+ gem.require_paths = ["lib"]
16
+ gem.version = RailsServeStaticAssets::VERSION
17
+ end
metadata ADDED
@@ -0,0 +1,54 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails_serve_static_assets
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Pedro Belo
8
+ - Jonathan Dance
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-06-12 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Force Rails to serve static assets
15
+ email:
16
+ - pedro@heroku.com
17
+ - jd@heroku.com
18
+ executables: []
19
+ extensions: []
20
+ extra_rdoc_files: []
21
+ files:
22
+ - .gitignore
23
+ - Gemfile
24
+ - LICENSE
25
+ - README.markdown
26
+ - Rakefile
27
+ - lib/rails_serve_static_assets.rb
28
+ - lib/rails_serve_static_assets/railtie.rb
29
+ - lib/rails_serve_static_assets/version.rb
30
+ - rails_serve_static_assets.gemspec
31
+ homepage: https://github.com/heroku/rails_serve_static_assets
32
+ licenses: []
33
+ metadata: {}
34
+ post_install_message:
35
+ rdoc_options: []
36
+ require_paths:
37
+ - lib
38
+ required_ruby_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - '>='
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ required_rubygems_version: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ requirements: []
49
+ rubyforge_project:
50
+ rubygems_version: 2.0.2
51
+ signing_key:
52
+ specification_version: 4
53
+ summary: Sets serve_static_assets to true so Rails will sere your static assets
54
+ test_files: []