active_emoji 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b737bc7a2f255a76e75827788ad24e163726941c
4
+ data.tar.gz: 04b9947cec46770c78714da421b8887ab94b10f7
5
+ SHA512:
6
+ metadata.gz: 6eccd7d463c4bf8e33fc294ff22d359d37f2b78f252e097d09f31f2bb72c58e86b891ed01aa07210b406abc19c8ddd01aa5c1cb83ec7e345981769f3748000fb
7
+ data.tar.gz: 0216293aea5501a07434d6194426bb0412c20a48ad7d404515065cac3484a9645ea5acb6647e297686980d546f11bb44261cff58a53916aa7acc7078d60d2de4
data/.gitignore ADDED
@@ -0,0 +1,10 @@
1
+ *.a
2
+ *.bundle
3
+ *.o
4
+ *.so
5
+ /.bundle/
6
+ /Gemfile.lock
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ mkmf.log
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in active_emoji.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Erik Michaels-Ober
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,20 @@
1
+ # ActiveEmoji
2
+
3
+ A collection of emoji alias for core Ruby methods. Makes Ruby code easier to
4
+ read and write, especially for children and people who don't know English.
5
+
6
+ This project is named with the goal of eventually being merged into Ruby on
7
+ Rails. [Stranger things have happened.][forty_two]
8
+
9
+ [forty_two]: https://github.com/rails/rails/commit/e50530ca3ab5db53ebc74314c54b62b91b932389
10
+
11
+ Here's a peek at some of the code under the hood:
12
+
13
+ ![Code](https://raw.githubusercontent.com/sferik/active_emoji/master/code.png)
14
+
15
+ With these aliases, you can write your Ruby code like this:
16
+
17
+ ![Example](https://raw.githubusercontent.com/sferik/active_emoji/master/example.png)
18
+
19
+ Please open a pull request if you have ideas for more aliases. The only rule is
20
+ that commit messages must be written in emoji.
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,21 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'active_emoji/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "active_emoji"
8
+ spec.version = ActiveEmoji::VERSION
9
+ spec.authors = ["Erik Michaels-Ober"]
10
+ spec.email = ["sferik@gmail.com"]
11
+ spec.summary = %q{A collection of emoji alias for core Ruby methods}
12
+ spec.description = %q{A collection of emoji alias for core Ruby methods. Makes Ruby code easier to read and write, especially for children and people who don't know English.}
13
+ spec.homepage = "https://github.com/sferik/active_emoji"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.require_paths = ["lib"]
18
+
19
+ spec.add_development_dependency "bundler", "~> 1.7"
20
+ spec.add_development_dependency "rake", "~> 10.0"
21
+ end
data/code.png ADDED
Binary file
data/example.png ADDED
Binary file
@@ -0,0 +1,3 @@
1
+ Dir[File.dirname(__FILE__) + '/active_emoji/core_ext/*.rb'].each do |file|
2
+ require file
3
+ end
@@ -0,0 +1,5 @@
1
+ class Array
2
+ alias ๐Ÿ” each
3
+ alias ๐Ÿ€ sample
4
+ alias ๐ŸŽฐ shuffle
5
+ end
@@ -0,0 +1,5 @@
1
+ class BasicObject
2
+ class << self
3
+ alias ๐Ÿ†• new
4
+ end
5
+ end
@@ -0,0 +1,7 @@
1
+ class Bignum
2
+ alias โœ–๏ธ *
3
+ alias โœ–๏ธโœ–๏ธ **
4
+ alias โž• +
5
+ alias โž– -
6
+ alias โž— /
7
+ end
@@ -0,0 +1 @@
1
+ ๐Ÿ“… = Date
@@ -0,0 +1 @@
1
+ ๐Ÿ“ = Dir
@@ -0,0 +1,10 @@
1
+ module Enumerable
2
+ alias ๐Ÿ”ข count
3
+ alias ๐Ÿšฒ cycle
4
+ alias ๐Ÿ”๐Ÿ• each_slice
5
+ alias ๐Ÿ”Ž find
6
+ alias ๐Ÿ’‰ inject
7
+ alias ๐Ÿ˜ด lazy
8
+ alias ๐Ÿ”„ reverse_each
9
+ alias โœŠ take
10
+ end
@@ -0,0 +1,5 @@
1
+ class File
2
+ class << self
3
+ alias ๐Ÿ“โ“ directory?
4
+ end
5
+ end
@@ -0,0 +1,7 @@
1
+ class Fixnum
2
+ alias โœ–๏ธ *
3
+ alias โœ–๏ธโœ–๏ธ **
4
+ alias โž• +
5
+ alias โž– -
6
+ alias โž— /
7
+ end
@@ -0,0 +1,7 @@
1
+ class Float
2
+ alias โœ–๏ธ *
3
+ alias โœ–๏ธโœ–๏ธ **
4
+ alias โž• +
5
+ alias โž– -
6
+ alias โž— /
7
+ end
@@ -0,0 +1,4 @@
1
+ class Hash
2
+ alias ๐Ÿ”‘ key
3
+ alias ๐Ÿ” each
4
+ end
@@ -0,0 +1,5 @@
1
+ class Integer
2
+ alias โ–ถ๏ธ next
3
+ alias โ—€๏ธ pred
4
+ alias โŒ times
5
+ end
@@ -0,0 +1,3 @@
1
+ class IO
2
+ alias ๐Ÿšฝ flush
3
+ end
@@ -0,0 +1,10 @@
1
+ module Kernel
2
+ alias ๐Ÿ“Ž binding
3
+ alias ๐Ÿ” loop
4
+ alias ๐Ÿ“  print
5
+ alias ๐ŸŽฐ rand
6
+ alias ๐Ÿ’ค sleep
7
+ alias ๐Ÿ’ป system
8
+ alias โš ๏ธ warn
9
+ def ๐Ÿ”Ÿ; 10 end
10
+ end
@@ -0,0 +1,7 @@
1
+ class Object
2
+ alias โ›„๏ธโ“ frozen?
3
+ alias โ„๏ธ freeze
4
+ alias :"#๏ธโƒฃ" hash
5
+ alias ๐Ÿ”ฌ inspect
6
+ alias ๐Ÿ†” object_id
7
+ end
@@ -0,0 +1,11 @@
1
+ class String
2
+ alias โœ–๏ธ *
3
+ alias โž• +
4
+ alias ๐Ÿ”ช chop
5
+ alias ๐Ÿ”ชโ—๏ธ chop!
6
+ alias ๐Ÿ”ก downcase
7
+ alias ๐Ÿ”กโ—๏ธ downcase!
8
+ alias ๐ŸŒ split
9
+ alias ๐Ÿ”  upcase
10
+ alias ๐Ÿ” โ—๏ธ upcase!
11
+ end
@@ -0,0 +1 @@
1
+ ๐Ÿ› = Thread
@@ -0,0 +1 @@
1
+ โŒš๏ธ = Time
@@ -0,0 +1,3 @@
1
+ module ActiveEmoji
2
+ VERSION = "0.0.1"
3
+ end
metadata ADDED
@@ -0,0 +1,101 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: active_emoji
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Erik Michaels-Ober
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-12-12 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.7'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.7'
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
+ description: A collection of emoji alias for core Ruby methods. Makes Ruby code easier
42
+ to read and write, especially for children and people who don't know English.
43
+ email:
44
+ - sferik@gmail.com
45
+ executables: []
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - ".gitignore"
50
+ - Gemfile
51
+ - LICENSE.txt
52
+ - README.md
53
+ - Rakefile
54
+ - active_emoji.gemspec
55
+ - code.png
56
+ - example.png
57
+ - lib/active_emoji.rb
58
+ - lib/active_emoji/core_ext/array.rb
59
+ - lib/active_emoji/core_ext/basic_object.rb
60
+ - lib/active_emoji/core_ext/bignum.rb
61
+ - lib/active_emoji/core_ext/date.rb
62
+ - lib/active_emoji/core_ext/dir.rb
63
+ - lib/active_emoji/core_ext/enumerable.rb
64
+ - lib/active_emoji/core_ext/file.rb
65
+ - lib/active_emoji/core_ext/fixnum.rb
66
+ - lib/active_emoji/core_ext/float.rb
67
+ - lib/active_emoji/core_ext/hash.rb
68
+ - lib/active_emoji/core_ext/integer.rb
69
+ - lib/active_emoji/core_ext/io.rb
70
+ - lib/active_emoji/core_ext/kernel.rb
71
+ - lib/active_emoji/core_ext/object.rb
72
+ - lib/active_emoji/core_ext/string.rb
73
+ - lib/active_emoji/core_ext/thread.rb
74
+ - lib/active_emoji/core_ext/time.rb
75
+ - lib/active_emoji/version.rb
76
+ homepage: https://github.com/sferik/active_emoji
77
+ licenses:
78
+ - MIT
79
+ metadata: {}
80
+ post_install_message:
81
+ rdoc_options: []
82
+ require_paths:
83
+ - lib
84
+ required_ruby_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ required_rubygems_version: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ requirements: []
95
+ rubyforge_project:
96
+ rubygems_version: 2.4.4
97
+ signing_key:
98
+ specification_version: 4
99
+ summary: A collection of emoji alias for core Ruby methods
100
+ test_files: []
101
+ has_rdoc: