md_emoji 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +7 -0
- data/README.markdown +63 -0
- data/Rakefile +37 -0
- data/lib/md_emoji/engine.rb +4 -0
- data/lib/md_emoji/render.rb +19 -0
- data/lib/md_emoji/version.rb +3 -0
- data/lib/md_emoji.rb +62 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +9 -0
- data/test/dummy/app/assets/stylesheets/application.css +7 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config/application.rb +48 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +30 -0
- data/test/dummy/config/environments/production.rb +60 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +10 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/log/test.log +0 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +26 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/md_emoji_test.rb +34 -0
- data/test/test_helper.rb +12 -0
- data/vendor/assets/images/emojis/-1.png +0 -0
- data/vendor/assets/images/emojis/0.png +0 -0
- data/vendor/assets/images/emojis/1.png +0 -0
- data/vendor/assets/images/emojis/109.png +0 -0
- data/vendor/assets/images/emojis/2.png +0 -0
- data/vendor/assets/images/emojis/3.png +0 -0
- data/vendor/assets/images/emojis/4.png +0 -0
- data/vendor/assets/images/emojis/5.png +0 -0
- data/vendor/assets/images/emojis/6.png +0 -0
- data/vendor/assets/images/emojis/7.png +0 -0
- data/vendor/assets/images/emojis/8.png +0 -0
- data/vendor/assets/images/emojis/8ball.png +0 -0
- data/vendor/assets/images/emojis/9.png +0 -0
- data/vendor/assets/images/emojis/a.png +0 -0
- data/vendor/assets/images/emojis/ab.png +0 -0
- data/vendor/assets/images/emojis/airplane.png +0 -0
- data/vendor/assets/images/emojis/alien.png +0 -0
- data/vendor/assets/images/emojis/ambulance.png +0 -0
- data/vendor/assets/images/emojis/angel.png +0 -0
- data/vendor/assets/images/emojis/anger.png +0 -0
- data/vendor/assets/images/emojis/angry.png +0 -0
- data/vendor/assets/images/emojis/apple.png +0 -0
- data/vendor/assets/images/emojis/aquarius.png +0 -0
- data/vendor/assets/images/emojis/aries.png +0 -0
- data/vendor/assets/images/emojis/arrow_backward.png +0 -0
- data/vendor/assets/images/emojis/arrow_down.png +0 -0
- data/vendor/assets/images/emojis/arrow_forward.png +0 -0
- data/vendor/assets/images/emojis/arrow_left.png +0 -0
- data/vendor/assets/images/emojis/arrow_lower_left.png +0 -0
- data/vendor/assets/images/emojis/arrow_lower_right.png +0 -0
- data/vendor/assets/images/emojis/arrow_right.png +0 -0
- data/vendor/assets/images/emojis/arrow_up.png +0 -0
- data/vendor/assets/images/emojis/arrow_upper_left.png +0 -0
- data/vendor/assets/images/emojis/arrow_upper_right.png +0 -0
- data/vendor/assets/images/emojis/art.png +0 -0
- data/vendor/assets/images/emojis/astonished.png +0 -0
- data/vendor/assets/images/emojis/atm.png +0 -0
- data/vendor/assets/images/emojis/b.png +0 -0
- data/vendor/assets/images/emojis/baby.png +0 -0
- data/vendor/assets/images/emojis/baby_chick.png +0 -0
- data/vendor/assets/images/emojis/baby_symbol.png +0 -0
- data/vendor/assets/images/emojis/balloon.png +0 -0
- data/vendor/assets/images/emojis/bamboo.png +0 -0
- data/vendor/assets/images/emojis/bank.png +0 -0
- data/vendor/assets/images/emojis/barber.png +0 -0
- data/vendor/assets/images/emojis/baseball.png +0 -0
- data/vendor/assets/images/emojis/basketball.png +0 -0
- data/vendor/assets/images/emojis/bath.png +0 -0
- data/vendor/assets/images/emojis/bear.png +0 -0
- data/vendor/assets/images/emojis/beer.png +0 -0
- data/vendor/assets/images/emojis/beers.png +0 -0
- data/vendor/assets/images/emojis/beginner.png +0 -0
- data/vendor/assets/images/emojis/bell.png +0 -0
- data/vendor/assets/images/emojis/bento.png +0 -0
- data/vendor/assets/images/emojis/bike.png +0 -0
- data/vendor/assets/images/emojis/bikini.png +0 -0
- data/vendor/assets/images/emojis/bird.png +0 -0
- data/vendor/assets/images/emojis/birthday.png +0 -0
- data/vendor/assets/images/emojis/black_square.png +0 -0
- data/vendor/assets/images/emojis/blue_car.png +0 -0
- data/vendor/assets/images/emojis/blue_heart.png +0 -0
- data/vendor/assets/images/emojis/blush.png +0 -0
- data/vendor/assets/images/emojis/boar.png +0 -0
- data/vendor/assets/images/emojis/boat.png +0 -0
- data/vendor/assets/images/emojis/bomb.png +0 -0
- data/vendor/assets/images/emojis/book.png +0 -0
- data/vendor/assets/images/emojis/boot.png +0 -0
- data/vendor/assets/images/emojis/bouquet.png +0 -0
- data/vendor/assets/images/emojis/bow.png +0 -0
- data/vendor/assets/images/emojis/bowtie.png +0 -0
- data/vendor/assets/images/emojis/boy.png +0 -0
- data/vendor/assets/images/emojis/bread.png +0 -0
- data/vendor/assets/images/emojis/briefcase.png +0 -0
- data/vendor/assets/images/emojis/broken_heart.png +0 -0
- data/vendor/assets/images/emojis/bug.png +0 -0
- data/vendor/assets/images/emojis/bulb.png +0 -0
- data/vendor/assets/images/emojis/bullettrain_front.png +0 -0
- data/vendor/assets/images/emojis/bullettrain_side.png +0 -0
- data/vendor/assets/images/emojis/bus.png +0 -0
- data/vendor/assets/images/emojis/busstop.png +0 -0
- data/vendor/assets/images/emojis/cactus.png +0 -0
- data/vendor/assets/images/emojis/cake.png +0 -0
- data/vendor/assets/images/emojis/calling.png +0 -0
- data/vendor/assets/images/emojis/camel.png +0 -0
- data/vendor/assets/images/emojis/camera.png +0 -0
- data/vendor/assets/images/emojis/cancer.png +0 -0
- data/vendor/assets/images/emojis/capricorn.png +0 -0
- data/vendor/assets/images/emojis/car.png +0 -0
- data/vendor/assets/images/emojis/cat.png +0 -0
- data/vendor/assets/images/emojis/cd.png +0 -0
- data/vendor/assets/images/emojis/chart.png +0 -0
- data/vendor/assets/images/emojis/checkered_flag.png +0 -0
- data/vendor/assets/images/emojis/cherry_blossom.png +0 -0
- data/vendor/assets/images/emojis/chicken.png +0 -0
- data/vendor/assets/images/emojis/christmas_tree.png +0 -0
- data/vendor/assets/images/emojis/church.png +0 -0
- data/vendor/assets/images/emojis/cinema.png +0 -0
- data/vendor/assets/images/emojis/city_sunrise.png +0 -0
- data/vendor/assets/images/emojis/city_sunset.png +0 -0
- data/vendor/assets/images/emojis/clap.png +0 -0
- data/vendor/assets/images/emojis/clapper.png +0 -0
- data/vendor/assets/images/emojis/clock1.png +0 -0
- data/vendor/assets/images/emojis/clock10.png +0 -0
- data/vendor/assets/images/emojis/clock11.png +0 -0
- data/vendor/assets/images/emojis/clock12.png +0 -0
- data/vendor/assets/images/emojis/clock2.png +0 -0
- data/vendor/assets/images/emojis/clock3.png +0 -0
- data/vendor/assets/images/emojis/clock4.png +0 -0
- data/vendor/assets/images/emojis/clock5.png +0 -0
- data/vendor/assets/images/emojis/clock6.png +0 -0
- data/vendor/assets/images/emojis/clock7.png +0 -0
- data/vendor/assets/images/emojis/clock8.png +0 -0
- data/vendor/assets/images/emojis/clock9.png +0 -0
- data/vendor/assets/images/emojis/closed_umbrella.png +0 -0
- data/vendor/assets/images/emojis/cloud.png +0 -0
- data/vendor/assets/images/emojis/clubs.png +0 -0
- data/vendor/assets/images/emojis/cn.png +0 -0
- data/vendor/assets/images/emojis/cocktail.png +0 -0
- data/vendor/assets/images/emojis/coffee.png +0 -0
- data/vendor/assets/images/emojis/cold_sweat.png +0 -0
- data/vendor/assets/images/emojis/computer.png +0 -0
- data/vendor/assets/images/emojis/confounded.png +0 -0
- data/vendor/assets/images/emojis/congratulations.png +0 -0
- data/vendor/assets/images/emojis/construction.png +0 -0
- data/vendor/assets/images/emojis/construction_worker.png +0 -0
- data/vendor/assets/images/emojis/convenience_store.png +0 -0
- data/vendor/assets/images/emojis/cool.png +0 -0
- data/vendor/assets/images/emojis/cop.png +0 -0
- data/vendor/assets/images/emojis/copyright.png +0 -0
- data/vendor/assets/images/emojis/couple.png +0 -0
- data/vendor/assets/images/emojis/couple_with_heart.png +0 -0
- data/vendor/assets/images/emojis/couplekiss.png +0 -0
- data/vendor/assets/images/emojis/cow.png +0 -0
- data/vendor/assets/images/emojis/crossed_flags.png +0 -0
- data/vendor/assets/images/emojis/crown.png +0 -0
- data/vendor/assets/images/emojis/cry.png +0 -0
- data/vendor/assets/images/emojis/cupid.png +0 -0
- data/vendor/assets/images/emojis/currency_exchange.png +0 -0
- data/vendor/assets/images/emojis/curry.png +0 -0
- data/vendor/assets/images/emojis/cyclone.png +0 -0
- data/vendor/assets/images/emojis/dancer.png +0 -0
- data/vendor/assets/images/emojis/dancers.png +0 -0
- data/vendor/assets/images/emojis/dango.png +0 -0
- data/vendor/assets/images/emojis/dart.png +0 -0
- data/vendor/assets/images/emojis/dash.png +0 -0
- data/vendor/assets/images/emojis/de.png +0 -0
- data/vendor/assets/images/emojis/department_store.png +0 -0
- data/vendor/assets/images/emojis/diamonds.png +0 -0
- data/vendor/assets/images/emojis/disappointed.png +0 -0
- data/vendor/assets/images/emojis/dog.png +0 -0
- data/vendor/assets/images/emojis/dolls.png +0 -0
- data/vendor/assets/images/emojis/dolphin.png +0 -0
- data/vendor/assets/images/emojis/dress.png +0 -0
- data/vendor/assets/images/emojis/dvd.png +0 -0
- data/vendor/assets/images/emojis/ear.png +0 -0
- data/vendor/assets/images/emojis/ear_of_rice.png +0 -0
- data/vendor/assets/images/emojis/egg.png +0 -0
- data/vendor/assets/images/emojis/eggplant.png +0 -0
- data/vendor/assets/images/emojis/egplant.png +0 -0
- data/vendor/assets/images/emojis/eight_pointed_black_star.png +0 -0
- data/vendor/assets/images/emojis/eight_spoked_asterisk.png +0 -0
- data/vendor/assets/images/emojis/elephant.png +0 -0
- data/vendor/assets/images/emojis/email.png +0 -0
- data/vendor/assets/images/emojis/es.png +0 -0
- data/vendor/assets/images/emojis/european_castle.png +0 -0
- data/vendor/assets/images/emojis/exclamation.png +0 -0
- data/vendor/assets/images/emojis/eyes.png +0 -0
- data/vendor/assets/images/emojis/factory.png +0 -0
- data/vendor/assets/images/emojis/fallen_leaf.png +0 -0
- data/vendor/assets/images/emojis/fast_forward.png +0 -0
- data/vendor/assets/images/emojis/fax.png +0 -0
- data/vendor/assets/images/emojis/fearful.png +0 -0
- data/vendor/assets/images/emojis/feelsgood.png +0 -0
- data/vendor/assets/images/emojis/feet.png +0 -0
- data/vendor/assets/images/emojis/ferris_wheel.png +0 -0
- data/vendor/assets/images/emojis/finnadie.png +0 -0
- data/vendor/assets/images/emojis/fire.png +0 -0
- data/vendor/assets/images/emojis/fire_engine.png +0 -0
- data/vendor/assets/images/emojis/fireworks.png +0 -0
- data/vendor/assets/images/emojis/fish.png +0 -0
- data/vendor/assets/images/emojis/fist.png +0 -0
- data/vendor/assets/images/emojis/flags.png +0 -0
- data/vendor/assets/images/emojis/flushed.png +0 -0
- data/vendor/assets/images/emojis/football.png +0 -0
- data/vendor/assets/images/emojis/fork_and_knife.png +0 -0
- data/vendor/assets/images/emojis/fountain.png +0 -0
- data/vendor/assets/images/emojis/four_leaf_clover.png +0 -0
- data/vendor/assets/images/emojis/fr.png +0 -0
- data/vendor/assets/images/emojis/fries.png +0 -0
- data/vendor/assets/images/emojis/frog.png +0 -0
- data/vendor/assets/images/emojis/fuelpump.png +0 -0
- data/vendor/assets/images/emojis/gb.png +0 -0
- data/vendor/assets/images/emojis/gem.png +0 -0
- data/vendor/assets/images/emojis/gemini.png +0 -0
- data/vendor/assets/images/emojis/ghost.png +0 -0
- data/vendor/assets/images/emojis/gift.png +0 -0
- data/vendor/assets/images/emojis/gift_heart.png +0 -0
- data/vendor/assets/images/emojis/girl.png +0 -0
- data/vendor/assets/images/emojis/goberserk.png +0 -0
- data/vendor/assets/images/emojis/godmode.png +0 -0
- data/vendor/assets/images/emojis/golf.png +0 -0
- data/vendor/assets/images/emojis/green_heart.png +0 -0
- data/vendor/assets/images/emojis/grey_exclamation.png +0 -0
- data/vendor/assets/images/emojis/grey_question.png +0 -0
- data/vendor/assets/images/emojis/grin.png +0 -0
- data/vendor/assets/images/emojis/guardsman.png +0 -0
- data/vendor/assets/images/emojis/guitar.png +0 -0
- data/vendor/assets/images/emojis/gun.png +0 -0
- data/vendor/assets/images/emojis/haircut.png +0 -0
- data/vendor/assets/images/emojis/hamburger.png +0 -0
- data/vendor/assets/images/emojis/hammer.png +0 -0
- data/vendor/assets/images/emojis/hamster.png +0 -0
- data/vendor/assets/images/emojis/hand.png +0 -0
- data/vendor/assets/images/emojis/handbag.png +0 -0
- data/vendor/assets/images/emojis/hankey.png +0 -0
- data/vendor/assets/images/emojis/hash.png +0 -0
- data/vendor/assets/images/emojis/headphones.png +0 -0
- data/vendor/assets/images/emojis/heart.png +0 -0
- data/vendor/assets/images/emojis/heart_decoration.png +0 -0
- data/vendor/assets/images/emojis/heart_eyes.png +0 -0
- data/vendor/assets/images/emojis/heartbeat.png +0 -0
- data/vendor/assets/images/emojis/heartpulse.png +0 -0
- data/vendor/assets/images/emojis/hearts.png +0 -0
- data/vendor/assets/images/emojis/hibiscus.png +0 -0
- data/vendor/assets/images/emojis/high_heel.png +0 -0
- data/vendor/assets/images/emojis/horse.png +0 -0
- data/vendor/assets/images/emojis/hospital.png +0 -0
- data/vendor/assets/images/emojis/hotel.png +0 -0
- data/vendor/assets/images/emojis/hotsprings.png +0 -0
- data/vendor/assets/images/emojis/house.png +0 -0
- data/vendor/assets/images/emojis/hurtrealbad.png +0 -0
- data/vendor/assets/images/emojis/icecream.png +0 -0
- data/vendor/assets/images/emojis/id.png +0 -0
- data/vendor/assets/images/emojis/ideograph_advantage.png +0 -0
- data/vendor/assets/images/emojis/imp.png +0 -0
- data/vendor/assets/images/emojis/information_desk_person.png +0 -0
- data/vendor/assets/images/emojis/iphone.png +0 -0
- data/vendor/assets/images/emojis/it.png +0 -0
- data/vendor/assets/images/emojis/jack_o_lantern.png +0 -0
- data/vendor/assets/images/emojis/japanese_castle.png +0 -0
- data/vendor/assets/images/emojis/joy.png +0 -0
- data/vendor/assets/images/emojis/jp.png +0 -0
- data/vendor/assets/images/emojis/key.png +0 -0
- data/vendor/assets/images/emojis/kimono.png +0 -0
- data/vendor/assets/images/emojis/kiss.png +0 -0
- data/vendor/assets/images/emojis/kissing_face.png +0 -0
- data/vendor/assets/images/emojis/kissing_heart.png +0 -0
- data/vendor/assets/images/emojis/koala.png +0 -0
- data/vendor/assets/images/emojis/koko.png +0 -0
- data/vendor/assets/images/emojis/kr.png +0 -0
- data/vendor/assets/images/emojis/leaves.png +0 -0
- data/vendor/assets/images/emojis/leo.png +0 -0
- data/vendor/assets/images/emojis/libra.png +0 -0
- data/vendor/assets/images/emojis/lips.png +0 -0
- data/vendor/assets/images/emojis/lipstick.png +0 -0
- data/vendor/assets/images/emojis/lock.png +0 -0
- data/vendor/assets/images/emojis/loop.png +0 -0
- data/vendor/assets/images/emojis/loudspeaker.png +0 -0
- data/vendor/assets/images/emojis/love_hotel.png +0 -0
- data/vendor/assets/images/emojis/mag.png +0 -0
- data/vendor/assets/images/emojis/mahjong.png +0 -0
- data/vendor/assets/images/emojis/mailbox.png +0 -0
- data/vendor/assets/images/emojis/man.png +0 -0
- data/vendor/assets/images/emojis/man_with_gua_pi_mao.png +0 -0
- data/vendor/assets/images/emojis/man_with_turban.png +0 -0
- data/vendor/assets/images/emojis/maple_leaf.png +0 -0
- data/vendor/assets/images/emojis/mask.png +0 -0
- data/vendor/assets/images/emojis/massage.png +0 -0
- data/vendor/assets/images/emojis/mega.png +0 -0
- data/vendor/assets/images/emojis/memo.png +0 -0
- data/vendor/assets/images/emojis/mens.png +0 -0
- data/vendor/assets/images/emojis/metal.png +0 -0
- data/vendor/assets/images/emojis/metro.png +0 -0
- data/vendor/assets/images/emojis/microphone.png +0 -0
- data/vendor/assets/images/emojis/minidisc.png +0 -0
- data/vendor/assets/images/emojis/mobile_phone_off.png +0 -0
- data/vendor/assets/images/emojis/moneybag.png +0 -0
- data/vendor/assets/images/emojis/monkey.png +0 -0
- data/vendor/assets/images/emojis/monkey_face.png +0 -0
- data/vendor/assets/images/emojis/moon.png +0 -0
- data/vendor/assets/images/emojis/mortar_board.png +0 -0
- data/vendor/assets/images/emojis/mount_fuji.png +0 -0
- data/vendor/assets/images/emojis/mouse.png +0 -0
- data/vendor/assets/images/emojis/movie_camera.png +0 -0
- data/vendor/assets/images/emojis/muscle.png +0 -0
- data/vendor/assets/images/emojis/musical_note.png +0 -0
- data/vendor/assets/images/emojis/nail_care.png +0 -0
- data/vendor/assets/images/emojis/necktie.png +0 -0
- data/vendor/assets/images/emojis/new.png +0 -0
- data/vendor/assets/images/emojis/no_good.png +0 -0
- data/vendor/assets/images/emojis/no_smoking.png +0 -0
- data/vendor/assets/images/emojis/nose.png +0 -0
- data/vendor/assets/images/emojis/notes.png +0 -0
- data/vendor/assets/images/emojis/o.png +0 -0
- data/vendor/assets/images/emojis/o2.png +0 -0
- data/vendor/assets/images/emojis/ocean.png +0 -0
- data/vendor/assets/images/emojis/octocat.png +0 -0
- data/vendor/assets/images/emojis/octopus.png +0 -0
- data/vendor/assets/images/emojis/oden.png +0 -0
- data/vendor/assets/images/emojis/office.png +0 -0
- data/vendor/assets/images/emojis/ok.png +0 -0
- data/vendor/assets/images/emojis/ok_hand.png +0 -0
- data/vendor/assets/images/emojis/ok_woman.png +0 -0
- data/vendor/assets/images/emojis/older_man.png +0 -0
- data/vendor/assets/images/emojis/older_woman.png +0 -0
- data/vendor/assets/images/emojis/open_hands.png +0 -0
- data/vendor/assets/images/emojis/ophiuchus.png +0 -0
- data/vendor/assets/images/emojis/palm_tree.png +0 -0
- data/vendor/assets/images/emojis/parking.png +0 -0
- data/vendor/assets/images/emojis/part_alternation_mark.png +0 -0
- data/vendor/assets/images/emojis/pencil.png +0 -0
- data/vendor/assets/images/emojis/penguin.png +0 -0
- data/vendor/assets/images/emojis/pensive.png +0 -0
- data/vendor/assets/images/emojis/persevere.png +0 -0
- data/vendor/assets/images/emojis/person_with_blond_hair.png +0 -0
- data/vendor/assets/images/emojis/phone.png +0 -0
- data/vendor/assets/images/emojis/pig.png +0 -0
- data/vendor/assets/images/emojis/pill.png +0 -0
- data/vendor/assets/images/emojis/pisces.png +0 -0
- data/vendor/assets/images/emojis/plus1.png +0 -0
- data/vendor/assets/images/emojis/point_down.png +0 -0
- data/vendor/assets/images/emojis/point_left.png +0 -0
- data/vendor/assets/images/emojis/point_right.png +0 -0
- data/vendor/assets/images/emojis/point_up.png +0 -0
- data/vendor/assets/images/emojis/point_up_2.png +0 -0
- data/vendor/assets/images/emojis/police_car.png +0 -0
- data/vendor/assets/images/emojis/poop.png +0 -0
- data/vendor/assets/images/emojis/post_office.png +0 -0
- data/vendor/assets/images/emojis/postbox.png +0 -0
- data/vendor/assets/images/emojis/pray.png +0 -0
- data/vendor/assets/images/emojis/princess.png +0 -0
- data/vendor/assets/images/emojis/punch.png +0 -0
- data/vendor/assets/images/emojis/purple_heart.png +0 -0
- data/vendor/assets/images/emojis/question.png +0 -0
- data/vendor/assets/images/emojis/rabbit.png +0 -0
- data/vendor/assets/images/emojis/racehorse.png +0 -0
- data/vendor/assets/images/emojis/radio.png +0 -0
- data/vendor/assets/images/emojis/rage.png +0 -0
- data/vendor/assets/images/emojis/rage1.png +0 -0
- data/vendor/assets/images/emojis/rage2.png +0 -0
- data/vendor/assets/images/emojis/rage3.png +0 -0
- data/vendor/assets/images/emojis/rage4.png +0 -0
- data/vendor/assets/images/emojis/rainbow.png +0 -0
- data/vendor/assets/images/emojis/raised_hands.png +0 -0
- data/vendor/assets/images/emojis/ramen.png +0 -0
- data/vendor/assets/images/emojis/red_car.png +0 -0
- data/vendor/assets/images/emojis/red_circle.png +0 -0
- data/vendor/assets/images/emojis/registered.png +0 -0
- data/vendor/assets/images/emojis/relaxed.png +0 -0
- data/vendor/assets/images/emojis/relieved.png +0 -0
- data/vendor/assets/images/emojis/restroom.png +0 -0
- data/vendor/assets/images/emojis/rewind.png +0 -0
- data/vendor/assets/images/emojis/ribbon.png +0 -0
- data/vendor/assets/images/emojis/rice.png +0 -0
- data/vendor/assets/images/emojis/rice_ball.png +0 -0
- data/vendor/assets/images/emojis/rice_cracker.png +0 -0
- data/vendor/assets/images/emojis/rice_scene.png +0 -0
- data/vendor/assets/images/emojis/ring.png +0 -0
- data/vendor/assets/images/emojis/rocket.png +0 -0
- data/vendor/assets/images/emojis/roller_coaster.png +0 -0
- data/vendor/assets/images/emojis/rose.png +0 -0
- data/vendor/assets/images/emojis/ru.png +0 -0
- data/vendor/assets/images/emojis/runner.png +0 -0
- data/vendor/assets/images/emojis/sa.png +0 -0
- data/vendor/assets/images/emojis/sagittarius.png +0 -0
- data/vendor/assets/images/emojis/sailboat.png +0 -0
- data/vendor/assets/images/emojis/sake.png +0 -0
- data/vendor/assets/images/emojis/sandal.png +0 -0
- data/vendor/assets/images/emojis/santa.png +0 -0
- data/vendor/assets/images/emojis/satellite.png +0 -0
- data/vendor/assets/images/emojis/satisfied.png +0 -0
- data/vendor/assets/images/emojis/saxophone.png +0 -0
- data/vendor/assets/images/emojis/school.png +0 -0
- data/vendor/assets/images/emojis/school_satchel.png +0 -0
- data/vendor/assets/images/emojis/scissors.png +0 -0
- data/vendor/assets/images/emojis/scorpius.png +0 -0
- data/vendor/assets/images/emojis/scream.png +0 -0
- data/vendor/assets/images/emojis/seat.png +0 -0
- data/vendor/assets/images/emojis/secret.png +0 -0
- data/vendor/assets/images/emojis/shaved_ice.png +0 -0
- data/vendor/assets/images/emojis/sheep.png +0 -0
- data/vendor/assets/images/emojis/shell.png +0 -0
- data/vendor/assets/images/emojis/ship.png +0 -0
- data/vendor/assets/images/emojis/shipit.png +0 -0
- data/vendor/assets/images/emojis/shirt.png +0 -0
- data/vendor/assets/images/emojis/shit.png +0 -0
- data/vendor/assets/images/emojis/shoe.png +0 -0
- data/vendor/assets/images/emojis/signal_strength.png +0 -0
- data/vendor/assets/images/emojis/six_pointed_star.png +0 -0
- data/vendor/assets/images/emojis/ski.png +0 -0
- data/vendor/assets/images/emojis/skull.png +0 -0
- data/vendor/assets/images/emojis/sleepy.png +0 -0
- data/vendor/assets/images/emojis/slot_machine.png +0 -0
- data/vendor/assets/images/emojis/smile.png +0 -0
- data/vendor/assets/images/emojis/smiley.png +0 -0
- data/vendor/assets/images/emojis/smirk.png +0 -0
- data/vendor/assets/images/emojis/smoking.png +0 -0
- data/vendor/assets/images/emojis/snake.png +0 -0
- data/vendor/assets/images/emojis/snowman.png +0 -0
- data/vendor/assets/images/emojis/sob.png +0 -0
- data/vendor/assets/images/emojis/soccer.png +0 -0
- data/vendor/assets/images/emojis/space_invader.png +0 -0
- data/vendor/assets/images/emojis/spades.png +0 -0
- data/vendor/assets/images/emojis/spaghetti.png +0 -0
- data/vendor/assets/images/emojis/sparkler.png +0 -0
- data/vendor/assets/images/emojis/sparkles.png +0 -0
- data/vendor/assets/images/emojis/speaker.png +0 -0
- data/vendor/assets/images/emojis/speedboat.png +0 -0
- data/vendor/assets/images/emojis/squirrel.png +0 -0
- data/vendor/assets/images/emojis/star.png +0 -0
- data/vendor/assets/images/emojis/star2.png +0 -0
- data/vendor/assets/images/emojis/stars.png +0 -0
- data/vendor/assets/images/emojis/station.png +0 -0
- data/vendor/assets/images/emojis/statue_of_liberty.png +0 -0
- data/vendor/assets/images/emojis/stew.png +0 -0
- data/vendor/assets/images/emojis/strawberry.png +0 -0
- data/vendor/assets/images/emojis/sunflower.png +0 -0
- data/vendor/assets/images/emojis/sunny.png +0 -0
- data/vendor/assets/images/emojis/sunrise.png +0 -0
- data/vendor/assets/images/emojis/sunrise_over_mountains.png +0 -0
- data/vendor/assets/images/emojis/surfer.png +0 -0
- data/vendor/assets/images/emojis/sushi.png +0 -0
- data/vendor/assets/images/emojis/suspect.png +0 -0
- data/vendor/assets/images/emojis/sweat.png +0 -0
- data/vendor/assets/images/emojis/sweat_drops.png +0 -0
- data/vendor/assets/images/emojis/swimmer.png +0 -0
- data/vendor/assets/images/emojis/syringe.png +0 -0
- data/vendor/assets/images/emojis/tada.png +0 -0
- data/vendor/assets/images/emojis/tangerine.png +0 -0
- data/vendor/assets/images/emojis/taurus.png +0 -0
- data/vendor/assets/images/emojis/taxi.png +0 -0
- data/vendor/assets/images/emojis/tea.png +0 -0
- data/vendor/assets/images/emojis/telephone.png +0 -0
- data/vendor/assets/images/emojis/tennis.png +0 -0
- data/vendor/assets/images/emojis/tent.png +0 -0
- data/vendor/assets/images/emojis/thumbsdown.png +0 -0
- data/vendor/assets/images/emojis/thumbsup.png +0 -0
- data/vendor/assets/images/emojis/ticket.png +0 -0
- data/vendor/assets/images/emojis/tiger.png +0 -0
- data/vendor/assets/images/emojis/tm.png +0 -0
- data/vendor/assets/images/emojis/toilet.png +0 -0
- data/vendor/assets/images/emojis/tokyo_tower.png +0 -0
- data/vendor/assets/images/emojis/tomato.png +0 -0
- data/vendor/assets/images/emojis/tongue.png +0 -0
- data/vendor/assets/images/emojis/top.png +0 -0
- data/vendor/assets/images/emojis/tophat.png +0 -0
- data/vendor/assets/images/emojis/traffic_light.png +0 -0
- data/vendor/assets/images/emojis/train.png +0 -0
- data/vendor/assets/images/emojis/trident.png +0 -0
- data/vendor/assets/images/emojis/trollface.png +0 -0
- data/vendor/assets/images/emojis/trophy.png +0 -0
- data/vendor/assets/images/emojis/tropical_fish.png +0 -0
- data/vendor/assets/images/emojis/truck.png +0 -0
- data/vendor/assets/images/emojis/trumpet.png +0 -0
- data/vendor/assets/images/emojis/tshirt.png +0 -0
- data/vendor/assets/images/emojis/tulip.png +0 -0
- data/vendor/assets/images/emojis/tv.png +0 -0
- data/vendor/assets/images/emojis/u5272.png +0 -0
- data/vendor/assets/images/emojis/u55b6.png +0 -0
- data/vendor/assets/images/emojis/u6307.png +0 -0
- data/vendor/assets/images/emojis/u6708.png +0 -0
- data/vendor/assets/images/emojis/u6709.png +0 -0
- data/vendor/assets/images/emojis/u6e80.png +0 -0
- data/vendor/assets/images/emojis/u7121.png +0 -0
- data/vendor/assets/images/emojis/u7533.png +0 -0
- data/vendor/assets/images/emojis/u7a7a.png +0 -0
- data/vendor/assets/images/emojis/umbrella.png +0 -0
- data/vendor/assets/images/emojis/unamused.png +0 -0
- data/vendor/assets/images/emojis/underage.png +0 -0
- data/vendor/assets/images/emojis/unlock.png +0 -0
- data/vendor/assets/images/emojis/up.png +0 -0
- data/vendor/assets/images/emojis/us.png +0 -0
- data/vendor/assets/images/emojis/v.png +0 -0
- data/vendor/assets/images/emojis/vhs.png +0 -0
- data/vendor/assets/images/emojis/vibration_mode.png +0 -0
- data/vendor/assets/images/emojis/virgo.png +0 -0
- data/vendor/assets/images/emojis/vs.png +0 -0
- data/vendor/assets/images/emojis/walking.png +0 -0
- data/vendor/assets/images/emojis/warning.png +0 -0
- data/vendor/assets/images/emojis/watermelon.png +0 -0
- data/vendor/assets/images/emojis/wave.png +0 -0
- data/vendor/assets/images/emojis/wc.png +0 -0
- data/vendor/assets/images/emojis/wedding.png +0 -0
- data/vendor/assets/images/emojis/whale.png +0 -0
- data/vendor/assets/images/emojis/wheelchair.png +0 -0
- data/vendor/assets/images/emojis/white_square.png +0 -0
- data/vendor/assets/images/emojis/wind_chime.png +0 -0
- data/vendor/assets/images/emojis/wink.png +0 -0
- data/vendor/assets/images/emojis/wink2.png +0 -0
- data/vendor/assets/images/emojis/wolf.png +0 -0
- data/vendor/assets/images/emojis/woman.png +0 -0
- data/vendor/assets/images/emojis/womans_hat.png +0 -0
- data/vendor/assets/images/emojis/womens.png +0 -0
- data/vendor/assets/images/emojis/x.png +0 -0
- data/vendor/assets/images/emojis/yellow_heart.png +0 -0
- data/vendor/assets/images/emojis/zap.png +0 -0
- data/vendor/assets/images/emojis/zzz.png +0 -0
- metadata +635 -0
data/LICENSE
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
Copyright (c) 2011 Jordan Byron
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4
|
+
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
6
|
+
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.markdown
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
# Markdown Emoji for Rails
|
2
|
+
|
3
|
+
Want to include [emoji](http://www.emoji-cheat-sheet.com/) in your rails app? Well now you can!
|
4
|
+
|
5
|
+
:balloon: :smile: :balloon:
|
6
|
+
|
7
|
+
This plugin requires `redcarpet` and `rails` >= 3.1 with the asset pipeline enabled.
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
Add the following line to your Gemfile
|
12
|
+
|
13
|
+
```
|
14
|
+
gem 'md_emoji'
|
15
|
+
```
|
16
|
+
|
17
|
+
## Using
|
18
|
+
|
19
|
+
When creating a new markdown renderer, just use `MdEmoji::Render`
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
markdown = Redcarpet::Markdown.new(MdEmoji::Render)
|
23
|
+
|
24
|
+
markdown.render("Hello :smile: world!")
|
25
|
+
```
|
26
|
+
|
27
|
+
## Contributing
|
28
|
+
|
29
|
+
Features and bugs are tracked through [Github Issues](https://github.com/mendicant-university/md_emoji/issues).
|
30
|
+
|
31
|
+
Contributors retain copyright to their work but must agree to release their
|
32
|
+
contributions under the same terms as this project. For details, please see the LICENSE file.
|
33
|
+
|
34
|
+
If you would like to help with developing MD Emoji, please get in touch!
|
35
|
+
Contact Jordan through [GitHub (@jordanbyron)](https://github.com/jordanbyron) or [Twitter (@jordan_byron)](http://twitter.com/jordan_byron)
|
36
|
+
|
37
|
+
### Submitting a Pull Request
|
38
|
+
|
39
|
+
1. If a ticket doesn't exist for your bug or feature, create one on GitHub.
|
40
|
+
- **NOTE:** Don't be afraid to get feedback on your idea before you begin development work. In fact it is encouraged.
|
41
|
+
2. Fork the project.
|
42
|
+
3. Create a topic branch.
|
43
|
+
4. Implement your feature or bug fix.
|
44
|
+
5. Add documentation for your feature or bug fix.
|
45
|
+
6. Add tests for your feature or bug fix.
|
46
|
+
7. Run `rake test`. If your changes are not 100% covered, go back to step 6.
|
47
|
+
8. If your change affects something in this README, please update it
|
48
|
+
9. Commit and push your changes.
|
49
|
+
10. Submit a pull request.
|
50
|
+
|
51
|
+
## License
|
52
|
+
|
53
|
+
Copyright (c) 2011 Jordan Byron
|
54
|
+
|
55
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
56
|
+
|
57
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
58
|
+
|
59
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
60
|
+
|
61
|
+
---
|
62
|
+
|
63
|
+
MD Emoji - a [Mendicant University](http://mendicantuniversity.org) project
|
data/Rakefile
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
begin
|
3
|
+
require 'bundler/setup'
|
4
|
+
rescue LoadError
|
5
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
6
|
+
end
|
7
|
+
begin
|
8
|
+
require 'rdoc/task'
|
9
|
+
rescue LoadError
|
10
|
+
require 'rdoc/rdoc'
|
11
|
+
require 'rake/rdoctask'
|
12
|
+
RDoc::Task = Rake::RDocTask
|
13
|
+
end
|
14
|
+
|
15
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
16
|
+
rdoc.rdoc_dir = 'rdoc'
|
17
|
+
rdoc.title = 'MdEmoji'
|
18
|
+
rdoc.options << '--line-numbers'
|
19
|
+
rdoc.rdoc_files.include('README.markdown')
|
20
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
21
|
+
end
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
Bundler::GemHelper.install_tasks
|
26
|
+
|
27
|
+
require 'rake/testtask'
|
28
|
+
|
29
|
+
Rake::TestTask.new(:test) do |t|
|
30
|
+
t.libs << 'lib'
|
31
|
+
t.libs << 'test'
|
32
|
+
t.pattern = 'test/**/*_test.rb'
|
33
|
+
t.verbose = false
|
34
|
+
end
|
35
|
+
|
36
|
+
|
37
|
+
task :default => :test
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module MdEmoji
|
2
|
+
class Render < Redcarpet::Render::HTML
|
3
|
+
def normal_text(text)
|
4
|
+
return if text.nil?
|
5
|
+
|
6
|
+
text.gsub(/:(\S+):/) do |emoji|
|
7
|
+
if MdEmoji::EMOJI.include?($1)
|
8
|
+
file_name = "#{$1.gsub('+', 'plus')}.png"
|
9
|
+
default_size = %{height="20" width="20"}
|
10
|
+
|
11
|
+
%{<img src="/assets/emojis/#{file_name}" class="emoji" } +
|
12
|
+
%{title="#{emoji}" alt="#{emoji} #{default_size}">}
|
13
|
+
else
|
14
|
+
emoji
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/lib/md_emoji.rb
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
require 'redcarpet'
|
2
|
+
|
3
|
+
require 'md_emoji/engine'
|
4
|
+
require 'md_emoji/render'
|
5
|
+
require 'md_emoji/version'
|
6
|
+
|
7
|
+
module MdEmoji
|
8
|
+
EMOJI = %w{-1 0 1 109 2 3 4 5 6 7 8 8ball 9 a ab airplane alien ambulance
|
9
|
+
angel anger angry apple aquarius aries arrow_backward arrow_down arrow_forward
|
10
|
+
arrow_left arrow_lower_left arrow_lower_right arrow_right arrow_up
|
11
|
+
arrow_upper_left arrow_upper_right art astonished atm b baby baby_chick
|
12
|
+
baby_symbol balloon bamboo bank barber baseball basketball bath bear beer
|
13
|
+
beers beginner bell bento bike bikini bird birthday black_square blue_car
|
14
|
+
blue_heart blush boar boat bomb book boot bouquet bow bowtie boy bread
|
15
|
+
briefcase broken_heart bug bulb bullettrain_front bullettrain_side bus busstop
|
16
|
+
cactus cake calling camel camera cancer capricorn car cat cd chart
|
17
|
+
checkered_flag cherry_blossom chicken christmas_tree church cinema
|
18
|
+
city_sunrise city_sunset clap clapper clock1 clock10 clock11 clock12 clock2
|
19
|
+
clock3 clock4 clock5 clock6 clock7 clock8 clock9 closed_umbrella cloud clubs
|
20
|
+
cn cocktail coffee cold_sweat computer confounded congratulations construction
|
21
|
+
construction_worker convenience_store cool cop copyright couple couple_with_heart
|
22
|
+
couplekiss cow crossed_flags crown cry cupid currency_exchange curry cyclone
|
23
|
+
dancer dancers dango dart dash de department_store diamonds disappointed dog
|
24
|
+
dolls dolphin dress dvd ear ear_of_rice egg eggplant egplant
|
25
|
+
eight_pointed_black_star eight_spoked_asterisk elephant email es
|
26
|
+
european_castle exclamation eyes factory fallen_leaf fast_forward fax fearful
|
27
|
+
feelsgood feet ferris_wheel finnadie fire fire_engine fireworks fish fist flags
|
28
|
+
flushed football fork_and_knife fountain four_leaf_clover fr fries frog fuelpump
|
29
|
+
gb gem gemini ghost gift gift_heart girl goberserk godmode golf green_heart
|
30
|
+
grey_exclamation grey_question grin guardsman guitar gun haircut hamburger
|
31
|
+
hammer hamster hand handbag hankey hash headphones heart heart_decoration
|
32
|
+
heart_eyes heartbeat heartpulse hearts hibiscus high_heel horse hospital hotel
|
33
|
+
hotsprings house hurtrealbad icecream id ideograph_advantage imp
|
34
|
+
information_desk_person iphone it jack_o_lantern japanese_castle joy jp key
|
35
|
+
kimono kiss kissing_face kissing_heart koala koko kr leaves leo libra lips
|
36
|
+
lipstick lock loop loudspeaker love_hotel mag mahjong mailbox man
|
37
|
+
man_with_gua_pi_mao man_with_turban maple_leaf mask massage mega memo mens
|
38
|
+
metal metro microphone minidisc mobile_phone_off moneybag monkey monkey_face
|
39
|
+
moon mortar_board mount_fuji mouse movie_camera muscle musical_note nail_care
|
40
|
+
necktie new no_good no_smoking nose notes o o2 ocean octocat octopus oden
|
41
|
+
office ok ok_hand ok_woman older_man older_woman open_hands ophiuchus palm_tree
|
42
|
+
parking part_alternation_mark pencil penguin pensive persevere
|
43
|
+
person_with_blond_hair phone pig pill pisces +1 point_down point_left
|
44
|
+
point_right point_up point_up_2 police_car poop post_office postbox pray
|
45
|
+
princess punch purple_heart question rabbit racehorse radio rage rage1 rage2
|
46
|
+
rage3 rage4 rainbow raised_hands ramen red_car red_circle registered relaxed
|
47
|
+
relieved restroom rewind ribbon rice rice_ball rice_cracker rice_scene ring
|
48
|
+
rocket roller_coaster rose ru runner sa sagittarius sailboat sake sandal santa
|
49
|
+
satellite satisfied saxophone school school_satchel scissors scorpius scream
|
50
|
+
seat secret shaved_ice sheep shell ship shipit shirt shit shoe signal_strength
|
51
|
+
six_pointed_star ski skull sleepy slot_machine smile smiley smirk smoking snake
|
52
|
+
snowman sob soccer space_invader spades spaghetti sparkler sparkles speaker
|
53
|
+
speedboat squirrel star star2 stars station statue_of_liberty stew strawberry
|
54
|
+
sunflower sunny sunrise sunrise_over_mountains surfer sushi suspect sweat
|
55
|
+
sweat_drops swimmer syringe tada tangerine taurus taxi tea telephone tennis
|
56
|
+
tent thumbsdown thumbsup ticket tiger tm toilet tokyo_tower tomato tongue top
|
57
|
+
tophat traffic_light train trident trollface trophy tropical_fish truck trumpet
|
58
|
+
tshirt tulip tv u5272 u55b6 u6307 u6708 u6709 u6e80 u7121 u7533 u7a7a umbrella
|
59
|
+
unamused underage unlock up us v vhs vibration_mode virgo vs walking warning
|
60
|
+
watermelon wave wc wedding whale wheelchair white_square wind_chime wink wink2
|
61
|
+
wolf woman womans_hat womens x yellow_heart zap zzz}
|
62
|
+
end
|
data/test/dummy/Rakefile
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
3
|
+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
4
|
+
|
5
|
+
require File.expand_path('../config/application', __FILE__)
|
6
|
+
|
7
|
+
Dummy::Application.load_tasks
|
@@ -0,0 +1,9 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into including all the files listed below.
|
2
|
+
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
|
3
|
+
// be included in the compiled file accessible from http://example.com/assets/application.js
|
4
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
5
|
+
// the compiled file.
|
6
|
+
//
|
7
|
+
//= require jquery
|
8
|
+
//= require jquery_ujs
|
9
|
+
//= require_tree .
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll automatically include all the stylesheets available in this directory
|
3
|
+
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
|
4
|
+
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
5
|
+
*= require_self
|
6
|
+
*= require_tree .
|
7
|
+
*/
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
require "action_controller/railtie"
|
4
|
+
require "action_mailer/railtie"
|
5
|
+
require "active_resource/railtie"
|
6
|
+
require "rails/test_unit/railtie"
|
7
|
+
|
8
|
+
Bundler.require
|
9
|
+
require "md_emoji"
|
10
|
+
|
11
|
+
module Dummy
|
12
|
+
class Application < Rails::Application
|
13
|
+
# Settings in config/environments/* take precedence over those specified here.
|
14
|
+
# Application configuration should go into files in config/initializers
|
15
|
+
# -- all .rb files in that directory are automatically loaded.
|
16
|
+
|
17
|
+
# Custom directories with classes and modules you want to be autoloadable.
|
18
|
+
# config.autoload_paths += %W(#{config.root}/extras)
|
19
|
+
|
20
|
+
# Only load the plugins named here, in the order given (default is alphabetical).
|
21
|
+
# :all can be used as a placeholder for all plugins not explicitly named.
|
22
|
+
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
23
|
+
|
24
|
+
# Activate observers that should always be running.
|
25
|
+
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
26
|
+
|
27
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
28
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
29
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
30
|
+
|
31
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
32
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
33
|
+
# config.i18n.default_locale = :de
|
34
|
+
|
35
|
+
# Configure the default encoding used in templates for Ruby 1.9.
|
36
|
+
config.encoding = "utf-8"
|
37
|
+
|
38
|
+
# Configure sensitive parameters which will be filtered from the log file.
|
39
|
+
config.filter_parameters += [:password]
|
40
|
+
|
41
|
+
# Enable the asset pipeline
|
42
|
+
config.assets.enabled = true
|
43
|
+
|
44
|
+
# Version of your assets, change this if you want to expire all your assets
|
45
|
+
config.assets.version = '1.0'
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# In the development environment your application's code is reloaded on
|
5
|
+
# every request. This slows down response time but is perfect for development
|
6
|
+
# since you don't have to restart the web server when you make code changes.
|
7
|
+
config.cache_classes = false
|
8
|
+
|
9
|
+
# Log error messages when you accidentally call methods on nil.
|
10
|
+
config.whiny_nils = true
|
11
|
+
|
12
|
+
# Show full error reports and disable caching
|
13
|
+
config.consider_all_requests_local = true
|
14
|
+
config.action_controller.perform_caching = false
|
15
|
+
|
16
|
+
# Don't care if the mailer can't send
|
17
|
+
config.action_mailer.raise_delivery_errors = false
|
18
|
+
|
19
|
+
# Print deprecation notices to the Rails logger
|
20
|
+
config.active_support.deprecation = :log
|
21
|
+
|
22
|
+
# Only use best-standards-support built into browsers
|
23
|
+
config.action_dispatch.best_standards_support = :builtin
|
24
|
+
|
25
|
+
# Do not compress assets
|
26
|
+
config.assets.compress = false
|
27
|
+
|
28
|
+
# Expands the lines which load the assets
|
29
|
+
config.assets.debug = true
|
30
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# Code is not reloaded between requests
|
5
|
+
config.cache_classes = true
|
6
|
+
|
7
|
+
# Full error reports are disabled and caching is turned on
|
8
|
+
config.consider_all_requests_local = false
|
9
|
+
config.action_controller.perform_caching = true
|
10
|
+
|
11
|
+
# Disable Rails's static asset server (Apache or nginx will already do this)
|
12
|
+
config.serve_static_assets = false
|
13
|
+
|
14
|
+
# Compress JavaScripts and CSS
|
15
|
+
config.assets.compress = true
|
16
|
+
|
17
|
+
# Don't fallback to assets pipeline if a precompiled asset is missed
|
18
|
+
config.assets.compile = false
|
19
|
+
|
20
|
+
# Generate digests for assets URLs
|
21
|
+
config.assets.digest = true
|
22
|
+
|
23
|
+
# Defaults to Rails.root.join("public/assets")
|
24
|
+
# config.assets.manifest = YOUR_PATH
|
25
|
+
|
26
|
+
# Specifies the header that your server uses for sending files
|
27
|
+
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
28
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
29
|
+
|
30
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
31
|
+
# config.force_ssl = true
|
32
|
+
|
33
|
+
# See everything in the log (default is :info)
|
34
|
+
# config.log_level = :debug
|
35
|
+
|
36
|
+
# Use a different logger for distributed setups
|
37
|
+
# config.logger = SyslogLogger.new
|
38
|
+
|
39
|
+
# Use a different cache store in production
|
40
|
+
# config.cache_store = :mem_cache_store
|
41
|
+
|
42
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server
|
43
|
+
# config.action_controller.asset_host = "http://assets.example.com"
|
44
|
+
|
45
|
+
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
|
46
|
+
# config.assets.precompile += %w( search.js )
|
47
|
+
|
48
|
+
# Disable delivery errors, bad email addresses will be ignored
|
49
|
+
# config.action_mailer.raise_delivery_errors = false
|
50
|
+
|
51
|
+
# Enable threaded mode
|
52
|
+
# config.threadsafe!
|
53
|
+
|
54
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
55
|
+
# the I18n.default_locale when a translation can not be found)
|
56
|
+
config.i18n.fallbacks = true
|
57
|
+
|
58
|
+
# Send deprecation notices to registered listeners
|
59
|
+
config.active_support.deprecation = :notify
|
60
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Configure static asset server for tests with Cache-Control for performance
|
11
|
+
config.serve_static_assets = true
|
12
|
+
config.static_cache_control = "public, max-age=3600"
|
13
|
+
|
14
|
+
# Log error messages when you accidentally call methods on nil
|
15
|
+
config.whiny_nils = true
|
16
|
+
|
17
|
+
# Show full error reports and disable caching
|
18
|
+
config.consider_all_requests_local = true
|
19
|
+
config.action_controller.perform_caching = false
|
20
|
+
|
21
|
+
# Raise exceptions instead of rendering exception templates
|
22
|
+
config.action_dispatch.show_exceptions = false
|
23
|
+
|
24
|
+
# Disable request forgery protection in test environment
|
25
|
+
config.action_controller.allow_forgery_protection = false
|
26
|
+
|
27
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
28
|
+
# The :test delivery method accumulates sent emails in the
|
29
|
+
# ActionMailer::Base.deliveries array.
|
30
|
+
config.action_mailer.delivery_method = :test
|
31
|
+
|
32
|
+
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
33
|
+
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
34
|
+
# like if you have constraints or database-specific column types
|
35
|
+
# config.active_record.schema_format = :sql
|
36
|
+
|
37
|
+
# Print deprecation notices to the stderr
|
38
|
+
config.active_support.deprecation = :stderr
|
39
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format
|
4
|
+
# (all these examples are active by default):
|
5
|
+
# ActiveSupport::Inflector.inflections do |inflect|
|
6
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
7
|
+
# inflect.singular /^(ox)en/i, '\1'
|
8
|
+
# inflect.irregular 'person', 'people'
|
9
|
+
# inflect.uncountable %w( fish sheep )
|
10
|
+
# end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
# Make sure the secret is at least 30 characters and all random,
|
6
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
+
Dummy::Application.config.secret_token = '62144f4383a5db92f78ce75b3808381891fc15d42c6d66b68ad74949a988159a6b69afeb6c0f5d4c0e0aaf97ce77d2f980fee6785e0dd0fd8df9d31272ea147f'
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
|
4
|
+
|
5
|
+
# Use the database for sessions instead of the cookie-based default,
|
6
|
+
# which shouldn't be used to store highly confidential information
|
7
|
+
# (create the session table with "rails generate session_migration")
|
8
|
+
# Dummy::Application.config.session_store :active_record_store
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
#
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json]
|
9
|
+
end
|
10
|
+
|
11
|
+
# Disable root element in JSON by default.
|
12
|
+
ActiveSupport.on_load(:active_record) do
|
13
|
+
self.include_root_in_json = false
|
14
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
Dummy::Application.routes.draw do
|
2
|
+
# The priority is based upon order of creation:
|
3
|
+
# first created -> highest priority.
|
4
|
+
|
5
|
+
# Sample of regular route:
|
6
|
+
# match 'products/:id' => 'catalog#view'
|
7
|
+
# Keep in mind you can assign values other than :controller and :action
|
8
|
+
|
9
|
+
# Sample of named route:
|
10
|
+
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
|
11
|
+
# This route can be invoked with purchase_url(:id => product.id)
|
12
|
+
|
13
|
+
# Sample resource route (maps HTTP verbs to controller actions automatically):
|
14
|
+
# resources :products
|
15
|
+
|
16
|
+
# Sample resource route with options:
|
17
|
+
# resources :products do
|
18
|
+
# member do
|
19
|
+
# get 'short'
|
20
|
+
# post 'toggle'
|
21
|
+
# end
|
22
|
+
#
|
23
|
+
# collection do
|
24
|
+
# get 'sold'
|
25
|
+
# end
|
26
|
+
# end
|
27
|
+
|
28
|
+
# Sample resource route with sub-resources:
|
29
|
+
# resources :products do
|
30
|
+
# resources :comments, :sales
|
31
|
+
# resource :seller
|
32
|
+
# end
|
33
|
+
|
34
|
+
# Sample resource route with more complex sub-resources
|
35
|
+
# resources :products do
|
36
|
+
# resources :comments
|
37
|
+
# resources :sales do
|
38
|
+
# get 'recent', :on => :collection
|
39
|
+
# end
|
40
|
+
# end
|
41
|
+
|
42
|
+
# Sample resource route within a namespace:
|
43
|
+
# namespace :admin do
|
44
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
45
|
+
# # (app/controllers/admin/products_controller.rb)
|
46
|
+
# resources :products
|
47
|
+
# end
|
48
|
+
|
49
|
+
# You can have the root of your site routed with "root"
|
50
|
+
# just remember to delete public/index.html.
|
51
|
+
# root :to => 'welcome#index'
|
52
|
+
|
53
|
+
# See how all your routes lay out with "rake routes"
|
54
|
+
|
55
|
+
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
56
|
+
# Note: This route will make all actions in every controller accessible via GET requests.
|
57
|
+
# match ':controller(/:action(/:id(.:format)))'
|
58
|
+
end
|
File without changes
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|