maj-text-counter-rails 1.0.1 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- N2EyYTQ4ZmRkZGQ3ZmI4OGZlZjJiYjQ3YmNlMTg0ZGViOGJkMjVlYg==
4
+ ZDE3NjdhOWU0M2I4YTIzYTRjNmUzYjgyYzgwOTQxZTIyOTQ2NGYwYg==
5
5
  data.tar.gz: !binary |-
6
- M2YzODU4YmRkNTkzMmUwNTIxMmEyZmFlMTNmOGFkNDRkMTUyNzZlMw==
6
+ NWUyZTFkZTQ2MmFiZmRlNWJjMzU0ZmY2NmNmNGUzZWNlYzc4NzI2OA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzFmY2E5MTFjMTRhMDJmYTYyZTMwNDFjNzQ2YzQ5YmI3YjA0YThjYjZkM2Nj
10
- MTVkMDZlOTlhYjgzZDA3NGE5NWE3ZGVmZDFlNzE0OTlmOTU4MGExNjI1YzJh
11
- MzM3MjRlNzVlNTBlODgxN2YxNGQzZTI1NzAzODMzOTg5MDE2Y2Q=
9
+ NDk5ZGJjOTNlMDk0YzkyMGY4NjE4ODgyZTFmMDJkMjRmYjJhMGExNDc4ZmIz
10
+ ZjZlZjlmODU4NWYzOTIzZWRmNjIzYjI1Y2MyNmRhOGU4MmM1Y2M0ZjA2MzU1
11
+ NzU3YzQ2MzA3NjVkODA2NWZiYjk4ZGM5MzdlOGFiNWE0MjcxNGU=
12
12
  data.tar.gz: !binary |-
13
- NzBiY2RkN2U5ZTdiMWZjMDA2YTA2MWI3ZjhkMjA2MTdhZTRlOThiYmIzNmQ4
14
- Mzc1YThhNjhlZjlmOGM0ODQ3NjA1OTMxODBkODk4NmUwYmEyNTFmZWFkMTlh
15
- OGRmMTU2MTEyZjRlNzM3N2JlODExNmUzMGRjZjIxNWQ5ZDJmZjU=
13
+ NmNjNDcyNzUwNWI5ZGU3ZWIxYmFjNzEwNTk2MDA4NjMwNTg3ZjM3YTNiNDYx
14
+ YmFmNjhkMjQ5ZmI3YjFjNDgwYWY1N2YyY2FjZjY2YjI1NTI5MWE2YWU2ZGIw
15
+ MWQ0NjA0ZTlmZWQzODllNDg2YWNmYTczMTIzODI5OTQ1MTRjOTY=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- maj-text-counter-rails (1.0.1)
4
+ maj-text-counter-rails (1.0.6)
5
5
  coffee-rails (~> 4.0)
6
6
  compass-rails (~> 2.0)
7
7
  railties (~> 4.0)
@@ -85,10 +85,10 @@ GEM
85
85
  thor (>= 0.18.1, < 2.0)
86
86
  rake (10.3.2)
87
87
  sass (3.2.19)
88
- sass-rails (4.0.3)
88
+ sass-rails (4.0.4)
89
89
  railties (>= 4.0.0, < 5.0)
90
- sass (~> 3.2.0)
91
- sprockets (~> 2.8, <= 2.11.0)
90
+ sass (~> 3.2.2)
91
+ sprockets (~> 2.8, < 2.12)
92
92
  sprockets-rails (~> 2.0)
93
93
  sprockets (2.11.0)
94
94
  hike (~> 1.2)
@@ -1,5 +1,5 @@
1
1
  module MajTextCounter
2
2
  module Rails
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.6"
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  # /*!
2
- # * jQuery Maj Text Counter Plugin v0.1
2
+ # * jQuery Maj Text Counter Plugin
3
3
  # * https://github.com/supernini/majTextCounter
4
4
  # *
5
5
  # * Copyright 2014 miseajour.net
@@ -46,9 +46,10 @@ $.fn.extend
46
46
  if !event
47
47
  return wordCount(ch) >= settings.wordLimit
48
48
  code = event.which
49
- return wordCount(ch) >= settings.wordLimit && [32,188, 190, 191,186].indexOf(code)!=-1
49
+ return wordCount(ch) >= settings.wordLimit && [32, 188, 190, 191, 186].indexOf(code)!=-1
50
50
 
51
51
  checkLimit = (obj, event) ->
52
+ return true if [46, 8].indexOf(event.which)!=-1
52
53
  return false if checkCarLimit(obj)
53
54
  return false if checkWordLimit(obj, event)
54
55
  return true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maj-text-counter-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Supernini
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-29 00:00:00.000000000 Z
11
+ date: 2014-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties