rbjs 0.10.1 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/rbjs/sinatra.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Rbjs
2
- Sinatra.helpers do
3
- def js content=nil, &block
2
+ module Helpers
3
+ def rbjs content=nil, &block
4
4
  content_type 'application/javascript'
5
5
  if block_given?
6
6
  render :rbjs, '', &block
@@ -9,4 +9,6 @@ module Rbjs
9
9
  end
10
10
  end
11
11
  end
12
+ Sinatra.helpers Helpers
13
+ Sinatra::Base.helpers Helpers
12
14
  end
data/lib/rbjs/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rbjs
2
- VERSION = "0.10.1"
2
+ VERSION = "0.10.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbjs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-13 00:00:00.000000000Z
12
+ date: 2012-01-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
16
- requirement: &70252886637960 !ruby/object:Gem::Requirement
16
+ requirement: &70329092185820 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70252886637960
24
+ version_requirements: *70329092185820
25
25
  description: Remote Javascript Builder for Ruby on Rails
26
26
  email:
27
27
  - buhrmi@gmail.com
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  version: '0'
64
64
  requirements: []
65
65
  rubyforge_project: rbjs
66
- rubygems_version: 1.8.10
66
+ rubygems_version: 1.8.11
67
67
  signing_key:
68
68
  specification_version: 3
69
69
  summary: Remote Javascript re-imagined