alert_message 1.1.3.1 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/alert_message.gemspec +1 -0
- data/lib/version/version.rb +1 -1
- data/spec/alert_message/alert_message_spec.rb +10 -0
- data/spec/alert_message/version_spec.rb +10 -0
- data/vendor/assets/stylesheets/alert_message.css.scss +3 -3
- metadata +24 -4
- data/lib/generators/alert_message/templates/alerts.css.scss +0 -60
- data/lib/generators/alert_message/templates/alerts.js +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1f554275b26f56a3e6058ba0cb5b515397a0d8d
|
4
|
+
data.tar.gz: 3c035a7641cf8bc9d7f537f80b4665d7a1658084
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e960b83f6c272a438875becea122c2da2729af7341aeb404b1e3fb00f45a03c29b66139b621617a2e0665f112de116d81d75abf68d2b320a56875a508d15242f
|
7
|
+
data.tar.gz: 29006bd8f2fc700899993ca316ccf83e5e5546e3ba8af6e3e27f3d2c94443a36572a38358bdb178a95a5ce26ad50d3f79a237eb7ad14e5ff08cfc9b2d99f7cd8
|
data/alert_message.gemspec
CHANGED
data/lib/version/version.rb
CHANGED
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require_relative '../../lib/version/version'
|
3
|
+
|
4
|
+
describe AlertMessage do
|
5
|
+
|
6
|
+
it "should return version correctly" do
|
7
|
+
expect(AlertMessage::Version::VERSION).to be_a_kind_of(String)
|
8
|
+
expect(AlertMessage::Version::VERSION).to eq '1.1.4'
|
9
|
+
end
|
10
|
+
end
|
@@ -23,10 +23,10 @@ $alert-notice: #2980b9; // azul
|
|
23
23
|
width: 100%;
|
24
24
|
|
25
25
|
color: $text-1;
|
26
|
-
font-size:
|
26
|
+
font-size: 16px !important;
|
27
27
|
text-align: center;
|
28
28
|
|
29
|
-
padding: 10px 0
|
29
|
+
padding: 10px 0 13px;
|
30
30
|
|
31
31
|
.close {
|
32
32
|
outline: none;
|
@@ -34,7 +34,7 @@ $alert-notice: #2980b9; // azul
|
|
34
34
|
|
35
35
|
position: absolute;
|
36
36
|
right: 0;
|
37
|
-
top:
|
37
|
+
top: -3px;
|
38
38
|
|
39
39
|
width: 42px;
|
40
40
|
height: 42px;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alert_message
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luiz Picolo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,6 +38,26 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: jquery-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
- - "<"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '5'
|
51
|
+
type: :runtime
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '3.0'
|
58
|
+
- - "<"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '5'
|
41
61
|
description: Simple gem for alerts messages
|
42
62
|
email:
|
43
63
|
- luizpicolo@gmail.com
|
@@ -56,9 +76,9 @@ files:
|
|
56
76
|
- lib/alert_message/engine.rb
|
57
77
|
- lib/generators/alert_message/install_generator.rb
|
58
78
|
- lib/generators/alert_message/templates/_alerts.html.erb
|
59
|
-
- lib/generators/alert_message/templates/alerts.css.scss
|
60
|
-
- lib/generators/alert_message/templates/alerts.js
|
61
79
|
- lib/version/version.rb
|
80
|
+
- spec/alert_message/alert_message_spec.rb
|
81
|
+
- spec/alert_message/version_spec.rb
|
62
82
|
- spec/spec_helper.rb
|
63
83
|
- vendor/assets/javascripts/alert_message.js
|
64
84
|
- vendor/assets/stylesheets/alert_message.css.scss
|
@@ -1,60 +0,0 @@
|
|
1
|
-
// alert
|
2
|
-
$text-1: #FFFFFF; // branco
|
3
|
-
$alert-success: #27ae60; // verde
|
4
|
-
$alert-danger: #e74c3c; // vermelho
|
5
|
-
$alert-notice: #2980b9; // azul
|
6
|
-
|
7
|
-
// box sizing
|
8
|
-
@mixin box-sizing($boxmodel){
|
9
|
-
-webkit-box-sizing: $boxmodel;
|
10
|
-
-moz-box-sizing: $boxmodel;
|
11
|
-
box-sizing: $boxmodel;
|
12
|
-
}
|
13
|
-
|
14
|
-
.alert-message {
|
15
|
-
cursor: pointer;
|
16
|
-
@include box-sizing(border-box);
|
17
|
-
|
18
|
-
position: fixed;
|
19
|
-
z-index: 9999;
|
20
|
-
top: 0;
|
21
|
-
left: 0;
|
22
|
-
|
23
|
-
width: 100%;
|
24
|
-
|
25
|
-
color: $text-1;
|
26
|
-
font-size: 1.4em;
|
27
|
-
text-align: center;
|
28
|
-
|
29
|
-
padding: 10px;
|
30
|
-
|
31
|
-
.close {
|
32
|
-
outline: none;
|
33
|
-
@include box-sizing(border-box);
|
34
|
-
|
35
|
-
position: absolute;
|
36
|
-
top: 0;
|
37
|
-
right: 0;
|
38
|
-
|
39
|
-
width: 42px;
|
40
|
-
height: 42px;
|
41
|
-
line-height: 42px;
|
42
|
-
|
43
|
-
font-size: 1.4em;
|
44
|
-
|
45
|
-
border: 0;
|
46
|
-
background: none;
|
47
|
-
}
|
48
|
-
}
|
49
|
-
|
50
|
-
.alert-message-success {
|
51
|
-
background: $alert-success;
|
52
|
-
}
|
53
|
-
|
54
|
-
.alert-message-danger {
|
55
|
-
background: $alert-danger;
|
56
|
-
}
|
57
|
-
|
58
|
-
.alert-message-notice {
|
59
|
-
background: $alert-success;
|
60
|
-
}
|