simple_emoji 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +43 -0
- data/config/emoji_list.json +102 -0
- data/lib/simple_emoji.rb +32 -0
- data/lib/simple_emoji/version.rb +3 -0
- metadata +105 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 31eefd67fcd5bfb6932368df4fd16e9106645b51b69fa12082a8660fb1e1bd69
|
4
|
+
data.tar.gz: c2b82bd74b027e8a1795e99db73df9b7a1edd95ab69d4d395418b57b1c1295c9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 727c90316ce4430f593c5d51e1273c6c63b28ba211680b1e367bda4ea7000ca3484980135a999a753d83e963cb2c121c88c9c1b6b1c3f7dac13cc54bafd55459
|
7
|
+
data.tar.gz: ac07502a40ea9db1e2ad36c6159351c26f4ffbe3e1667c9b9ffd732b6bc2a928f4c3f07df6df18ebfb61c9eaf098fe7bee02f4ddd05ed3939c88f04e0e555863
|
data/README.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# SimpleEmoji
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/simple_emoji`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'simple_emoji'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install simple_emoji
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/simple_emoji. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
|
+
|
37
|
+
## License
|
38
|
+
|
39
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
40
|
+
|
41
|
+
## Code of Conduct
|
42
|
+
|
43
|
+
Everyone interacting in the SimpleEmoji project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/simple_emoji/blob/master/CODE_OF_CONDUCT.md).
|
@@ -0,0 +1,102 @@
|
|
1
|
+
{
|
2
|
+
"winking_tongue": "😜",
|
3
|
+
"grinning_face": "😀",
|
4
|
+
"grinning_face_with_smiling_eyes": "😁",
|
5
|
+
"tears_of_joy": "😂",
|
6
|
+
"rofl": "🤣",
|
7
|
+
"smiling_face_with_open_mouth": "😃",
|
8
|
+
"smiling_face_and_eyes_with_open_mouth": "😄",
|
9
|
+
"smiling_face_with_cold_sweat": "😅",
|
10
|
+
"smiling_face_with_closed_eyes": "😅",
|
11
|
+
"winking_face": "😉",
|
12
|
+
"smiling_face_with_smiling_eyes": "😊",
|
13
|
+
"face_savouring_delicious_food": "😋",
|
14
|
+
"face_with_sunglasses": "😎",
|
15
|
+
"smiling_face_with_heart_eyes": "😍",
|
16
|
+
"face_throwing_kisses": "😘",
|
17
|
+
"kissing_face": "😗",
|
18
|
+
"kissing_face_with_smiling_eyes": "😙",
|
19
|
+
"kissing_face_with_closed_eyes": "😚",
|
20
|
+
"white_smiling_face": "☺",
|
21
|
+
"slightly_smiling_face": "🙂",
|
22
|
+
"hugging_face": "🤗",
|
23
|
+
"thinking_face": "🤔",
|
24
|
+
"neutral_face": "😐",
|
25
|
+
"expression_less_face": "😑",
|
26
|
+
"face_without_mouth": "😶",
|
27
|
+
"face_with_rolling_eye": "🙄",
|
28
|
+
"smirking_face": "😏",
|
29
|
+
"persevreing_face": "😣",
|
30
|
+
"disappointed_but_relieved_face": "😥",
|
31
|
+
"face_with_open_mouth": "😮",
|
32
|
+
"zipper_mouth_face": "🤐",
|
33
|
+
"hushed_face": "😯",
|
34
|
+
"sleepy_face": "😪",
|
35
|
+
"tired_face": "😫",
|
36
|
+
"sleeping_face": "😴",
|
37
|
+
"relieved_face": "😌",
|
38
|
+
"nerd_face": "🤓",
|
39
|
+
"face_with_stuck_out_tongue": "😛",
|
40
|
+
"stuck_out_tongue_winking_eye": "😜",
|
41
|
+
"stuck_out_tongue_and_closed_eyes": "😝",
|
42
|
+
"drooling_face": "🤤",
|
43
|
+
"unamused_face": "😒",
|
44
|
+
"face_with_cold_sweat": "😓",
|
45
|
+
"pensive_face": "😔",
|
46
|
+
"confused_face": "😕",
|
47
|
+
"upside_down_face": "🙃",
|
48
|
+
"money_mouth_face": "🤑",
|
49
|
+
"astonished_face": "😲",
|
50
|
+
"white_frowning_face": "☹",
|
51
|
+
"slightly_frowning_face": "🙁",
|
52
|
+
"confounded_face": "😖",
|
53
|
+
"disappointed_face": "😞",
|
54
|
+
"worried_face": "😟",
|
55
|
+
"face_with_look_of_triumph": "😤",
|
56
|
+
"crying_face": "😢",
|
57
|
+
"loudly_crying_face": "😭",
|
58
|
+
"frowning_face_with_open_mouth": "😦",
|
59
|
+
"anguished_face": "😧",
|
60
|
+
"fearful_face": "😨",
|
61
|
+
"weary_face": "😩",
|
62
|
+
"grimacing_face": "😬",
|
63
|
+
"open_mouth_and_cold_sweat": "😰",
|
64
|
+
"face_screaming_with_fear": "😱",
|
65
|
+
"flushed_face": "😳",
|
66
|
+
"dizzy_face": "😵",
|
67
|
+
"very_angry_face": "😡",
|
68
|
+
"angry_face": "😠",
|
69
|
+
"smiling_face_with_halo": "😇",
|
70
|
+
"face_with_cowboy_hat": "🤠",
|
71
|
+
"clown_face": "🤡",
|
72
|
+
"lying_face": "🤥",
|
73
|
+
"face_with_medical_mask": "😷",
|
74
|
+
"face_with_thermometer": "🤒",
|
75
|
+
"face_with_head_bandage": "🤕",
|
76
|
+
"nauseated_face": "🤢",
|
77
|
+
"sneezing_face": "🤧",
|
78
|
+
"smiling_face_with_horns": "😈",
|
79
|
+
"angry_face_with_horns": "👿",
|
80
|
+
"japanese_ogre": "👹",
|
81
|
+
"japanese_goblin": "👺",
|
82
|
+
"skull": "💀",
|
83
|
+
"skull_and_cross_bones": "☠",
|
84
|
+
"ghost": "👻",
|
85
|
+
"alien": "👽",
|
86
|
+
"alien_monster": "👾",
|
87
|
+
"robot_face": "🤖",
|
88
|
+
"pile_of_poo": "💩",
|
89
|
+
"smiling_cat_with_open_mouth": "😺",
|
90
|
+
"smiling_cat_with_smiling_eyes": "😸",
|
91
|
+
"cat_with_tears_of_joy": "😹",
|
92
|
+
"cat_with_heart_eyes": "😻",
|
93
|
+
"cat_with_wry_face": "😼",
|
94
|
+
"kissing_cat": "😽",
|
95
|
+
"weary_cat_face": "🙀",
|
96
|
+
"crying_cat_face": "😿",
|
97
|
+
"pouting_cat_face": "😾",
|
98
|
+
"see_no_evil": "🙈",
|
99
|
+
"hear_no_evil": "🙉",
|
100
|
+
"speak_no_evil": "🙊",
|
101
|
+
"boy": "👦"
|
102
|
+
}
|
data/lib/simple_emoji.rb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'simple_emoji/version'
|
2
|
+
require 'json'
|
3
|
+
require 'action_view'
|
4
|
+
|
5
|
+
module SimpleEmoji
|
6
|
+
class Index
|
7
|
+
include ActionView::Helpers::TagHelper
|
8
|
+
|
9
|
+
attr_reader :emoji_list
|
10
|
+
|
11
|
+
def initialize(emoji_list = nil)
|
12
|
+
emoji_list ||= begin
|
13
|
+
emoji_json = File.read(emoji_list_file)
|
14
|
+
JSON.parse(emoji_json)
|
15
|
+
end
|
16
|
+
|
17
|
+
@emoji_list = emoji_list
|
18
|
+
|
19
|
+
emoji_list.each do |key, value|
|
20
|
+
self.class.send(:define_method, "#{key}") do
|
21
|
+
content_tag(:span, value, { class: "emoji-#{key}" }, false)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
private
|
27
|
+
|
28
|
+
def emoji_list_file
|
29
|
+
File.dirname(__FILE__) + '/../config/emoji_list.json'
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
metadata
ADDED
@@ -0,0 +1,105 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: simple_emoji
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Srinidhi G S
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-04-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.16'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.16'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: actionview
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: We can use methods to get the Emoji instead of using unreadable unicode
|
70
|
+
starting with &#
|
71
|
+
email:
|
72
|
+
- srini.satti@gmail.com
|
73
|
+
executables: []
|
74
|
+
extensions: []
|
75
|
+
extra_rdoc_files: []
|
76
|
+
files:
|
77
|
+
- README.md
|
78
|
+
- config/emoji_list.json
|
79
|
+
- lib/simple_emoji.rb
|
80
|
+
- lib/simple_emoji/version.rb
|
81
|
+
homepage: https://github.com/srinidhi-lwt/fun_emoji
|
82
|
+
licenses:
|
83
|
+
- MIT
|
84
|
+
metadata: {}
|
85
|
+
post_install_message:
|
86
|
+
rdoc_options: []
|
87
|
+
require_paths:
|
88
|
+
- lib
|
89
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
requirements: []
|
100
|
+
rubyforge_project:
|
101
|
+
rubygems_version: 2.7.7
|
102
|
+
signing_key:
|
103
|
+
specification_version: 4
|
104
|
+
summary: Emoji from it's name. No more unreadable unicode
|
105
|
+
test_files: []
|