eyeballs_rails 0.1.1 → 0.1.2

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/README.md CHANGED
@@ -2,4 +2,23 @@
2
2
 
3
3
  eyeballs_rails is a gem for using eyeballs.js in your Ruby on Rails projects.
4
4
 
5
- eyeballs_rails brings the `eyeballs_javascripts` method to Rails, which wraps `javascript_include_tags` but also includes all of the eyeballs.js dependencies, including jQuery and mustache. It also includes all of your models and controllers.
5
+ eyeballs_rails brings the `eyeballs_javascripts` method to Rails, which wraps `javascript_include_tags` but also includes all of the eyeballs.js dependencies, including jQuery and mustache. It also includes all of your models and controllers.
6
+
7
+ ## Using eyeballs in Rails ##
8
+
9
+ To install and/or update eyeballs javascripts in your Rails app, from the root directory, run:
10
+
11
+ eyeballs init
12
+
13
+ This will vendor eyeballs and its dependencies into `public/javascripts/vendor`, the config files into `public/javascripts/config` and set up an initial `public/javascripts/app` directory.
14
+
15
+ To create a model, for example `Post`, just run:
16
+
17
+ eyeballs generate model Post
18
+
19
+ Same for controllers:
20
+
21
+ eyeballs generate controller posts
22
+
23
+
24
+ Finally, at the bottom of your template, just before the `</body>` tag, put the `eyeballs_javascripts` helper.
data/Rakefile CHANGED
@@ -24,7 +24,7 @@ begin
24
24
  gemspec.homepage = "http://github.com/paulca/eyeballs_rails"
25
25
  gemspec.authors = ["Paul Campbell"]
26
26
  gemspec.files = FileList["[A-Z]*", "lib/**/*", "app/**/*"]
27
- gemspec.version = "0.1.1"
27
+ gemspec.version = "0.1.2"
28
28
  end
29
29
  rescue LoadError
30
30
  puts "Jeweler not available. Install it with: gem install jeweler"
@@ -5,7 +5,7 @@ module EyeballsRailsHelper
5
5
 
6
6
  javascripts << mixin_javascripts
7
7
 
8
- javascripts << ['vendor/mustache/mustache.0.2.3.js',
8
+ javascripts << ['vendor/mustache/mustache.0.3.0.js',
9
9
  'vendor/eyeballs/o_O',
10
10
  'vendor/eyeballs/modules/o_O.model',
11
11
  'vendor/eyeballs/modules/o_O.validations',
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eyeballs_rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Paul Campbell
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-20 00:00:00 +01:00
18
+ date: 2010-08-23 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies: []
21
21