golf 0.0.5 → 0.0.8

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/lib/golf/compiler.rb CHANGED
@@ -6,6 +6,7 @@ module Golf
6
6
  end
7
7
 
8
8
  def generate_componentsjs
9
+ puts "compiling components in #{@golfpath}..."
9
10
  component_preamble = 'jQuery.golf.components='
10
11
  components = {}
11
12
  if File.exists?(@golfpath) and File.directory?(@golfpath)
data/lib/golf/rack.rb CHANGED
@@ -7,7 +7,7 @@ module Golf
7
7
  end
8
8
 
9
9
  def call(env)
10
- if env["REQUEST_METHOD"] == "GET" and env["PATH_INFO"] == "/component.js"
10
+ if env["REQUEST_METHOD"] == "GET" and env["PATH_INFO"] == "/components.js"
11
11
  result = @compiler.generate_componentsjs
12
12
  ['200', { 'Content-Type' => 'application/javascript', 'Content-Length' => result.length.to_s}, [result]]
13
13
  else
data/lib/golf/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Golf
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.8"
3
3
  end
data/test/test_rack.rb CHANGED
@@ -8,7 +8,7 @@ class RackTest < Test::Unit::TestCase
8
8
  end
9
9
 
10
10
  def test_component_regeneration
11
- get "/component.js"
11
+ get "/components.js"
12
12
  assert last_response.ok?
13
13
  end
14
14
 
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
5
+ version: 0.0.8
6
6
  platform: ruby
7
7
  authors:
8
8
  - Micha Niskin, Alan Dipert, Julio Capote