darkhelmet-darkext 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.8.1 2009-2-21
2
+
3
+ * Get rid of stupid variables in sinatra helpers
4
+
1
5
  == 0.8.0 2009-2-20
2
6
 
3
7
  * Fixed Beagle stuff indexing everything instead of just files
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 8
3
- :patch: 0
3
+ :patch: 1
4
4
  :major: 0
@@ -13,21 +13,17 @@ module Darkext
13
13
  end
14
14
 
15
15
  def css_link_tag(sheet, media = 'screen,projection')
16
- @dsh_sheet = sheet
17
- @dsh_media = media
18
- partial('%link{ :type => "text/css", :href => "/stylesheets/#{@dsh_sheet}.css", :rel => "stylesheet", :media => "#{@dsh_media}" }')
16
+ partial("%link{ :type => 'text/css', :href => '/stylesheets/#{sheet}.css', :rel => 'stylesheet', :media => '#{media}' }")
19
17
  end
20
18
 
21
19
  def js_script_tag(script)
22
- @dsh_script = script
23
- partial('%script{ :type => "text/javascript", :src => "/javascripts/#{@dsh_script}.js" }')
20
+ partial("%script{ :type => 'text/javascript', :src => '/javascripts/#{script}.js' }")
24
21
  end
25
22
 
26
23
  def js_tag(script)
27
- @dsh_script = script
28
24
  temp = ["%script{ :type => 'text/javascript' }",
29
25
  " //<![CDATA[",
30
- " = @dsh_script",
26
+ " = #{script}",
31
27
  " //]]>"].join("\n")
32
28
  partial(temp)
33
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: darkhelmet-darkext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Huckstep
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-20 00:00:00 -08:00
12
+ date: 2009-02-21 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15