assets_on_heroku 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/README +4 -0
- data/VERSION +1 -1
- data/assets_on_heroku.gemspec +3 -2
- data/lib/assets_on_heroku.rb +16 -4
- metadata +3 -2
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
pkg
|
data/README
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/assets_on_heroku.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{assets_on_heroku}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jacek Becela", "Tomasz Mazur"]
|
@@ -16,7 +16,8 @@ Gem::Specification.new do |s|
|
|
16
16
|
"README"
|
17
17
|
]
|
18
18
|
s.files = [
|
19
|
-
"
|
19
|
+
".gitignore",
|
20
|
+
"README",
|
20
21
|
"Rakefile",
|
21
22
|
"VERSION",
|
22
23
|
"assets_on_heroku.gemspec",
|
data/lib/assets_on_heroku.rb
CHANGED
@@ -2,10 +2,7 @@ module AssetsOnHeroku
|
|
2
2
|
class Rack
|
3
3
|
def initialize(app)
|
4
4
|
@app = app
|
5
|
-
|
6
|
-
setup_sass
|
7
|
-
setup_rails
|
8
|
-
setup_merb
|
5
|
+
setup
|
9
6
|
end
|
10
7
|
|
11
8
|
def call(env)
|
@@ -23,6 +20,21 @@ module AssetsOnHeroku
|
|
23
20
|
end
|
24
21
|
|
25
22
|
private
|
23
|
+
|
24
|
+
def setup
|
25
|
+
unless defined?(@@setup_finished)
|
26
|
+
setup_heroku
|
27
|
+
setup_sass
|
28
|
+
setup_rails
|
29
|
+
setup_merb
|
30
|
+
end
|
31
|
+
@@setup_finished = true
|
32
|
+
end
|
33
|
+
|
34
|
+
def setup_heroku
|
35
|
+
require "fileutils"
|
36
|
+
FileUtils.mkdir_p("tmp/public")
|
37
|
+
end
|
26
38
|
|
27
39
|
def setup_sass
|
28
40
|
Sass::Plugin.options = {
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 2
|
9
|
+
version: 0.0.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jacek Becela
|
@@ -28,6 +28,7 @@ extensions: []
|
|
28
28
|
extra_rdoc_files:
|
29
29
|
- README
|
30
30
|
files:
|
31
|
+
- .gitignore
|
31
32
|
- README
|
32
33
|
- Rakefile
|
33
34
|
- VERSION
|