ember-rails 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +15 -1
- data/lib/ember-rails/hjs_template.rb +1 -1
- data/lib/ember-rails/version.rb +1 -1
- metadata +7 -7
data/README.md
CHANGED
@@ -4,7 +4,9 @@ ember-rails allows you to include [Ember.JS](http://emberjs.com/) into your Rail
|
|
4
4
|
|
5
5
|
The gem will also pre-compile your handlebars templates when building your asset pipeline. It includes development and production copies of Ember.
|
6
6
|
|
7
|
-
|
7
|
+
You can see an example of how to use the gem [here](https://github.com/keithpitt/ember-rails-example)
|
8
|
+
|
9
|
+
## Getting started
|
8
10
|
|
9
11
|
Add the gem to your application Gemfile:
|
10
12
|
|
@@ -41,3 +43,15 @@ e.g create `app/assets/javascripts/templates/all.js` with:
|
|
41
43
|
Now a single line in the layout loads everything:
|
42
44
|
|
43
45
|
<%= javascript_include_tag "templates/all" %>
|
46
|
+
|
47
|
+
## History
|
48
|
+
|
49
|
+
ember-rails is based on https://github.com/kiskolabs/sproutcore-rails.
|
50
|
+
|
51
|
+
## Note on Patches/Pull Requests
|
52
|
+
|
53
|
+
1. Fork the project.
|
54
|
+
2. Make your feature addition or bug fix.
|
55
|
+
3. Add tests for it. This is important so I don't break it in a future version unintentionally.
|
56
|
+
4. Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
57
|
+
5. Send me a pull request. Bonus points for topic branches.
|
@@ -34,7 +34,7 @@ module EmberRails
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def ember
|
37
|
-
[ "ember-precompiler.js", "ember.
|
37
|
+
[ "ember-precompiler.js", "ember.js" ].map do |name|
|
38
38
|
File.read(File.expand_path(File.join(__FILE__, "..", "..", "..", "vendor/assets/javascripts/#{name}")))
|
39
39
|
end.join("\n")
|
40
40
|
end
|
data/lib/ember-rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ember-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,11 +11,11 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-01-
|
14
|
+
date: 2012-01-04 00:00:00.000000000Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: execjs
|
18
|
-
requirement: &
|
18
|
+
requirement: &70360263443720 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ~>
|
@@ -23,10 +23,10 @@ dependencies:
|
|
23
23
|
version: 1.2.11
|
24
24
|
type: :development
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *70360263443720
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rails
|
29
|
-
requirement: &
|
29
|
+
requirement: &70360263443200 !ruby/object:Gem::Requirement
|
30
30
|
none: false
|
31
31
|
requirements:
|
32
32
|
- - ~>
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
version: '3.1'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
|
-
version_requirements: *
|
37
|
+
version_requirements: *70360263443200
|
38
38
|
description:
|
39
39
|
email:
|
40
40
|
- me@keithpitt.com
|
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
version: '0'
|
72
72
|
requirements: []
|
73
73
|
rubyforge_project:
|
74
|
-
rubygems_version: 1.8.
|
74
|
+
rubygems_version: 1.8.11
|
75
75
|
signing_key:
|
76
76
|
specification_version: 3
|
77
77
|
summary: Ember for Rails 3.1
|