golf 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/lib/golf/rack.rb +5 -5
- data/lib/golf/version.rb +1 -1
- data/template/404.txt +1 -0
- data/template/config.ru +2 -1
- metadata +2 -1
data/.gitignore
CHANGED
data/lib/golf/rack.rb
CHANGED
@@ -6,12 +6,12 @@ module Golf
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def call(env)
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
if env["REQUEST_METHOD"] == "GET" and env["PATH_INFO"] == "/component.js"
|
10
|
+
['200', { 'Content-Type' => 'application/javascript', 'Content-Length' => '5'}, ['asasd']]
|
11
|
+
else
|
12
|
+
@app.call if @app
|
13
|
+
end
|
13
14
|
end
|
14
|
-
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
data/lib/golf/version.rb
CHANGED
data/template/404.txt
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
not found
|
data/template/config.ru
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: golf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Micha Niskin, Alan Dipert, Julio Capote
|
@@ -45,6 +45,7 @@ files:
|
|
45
45
|
- lib/golf/compiler.rb
|
46
46
|
- lib/golf/rack.rb
|
47
47
|
- lib/golf/version.rb
|
48
|
+
- template/404.txt
|
48
49
|
- template/Gemfile
|
49
50
|
- template/config.ru
|
50
51
|
- template/golfapp/components/Test/Test.html
|