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 +8 -8
- data/Gemfile.lock +4 -4
- data/lib/maj-text-counter-rails/version.rb +1 -1
- data/vendor/assets/javascripts/maj-text-counter.coffee +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDE3NjdhOWU0M2I4YTIzYTRjNmUzYjgyYzgwOTQxZTIyOTQ2NGYwYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NWUyZTFkZTQ2MmFiZmRlNWJjMzU0ZmY2NmNmNGUzZWNlYzc4NzI2OA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDk5ZGJjOTNlMDk0YzkyMGY4NjE4ODgyZTFmMDJkMjRmYjJhMGExNDc4ZmIz
|
10
|
+
ZjZlZjlmODU4NWYzOTIzZWRmNjIzYjI1Y2MyNmRhOGU4MmM1Y2M0ZjA2MzU1
|
11
|
+
NzU3YzQ2MzA3NjVkODA2NWZiYjk4ZGM5MzdlOGFiNWE0MjcxNGU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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.
|
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.
|
88
|
+
sass-rails (4.0.4)
|
89
89
|
railties (>= 4.0.0, < 5.0)
|
90
|
-
sass (~> 3.2.
|
91
|
-
sprockets (~> 2.8,
|
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
|
# /*!
|
2
|
-
# * jQuery Maj Text Counter Plugin
|
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.
|
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
|
11
|
+
date: 2014-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|