simple_emoji 0.1.0

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 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": "&#128540",
3
+ "grinning_face": "&#128512",
4
+ "grinning_face_with_smiling_eyes": "&#128513",
5
+ "tears_of_joy": "&#128514",
6
+ "rofl": "&#129315",
7
+ "smiling_face_with_open_mouth": "&#128515",
8
+ "smiling_face_and_eyes_with_open_mouth": "&#128516",
9
+ "smiling_face_with_cold_sweat": "&#128517",
10
+ "smiling_face_with_closed_eyes": "&#128517",
11
+ "winking_face": "&#128521",
12
+ "smiling_face_with_smiling_eyes": "&#128522",
13
+ "face_savouring_delicious_food": "&#128523",
14
+ "face_with_sunglasses": "&#128526",
15
+ "smiling_face_with_heart_eyes": "&#128525",
16
+ "face_throwing_kisses": "😘",
17
+ "kissing_face": "&#128535",
18
+ "kissing_face_with_smiling_eyes": "&#128537",
19
+ "kissing_face_with_closed_eyes": "&#128538",
20
+ "white_smiling_face": "&#9786",
21
+ "slightly_smiling_face": "&#128578",
22
+ "hugging_face": "&#129303",
23
+ "thinking_face": "&#129300",
24
+ "neutral_face": "&#128528",
25
+ "expression_less_face": "&#128529",
26
+ "face_without_mouth": "&#128566",
27
+ "face_with_rolling_eye": "&#128580",
28
+ "smirking_face": "&#128527",
29
+ "persevreing_face": "&#128547",
30
+ "disappointed_but_relieved_face": "&#128549",
31
+ "face_with_open_mouth": "&#128558",
32
+ "zipper_mouth_face": "&#129296",
33
+ "hushed_face": "&#128559",
34
+ "sleepy_face": "&#128554",
35
+ "tired_face": "&#128555",
36
+ "sleeping_face": "&#128564",
37
+ "relieved_face": "&#128524",
38
+ "nerd_face": "&#129299",
39
+ "face_with_stuck_out_tongue": "&#128539",
40
+ "stuck_out_tongue_winking_eye": "&#128540",
41
+ "stuck_out_tongue_and_closed_eyes": "&#128541",
42
+ "drooling_face": "&#129316",
43
+ "unamused_face": "&#128530",
44
+ "face_with_cold_sweat": "&#128531",
45
+ "pensive_face": "&#128532",
46
+ "confused_face": "&#128533",
47
+ "upside_down_face": "&#128579",
48
+ "money_mouth_face": "&#129297",
49
+ "astonished_face": "&#128562",
50
+ "white_frowning_face": "&#9785",
51
+ "slightly_frowning_face": "&#128577",
52
+ "confounded_face": "&#128534",
53
+ "disappointed_face": "&#128542",
54
+ "worried_face": "&#128543",
55
+ "face_with_look_of_triumph": "&#128548",
56
+ "crying_face": "&#128546",
57
+ "loudly_crying_face": "&#128557",
58
+ "frowning_face_with_open_mouth": "&#128550",
59
+ "anguished_face": "&#128551",
60
+ "fearful_face": "&#128552",
61
+ "weary_face": "&#128553",
62
+ "grimacing_face": "&#128556",
63
+ "open_mouth_and_cold_sweat": "&#128560",
64
+ "face_screaming_with_fear": "&#128561",
65
+ "flushed_face": "&#128563",
66
+ "dizzy_face": "&#128565",
67
+ "very_angry_face": "&#128545",
68
+ "angry_face": "&#128544",
69
+ "smiling_face_with_halo": "&#128519",
70
+ "face_with_cowboy_hat": "&#129312",
71
+ "clown_face": "&#129313",
72
+ "lying_face": "&#129317",
73
+ "face_with_medical_mask": "&#128567",
74
+ "face_with_thermometer": "&#129298",
75
+ "face_with_head_bandage": "&#129301",
76
+ "nauseated_face": "&#129314",
77
+ "sneezing_face": "&#129319",
78
+ "smiling_face_with_horns": "&#128520",
79
+ "angry_face_with_horns": "&#128127",
80
+ "japanese_ogre": "&#128121",
81
+ "japanese_goblin": "&#128122",
82
+ "skull": "&#128128",
83
+ "skull_and_cross_bones": "&#9760",
84
+ "ghost": "&#128123",
85
+ "alien": "&#128125",
86
+ "alien_monster": "&#128126",
87
+ "robot_face": "&#129302",
88
+ "pile_of_poo": "&#128169",
89
+ "smiling_cat_with_open_mouth": "&#128570",
90
+ "smiling_cat_with_smiling_eyes": "&#128568",
91
+ "cat_with_tears_of_joy": "&#128569",
92
+ "cat_with_heart_eyes": "&#128571",
93
+ "cat_with_wry_face": "&#128572",
94
+ "kissing_cat": "&#128573",
95
+ "weary_cat_face": "&#128576",
96
+ "crying_cat_face": "&#128575",
97
+ "pouting_cat_face": "&#128574",
98
+ "see_no_evil": "&#128584",
99
+ "hear_no_evil": "&#128585",
100
+ "speak_no_evil": "&#128586",
101
+ "boy": "&#128102"
102
+ }
@@ -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
@@ -0,0 +1,3 @@
1
+ module SimpleEmoji
2
+ VERSION = "0.1.0"
3
+ 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: []