active_emoji 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 +1 -1
- data/active_emoji.gemspec +4 -8
- data/example.png +0 -0
- data/lib/active_emoji/core_ext/array.rb +7 -1
- data/lib/active_emoji/core_ext/enumerable.rb +5 -0
- data/lib/active_emoji/core_ext/gem.rb +1 -0
- data/lib/active_emoji/core_ext/hash.rb +3 -1
- data/lib/active_emoji/core_ext/integer.rb +2 -0
- data/lib/active_emoji/core_ext/io.rb +4 -0
- data/lib/active_emoji/core_ext/kernel.rb +6 -0
- data/lib/active_emoji/core_ext/mutex.rb +4 -0
- data/lib/active_emoji/core_ext/numeric.rb +3 -0
- data/lib/active_emoji/core_ext/object.rb +1 -0
- data/lib/active_emoji/core_ext/proc.rb +4 -0
- data/lib/active_emoji/core_ext/string.rb +3 -0
- data/lib/active_emoji/core_ext/thread.rb +16 -1
- data/lib/active_emoji/core_ext/time.rb +4 -1
- data/samples/fizzbuzz.rb +9 -0
- metadata +12 -9
- data/lib/active_emoji/version.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f045f1cc1386863d35d8f21d44753663324a8224
|
4
|
+
data.tar.gz: 66175e14fea8630dfbb2a09c0d6c8d6a782e6a84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7d02e8fd9ea9278b6d5a8b14340e509d6c18c4f9fbb8c81900a1b1164dfd81e3356ed7e2229ce17723e574823c9f82116dbcb964d5209e6d37385e749ca99c3
|
7
|
+
data.tar.gz: ef8932620e360fb003e3ea12a3320043da5dec19110c9127f9df0b1379aed80a7ccbaacee42613f4cc6490a60c8aeb30f3b7a5c9da890da096f339466585c912
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# ActiveEmoji
|
2
2
|
|
3
|
-
A collection of emoji
|
3
|
+
A collection of emoji aliases for core Ruby methods. Makes Ruby code easier to
|
4
4
|
read and write, especially for children and people who don't know English.
|
5
5
|
|
6
6
|
This project is named with the goal of eventually being merged into Ruby on
|
data/active_emoji.gemspec
CHANGED
@@ -1,21 +1,17 @@
|
|
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
1
|
Gem::Specification.new do |spec|
|
7
2
|
spec.name = "active_emoji"
|
8
|
-
spec.version =
|
3
|
+
spec.version = "0.0.2"
|
9
4
|
spec.authors = ["Erik Michaels-Ober"]
|
10
5
|
spec.email = ["sferik@gmail.com"]
|
11
|
-
spec.summary = %q{A collection of emoji
|
12
|
-
spec.description = %q{A collection of emoji
|
6
|
+
spec.summary = %q{A collection of emoji aliases for core Ruby methods}
|
7
|
+
spec.description = %q{A collection of emoji aliases for core Ruby methods. Makes Ruby code easier to read and write, especially for children and people who don't know English.}
|
13
8
|
spec.homepage = "https://github.com/sferik/active_emoji"
|
14
9
|
spec.license = "MIT"
|
15
10
|
|
16
11
|
spec.files = `git ls-files -z`.split("\x0")
|
17
12
|
spec.require_paths = ["lib"]
|
18
13
|
|
14
|
+
spec.required_ruby_version = "~> 2.0"
|
19
15
|
spec.add_development_dependency "bundler", "~> 1.7"
|
20
16
|
spec.add_development_dependency "rake", "~> 10.0"
|
21
17
|
end
|
data/example.png
CHANGED
Binary file
|
@@ -1,10 +1,15 @@
|
|
1
1
|
module Enumerable
|
2
|
+
alias πΆβ any?
|
2
3
|
alias π’ count
|
4
|
+
alias π§ drop
|
3
5
|
alias π² cycle
|
4
6
|
alias ππ each_slice
|
5
7
|
alias π find
|
6
8
|
alias π inject
|
7
9
|
alias π΄ lazy
|
10
|
+
alias π map
|
11
|
+
alias ποΈβ none?
|
8
12
|
alias π reverse_each
|
13
|
+
alias πΆ sort
|
9
14
|
alias β take
|
10
15
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
π = Gem
|
@@ -1,10 +1,16 @@
|
|
1
1
|
module Kernel
|
2
|
+
alias π <=>
|
2
3
|
alias π binding
|
4
|
+
alias π²β block_given?
|
5
|
+
alias π₯ gets
|
3
6
|
alias π loop
|
4
7
|
alias π print
|
8
|
+
alias π€ puts
|
5
9
|
alias π° rand
|
10
|
+
alias π» singleton_class
|
6
11
|
alias π€ sleep
|
7
12
|
alias π» system
|
8
13
|
alias β οΈ warn
|
9
14
|
def π; 10 end
|
15
|
+
def π―; 100 end
|
10
16
|
end
|
@@ -1,11 +1,14 @@
|
|
1
1
|
class String
|
2
|
+
alias βͺ <<
|
2
3
|
alias βοΈ *
|
3
4
|
alias β +
|
4
5
|
alias πͺ chop
|
5
6
|
alias πͺβοΈ chop!
|
6
7
|
alias π‘ downcase
|
7
8
|
alias π‘βοΈ downcase!
|
9
|
+
alias π³β empty?
|
8
10
|
alias π split
|
9
11
|
alias π upcase
|
10
12
|
alias π βοΈ upcase!
|
13
|
+
alias π length
|
11
14
|
end
|
@@ -1 +1,16 @@
|
|
1
|
-
|
1
|
+
class Thread
|
2
|
+
alias πβ alive?
|
3
|
+
alias π₯ group
|
4
|
+
alias β
inspect
|
5
|
+
alias π΄ join
|
6
|
+
alias πβ key?
|
7
|
+
alias ππ keys
|
8
|
+
alias π« kill
|
9
|
+
alias π raise
|
10
|
+
alias π run
|
11
|
+
alias π· safe_level
|
12
|
+
alias π status
|
13
|
+
alias ββ stop?
|
14
|
+
alias πΉ value
|
15
|
+
alias β° wakeup
|
16
|
+
end
|
data/samples/fizzbuzz.rb
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
require 'active_emoji'
|
2
|
+
|
3
|
+
β = π.β π
|
4
|
+
βοΈ = β.βΆοΈ
|
5
|
+
βοΈ = βοΈ.βΆοΈ
|
6
|
+
π = βοΈ.βΆοΈ
|
7
|
+
β = π.β βοΈ
|
8
|
+
βοΈ = -> (π) { π€ π % β == β && π % π == β ? "πΊπ" : π % π == β ? "πΊ" : π % β == β ? "π" : π }
|
9
|
+
βοΈ.π (π―) { |π| βοΈ.π(π) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_emoji
|
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
|
- Erik Michaels-Ober
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,8 +38,8 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
|
-
description: A collection of emoji
|
42
|
-
to read and write, especially for children and people who don't know English.
|
41
|
+
description: A collection of emoji aliases for core Ruby methods. Makes Ruby code
|
42
|
+
easier to read and write, especially for children and people who don't know English.
|
43
43
|
email:
|
44
44
|
- sferik@gmail.com
|
45
45
|
executables: []
|
@@ -64,15 +64,19 @@ files:
|
|
64
64
|
- lib/active_emoji/core_ext/file.rb
|
65
65
|
- lib/active_emoji/core_ext/fixnum.rb
|
66
66
|
- lib/active_emoji/core_ext/float.rb
|
67
|
+
- lib/active_emoji/core_ext/gem.rb
|
67
68
|
- lib/active_emoji/core_ext/hash.rb
|
68
69
|
- lib/active_emoji/core_ext/integer.rb
|
69
70
|
- lib/active_emoji/core_ext/io.rb
|
70
71
|
- lib/active_emoji/core_ext/kernel.rb
|
72
|
+
- lib/active_emoji/core_ext/mutex.rb
|
73
|
+
- lib/active_emoji/core_ext/numeric.rb
|
71
74
|
- lib/active_emoji/core_ext/object.rb
|
75
|
+
- lib/active_emoji/core_ext/proc.rb
|
72
76
|
- lib/active_emoji/core_ext/string.rb
|
73
77
|
- lib/active_emoji/core_ext/thread.rb
|
74
78
|
- lib/active_emoji/core_ext/time.rb
|
75
|
-
-
|
79
|
+
- samples/fizzbuzz.rb
|
76
80
|
homepage: https://github.com/sferik/active_emoji
|
77
81
|
licenses:
|
78
82
|
- MIT
|
@@ -83,9 +87,9 @@ require_paths:
|
|
83
87
|
- lib
|
84
88
|
required_ruby_version: !ruby/object:Gem::Requirement
|
85
89
|
requirements:
|
86
|
-
- - "
|
90
|
+
- - "~>"
|
87
91
|
- !ruby/object:Gem::Version
|
88
|
-
version: '0'
|
92
|
+
version: '2.0'
|
89
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
94
|
requirements:
|
91
95
|
- - ">="
|
@@ -96,6 +100,5 @@ rubyforge_project:
|
|
96
100
|
rubygems_version: 2.4.4
|
97
101
|
signing_key:
|
98
102
|
specification_version: 4
|
99
|
-
summary: A collection of emoji
|
103
|
+
summary: A collection of emoji aliases for core Ruby methods
|
100
104
|
test_files: []
|
101
|
-
has_rdoc:
|
data/lib/active_emoji/version.rb
DELETED