puffly 1.1.0 → 2.0.0

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
  SHA256:
3
- metadata.gz: 1272d03542ae05d163e358284c42eed43be9777e0dac8f113e8b073fa3c606e3
4
- data.tar.gz: 3c743b7810a603b5f462644ee60489e05c6b395cae0f7f59ee27859ce4dd7cfc
3
+ metadata.gz: 93a220cf8e1a3f30da0cee5c511546bf28a5aa3a062f60537050715cabe45324
4
+ data.tar.gz: e022c30355647034feaadfe27dea2efb0fe30f738e905db3c014a166594b9702
5
5
  SHA512:
6
- metadata.gz: efbc3585726ac61ca325e1840fe24a554095c89cead939b03a9f173218ddd1e77b1346c66ec19298cdee3b56e9851199b480af502269c8bf5ad563b29850173e
7
- data.tar.gz: 6126c42b1d7d51da28b682710f55762fd0879b692da4fc64be4c70135467ca2c76fb7ea00d17cb0369f35d4a4e9c62a0679b10e254a54cbf139ef33e35820b4d
6
+ metadata.gz: b08cff247f3aba34c168741c79155c434b1a277798fb5c5d754b5e6d5bd224fbf9df041ca7e50a717d05ca354d4bcd273169c682e226f8cf8bcb787e39378adb
7
+ data.tar.gz: 5bc6016378be04ee98bc3643a0d2096f33a925c1dad769c7c7060a5d92d1cf75bc8d0a6f66ef391843321ef8a544a48115212ee6cba30a0c5d059b1f2c734b9d
data/Gemfile CHANGED
@@ -3,6 +3,5 @@
3
3
  source 'https://rubygems.org'
4
4
 
5
5
  gemspec
6
- gem 'jquery-rails'
7
6
  gem 'rubocop', require: false
8
7
  gem 'sass-rails', '~> 5.0', '>= 5.0.6'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Puffly
4
- VERSION = '1.1.0'
4
+ VERSION = '2.0.0'
5
5
  end
@@ -32,7 +32,6 @@ Gem::Specification.new do |spec|
32
32
  # development dependencies
33
33
  spec.add_development_dependency 'bundler', '~> 1.13'
34
34
  spec.add_development_dependency 'coffee-rails', '~> 4.2'
35
- spec.add_development_dependency 'jquery-rails', '~> 4.3'
36
35
  spec.add_development_dependency 'rails', '~> 4.0'
37
36
  spec.add_development_dependency 'rake', '~> 12.3'
38
37
  spec.add_development_dependency 'sass', '~> 3.4'
@@ -1,4 +1,21 @@
1
- $(document).ready ->
2
- $('#puffly').fadeIn 1000
3
- $('#puffly').delay(4000).fadeOut 1000
1
+ fadeIn = (el) ->
2
+ el.style.opacity = '0.7'
3
+ el.style.transition = 'opacity 1000ms'
4
4
  return
5
+
6
+ fadeOut = (el) ->
7
+ el.style.opacity = '0'
8
+ return
9
+
10
+ window.addEventListener 'load', ->
11
+ el = document.getElementById('puffly')
12
+ if el
13
+ setTimeout (->
14
+ fadeIn el
15
+ return
16
+ ), 100
17
+ setTimeout (->
18
+ fadeOut el
19
+ return
20
+ ), 4000
21
+ return
@@ -10,7 +10,6 @@ $color-white: #FFFFFF
10
10
  $font-family: Helvetica, sans-serif
11
11
 
12
12
  #puffly
13
- display: none
14
13
  position: fixed
15
14
  min-width: 5%
16
15
  max-width: 15%
@@ -21,7 +20,7 @@ $font-family: Helvetica, sans-serif
21
20
  font-size: 1rem
22
21
  color: $color-white
23
22
  padding: 15px 20px
24
- opacity: 0.7
23
+ opacity: 0
25
24
  font-family: $font-family
26
25
  &.success
27
26
  background-color: $color-sucess
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puffly
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Rodríguez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-15 00:00:00.000000000 Z
11
+ date: 2020-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '4.2'
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: '4.3'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '4.3'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: rails
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -135,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
121
  - !ruby/object:Gem::Version
136
122
  version: '0'
137
123
  requirements: []
138
- rubygems_version: 3.0.6
124
+ rubygems_version: 3.0.3
139
125
  signing_key:
140
126
  specification_version: 4
141
127
  summary: Cute flash messages for your ruby on rails application.