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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a38ff479b3bd33d2068f24a4993438866de6a77
4
- data.tar.gz: 5c9460696f6eaa42affe1263817ea51e32952df7
3
+ metadata.gz: b1f554275b26f56a3e6058ba0cb5b515397a0d8d
4
+ data.tar.gz: 3c035a7641cf8bc9d7f537f80b4665d7a1658084
5
5
  SHA512:
6
- metadata.gz: a2268184d957fae4e95b7ca826d4ade029d204ff03384afb9e335a6aa0dd5fabd927ff74103209d6b6d0a640f999e57230b9aeb4b8cca356dc10467f405baa1a
7
- data.tar.gz: 18241a483e6571095c5f10f19bc30173c1709b152f59a83c9e4dc8bcaae143a9baef28c6c4e251ce57de4ab00046e4b7109def1fabd57c6f779fb7be1c909a60
6
+ metadata.gz: e960b83f6c272a438875becea122c2da2729af7341aeb404b1e3fb00f45a03c29b66139b621617a2e0665f112de116d81d75abf68d2b320a56875a508d15242f
7
+ data.tar.gz: 29006bd8f2fc700899993ca316ccf83e5e5546e3ba8af6e3e27f3d2c94443a36572a38358bdb178a95a5ce26ad50d3f79a237eb7ad14e5ff08cfc9b2d99f7cd8
@@ -22,4 +22,5 @@ Gem::Specification.new do |s|
22
22
 
23
23
  s.add_development_dependency "bundler", "~> 1.6"
24
24
  s.add_development_dependency "rake"
25
+ s.add_dependency 'jquery-rails', ['>= 3.0', '< 5']
25
26
  end
@@ -1,5 +1,5 @@
1
1
  module AlertMessage
2
2
  module Version
3
- VERSION = '1.1.3.1'
3
+ VERSION = '1.1.4'
4
4
  end
5
5
  end
@@ -0,0 +1,10 @@
1
+ require 'spec_helper'
2
+
3
+ describe AlertMessage do
4
+
5
+ path = '../../lib/generators/alert_message/templates/'
6
+
7
+ it 'should return true if template exist' do
8
+ expect(File.exist?("#{path}_alerts.html.erb")).to be_true
9
+ end
10
+ end
@@ -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: 1.4em !important;
26
+ font-size: 16px !important;
27
27
  text-align: center;
28
28
 
29
- padding: 10px 0 10px;
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: 0;
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.3.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-03-10 00:00:00.000000000 Z
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
- }
@@ -1,13 +0,0 @@
1
- // alerts
2
-
3
- $(document).ready(function(){
4
- var alerts = $('.alert-message');
5
-
6
- setTimeout(function(){
7
- alerts.fadeOut(400);
8
- }, 3000);
9
-
10
- alerts.on('click', function(){
11
- alerts.fadeOut(400);
12
- });
13
- })