scintillation 1.0.9 → 1.0.10
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/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/scintillation.rb +13 -13
- data/scintillation.gemspec +3 -3
- metadata +4 -4
data/Rakefile
CHANGED
@@ -8,7 +8,7 @@ begin
|
|
8
8
|
gem.summary = %Q{A flash messages replacement}
|
9
9
|
gem.description = %Q{A flash messages replacement}
|
10
10
|
gem.email = "soccer022483@gmail.com"
|
11
|
-
gem.homepage = "http://
|
11
|
+
gem.homepage = "http://github.com/soccer022483/scintillation"
|
12
12
|
gem.authors = ["Austin Schneider"]
|
13
13
|
gem.add_development_dependency "rspec"
|
14
14
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.10
|
data/lib/scintillation.rb
CHANGED
@@ -78,10 +78,10 @@ module Scintillation
|
|
78
78
|
msgs[scope.to_s] ||= []
|
79
79
|
|
80
80
|
case obj
|
81
|
-
when
|
82
|
-
|
83
|
-
|
84
|
-
|
81
|
+
when ActiveModel::Errors then obj.full_messages
|
82
|
+
else Array(obj)
|
83
|
+
end.each do |m|
|
84
|
+
msgs[scope.to_s] << Scintillation::Message.new(m.to_s, tone)
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
@@ -98,15 +98,15 @@ end
|
|
98
98
|
|
99
99
|
if defined?(Rails)
|
100
100
|
#a fix until they patch
|
101
|
-
module ActionController
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
end
|
101
|
+
# module ActionController
|
102
|
+
# class Base
|
103
|
+
# def method_missing(method, *args, &block)
|
104
|
+
# super(method.to_sym, args, &block)
|
105
|
+
# rescue NoMethodError
|
106
|
+
# default_render
|
107
|
+
# end
|
108
|
+
# end
|
109
|
+
# end
|
110
110
|
|
111
111
|
ActionController::Base.send(:include, Scintillation)
|
112
112
|
end
|
data/scintillation.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{scintillation}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.10"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Austin Schneider"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-04-23}
|
13
13
|
s.description = %q{A flash messages replacement}
|
14
14
|
s.email = %q{soccer022483@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
|
|
28
28
|
"spec/scintillation_spec.rb",
|
29
29
|
"spec/spec_helper.rb"
|
30
30
|
]
|
31
|
-
s.homepage = %q{http://
|
31
|
+
s.homepage = %q{http://github.com/soccer022483/scintillation}
|
32
32
|
s.rdoc_options = ["--charset=UTF-8"]
|
33
33
|
s.require_paths = ["lib"]
|
34
34
|
s.rubygems_version = %q{1.3.6}
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 1.0.
|
8
|
+
- 10
|
9
|
+
version: 1.0.10
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Austin Schneider
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-04-23 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -50,7 +50,7 @@ files:
|
|
50
50
|
- spec/scintillation_spec.rb
|
51
51
|
- spec/spec_helper.rb
|
52
52
|
has_rdoc: true
|
53
|
-
homepage: http://
|
53
|
+
homepage: http://github.com/soccer022483/scintillation
|
54
54
|
licenses: []
|
55
55
|
|
56
56
|
post_install_message:
|