elementaljs-rails 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Elementaljs::Rails
2
2
 
3
- TODO: Write a gem description
3
+ A small wrapper around ElementalJS library to include in Rails projects.
4
4
 
5
5
  ## Installation
6
6
 
@@ -18,7 +18,14 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here
21
+ To include in your Rails Javascript manifest
22
+
23
+ //= require elemental
24
+
25
+ If you are also using the behaviours that come with the Gem, you can use by including:
26
+
27
+ //= require elemental-reload
28
+ //= require elemental-javascript_enabled
22
29
 
23
30
  ## Contributing
24
31
 
@@ -1,5 +1,5 @@
1
1
  module Elementaljs
2
2
  module Rails
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -12,7 +12,7 @@
12
12
 
13
13
  Elemental.load = function(element){
14
14
  var container = $(element);
15
- container.find("*[data-behavior]").each(function(index, element){
15
+ container.find("*").andSelf().filter("[data-behavior]").each(function(index, element){
16
16
  var that = $(element);
17
17
  var behaviors = that.attr('data-behavior');
18
18
  _.each(behaviors.split(" "), function(behavior){
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elementaljs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-05 00:00:00.000000000 Z
12
+ date: 2013-01-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jquery-rails
@@ -70,18 +70,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
70
70
  - - ! '>='
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
- segments:
74
- - 0
75
- hash: 3360750349577102486
76
73
  required_rubygems_version: !ruby/object:Gem::Requirement
77
74
  none: false
78
75
  requirements:
79
76
  - - ! '>='
80
77
  - !ruby/object:Gem::Version
81
78
  version: '0'
82
- segments:
83
- - 0
84
- hash: 3360750349577102486
85
79
  requirements: []
86
80
  rubyforge_project:
87
81
  rubygems_version: 1.8.24