emojione-rails 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -3
- data/app/assets/javascripts/emojione.js +1 -2
- data/lib/emojione/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5791649d80e8b9752f715647057e35a39662f61d
|
4
|
+
data.tar.gz: fa81d56996ff9c6ca44f20c3ea7528df8ae6fbee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a76953b23125f023a9fd694310c2a3611b9db72323372a64ca20b6526865f1005748805e12e69d2f703df561b4ab24e3ffc50dbddefa7ded085078ac0010be8b
|
7
|
+
data.tar.gz: 52d1774bc6d6d4724d746044b57faf7b597d111d792bce8b3817d3844d73d988650d8d6e791869032843af42e9690491e66e15045a59be86cfa101409f3a342b
|
data/README.md
CHANGED
@@ -28,17 +28,29 @@ $ rake emojione
|
|
28
28
|
|
29
29
|
## Usage
|
30
30
|
|
31
|
-
In your JavaScript
|
31
|
+
In your JavaScript manifest (e.g. `application.js`):
|
32
32
|
|
33
33
|
//= require emojione
|
34
|
+
|
35
|
+
In your CSS/SCSS manifest (e.g. `application.scss`):
|
36
|
+
|
37
|
+
@import "emojione";
|
38
|
+
|
39
|
+
## Documentation
|
40
|
+
|
41
|
+
Everything is available at https://github.com/Ranks/emojione
|
42
|
+
|
43
|
+
## Gotcha
|
44
|
+
|
45
|
+
This gem bundle emojione png and svg version but not the sprites (for size purposes mainly). If you need to use the emojione sprites, this gem is not for you.
|
34
46
|
|
35
47
|
## Licensing
|
36
48
|
|
37
|
-
See LICENCE file
|
49
|
+
See [LICENCE](https://github.com/nel/emojione-rails) file
|
38
50
|
|
39
51
|
## Contributing
|
40
52
|
|
41
|
-
1. Fork it ( https://github.com/
|
53
|
+
1. Fork it ( https://github.com/nel/emojione-rails/fork )
|
42
54
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
43
55
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
44
56
|
4. Push to the branch (`git push origin my-new-feature`)
|
@@ -328,8 +328,7 @@
|
|
328
328
|
replaceWith = '<svg class="emojione"><description>'+alt+'</description><use xlink:href="'+ns.imagePathSVGSprites+'#emoji-'+unicode.toUpperCase()+'"></use></svg>';
|
329
329
|
}
|
330
330
|
else {
|
331
|
-
replaceWith = '<
|
332
|
-
}
|
331
|
+
replaceWith = '<img class="emojione" alt="'+alt+'" src="'+ns.imagePathSVG+unicode+'.svg'+ns.cacheBustParam+'"/>'; }
|
333
332
|
}
|
334
333
|
|
335
334
|
return replaceWith;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emojione-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Renaud (Nel) Morvan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Sprocket/Rails emojione package
|
14
14
|
email:
|