jstree_rails 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2 +1,5 @@
1
+ == v0.1.1
2
+ * Fix for #jstree output to be properly labeled as safe
3
+
1
4
  == v0.1.0
2
5
  * Initial release
@@ -14,5 +14,5 @@ module JsTreeRails
14
14
  end
15
15
  end
16
16
 
17
- VERSION = Version.new('0.1.0')
17
+ VERSION = Version.new('0.1.1')
18
18
  end
@@ -4,7 +4,7 @@ module JsTreeRails
4
4
  include RailsJavaScriptHelpers
5
5
 
6
6
  def jstree(dom_id, options={})
7
- "<div id=\"#{dom_id.sub(/^#/, '')}\"></div>" +
7
+ ("<div id=\"#{dom_id.sub(/^#/, '')}\"></div>" +
8
8
  javascript_tag{
9
9
  "jQuery(function(){
10
10
  jQuery('#{format_id(dom_id)}').jstree(
@@ -12,7 +12,7 @@ module JsTreeRails
12
12
  );
13
13
  });
14
14
  "
15
- }.html_safe
15
+ }).html_safe
16
16
  end
17
17
 
18
18
  # Send entire tree structure (-1 forces entire tree. update to make configurable)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jstree_rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Roberts
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-13 00:00:00 -07:00
18
+ date: 2011-07-14 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency