itrigga-ruby19_hacks 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{itrigga-ruby19_hacks}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Anson"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itrigga-ruby19_hacks
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Anson
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-22 00:00:00 +00:00
18
+ date: 2011-11-23 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -105,7 +105,6 @@ files:
105
105
  - itrigga-ruby19_hacks.gemspec
106
106
  - lib/itrigga-ruby19_hacks.rb
107
107
  - lib/itrigga/ruby19_hacks/mash.rb
108
- - lib/itrigga/ruby19_hacks/rails23.rb
109
108
  - lib/itrigga/ruby19_hacks/rspec.rb
110
109
  - spec/itrigga-ruby19_hacks_spec.rb
111
110
  - spec/spec_helper.rb
@@ -1,28 +0,0 @@
1
- require 'action_controller/helpers'
2
-
3
- module ActionController #:nodoc:
4
- module Helpers #:nodoc:
5
-
6
- private
7
-
8
- # in Ruby 1.9.3 and Rails 2.3, every controller MUST
9
- # have a helper. see http://groups.google.com/group/rubyonrails-core/browse_thread/thread/81be70a119260e59
10
- # This sucks, lets monkeypatch it!
11
- def default_helper_module!
12
- unless name.blank?
13
- module_name = name.sub(/Controller$|$/, 'Helper')
14
- module_path = module_name.split('::').map { |m| m.underscore }.join('/')
15
- require_dependency module_path
16
- helper module_name.constantize
17
- end
18
- rescue MissingSourceFile => e
19
- raise unless e.is_missing? module_path
20
- rescue NameError => e
21
- raise unless e.missing_name? module_name
22
- # added hackery starts here
23
- # this is the missing rescue!
24
- rescue LoadError => e
25
- puts "no helper found for controller #{name}"
26
- end
27
- end
28
- end