include_behaviors 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG ADDED
File without changes
data/Manifest ADDED
@@ -0,0 +1,6 @@
1
+ init.rb
2
+ Manifest.txt
3
+ README.rdoc
4
+ Rakefile
5
+ lib/include_behaviors.rb
6
+
data/README.rdoc ADDED
File without changes
data/Rakefile ADDED
File without changes
@@ -0,0 +1,29 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = %q{include_behaviors}
3
+ s.version = "0.0.1"
4
+
5
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
6
+ s.authors = ["Nathan Verni"]
7
+ s.date = %q{2009-10-02}
8
+ s.description = %q{A quick helper for auto-loading /public/javascripts/behaviros/{controller_name}/{action_name}.js}
9
+ s.email = %q{npverni@gmail.com}
10
+ s.extra_rdoc_files = ["CHANGELOG", "lib/include_behaviors.rb", "README.rdoc"]
11
+ s.files = ["CHANGELOG", "init.rb", "lib/include_behaviors.rb", "Manifest", "Rakefile", "README.rdoc", "include_behaviors.gemspec"]
12
+ s.has_rdoc = true
13
+ s.homepage = %q{http://github.com/npverni/include_behaviors}
14
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Will_sort", "--main", "README.rdoc"]
15
+ s.require_paths = ["lib"]
16
+ s.rubyforge_project = %q{include_behaviors}
17
+ s.rubygems_version = %q{1.3.5}
18
+ s.summary = %q{A wrapper for handeling sort_by params}
19
+
20
+ if s.respond_to? :specification_version then
21
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
22
+ s.specification_version = 2
23
+
24
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
25
+ else
26
+ end
27
+ else
28
+ end
29
+ end
data/init.rb ADDED
@@ -0,0 +1,2 @@
1
+ require 'include_behaviors'
2
+ ActionView::Base.send :include, Focastle::IncludeBehaviors::InstanceMethods
@@ -0,0 +1,9 @@
1
+ module Focastle
2
+ module IncludeBehaviors
3
+ module InstanceMethods
4
+ def include_behaviors
5
+ javascript_include_tag "behaviors/#{params[:controller]}/#{params[:action]}.js" unless @skip_js
6
+ end
7
+ end
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,68 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: include_behaviors
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Nathan Verni
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-10-02 00:00:00 -04:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: A quick helper for auto-loading /public/javascripts/behaviros/{controller_name}/{action_name}.js
17
+ email: npverni@gmail.com
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - CHANGELOG
24
+ - lib/include_behaviors.rb
25
+ - README.rdoc
26
+ files:
27
+ - CHANGELOG
28
+ - init.rb
29
+ - lib/include_behaviors.rb
30
+ - Manifest
31
+ - Rakefile
32
+ - README.rdoc
33
+ - include_behaviors.gemspec
34
+ has_rdoc: true
35
+ homepage: http://github.com/npverni/include_behaviors
36
+ licenses: []
37
+
38
+ post_install_message:
39
+ rdoc_options:
40
+ - --line-numbers
41
+ - --inline-source
42
+ - --title
43
+ - Will_sort
44
+ - --main
45
+ - README.rdoc
46
+ require_paths:
47
+ - lib
48
+ required_ruby_version: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: "0"
53
+ version:
54
+ required_rubygems_version: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ version: "1.2"
59
+ version:
60
+ requirements: []
61
+
62
+ rubyforge_project: include_behaviors
63
+ rubygems_version: 1.3.5
64
+ signing_key:
65
+ specification_version: 2
66
+ summary: A wrapper for handeling sort_by params
67
+ test_files: []
68
+