yourdsl 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/yourdsl.rb +2 -8
  2. metadata +1 -1
data/lib/yourdsl.rb CHANGED
@@ -1,16 +1,10 @@
1
1
  module YourDSL
2
+ VERSION = '0.7.1'
3
+
2
4
  class Scope < Struct.new(:expressions); end
3
5
  class Expression < Struct.new(:symbol, :args, :lineno, :proc, :scope); end
4
6
  class Output < Struct.new(:file, :expressions); end
5
7
 
6
- VERSION = '0.7.0'
7
-
8
- METHODS_TO_KEEP = /^__/, /class/, /instance_/, /method_missing/, /object_id/
9
-
10
- instance_methods.each do |m|
11
- undef_method m unless METHODS_TO_KEEP.find { |r| r.match m }
12
- end
13
-
14
8
  def record_your_dsl(opts = {})
15
9
  @@remember_blocks_starting_with = Array(opts[:retain_blocks_for])
16
10
  @@only = Array(opts[:only])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yourdsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: