emoruby 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/emoruby.rb +1 -6
- data/lib/emoruby/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 423530889f98493bbdce91d15c37da041d602e93
|
4
|
+
data.tar.gz: b66e29c66bb68a775eac25e93ce9d7ce6e3f59a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b82779ab601a22619807e8d3d4e0e2d7866b69c3500cacf7633f9fc64956b772d9b9179e4b999f7c40b08d8041d3c13b2ad8fb45ba3d4b8fb192cf457f4cf31
|
7
|
+
data.tar.gz: ccffa6bee751969ed39083db151474434219e3287b519260aa5e9ca3b2d20622623b2b97c1d9f376f1d141e6e25117b52f75019a44bd1153c37b11b21eba8448
|
data/lib/emoruby.rb
CHANGED
@@ -1,18 +1,13 @@
|
|
1
1
|
require "emoruby/version"
|
2
2
|
require "emoruby/emoji_script"
|
3
3
|
|
4
|
-
# TODO there has to be a better way to eval on top of the world, right?
|
5
|
-
def __emoruby_top_level_binding_eval(source)
|
6
|
-
binding.eval(source)
|
7
|
-
end
|
8
|
-
|
9
4
|
module Emoruby
|
10
5
|
def self.emoji_to_ruby(source)
|
11
6
|
EmojiScript.new(source).to_ruby
|
12
7
|
end
|
13
8
|
|
14
9
|
def self.eval(source)
|
15
|
-
|
10
|
+
TOPLEVEL_BINDING.eval(emoji_to_ruby(source))
|
16
11
|
end
|
17
12
|
|
18
13
|
def self.register(file_extension = "emoruby")
|
data/lib/emoruby/version.rb
CHANGED