message_block 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/README.rdoc +4 -3
- data/Rakefile +1 -1
- data/lib/message_block/helpers.rb +1 -1
- data/lib/message_block/version.rb +1 -1
- metadata +10 -24
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
@@ -12,7 +12,7 @@ from your models and combing them with flash messages (multiple types such as er
|
|
12
12
|
and outputting them to your view. This gem comes with an example stylesheet and images.
|
13
13
|
|
14
14
|
|
15
|
-
== Installation: Rails 3.1+ Asset Pipeline (message_block
|
15
|
+
== Installation: Rails 3.1+ Asset Pipeline (message_block 2.0)
|
16
16
|
|
17
17
|
Include the gem using bundler in your Gemfile:
|
18
18
|
|
@@ -25,11 +25,11 @@ Include the stylesheet in your application.css:
|
|
25
25
|
*/
|
26
26
|
|
27
27
|
|
28
|
-
== Installation: Rails 3.0 Without Asset Pipeline (message_block
|
28
|
+
== Installation: Rails 3.0 Without Asset Pipeline (message_block 1.1)
|
29
29
|
|
30
30
|
Include the gem using bundler in your Gemfile:
|
31
31
|
|
32
|
-
gem "message_block", "~> 1.
|
32
|
+
gem "message_block", "~> 1.1"
|
33
33
|
|
34
34
|
Then run the rake task to install the static files:
|
35
35
|
|
@@ -91,3 +91,4 @@ given that both user and comment fail ActiveRecord validation:
|
|
91
91
|
</div>
|
92
92
|
|
93
93
|
Note that instead of manually specifying models you wish to report errors on, you can instead use the special <tt>:all</tt> value which will automatically use all view assign values that contain an ActiveModel::Errors "errors" method.
|
94
|
+
|
data/Rakefile
CHANGED
@@ -3,7 +3,7 @@ module MessageBlock
|
|
3
3
|
|
4
4
|
def message_block(options = {})
|
5
5
|
options[:model_error_type] ||= :error
|
6
|
-
options[:flash_types] ||= [:notice, :back, :confirm, :error, :info, :warn].sort_by(&:to_s)
|
6
|
+
options[:flash_types] ||= [:notice, :back, :confirm, :error, :alert, :info, :warn].sort_by(&:to_s)
|
7
7
|
options[:on] ||= controller.controller_name.split('/').last.gsub(/\_controller$/, '').singularize.to_sym
|
8
8
|
options[:html] ||= {:id => "message_block", :class => "message_block"}
|
9
9
|
options[:html][:id] = options[:id] if options[:id]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: message_block
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirement: &70219725932040 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,15 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ! '>='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 3.1.0
|
24
|
+
version_requirements: *70219725932040
|
30
25
|
- !ruby/object:Gem::Dependency
|
31
26
|
name: rspec
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
27
|
+
requirement: &70219725923440 !ruby/object:Gem::Requirement
|
33
28
|
none: false
|
34
29
|
requirements:
|
35
30
|
- - ~>
|
@@ -37,15 +32,10 @@ dependencies:
|
|
37
32
|
version: '2.0'
|
38
33
|
type: :development
|
39
34
|
prerelease: false
|
40
|
-
version_requirements:
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: '2.0'
|
35
|
+
version_requirements: *70219725923440
|
46
36
|
- !ruby/object:Gem::Dependency
|
47
37
|
name: sqlite3-ruby
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
38
|
+
requirement: &70219725922000 !ruby/object:Gem::Requirement
|
49
39
|
none: false
|
50
40
|
requirements:
|
51
41
|
- - ~>
|
@@ -53,12 +43,7 @@ dependencies:
|
|
53
43
|
version: 1.3.1
|
54
44
|
type: :development
|
55
45
|
prerelease: false
|
56
|
-
version_requirements:
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 1.3.1
|
46
|
+
version_requirements: *70219725922000
|
62
47
|
description: Implements the common view pattern by which a list of messages are shown
|
63
48
|
at the top, often a combination of flash messages and ActiveRecord validation issues
|
64
49
|
on one or more models.
|
@@ -99,9 +84,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
84
|
version: 1.3.4
|
100
85
|
requirements: []
|
101
86
|
rubyforge_project: message_block
|
102
|
-
rubygems_version: 1.8.
|
87
|
+
rubygems_version: 1.8.16
|
103
88
|
signing_key:
|
104
89
|
specification_version: 3
|
105
90
|
summary: Flash message and error_messages_for handling with a common interface via
|
106
91
|
the asset pipeline
|
107
92
|
test_files: []
|
93
|
+
has_rdoc:
|