epi_js 0.0.20 → 0.0.21

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: 327ebcf20da2f681c4fe3b24c73578bc202738d4
4
- data.tar.gz: 7895e4a577603c2d050eddc0c740cc95f5c41fe5
3
+ metadata.gz: 92548e2a9cb43b50c4d16c6e75264219403fba2f
4
+ data.tar.gz: 017ca7d01de9abd91e0a7de5060813ef1830d97e
5
5
  SHA512:
6
- metadata.gz: 14ee34a14f65580bcb31016745d045038731c61723b5e67806a5136f7f5290ef4c0cc5d6d6a229e67b9c2499bc3632f26f14d1d245249e57a46ba288ca534fc5
7
- data.tar.gz: 688416c2f473e87ebb5fc63ef21ddd8b644281811aab72a5f4ec7bdde1269085fd4a6a910bf52df91b33ce8dc0de758e86b9be521be0c5f997d09b54d02bd038
6
+ metadata.gz: eb859b9a19725f569a416aa8eb0137c9e60a65393530f127cfbc1015352caadf5cc70236f3be9395b621897cf18de2b89c03e142fd7968c99f67b39815c7a498
7
+ data.tar.gz: 80ba2a932d8516f8967c82c3607fe793d80101ae5f85364eeea92830f869734d1a9534ffdbbd690b663ee8d0070222dbfb4c3ada1ff49ea2140b03c613e70a96
@@ -1,3 +1,3 @@
1
1
  module EpiJs
2
- VERSION = "0.0.20"
2
+ VERSION = "0.0.21"
3
3
  end
@@ -1,7 +1,7 @@
1
- (($) ->
2
- $.flashAlert = (message, type, timeout = 6000) ->
3
- $dismissLink = $('<a href="#" title="Hide this message" data-dismiss="alert" class="dismiss-flash"></a>').html('Dismiss')
4
- $alert = $('<div>').addClass("alert fade in #{type}").append(message).append($dismissLink)
1
+ (($) ->
2
+ $.flashAlert = (message, type, timeout = 6000, dismissLink) ->
3
+ dismissLink ?= $.flashAlert.defaults.dismissLink
4
+ $alert = $('<div>').addClass("alert fade in #{type}").append(message).append(dismissLink)
5
5
  if $('.flash-messages .alert').size() > 2
6
6
  clearTimeout $('.flash-messages .alert:last').remove().data('timeout')
7
7
  $('.flash-messages').prepend($alert)
@@ -9,6 +9,9 @@
9
9
  $alert.alert('close')
10
10
  , timeout)
11
11
  true
12
+ $.flashAlert.defaults = {
13
+ dismissLink: '<a href="#" title="Hide this message" data-dismiss="alert" class="dismiss-flash">Dismiss</a>'
14
+ }
12
15
  ) jQuery
13
16
 
14
17
  $ ->
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epi_js
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.20
4
+ version: 0.0.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shuo Chen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-01 00:00:00.000000000 Z
11
+ date: 2016-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: coffee-rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '3.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sass-rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '3.2'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.2'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bootstrap-sass
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '1.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rails
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '3.0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '3.0'
97
97
  description: jQuery scripts used in various projects
@@ -101,7 +101,7 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
- - ".gitignore"
104
+ - .gitignore
105
105
  - Gemfile
106
106
  - LICENSE.txt
107
107
  - README.md
@@ -124,17 +124,17 @@ require_paths:
124
124
  - lib
125
125
  required_ruby_version: !ruby/object:Gem::Requirement
126
126
  requirements:
127
- - - ">="
127
+ - - '>='
128
128
  - !ruby/object:Gem::Version
129
129
  version: '0'
130
130
  required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  requirements:
132
- - - ">="
132
+ - - '>='
133
133
  - !ruby/object:Gem::Version
134
134
  version: '0'
135
135
  requirements: []
136
136
  rubyforge_project:
137
- rubygems_version: 2.4.8
137
+ rubygems_version: 2.4.6
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: jQuery scripts used in various projects