ultimate-flash 0.7.1 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ultimate-flash (0.7.1)
5
- ultimate-base (~> 0.3.3)
4
+ ultimate-flash (0.8.0)
5
+ ultimate-base (~> 0.4.0)
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
- ultimate-base (0.3.3)
10
+ ultimate-base (0.4.0.0)
11
11
 
12
12
  PLATFORMS
13
13
  ruby
@@ -49,8 +49,9 @@ class Ultimate.Plugins.Flash extends Ultimate.Plugin
49
49
  flashClass: 'flash' # css-class of message container
50
50
  showAjaxErrors: true # catch global jQuery.ajaxErrors(), try detect message and show it
51
51
  showAjaxSuccesses: true # catch global jQuery.ajaxSuccessess(), try detect message and show it
52
+ preventUndefinedResponses: true # prevent error responses with status code < 100, often 0
52
53
  detectFormErrors: true # can be function (parsedJSON)
53
- detectPlainTextMaxLength: 200 # if response has plain text and its length fits, show it
54
+ detectPlainTextMaxLength: 200 # if response has plain text and its length fits, show it (-1 for disable)
54
55
  productionMode: true
55
56
 
56
57
  slideTime: 200 # show and hide animate duration
@@ -195,7 +196,7 @@ class Ultimate.Plugins.Flash extends Ultimate.Plugin
195
196
  thrownError = text
196
197
  text = @t('defaultErrorText')
197
198
  # prevent undefined responses
198
- #return false if jqXHR.status < 100
199
+ return false if @preventUndefinedResponses and jqXHR.status < 100
199
200
  # prevent recall
200
201
  return false if jqXHR.breakFlash
201
202
  jqXHR.breakFlash = true
@@ -1,5 +1,5 @@
1
1
  module Ultimate
2
2
  module Flash
3
- VERSION = "0.7.1"
3
+ VERSION = '0.8.0'
4
4
  end
5
5
  end
@@ -1,23 +1,23 @@
1
1
  # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "ultimate-flash/version"
2
+ $:.push File.expand_path('../lib', __FILE__)
3
+ require 'ultimate-flash/version'
4
4
 
5
5
  Gem::Specification.new do |s|
6
- s.name = "ultimate-flash"
6
+ s.name = 'ultimate-flash'
7
7
  s.version = Ultimate::Flash::VERSION
8
- s.authors = ["Dmitry KODer Karpunin"]
9
- s.email = ["koderfunk@gmail.com"]
10
- s.homepage = "http://github.com/KODerFunk/ultimate-flash"
8
+ s.authors = ['Dmitry KODer Karpunin']
9
+ s.email = ['koderfunk@gmail.com']
10
+ s.homepage = 'http://github.com/KODerFunk/ultimate-flash'
11
11
  s.summary = %q{Ruby on Rails oriented jQuery plugin for smart notifications}
12
12
  s.description = %q{Ruby on Rails oriented jQuery plugin for smart notifications}
13
13
 
14
- s.rubyforge_project = "ultimate-flash"
14
+ s.rubyforge_project = 'ultimate-flash'
15
15
 
16
- s.add_dependency "ultimate-base", "~> 0.3.3"
16
+ s.add_dependency 'ultimate-base', '~> 0.4.0'
17
17
 
18
18
  s.files = `git ls-files`.split("\n")
19
19
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
20
20
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
21
- s.require_paths = ["lib"]
21
+ s.require_paths = ['lib']
22
22
 
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultimate-flash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.8.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-26 00:00:00.000000000 Z
12
+ date: 2013-02-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ultimate-base
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 0.3.3
21
+ version: 0.4.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 0.3.3
29
+ version: 0.4.0
30
30
  description: Ruby on Rails oriented jQuery plugin for smart notifications
31
31
  email:
32
32
  - koderfunk@gmail.com