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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d66fce3f25c6be04ca7cbde095ef1e1c8ff29c3
4
- data.tar.gz: d93c94d576010c95994e1dc861532e172457d2f4
3
+ metadata.gz: 423530889f98493bbdce91d15c37da041d602e93
4
+ data.tar.gz: b66e29c66bb68a775eac25e93ce9d7ce6e3f59a0
5
5
  SHA512:
6
- metadata.gz: b79b925ca18e2ac909e98fa09980da8c3e3768c1959dbfbd73d6d5c4d99cd4b4c2d1f6c6b4b3ad48d1bf16bb78dd934aac6fde1ac5cc5279e01475ef1ea41946
7
- data.tar.gz: 6dde6d62db20741b824fb73fda0f328970f5937808d73d0b7cb728512294bcc0621f125082f2cee6397f23bc398ae6a2cdf5d1b2c4d69a1cbbc2db741497d882
6
+ metadata.gz: 5b82779ab601a22619807e8d3d4e0e2d7866b69c3500cacf7633f9fc64956b772d9b9179e4b999f7c40b08d8041d3c13b2ad8fb45ba3d4b8fb192cf457f4cf31
7
+ data.tar.gz: ccffa6bee751969ed39083db151474434219e3287b519260aa5e9ca3b2d20622623b2b97c1d9f376f1d141e6e25117b52f75019a44bd1153c37b11b21eba8448
@@ -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
- __emoruby_top_level_binding_eval(emoji_to_ruby(source))
10
+ TOPLEVEL_BINDING.eval(emoji_to_ruby(source))
16
11
  end
17
12
 
18
13
  def self.register(file_extension = "emoruby")
@@ -1,3 +1,3 @@
1
1
  module Emoruby
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emoruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls