eyeballs_rails 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -23,9 +23,9 @@ begin
23
23
  gemspec.email = "paul@rslw.com"
24
24
  gemspec.homepage = "http://github.com/paulca/eyeballs_rails"
25
25
  gemspec.authors = ["Paul Campbell"]
26
- gemspec.files = FileList["[A-Z]*", "lib/**/*"]
27
- gemspec.version = "0.1.0"
26
+ gemspec.files = FileList["[A-Z]*", "lib/**/*", "app/**/*"]
27
+ gemspec.version = "0.1.1"
28
28
  end
29
29
  rescue LoadError
30
30
  puts "Jeweler not available. Install it with: gem install jeweler"
31
- end
31
+ end
@@ -0,0 +1,27 @@
1
+ module EyeballsRailsHelper
2
+ def eyeballs_javascripts(*mixin_javascripts)
3
+ javascripts = ['vendor/jquery/jquery-1.4.2.min.js',
4
+ 'vendor/jquery/jquery.livequery.js']
5
+
6
+ javascripts << mixin_javascripts
7
+
8
+ javascripts << ['vendor/mustache/mustache.0.2.3.js',
9
+ 'vendor/eyeballs/o_O',
10
+ 'vendor/eyeballs/modules/o_O.model',
11
+ 'vendor/eyeballs/modules/o_O.validations',
12
+ 'vendor/eyeballs/drivers/jquery/adapters/o_O.rest',
13
+ 'vendor/eyeballs/drivers/jquery/modules/o_O.controller',
14
+ 'vendor/eyeballs/drivers/jquery/modules/o_O.support',
15
+ 'vendor/eyeballs/drivers/jquery/modules/o_O.routes',
16
+ 'config/routes',
17
+ 'config/initializer']
18
+ ["app/models", "app/controllers"].each do |dir|
19
+ Dir["#{Rails.root}/public/javascripts/#{dir}/*.js"].collect do |file|
20
+ javascripts << "#{dir}/#{File.basename(file)}"
21
+ end
22
+ end
23
+ if javascripts.any?
24
+ javascript_include_tag(javascripts)
25
+ end
26
+ end
27
+ end
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: 27
4
+ hash: 25
5
5
  prerelease: false
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
  - Paul Campbell
@@ -33,6 +33,7 @@ files:
33
33
  - MIT-LICENSE
34
34
  - README.md
35
35
  - Rakefile
36
+ - app/helpers/eyeballs_rails_helper.rb
36
37
  - lib/eyeballs_rails.rb
37
38
  - test/dummy/app/controllers/application_controller.rb
38
39
  - test/dummy/app/helpers/application_helper.rb