message_block 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Appraisals +11 -0
- data/Gemfile.lock +21 -17
- data/README.rdoc +10 -1
- data/Rakefile +16 -4
- data/lib/message_block/version.rb +1 -1
- data/vendor/assets/images/message_block/{confirmation.gif → confirm.gif} +0 -0
- metadata +22 -10
data/Appraisals
ADDED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
message_block (2.0.
|
4
|
+
message_block (2.0.2)
|
5
5
|
rails (>= 3.1.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -34,12 +34,15 @@ GEM
|
|
34
34
|
activesupport (3.2.12)
|
35
35
|
i18n (~> 0.6)
|
36
36
|
multi_json (~> 1.0)
|
37
|
+
appraisal (0.5.1)
|
38
|
+
bundler
|
39
|
+
rake
|
37
40
|
arel (3.0.2)
|
38
41
|
builder (3.0.4)
|
39
|
-
diff-lcs (1.1
|
42
|
+
diff-lcs (1.2.1)
|
40
43
|
erubis (2.7.0)
|
41
44
|
hike (1.2.1)
|
42
|
-
i18n (0.6.
|
45
|
+
i18n (0.6.4)
|
43
46
|
journey (1.0.4)
|
44
47
|
json (1.7.7)
|
45
48
|
mail (2.4.4)
|
@@ -72,26 +75,26 @@ GEM
|
|
72
75
|
rdoc (~> 3.4)
|
73
76
|
thor (>= 0.14.6, < 2.0)
|
74
77
|
rake (10.0.3)
|
75
|
-
rdoc (3.12.
|
78
|
+
rdoc (3.12.2)
|
76
79
|
json (~> 1.4)
|
77
|
-
rspec (2.
|
78
|
-
rspec-core (
|
79
|
-
rspec-expectations (
|
80
|
-
rspec-mocks (
|
81
|
-
rspec-core (2.
|
82
|
-
rspec-expectations (2.
|
83
|
-
diff-lcs (>= 1.1.2)
|
84
|
-
rspec-mocks (2.
|
85
|
-
rspec-core (= 2.0.0)
|
86
|
-
rspec-expectations (= 2.0.0)
|
80
|
+
rspec (2.13.0)
|
81
|
+
rspec-core (~> 2.13.0)
|
82
|
+
rspec-expectations (~> 2.13.0)
|
83
|
+
rspec-mocks (~> 2.13.0)
|
84
|
+
rspec-core (2.13.0)
|
85
|
+
rspec-expectations (2.13.0)
|
86
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
87
|
+
rspec-mocks (2.13.0)
|
87
88
|
sprockets (2.2.2)
|
88
89
|
hike (~> 1.2)
|
89
90
|
multi_json (~> 1.0)
|
90
91
|
rack (~> 1.0)
|
91
92
|
tilt (~> 1.1, != 1.3.0)
|
92
|
-
sqlite3
|
93
|
+
sqlite3 (1.3.7)
|
94
|
+
sqlite3-ruby (1.3.3)
|
95
|
+
sqlite3 (>= 1.3.3)
|
93
96
|
thor (0.17.0)
|
94
|
-
tilt (1.3.
|
97
|
+
tilt (1.3.4)
|
95
98
|
treetop (1.4.12)
|
96
99
|
polyglot
|
97
100
|
polyglot (>= 0.3.1)
|
@@ -101,6 +104,7 @@ PLATFORMS
|
|
101
104
|
ruby
|
102
105
|
|
103
106
|
DEPENDENCIES
|
107
|
+
appraisal (~> 0.5.1)
|
104
108
|
message_block!
|
105
|
-
rspec (~> 2.
|
109
|
+
rspec (~> 2.13)
|
106
110
|
sqlite3-ruby (~> 1.3.1)
|
data/README.rdoc
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
{<img src="https://secure.travis-ci.org/rubiety/message_block.png?branch=master" alt="Build Status" />}[http://travis-ci.org/rubiety/message_block]
|
2
|
+
{<img src="https://gemnasium.com/rubiety/message_block.png" alt="Dependency Status" />}[https://gemnasium.com/rubiety/message_block]
|
3
|
+
{<img src="https://codeclimate.com/github/rubiety/message_block.png" />}[https://codeclimate.com/github/rubiety/message_block]
|
2
4
|
|
3
|
-
|
5
|
+
= Message Block
|
4
6
|
|
5
7
|
Implements the common view pattern by which a list of messages are shown at the top,
|
6
8
|
often a combination of flash messages and ActiveRecord validation issues on one or more models.
|
@@ -92,3 +94,10 @@ given that both user and comment fail ActiveRecord validation:
|
|
92
94
|
|
93
95
|
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
96
|
|
97
|
+
|
98
|
+
== Running Tests
|
99
|
+
|
100
|
+
This gem uses appraisal to test with different versions of the dependencies. See Appraisal first for which versions are tested, then run to test all appraisals:
|
101
|
+
|
102
|
+
$ rake appraisal test
|
103
|
+
|
data/Rakefile
CHANGED
@@ -1,12 +1,11 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'rake'
|
3
|
-
require 'rdoc/task'
|
4
|
-
|
5
1
|
require 'rubygems'
|
6
2
|
require 'bundler/setup'
|
7
3
|
|
8
4
|
require 'rake'
|
5
|
+
require 'appraisal'
|
6
|
+
require 'bundler/setup'
|
9
7
|
require 'rspec/core/rake_task'
|
8
|
+
require 'rdoc/task'
|
10
9
|
|
11
10
|
Bundler::GemHelper.install_tasks
|
12
11
|
|
@@ -19,6 +18,19 @@ end
|
|
19
18
|
|
20
19
|
task :test => :spec
|
21
20
|
|
21
|
+
desc 'Default: run unit tests.'
|
22
|
+
task :default => [:clean, :all]
|
23
|
+
|
24
|
+
desc 'Test the paperclip plugin under all supported Rails versions.'
|
25
|
+
task :all do |t|
|
26
|
+
if ENV['BUNDLE_GEMFILE']
|
27
|
+
exec('rake test')
|
28
|
+
else
|
29
|
+
Rake::Task["appraisal:install"].execute
|
30
|
+
exec('rake appraisal test')
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
22
34
|
desc "Clean up files."
|
23
35
|
task :clean do |t|
|
24
36
|
FileUtils.rm_rf "tmp"
|
File without changes
|
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.3
|
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-
|
12
|
+
date: 2013-06-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70337762421220 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,21 +21,32 @@ dependencies:
|
|
21
21
|
version: 3.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70337762421220
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rspec
|
27
|
-
requirement: &
|
27
|
+
requirement: &70337762420040 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '2.
|
32
|
+
version: '2.13'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70337762420040
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: appraisal
|
38
|
+
requirement: &70337762418760 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 0.5.1
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70337762418760
|
36
47
|
- !ruby/object:Gem::Dependency
|
37
48
|
name: sqlite3-ruby
|
38
|
-
requirement: &
|
49
|
+
requirement: &70337762418140 !ruby/object:Gem::Requirement
|
39
50
|
none: false
|
40
51
|
requirements:
|
41
52
|
- - ~>
|
@@ -43,7 +54,7 @@ dependencies:
|
|
43
54
|
version: 1.3.1
|
44
55
|
type: :development
|
45
56
|
prerelease: false
|
46
|
-
version_requirements: *
|
57
|
+
version_requirements: *70337762418140
|
47
58
|
description: Implements the common view pattern by which a list of messages are shown
|
48
59
|
at the top, often a combination of flash messages and ActiveRecord validation issues
|
49
60
|
on one or more models.
|
@@ -60,12 +71,13 @@ files:
|
|
60
71
|
- spec/spec_helper.rb
|
61
72
|
- vendor/assets/images/message_block/alert.gif
|
62
73
|
- vendor/assets/images/message_block/back.gif
|
63
|
-
- vendor/assets/images/message_block/
|
74
|
+
- vendor/assets/images/message_block/confirm.gif
|
64
75
|
- vendor/assets/images/message_block/error.gif
|
65
76
|
- vendor/assets/images/message_block/info.gif
|
66
77
|
- vendor/assets/images/message_block/notice.gif
|
67
78
|
- vendor/assets/images/message_block/warn.gif
|
68
79
|
- vendor/assets/stylesheets/message_block.css.erb
|
80
|
+
- Appraisals
|
69
81
|
- CHANGELOG
|
70
82
|
- Gemfile
|
71
83
|
- Gemfile.lock
|