active_emoji 0.0.1 β†’ 0.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b737bc7a2f255a76e75827788ad24e163726941c
4
- data.tar.gz: 04b9947cec46770c78714da421b8887ab94b10f7
3
+ metadata.gz: f045f1cc1386863d35d8f21d44753663324a8224
4
+ data.tar.gz: 66175e14fea8630dfbb2a09c0d6c8d6a782e6a84
5
5
  SHA512:
6
- metadata.gz: 6eccd7d463c4bf8e33fc294ff22d359d37f2b78f252e097d09f31f2bb72c58e86b891ed01aa07210b406abc19c8ddd01aa5c1cb83ec7e345981769f3748000fb
7
- data.tar.gz: 0216293aea5501a07434d6194426bb0412c20a48ad7d404515065cac3484a9645ea5acb6647e297686980d546f11bb44261cff58a53916aa7acc7078d60d2de4
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 alias for core Ruby methods. Makes Ruby code easier to
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
@@ -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 = ActiveEmoji::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 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.}
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
Binary file
@@ -1,5 +1,11 @@
1
1
  class Array
2
+ alias βͺ <<
3
+ alias 🈴 concat
4
+ alias πŸ’§ drop
2
5
  alias πŸ” each
6
+ alias πŸˆ³β“ empty?
3
7
  alias πŸ€ sample
4
- alias 🎰 shuffle
8
+ alias ♻️ shuffle
9
+ alias πŸ‘ˆ push
10
+ alias πŸ• slice
5
11
  end
@@ -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,4 +1,6 @@
1
1
  class Hash
2
- alias πŸ”‘ key
3
2
  alias πŸ” each
3
+ alias πŸ”‘ key
4
+ alias πŸ”πŸ”‘ each_key
5
+ alias :"2️⃣#️⃣" to_hash
4
6
  end
@@ -2,4 +2,6 @@ class Integer
2
2
  alias ▢️ next
3
3
  alias ◀️ pred
4
4
  alias ❌ times
5
+ alias πŸ‘† upto
6
+ alias πŸ‘‡ downto
5
7
  end
@@ -1,3 +1,7 @@
1
1
  class IO
2
+ class << self
3
+ alias πŸ“– open
4
+ end
5
+
2
6
  alias 🚽 flush
3
7
  end
@@ -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
@@ -0,0 +1,4 @@
1
+ class Mutex
2
+ alias πŸ”’ lock
3
+ alias πŸ”“ unlock
4
+ end
@@ -0,0 +1,3 @@
1
+ class Numeric
2
+ alias 🚢 step
3
+ end
@@ -4,4 +4,5 @@ class Object
4
4
  alias :"#️⃣" hash
5
5
  alias πŸ”¬ inspect
6
6
  alias πŸ†” object_id
7
+ alias 🚰 tap
7
8
  end
@@ -0,0 +1,4 @@
1
+ class Proc
2
+ alias πŸ“ž call
3
+ alias πŸ› curry
4
+ 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
- πŸ› = Thread
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
@@ -1 +1,4 @@
1
- ⌚️ = Time
1
+ class Time
2
+ alias 🌞 day
3
+ alias βŒ› hour
4
+ end
@@ -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.1
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-12 00:00:00.000000000 Z
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 alias for core Ruby methods. Makes Ruby code easier
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
- - lib/active_emoji/version.rb
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 alias for core Ruby methods
103
+ summary: A collection of emoji aliases for core Ruby methods
100
104
  test_files: []
101
- has_rdoc:
@@ -1,3 +0,0 @@
1
- module ActiveEmoji
2
- VERSION = "0.0.1"
3
- end