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 CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -46,16 +46,16 @@ module Tarpaulin
46
46
 
47
47
  module Helpers
48
48
 
49
- # this is a dev file - should be in a config
49
+ # should be configified
50
50
  def document_root # or whatever ...
51
- # '/var/www/localhost/htdocs/'
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
- # 'http://web.durity.com:8080/'
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "tarpaulin"
8
- s.version = "0.2.2"
8
+ s.version = "0.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Anthony Durity"]
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: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Anthony Durity