ragefaces 0.0.3.1 → 0.0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -1
- data/lib/ragefaces/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3aa9773e05c277fbf6aa655bddfdbd4a16f37507
|
|
4
|
+
data.tar.gz: a743c082d9f9e5c41f3b4503b134b07bc623a1e7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5caac41fd8757bcd4a92cc2cc3cfbca73252c6322482094457ca803c0522b596537c4564416f9103847bbbf03abca48c00125d3cd90fbbb34e423655e363a481
|
|
7
|
+
data.tar.gz: a866819d846f91cd93432fffd683a81190e737b87f0555b590d737ecc7e98b130e4fb540b1beb6c230127a8b5484a1bd2f6a882e7c403c3bd7e4915e77e547ab
|
data/README.md
CHANGED
|
@@ -20,7 +20,11 @@ Or install it yourself as:
|
|
|
20
20
|
|
|
21
21
|
## Usage
|
|
22
22
|
|
|
23
|
-
This method
|
|
23
|
+
This method has not been tested with html - although it will only be a problem if your html has one of the 850ish markups in the form:
|
|
24
|
+
```
|
|
25
|
+
/:[-\w]+:/g
|
|
26
|
+
```
|
|
27
|
+
I use this in conjunction with gemojifyjs which can break anchors and escape sequences:
|
|
24
28
|
```
|
|
25
29
|
ragefaces: (text) ->
|
|
26
30
|
cache_anchors = text.match(/<a [^<]+<\/a>/g) or []
|
|
@@ -30,6 +34,7 @@ ragefaces: (text) ->
|
|
|
30
34
|
for escape in cache_escapes
|
|
31
35
|
text = text.replace(escape, '<e>')
|
|
32
36
|
text = ragefaces.markup(text)
|
|
37
|
+
text = emojify.markup(text)
|
|
33
38
|
for escape in cache_escapes
|
|
34
39
|
text = text.replace('<e>', escape)
|
|
35
40
|
for anchor in cache_anchors
|
data/lib/ragefaces/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ragefaces
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.3.
|
|
4
|
+
version: 0.0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stephen Breyer-Menke
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-
|
|
11
|
+
date: 2013-12-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -985,7 +985,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
985
985
|
version: '0'
|
|
986
986
|
requirements: []
|
|
987
987
|
rubyforge_project:
|
|
988
|
-
rubygems_version: 2.0.
|
|
988
|
+
rubygems_version: 2.0.3
|
|
989
989
|
signing_key:
|
|
990
990
|
specification_version: 4
|
|
991
991
|
summary: Javascript rage face library
|