message_block 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/Gemfile.lock +30 -30
- data/README.rdoc +1 -1
- data/lib/message_block/version.rb +1 -1
- data/vendor/assets/images/message_block/alert.gif +0 -0
- data/vendor/assets/images/message_block/back.gif +0 -0
- data/vendor/assets/images/message_block/confirmation.gif +0 -0
- data/vendor/assets/images/message_block/error.gif +0 -0
- data/vendor/assets/images/message_block/info.gif +0 -0
- data/vendor/assets/images/message_block/notice.gif +0 -0
- data/vendor/assets/images/message_block/warn.gif +0 -0
- data/vendor/assets/stylesheets/message_block.css.erb +39 -0
- metadata +15 -7
data/CHANGELOG
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,37 +1,37 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
message_block (2.0.
|
4
|
+
message_block (2.0.1)
|
5
5
|
rails (>= 3.1.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actionmailer (3.2.
|
11
|
-
actionpack (= 3.2.
|
10
|
+
actionmailer (3.2.12)
|
11
|
+
actionpack (= 3.2.12)
|
12
12
|
mail (~> 2.4.4)
|
13
|
-
actionpack (3.2.
|
14
|
-
activemodel (= 3.2.
|
15
|
-
activesupport (= 3.2.
|
13
|
+
actionpack (3.2.12)
|
14
|
+
activemodel (= 3.2.12)
|
15
|
+
activesupport (= 3.2.12)
|
16
16
|
builder (~> 3.0.0)
|
17
17
|
erubis (~> 2.7.0)
|
18
18
|
journey (~> 1.0.4)
|
19
|
-
rack (~> 1.4.
|
19
|
+
rack (~> 1.4.5)
|
20
20
|
rack-cache (~> 1.2)
|
21
21
|
rack-test (~> 0.6.1)
|
22
22
|
sprockets (~> 2.2.1)
|
23
|
-
activemodel (3.2.
|
24
|
-
activesupport (= 3.2.
|
23
|
+
activemodel (3.2.12)
|
24
|
+
activesupport (= 3.2.12)
|
25
25
|
builder (~> 3.0.0)
|
26
|
-
activerecord (3.2.
|
27
|
-
activemodel (= 3.2.
|
28
|
-
activesupport (= 3.2.
|
26
|
+
activerecord (3.2.12)
|
27
|
+
activemodel (= 3.2.12)
|
28
|
+
activesupport (= 3.2.12)
|
29
29
|
arel (~> 3.0.2)
|
30
30
|
tzinfo (~> 0.3.29)
|
31
|
-
activeresource (3.2.
|
32
|
-
activemodel (= 3.2.
|
33
|
-
activesupport (= 3.2.
|
34
|
-
activesupport (3.2.
|
31
|
+
activeresource (3.2.12)
|
32
|
+
activemodel (= 3.2.12)
|
33
|
+
activesupport (= 3.2.12)
|
34
|
+
activesupport (3.2.12)
|
35
35
|
i18n (~> 0.6)
|
36
36
|
multi_json (~> 1.0)
|
37
37
|
arel (3.0.2)
|
@@ -41,32 +41,32 @@ GEM
|
|
41
41
|
hike (1.2.1)
|
42
42
|
i18n (0.6.1)
|
43
43
|
journey (1.0.4)
|
44
|
-
json (1.7.
|
44
|
+
json (1.7.7)
|
45
45
|
mail (2.4.4)
|
46
46
|
i18n (>= 0.4.0)
|
47
47
|
mime-types (~> 1.16)
|
48
48
|
treetop (~> 1.4.8)
|
49
|
-
mime-types (1.
|
50
|
-
multi_json (1.
|
49
|
+
mime-types (1.21)
|
50
|
+
multi_json (1.6.1)
|
51
51
|
polyglot (0.3.3)
|
52
|
-
rack (1.4.
|
52
|
+
rack (1.4.5)
|
53
53
|
rack-cache (1.2)
|
54
54
|
rack (>= 0.4)
|
55
55
|
rack-ssl (1.3.3)
|
56
56
|
rack
|
57
57
|
rack-test (0.6.2)
|
58
58
|
rack (>= 1.0)
|
59
|
-
rails (3.2.
|
60
|
-
actionmailer (= 3.2.
|
61
|
-
actionpack (= 3.2.
|
62
|
-
activerecord (= 3.2.
|
63
|
-
activeresource (= 3.2.
|
64
|
-
activesupport (= 3.2.
|
59
|
+
rails (3.2.12)
|
60
|
+
actionmailer (= 3.2.12)
|
61
|
+
actionpack (= 3.2.12)
|
62
|
+
activerecord (= 3.2.12)
|
63
|
+
activeresource (= 3.2.12)
|
64
|
+
activesupport (= 3.2.12)
|
65
65
|
bundler (~> 1.0)
|
66
|
-
railties (= 3.2.
|
67
|
-
railties (3.2.
|
68
|
-
actionpack (= 3.2.
|
69
|
-
activesupport (= 3.2.
|
66
|
+
railties (= 3.2.12)
|
67
|
+
railties (3.2.12)
|
68
|
+
actionpack (= 3.2.12)
|
69
|
+
activesupport (= 3.2.12)
|
70
70
|
rack-ssl (~> 1.3.2)
|
71
71
|
rake (>= 0.8.7)
|
72
72
|
rdoc (~> 3.4)
|
data/README.rdoc
CHANGED
@@ -51,7 +51,7 @@ The first argument specifies a hash options:
|
|
51
51
|
* <tt>:on</tt> - specifies one or many model names for which to check error messages. You can specify the special value of :all which will grab all view assignments that contain an ActiveModel "errors" method.
|
52
52
|
* <tt>:model_error_type</tt> - specifies the message type to use for validation errors; defaults to 'error'
|
53
53
|
* <tt>:flash_types</tt> - specifies the keys to check in the flash hash. Messages will be grouped in ul
|
54
|
-
lists according to this type. Defaults to:
|
54
|
+
lists according to this type. Defaults to: [:notice, :back, :confirm, :error, :alert, :info, :warn]
|
55
55
|
* <tt>:html</tt> - Specifies HTML options for the containing div
|
56
56
|
* <tt>:id</tt> - Specifies ID of the containing div; defaults to 'message_block'
|
57
57
|
* <tt>:class</tt> - Specifies class name of the containing div; defaults to nothing.
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,39 @@
|
|
1
|
+
.message_block {
|
2
|
+
clear: both;
|
3
|
+
margin: 12px 0;
|
4
|
+
}
|
5
|
+
|
6
|
+
.message_block ul {
|
7
|
+
border-bottom: 1px solid #ecd757;
|
8
|
+
border-top: 1px solid #ecd757;
|
9
|
+
list-style: none;
|
10
|
+
padding: 10px;
|
11
|
+
}
|
12
|
+
.message_block ul li {
|
13
|
+
margin-left: 3em;
|
14
|
+
}
|
15
|
+
|
16
|
+
.message_block ul.error {
|
17
|
+
background: #fcf6d0 url(<%= asset_path("message_block/error.gif") %>) 16px 50% no-repeat;
|
18
|
+
}
|
19
|
+
|
20
|
+
.message_block ul.alert {
|
21
|
+
background: #fcf6d0 url(<%= asset_path("message_block/alert.gif") %>) 16px 50% no-repeat;
|
22
|
+
}
|
23
|
+
|
24
|
+
.message_block ul.info {
|
25
|
+
background: #fcf6d0 url(<%= asset_path("message_block/info.gif") %>) 16px 50% no-repeat;
|
26
|
+
}
|
27
|
+
|
28
|
+
.message_block ul.notice {
|
29
|
+
background: #fcf6d0 url(<%= asset_path("message_block/notice.gif") %>) 16px 50% no-repeat;
|
30
|
+
}
|
31
|
+
|
32
|
+
.message_block ul.confirm {
|
33
|
+
background: #fcf6d0 url(<%= asset_path("message_block/confirm.gif") %>) 16px 50% no-repeat;
|
34
|
+
}
|
35
|
+
|
36
|
+
.message_block ul.warn {
|
37
|
+
background: #fcf6d0 url(<%= asset_path("message_block/warn.gif") %>) 1em 50% no-repeat;
|
38
|
+
}
|
39
|
+
|
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.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2013-02-17 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70328085129660 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70328085129660
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rspec
|
27
|
-
requirement: &
|
27
|
+
requirement: &70328085128980 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '2.0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70328085128980
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: sqlite3-ruby
|
38
|
-
requirement: &
|
38
|
+
requirement: &70328085128400 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: 1.3.1
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70328085128400
|
47
47
|
description: Implements the common view pattern by which a list of messages are shown
|
48
48
|
at the top, often a combination of flash messages and ActiveRecord validation issues
|
49
49
|
on one or more models.
|
@@ -58,6 +58,14 @@ files:
|
|
58
58
|
- lib/message_block.rb
|
59
59
|
- spec/message_block/helpers_spec.rb
|
60
60
|
- spec/spec_helper.rb
|
61
|
+
- vendor/assets/images/message_block/alert.gif
|
62
|
+
- vendor/assets/images/message_block/back.gif
|
63
|
+
- vendor/assets/images/message_block/confirmation.gif
|
64
|
+
- vendor/assets/images/message_block/error.gif
|
65
|
+
- vendor/assets/images/message_block/info.gif
|
66
|
+
- vendor/assets/images/message_block/notice.gif
|
67
|
+
- vendor/assets/images/message_block/warn.gif
|
68
|
+
- vendor/assets/stylesheets/message_block.css.erb
|
61
69
|
- CHANGELOG
|
62
70
|
- Gemfile
|
63
71
|
- Gemfile.lock
|