tarpaulin 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/tarpaulin/camping.rb +7 -7
- data/tarpaulin.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
data/lib/tarpaulin/camping.rb
CHANGED
@@ -46,16 +46,16 @@ module Tarpaulin
|
|
46
46
|
|
47
47
|
module Helpers
|
48
48
|
|
49
|
-
#
|
49
|
+
# should be configified
|
50
50
|
def document_root # or whatever ...
|
51
|
-
|
51
|
+
'/var/www/localhost/htdocs/'
|
52
52
|
# /Users/jollyrotten/Code/poetify/y_ruby
|
53
|
-
File.dirname(__FILE__)
|
53
|
+
# File.dirname(__FILE__)
|
54
54
|
end
|
55
55
|
|
56
|
+
# should be configified
|
56
57
|
def http_host # or whatever ...
|
57
|
-
|
58
|
-
'http://localhost:3301/'
|
58
|
+
@env['HTTP_HOST']
|
59
59
|
end
|
60
60
|
|
61
61
|
# could do all these with a bit of meta-programming
|
@@ -77,7 +77,7 @@ module Tarpaulin
|
|
77
77
|
|
78
78
|
def stylesheet_link_tag(stylish)
|
79
79
|
type = "text/css"
|
80
|
-
href = stylish.start_with?("http") ? "#{stylish}" : R(Tarpaulin.link_controller, Tarpaulin::Helpers::CSS, "#{stylish}.css")
|
80
|
+
href = stylish.start_with?("http") ? "#{stylish}" : R(Tarpaulin.link_controller, @root, Tarpaulin::Helpers::CSS, "#{stylish}.css")
|
81
81
|
Markaby::Builder.new.capture {
|
82
82
|
link :rel => "stylesheet",
|
83
83
|
:type => type,
|
@@ -88,7 +88,7 @@ module Tarpaulin
|
|
88
88
|
|
89
89
|
def javascript_link_tag(scriptish)
|
90
90
|
type = "text/javascript"
|
91
|
-
src = scriptish.start_with?("http") ? "#{scriptish}" : R(Tarpaulin.link_controller, Tarpaulin::Helpers::JS, "#{scriptish}.js")
|
91
|
+
src = scriptish.start_with?("http") ? "#{scriptish}" : R(Tarpaulin.link_controller, @root, Tarpaulin::Helpers::JS, "#{scriptish}.js")
|
92
92
|
Markaby::Builder.new.capture {
|
93
93
|
script(:type => type, :src => src) {}
|
94
94
|
}
|
data/tarpaulin.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tarpaulin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 3
|
10
|
+
version: 0.2.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Anthony Durity
|