meta_methods 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NTcyYTA5YjM5N2QyMWExYjAyNjQxN2ExNTIyZGVhMTdiZmE5MWU0ZQ==
5
- data.tar.gz: !binary |-
6
- NTM0NzMxOTJmNGIwNDdiYTRhZTJiMzkzYWZlNTVmNDYxNDk4YmI2Nw==
2
+ SHA1:
3
+ metadata.gz: 204cb8d2608204112a0353c33dc78acdd5db138c
4
+ data.tar.gz: b6298195d19d12663b89de13d430d4f0066b63be
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MTMxNmIyOTgzYTBjZDAyMWE3MzdhNTYzN2NlYjNmNzRmMjk2YTE3YjM1NWUy
10
- ZDg5M2E1MTVhZDY4YzM1NDU4NTFkOTZiOTg4NmRlNWM0Y2Q0ZjVlZjg4MjI0
11
- YjA2MDVkOTkxYzk1Y2Q3Mzk1OWM3Y2Y2Mjk3MmZmNDA5MDNhZmE=
12
- data.tar.gz: !binary |-
13
- NDgyNWRkZDc5ZDg0ZTAwMGFkZDQwY2UzNGRlNGI3YmQxMTRmZjBiYzA0NTIx
14
- Y2I4NGU2YTdkOWIwMWJhOWFmMjAzZjhmZjRhNmIzOGEwYTc5NGVjYzVlZDdk
15
- ZDczYTVmYTA0MTFlNDQ0NWMxNWU4OWQwZmZmOTkzNWZmYjllNWM=
6
+ metadata.gz: 7f0dcc9b04809239ea95f096f02afcd5dffd18e399c03dce9212c2e5c936beae3528f5afab363088272af1a9d8241bc9e01a469b98a787420c6a64b3eda90995
7
+ data.tar.gz: 82a73cbd2b16e35ee150b81f3e384ffbfc3e18c5055dcaa0488dad6807a2ffe762b57941bb8e722f212a684e0df0ab513906b687e5fcc4e4bf5d8c537498e555
@@ -10,7 +10,7 @@
10
10
  </facet>
11
11
  </component>
12
12
  <component name="ModuleRunConfigurationManager">
13
- <configuration default="false" name="MetaMethodsDemo#evaluate_dsl : meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
13
+ <configuration default="false" name="MetaMethods::Core: meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
14
14
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
15
15
  <module name="meta_methods" />
16
16
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
@@ -33,7 +33,7 @@
33
33
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/core_spec.rb" />
34
34
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
35
35
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
36
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MetaMethodsDemo#evaluate_dsl " />
36
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MetaMethods::Core" />
37
37
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
38
38
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
39
39
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
@@ -42,13 +42,11 @@
42
42
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
43
43
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
44
44
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
45
- <RunnerSettings RunnerId="RubyDebugRunner" />
46
45
  <RunnerSettings RunnerId="RubyRunner" />
47
- <ConfigurationWrapper RunnerId="RubyDebugRunner" />
48
46
  <ConfigurationWrapper RunnerId="RubyRunner" />
49
47
  <method />
50
48
  </configuration>
51
- <configuration default="false" name="DslBuilder#evaluate_dsl calls all lambdas: meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
49
+ <configuration default="false" name="Run spec 'core_spec': meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
52
50
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
53
51
  <module name="meta_methods" />
54
52
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
@@ -59,7 +57,7 @@
59
57
  <envs>
60
58
  <env name="JRUBY_OPTS" value="-X+O" />
61
59
  </envs>
62
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
60
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
63
61
  <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
64
62
  <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
65
63
  <COVERAGE_PATTERN ENABLED="true">
@@ -68,10 +66,10 @@
68
66
  </EXTENSION>
69
67
  <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
70
68
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
71
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/dsl_builder_spec.rb" />
69
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/core_spec.rb" />
72
70
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
73
71
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
74
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="DslBuilder#evaluate_dsl calls all lambdas" />
72
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
75
73
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
76
74
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
77
75
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
@@ -84,7 +82,7 @@
84
82
  <ConfigurationWrapper RunnerId="RubyRunner" />
85
83
  <method />
86
84
  </configuration>
87
- <configuration default="false" name="MetaMethods::Core: meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
85
+ <configuration default="false" name="Run spec 'dsl_builder_spec': meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
88
86
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
89
87
  <module name="meta_methods" />
90
88
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
@@ -104,10 +102,10 @@
104
102
  </EXTENSION>
105
103
  <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
106
104
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
107
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/core_spec.rb" />
105
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/dsl_builder_spec.rb" />
108
106
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
109
107
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
110
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MetaMethods::Core" />
108
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
111
109
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
112
110
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
113
111
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
@@ -120,7 +118,7 @@
120
118
  <ConfigurationWrapper RunnerId="RubyRunner" />
121
119
  <method />
122
120
  </configuration>
123
- <configuration default="false" name="Run spec 'core_spec': meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
121
+ <configuration default="false" name="MetaMethods::Core#block_to_hash should evaluate content: meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
124
122
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
125
123
  <module name="meta_methods" />
126
124
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
@@ -131,7 +129,7 @@
131
129
  <envs>
132
130
  <env name="JRUBY_OPTS" value="-X+O" />
133
131
  </envs>
134
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
132
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
135
133
  <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
136
134
  <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
137
135
  <COVERAGE_PATTERN ENABLED="true">
@@ -143,7 +141,7 @@
143
141
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/core_spec.rb" />
144
142
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
145
143
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
146
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
144
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MetaMethods::Core#block_to_hash should evaluate content" />
147
145
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
148
146
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
149
147
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
@@ -156,7 +154,7 @@
156
154
  <ConfigurationWrapper RunnerId="RubyRunner" />
157
155
  <method />
158
156
  </configuration>
159
- <configuration default="false" name="Run spec 'dsl_builder_spec': meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
157
+ <configuration default="false" name="MetaMethods::DslBuilder: meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
160
158
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
161
159
  <module name="meta_methods" />
162
160
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
@@ -179,7 +177,7 @@
179
177
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/dsl_builder_spec.rb" />
180
178
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
181
179
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
182
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
180
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MetaMethods::DslBuilder" />
183
181
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
184
182
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
185
183
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
@@ -195,19 +193,19 @@
195
193
  </component>
196
194
  <component name="NewModuleRootManager">
197
195
  <content url="file://$MODULE_DIR$" />
198
- <orderEntry type="jdk" jdkName="RVM: ruby-1.9.3-p550 [meta_methods]" jdkType="RUBY_SDK" />
196
+ <orderEntry type="jdk" jdkName="RVM: ruby-2.1.4 [meta_methods]" jdkType="RUBY_SDK" />
199
197
  <orderEntry type="sourceFolder" forTests="false" />
200
- <orderEntry type="library" scope="PROVIDED" name="bundler (v1.7.4, RVM: ruby-1.9.3-p550 [meta_methods]) [gem]" level="application" />
201
- <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.5, RVM: ruby-1.9.3-p550 [meta_methods]) [gem]" level="application" />
202
- <orderEntry type="library" scope="PROVIDED" name="file_utils (v1.0.7, RVM: ruby-1.9.3-p550 [meta_methods]) [gem]" level="application" />
203
- <orderEntry type="library" scope="PROVIDED" name="gemcutter (v0.7.1, RVM: ruby-1.9.3-p550 [meta_methods]) [gem]" level="application" />
204
- <orderEntry type="library" scope="PROVIDED" name="gemspec_deps_gen (v1.1.2, RVM: ruby-1.9.3-p550 [meta_methods]) [gem]" level="application" />
205
- <orderEntry type="library" scope="PROVIDED" name="metaclass (v0.0.4, RVM: ruby-1.9.3-p550 [meta_methods]) [gem]" level="application" />
206
- <orderEntry type="library" scope="PROVIDED" name="mocha (v1.1.0, RVM: ruby-1.9.3-p550 [meta_methods]) [gem]" level="application" />
207
- <orderEntry type="library" scope="PROVIDED" name="rspec (v3.1.0, RVM: ruby-1.9.3-p550 [meta_methods]) [gem]" level="application" />
208
- <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.1.7, RVM: ruby-1.9.3-p550 [meta_methods]) [gem]" level="application" />
209
- <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.1.2, RVM: ruby-1.9.3-p550 [meta_methods]) [gem]" level="application" />
210
- <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.1.3, RVM: ruby-1.9.3-p550 [meta_methods]) [gem]" level="application" />
211
- <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.1.2, RVM: ruby-1.9.3-p550 [meta_methods]) [gem]" level="application" />
198
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.7.4, RVM: ruby-2.1.4 [meta_methods]) [gem]" level="application" />
199
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.5, RVM: ruby-2.1.4 [meta_methods]) [gem]" level="application" />
200
+ <orderEntry type="library" scope="PROVIDED" name="file_utils (v1.0.7, RVM: ruby-2.1.4 [meta_methods]) [gem]" level="application" />
201
+ <orderEntry type="library" scope="PROVIDED" name="gemcutter (v0.7.1, RVM: ruby-2.1.4 [meta_methods]) [gem]" level="application" />
202
+ <orderEntry type="library" scope="PROVIDED" name="gemspec_deps_gen (v1.1.2, RVM: ruby-2.1.4 [meta_methods]) [gem]" level="application" />
203
+ <orderEntry type="library" scope="PROVIDED" name="metaclass (v0.0.4, RVM: ruby-2.1.4 [meta_methods]) [gem]" level="application" />
204
+ <orderEntry type="library" scope="PROVIDED" name="mocha (v1.1.0, RVM: ruby-2.1.4 [meta_methods]) [gem]" level="application" />
205
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v3.1.0, RVM: ruby-2.1.4 [meta_methods]) [gem]" level="application" />
206
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.1.7, RVM: ruby-2.1.4 [meta_methods]) [gem]" level="application" />
207
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.1.2, RVM: ruby-2.1.4 [meta_methods]) [gem]" level="application" />
208
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.1.3, RVM: ruby-2.1.4 [meta_methods]) [gem]" level="application" />
209
+ <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.1.2, RVM: ruby-2.1.4 [meta_methods]) [gem]" level="application" />
212
210
  </component>
213
211
  </module>
@@ -2,7 +2,7 @@
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
4
  <list default="true" id="cb96d5fa-a536-45ee-8377-2c11e1c06313" name="Default" comment="">
5
- <change type="MOVED" beforePath="$PROJECT_DIR$/spec/meta_methods_spec.rb" afterPath="$PROJECT_DIR$/spec/core_spec.rb" />
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.ruby-version" afterPath="$PROJECT_DIR$/.ruby-version" />
6
6
  </list>
7
7
  <ignored path="meta_methods.iws" />
8
8
  <ignored path=".idea/workspace.xml" />
@@ -16,14 +16,16 @@
16
16
  </component>
17
17
  <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
18
18
  <component name="CoverageDataManager">
19
- <SUITE FILE_PATH="coverage/meta_methods@DslBuilder_evaluate_dsl_calls_all_lambdas__meta_methods.coverage" NAME="DslBuilder#evaluate_dsl calls all lambdas: meta_methods Coverage Results" MODIFIED="1415034716180" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="meta_methods" />
20
- <SUITE FILE_PATH="coverage/meta_methods@MetaMethodsDemo_define_attribute_creates_new_attribute_on_object__meta_methods.coverage" NAME="MetaMethodsDemo#define_attribute creates new attribute on object: meta_methods Coverage Results" MODIFIED="1414982109914" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="meta_methods" />
19
+ <SUITE FILE_PATH="coverage/meta_methods@MetaMethodsDemo_define_attributes_creates_new_attributes_on_object__meta_methods.coverage" NAME="MetaMethodsDemo#define_attributes creates new attributes on object: meta_methods Coverage Results" MODIFIED="1414982125973" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="meta_methods" />
20
+ <SUITE FILE_PATH="coverage/meta_methods@Run_spec__core_spec___meta_methods.coverage" NAME="Run spec 'core_spec': meta_methods Coverage Results" MODIFIED="1415034734752" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="meta_methods" />
21
21
  <SUITE FILE_PATH="coverage/meta_methods@MetaMethods__meta_methods.coverage" NAME="MetaMethods: meta_methods Coverage Results" MODIFIED="1395773184320" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="meta_methods" />
22
22
  <SUITE FILE_PATH="coverage/meta_methods@MetaMethodsDemo_evaluate_dsl___meta_methods.coverage" NAME="MetaMethodsDemo#evaluate_dsl : meta_methods Coverage Results" MODIFIED="1414983433280" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="meta_methods" />
23
- <SUITE FILE_PATH="coverage/meta_methods@Run_spec__meta_methods_spec___meta_methods.coverage" NAME="Run spec 'meta_methods_spec': meta_methods Coverage Results" MODIFIED="1414982065213" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="meta_methods" />
24
23
  <SUITE FILE_PATH="coverage/meta_methods@MetaMethodsDemo_locals_to_hash_should_evaluate_content__meta_methods.coverage" NAME="MetaMethodsDemo#locals_to_hash should evaluate content: meta_methods Coverage Results" MODIFIED="1414982132054" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="meta_methods" />
25
- <SUITE FILE_PATH="coverage/meta_methods@Run_spec__core_spec___meta_methods.coverage" NAME="Run spec 'core_spec': meta_methods Coverage Results" MODIFIED="1415034734752" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="meta_methods" />
26
- <SUITE FILE_PATH="coverage/meta_methods@MetaMethodsDemo_define_attributes_creates_new_attributes_on_object__meta_methods.coverage" NAME="MetaMethodsDemo#define_attributes creates new attributes on object: meta_methods Coverage Results" MODIFIED="1414982125973" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="meta_methods" />
24
+ <SUITE FILE_PATH="coverage/meta_methods@MetaMethodsDemo_define_attribute_creates_new_attribute_on_object__meta_methods.coverage" NAME="MetaMethodsDemo#define_attribute creates new attribute on object: meta_methods Coverage Results" MODIFIED="1414982109914" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="meta_methods" />
25
+ <SUITE FILE_PATH="coverage/meta_methods@MetaMethods__Core_block_to_hash_should_evaluate_content__meta_methods.coverage" NAME="MetaMethods::Core#block_to_hash should evaluate content: meta_methods Coverage Results" MODIFIED="1415324389585" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="meta_methods" />
26
+ <SUITE FILE_PATH="coverage/meta_methods@DslBuilder_evaluate_dsl_calls_all_lambdas__meta_methods.coverage" NAME="DslBuilder#evaluate_dsl calls all lambdas: meta_methods Coverage Results" MODIFIED="1415034716180" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="meta_methods" />
27
+ <SUITE FILE_PATH="coverage/meta_methods@MetaMethods__DslBuilder__meta_methods.coverage" NAME="MetaMethods::DslBuilder: meta_methods Coverage Results" MODIFIED="1415324395790" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="meta_methods" />
28
+ <SUITE FILE_PATH="coverage/meta_methods@Run_spec__meta_methods_spec___meta_methods.coverage" NAME="Run spec 'meta_methods_spec': meta_methods Coverage Results" MODIFIED="1414982065213" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="meta_methods" />
27
29
  </component>
28
30
  <component name="CreatePatchCommitExecutor">
29
31
  <option name="PATCH_PATH" value="" />
@@ -37,30 +39,10 @@
37
39
  </component>
38
40
  <component name="FileEditorManager">
39
41
  <leaf>
40
- <file leaf-file-name="dsl_builder_spec.rb" pinned="false" current-in-tab="false">
41
- <entry file="file://$PROJECT_DIR$/spec/dsl_builder_spec.rb">
42
- <provider selected="true" editor-type-id="text-editor">
43
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="612">
44
- <caret line="19" column="15" selection-start-line="19" selection-start-column="15" selection-end-line="19" selection-end-column="15" />
45
- <folding />
46
- </state>
47
- </provider>
48
- </entry>
49
- </file>
50
- <file leaf-file-name="core_spec.rb" pinned="false" current-in-tab="false">
51
- <entry file="file://$PROJECT_DIR$/spec/core_spec.rb">
52
- <provider selected="true" editor-type-id="text-editor">
53
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="799">
54
- <caret line="1" column="0" selection-start-line="1" selection-start-column="0" selection-end-line="1" selection-end-column="0" />
55
- <folding />
56
- </state>
57
- </provider>
58
- </entry>
59
- </file>
60
42
  <file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
61
43
  <entry file="file://$PROJECT_DIR$/lib/meta_methods/version.rb">
62
44
  <provider selected="true" editor-type-id="text-editor">
63
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="153">
45
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="135">
64
46
  <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
65
47
  <folding />
66
48
  </state>
@@ -70,17 +52,17 @@
70
52
  <file leaf-file-name=".ruby-gemset" pinned="false" current-in-tab="false">
71
53
  <entry file="file://$PROJECT_DIR$/.ruby-gemset">
72
54
  <provider selected="true" editor-type-id="text-editor">
73
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="102">
55
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="90">
74
56
  <caret line="0" column="12" selection-start-line="0" selection-start-column="12" selection-end-line="0" selection-end-column="12" />
75
57
  <folding />
76
58
  </state>
77
59
  </provider>
78
60
  </entry>
79
61
  </file>
80
- <file leaf-file-name=".ruby-version" pinned="false" current-in-tab="false">
62
+ <file leaf-file-name=".ruby-version" pinned="false" current-in-tab="true">
81
63
  <entry file="file://$PROJECT_DIR$/.ruby-version">
82
64
  <provider selected="true" editor-type-id="text-editor">
83
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="102">
65
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="537">
84
66
  <caret line="0" column="5" selection-start-line="0" selection-start-column="5" selection-end-line="0" selection-end-column="5" />
85
67
  <folding />
86
68
  </state>
@@ -90,28 +72,38 @@
90
72
  <file leaf-file-name="core.rb" pinned="false" current-in-tab="false">
91
73
  <entry file="file://$PROJECT_DIR$/lib/meta_methods/core.rb">
92
74
  <provider selected="true" editor-type-id="text-editor">
93
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="969">
94
- <caret line="5" column="0" selection-start-line="5" selection-start-column="0" selection-end-line="5" selection-end-column="0" />
75
+ <state vertical-scroll-proportion="0.0" vertical-offset="105" max-vertical-offset="960">
76
+ <caret line="18" column="21" selection-start-line="18" selection-start-column="8" selection-end-line="18" selection-end-column="21" />
77
+ <folding />
78
+ </state>
79
+ </provider>
80
+ </entry>
81
+ </file>
82
+ <file leaf-file-name="dsl_builder_spec.rb" pinned="false" current-in-tab="false">
83
+ <entry file="file://$PROJECT_DIR$/spec/dsl_builder_spec.rb">
84
+ <provider selected="true" editor-type-id="text-editor">
85
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="540">
86
+ <caret line="4" column="0" selection-start-line="4" selection-start-column="0" selection-end-line="4" selection-end-column="0" />
95
87
  <folding />
96
88
  </state>
97
89
  </provider>
98
90
  </entry>
99
91
  </file>
100
- <file leaf-file-name="dsl_builder.rb" pinned="false" current-in-tab="false">
101
- <entry file="file://$PROJECT_DIR$/lib/meta_methods/dsl_builder.rb">
92
+ <file leaf-file-name="core_spec.rb" pinned="false" current-in-tab="false">
93
+ <entry file="file://$PROJECT_DIR$/spec/core_spec.rb">
102
94
  <provider selected="true" editor-type-id="text-editor">
103
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="680">
104
- <caret line="4" column="0" selection-start-line="4" selection-start-column="0" selection-end-line="4" selection-end-column="21" />
95
+ <state vertical-scroll-proportion="0.0" vertical-offset="208" max-vertical-offset="705">
96
+ <caret line="32" column="30" selection-start-line="32" selection-start-column="30" selection-end-line="32" selection-end-column="30" />
105
97
  <folding />
106
98
  </state>
107
99
  </provider>
108
100
  </entry>
109
101
  </file>
110
- <file leaf-file-name="CHANGES" pinned="false" current-in-tab="true">
102
+ <file leaf-file-name="CHANGES" pinned="false" current-in-tab="false">
111
103
  <entry file="file://$PROJECT_DIR$/CHANGES">
112
104
  <provider selected="true" editor-type-id="text-editor">
113
- <state vertical-scroll-proportion="0.5475842" vertical-offset="0" max-vertical-offset="683">
114
- <caret line="22" column="2" selection-start-line="22" selection-start-column="2" selection-end-line="22" selection-end-column="13" />
105
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="480">
106
+ <caret line="26" column="40" selection-start-line="26" selection-start-column="2" selection-end-line="26" selection-end-column="40" />
115
107
  <folding />
116
108
  </state>
117
109
  </provider>
@@ -137,10 +129,10 @@
137
129
  <detection-done>true</detection-done>
138
130
  </component>
139
131
  <component name="ProjectFrameBounds">
140
- <option name="x" value="48" />
141
- <option name="y" value="22" />
142
- <option name="width" value="1872" />
143
- <option name="height" value="1178" />
132
+ <option name="x" value="39" />
133
+ <option name="y" value="23" />
134
+ <option name="width" value="1401" />
135
+ <option name="height" value="877" />
144
136
  </component>
145
137
  <component name="ProjectLevelVcsManager" settingsEditedManually="false">
146
138
  <OptionsSetting value="true" id="Add" />
@@ -168,7 +160,6 @@
168
160
  <sortByType />
169
161
  </navigator>
170
162
  <panes>
171
- <pane id="Scope" />
172
163
  <pane id="ProjectPane">
173
164
  <subPane>
174
165
  <PATH>
@@ -235,6 +226,7 @@
235
226
  </PATH>
236
227
  </subPane>
237
228
  </pane>
229
+ <pane id="Scope" />
238
230
  </panes>
239
231
  </component>
240
232
  <component name="PropertiesComponent">
@@ -246,8 +238,8 @@
246
238
  <property name="options.searchVisible" value="true" />
247
239
  <property name="last_opened_file_path" value="$PROJECT_DIR$" />
248
240
  </component>
249
- <component name="RunManager" selected="RSpec.Run spec 'core_spec': meta_methods">
250
- <configuration default="false" name="MetaMethodsDemo#evaluate_dsl : meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
241
+ <component name="RunManager" selected="RSpec.MetaMethods::DslBuilder: meta_methods">
242
+ <configuration default="false" name="MetaMethods::Core: meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
251
243
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
252
244
  <module name="meta_methods" />
253
245
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
@@ -270,7 +262,7 @@
270
262
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/core_spec.rb" />
271
263
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
272
264
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
273
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MetaMethodsDemo#evaluate_dsl " />
265
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MetaMethods::Core" />
274
266
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
275
267
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
276
268
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
@@ -279,13 +271,11 @@
279
271
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
280
272
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
281
273
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
282
- <RunnerSettings RunnerId="RubyDebugRunner" />
283
274
  <RunnerSettings RunnerId="RubyRunner" />
284
- <ConfigurationWrapper RunnerId="RubyDebugRunner" />
285
275
  <ConfigurationWrapper RunnerId="RubyRunner" />
286
276
  <method />
287
277
  </configuration>
288
- <configuration default="false" name="DslBuilder#evaluate_dsl calls all lambdas: meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
278
+ <configuration default="false" name="Run spec 'core_spec': meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
289
279
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
290
280
  <module name="meta_methods" />
291
281
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
@@ -296,7 +286,7 @@
296
286
  <envs>
297
287
  <env name="JRUBY_OPTS" value="-X+O" />
298
288
  </envs>
299
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
289
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
300
290
  <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
301
291
  <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
302
292
  <COVERAGE_PATTERN ENABLED="true">
@@ -305,10 +295,10 @@
305
295
  </EXTENSION>
306
296
  <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
307
297
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
308
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/dsl_builder_spec.rb" />
298
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/core_spec.rb" />
309
299
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
310
300
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
311
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="DslBuilder#evaluate_dsl calls all lambdas" />
301
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
312
302
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
313
303
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
314
304
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
@@ -321,7 +311,7 @@
321
311
  <ConfigurationWrapper RunnerId="RubyRunner" />
322
312
  <method />
323
313
  </configuration>
324
- <configuration default="false" name="MetaMethods::Core: meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
314
+ <configuration default="false" name="Run spec 'dsl_builder_spec': meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
325
315
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
326
316
  <module name="meta_methods" />
327
317
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
@@ -341,10 +331,10 @@
341
331
  </EXTENSION>
342
332
  <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
343
333
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
344
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/core_spec.rb" />
334
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/dsl_builder_spec.rb" />
345
335
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
346
336
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
347
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MetaMethods::Core" />
337
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
348
338
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
349
339
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
350
340
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
@@ -357,7 +347,7 @@
357
347
  <ConfigurationWrapper RunnerId="RubyRunner" />
358
348
  <method />
359
349
  </configuration>
360
- <configuration default="false" name="Run spec 'core_spec': meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
350
+ <configuration default="false" name="MetaMethods::Core#block_to_hash should evaluate content: meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
361
351
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
362
352
  <module name="meta_methods" />
363
353
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
@@ -368,7 +358,7 @@
368
358
  <envs>
369
359
  <env name="JRUBY_OPTS" value="-X+O" />
370
360
  </envs>
371
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
361
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
372
362
  <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
373
363
  <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
374
364
  <COVERAGE_PATTERN ENABLED="true">
@@ -380,7 +370,7 @@
380
370
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/core_spec.rb" />
381
371
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
382
372
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
383
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
373
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MetaMethods::Core#block_to_hash should evaluate content" />
384
374
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
385
375
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
386
376
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
@@ -393,7 +383,7 @@
393
383
  <ConfigurationWrapper RunnerId="RubyRunner" />
394
384
  <method />
395
385
  </configuration>
396
- <configuration default="false" name="Run spec 'dsl_builder_spec': meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
386
+ <configuration default="false" name="MetaMethods::DslBuilder: meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
397
387
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
398
388
  <module name="meta_methods" />
399
389
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
@@ -416,7 +406,7 @@
416
406
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/dsl_builder_spec.rb" />
417
407
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
418
408
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
419
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
409
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MetaMethods::DslBuilder" />
420
410
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
421
411
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
422
412
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
@@ -519,12 +509,6 @@
519
509
  <configuration default="true" type="NodeJSConfigurationType" factoryName="Node.js" working-dir="">
520
510
  <method />
521
511
  </configuration>
522
- <configuration default="true" type="cucumber.js" factoryName="Cucumber.js">
523
- <option name="cucumberJsArguments" value="" />
524
- <option name="executablePath" />
525
- <option name="filePath" />
526
- <method />
527
- </configuration>
528
512
  <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
529
513
  <node-options />
530
514
  <gulpfile />
@@ -534,19 +518,19 @@
534
518
  <method />
535
519
  </configuration>
536
520
  <list size="5">
537
- <item index="0" class="java.lang.String" itemvalue="RSpec.MetaMethodsDemo#evaluate_dsl : meta_methods" />
538
- <item index="1" class="java.lang.String" itemvalue="RSpec.DslBuilder#evaluate_dsl calls all lambdas: meta_methods" />
539
- <item index="2" class="java.lang.String" itemvalue="RSpec.MetaMethods::Core: meta_methods" />
540
- <item index="3" class="java.lang.String" itemvalue="RSpec.Run spec 'core_spec': meta_methods" />
541
- <item index="4" class="java.lang.String" itemvalue="RSpec.Run spec 'dsl_builder_spec': meta_methods" />
521
+ <item index="0" class="java.lang.String" itemvalue="RSpec.MetaMethods::Core: meta_methods" />
522
+ <item index="1" class="java.lang.String" itemvalue="RSpec.Run spec 'core_spec': meta_methods" />
523
+ <item index="2" class="java.lang.String" itemvalue="RSpec.Run spec 'dsl_builder_spec': meta_methods" />
524
+ <item index="3" class="java.lang.String" itemvalue="RSpec.MetaMethods::Core#block_to_hash should evaluate content: meta_methods" />
525
+ <item index="4" class="java.lang.String" itemvalue="RSpec.MetaMethods::DslBuilder: meta_methods" />
542
526
  </list>
543
527
  <recent_temporary>
544
528
  <list size="5">
545
- <item index="0" class="java.lang.String" itemvalue="RSpec.Run spec 'core_spec': meta_methods" />
546
- <item index="1" class="java.lang.String" itemvalue="RSpec.DslBuilder#evaluate_dsl calls all lambdas: meta_methods" />
529
+ <item index="0" class="java.lang.String" itemvalue="RSpec.MetaMethods::DslBuilder: meta_methods" />
530
+ <item index="1" class="java.lang.String" itemvalue="RSpec.MetaMethods::Core#block_to_hash should evaluate content: meta_methods" />
547
531
  <item index="2" class="java.lang.String" itemvalue="RSpec.Run spec 'dsl_builder_spec': meta_methods" />
548
- <item index="3" class="java.lang.String" itemvalue="RSpec.MetaMethods::Core: meta_methods" />
549
- <item index="4" class="java.lang.String" itemvalue="RSpec.MetaMethodsDemo#evaluate_dsl : meta_methods" />
532
+ <item index="3" class="java.lang.String" itemvalue="RSpec.Run spec 'core_spec': meta_methods" />
533
+ <item index="4" class="java.lang.String" itemvalue="RSpec.MetaMethods::Core: meta_methods" />
550
534
  </list>
551
535
  </recent_temporary>
552
536
  </component>
@@ -570,15 +554,27 @@
570
554
  <option name="project" value="LOCAL" />
571
555
  <updated>1415034798556</updated>
572
556
  </task>
573
- <option name="localTasksCounter" value="3" />
557
+ <task id="LOCAL-00003" summary="Api changes">
558
+ <created>1415034893535</created>
559
+ <option name="number" value="00003" />
560
+ <option name="project" value="LOCAL" />
561
+ <updated>1415034893535</updated>
562
+ </task>
563
+ <task id="LOCAL-00004" summary="Change locals_to_hash to block_to_hash">
564
+ <created>1415324468662</created>
565
+ <option name="number" value="00004" />
566
+ <option name="project" value="LOCAL" />
567
+ <updated>1415324468662</updated>
568
+ </task>
569
+ <option name="localTasksCounter" value="5" />
574
570
  <servers />
575
571
  </component>
576
572
  <component name="ToolWindowManager">
577
- <frame x="48" y="22" width="1872" height="1178" extended-state="6" />
573
+ <frame x="39" y="23" width="1401" height="877" extended-state="6" />
578
574
  <editor active="false" />
579
575
  <layout>
580
- <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.2785647" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
581
- <window_info id="Terminal" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3286119" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
576
+ <window_info id="Changes" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.2765685" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
577
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3277849" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
582
578
  <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
583
579
  <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.38540334" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
584
580
  <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3286119" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
@@ -588,8 +584,8 @@
588
584
  <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
589
585
  <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="true" content_ui="tabs" />
590
586
  <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
591
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.2693989" sideWeight="0.71904266" order="0" side_tool="false" content_ui="combo" />
592
- <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3286119" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
587
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.27593818" sideWeight="0.71904266" order="0" side_tool="false" content_ui="combo" />
588
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3277849" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
593
589
  <window_info id="Tail" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
594
590
  <window_info id="Dilbert" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
595
591
  <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
@@ -621,7 +617,8 @@
621
617
  </option>
622
618
  <MESSAGE value="bug fixes" />
623
619
  <MESSAGE value="Api changes" />
624
- <option name="LAST_COMMIT_MESSAGE" value="Api changes" />
620
+ <MESSAGE value="Change locals_to_hash to block_to_hash" />
621
+ <option name="LAST_COMMIT_MESSAGE" value="Change locals_to_hash to block_to_hash" />
625
622
  </component>
626
623
  <component name="XDebuggerManager">
627
624
  <breakpoint-manager>
@@ -630,26 +627,50 @@
630
627
  <watches-manager />
631
628
  </component>
632
629
  <component name="editorHistoryManager">
633
- <entry file="file://$PROJECT_DIR$/lib/meta_methods/dsl_builder.rb">
630
+ <entry file="file://$PROJECT_DIR$/lib/meta_methods/version.rb">
634
631
  <provider selected="true" editor-type-id="text-editor">
635
- <state vertical-scroll-proportion="0.0" vertical-offset="153" max-vertical-offset="629">
636
- <caret line="9" column="83" selection-start-line="9" selection-start-column="83" selection-end-line="9" selection-end-column="83" />
632
+ <state vertical-scroll-proportion="0.0" vertical-offset="15" max-vertical-offset="135">
633
+ <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
634
+ <folding />
635
+ </state>
636
+ </provider>
637
+ </entry>
638
+ <entry file="file://$PROJECT_DIR$/.ruby-gemset">
639
+ <provider selected="true" editor-type-id="text-editor">
640
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="90">
641
+ <caret line="0" column="12" selection-start-line="0" selection-start-column="12" selection-end-line="0" selection-end-column="12" />
642
+ <folding />
643
+ </state>
644
+ </provider>
645
+ </entry>
646
+ <entry file="file://$PROJECT_DIR$/.ruby-version">
647
+ <provider selected="true" editor-type-id="text-editor">
648
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="90">
649
+ <caret line="0" column="5" selection-start-line="0" selection-start-column="5" selection-end-line="0" selection-end-column="5" />
650
+ <folding />
651
+ </state>
652
+ </provider>
653
+ </entry>
654
+ <entry file="file://$PROJECT_DIR$/lib/meta_methods/core.rb">
655
+ <provider selected="true" editor-type-id="text-editor">
656
+ <state vertical-scroll-proportion="0.0" vertical-offset="75" max-vertical-offset="1185">
657
+ <caret line="5" column="0" selection-start-line="5" selection-start-column="0" selection-end-line="5" selection-end-column="0" />
637
658
  <folding />
638
659
  </state>
639
660
  </provider>
640
661
  </entry>
641
662
  <entry file="file://$PROJECT_DIR$/CHANGES">
642
663
  <provider selected="true" editor-type-id="text-editor">
643
- <state vertical-scroll-proportion="0.0" vertical-offset="357" max-vertical-offset="459">
644
- <caret line="21" column="2" selection-start-line="21" selection-start-column="2" selection-end-line="21" selection-end-column="21" />
664
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="100">
665
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
645
666
  <folding />
646
667
  </state>
647
668
  </provider>
648
669
  </entry>
649
- <entry file="file://$PROJECT_DIR$/spec/core_spec.rb">
670
+ <entry file="file://$PROJECT_DIR$/CHANGES">
650
671
  <provider selected="true" editor-type-id="text-editor">
651
- <state vertical-scroll-proportion="0.0" vertical-offset="731" max-vertical-offset="1241">
652
- <caret line="43" column="25" selection-start-line="43" selection-start-column="25" selection-end-line="43" selection-end-column="25" />
672
+ <state vertical-scroll-proportion="0.0" vertical-offset="357" max-vertical-offset="459">
673
+ <caret line="21" column="2" selection-start-line="21" selection-start-column="2" selection-end-line="21" selection-end-column="21" />
653
674
  <folding />
654
675
  </state>
655
676
  </provider>
@@ -678,14 +699,6 @@
678
699
  </state>
679
700
  </provider>
680
701
  </entry>
681
- <entry file="file://$PROJECT_DIR$/spec/core_spec.rb">
682
- <provider selected="true" editor-type-id="text-editor">
683
- <state vertical-scroll-proportion="0.0" vertical-offset="630" max-vertical-offset="720">
684
- <caret line="42" column="0" selection-start-line="42" selection-start-column="0" selection-end-line="42" selection-end-column="0" />
685
- <folding />
686
- </state>
687
- </provider>
688
- </entry>
689
702
  <entry file="file://$PROJECT_DIR$/lib/meta_methods/core.rb">
690
703
  <provider selected="true" editor-type-id="text-editor">
691
704
  <state vertical-scroll-proportion="0.0" vertical-offset="75" max-vertical-offset="1590">
@@ -745,14 +758,6 @@
745
758
  </state>
746
759
  </provider>
747
760
  </entry>
748
- <entry file="file://$PROJECT_DIR$/spec/core_spec.rb">
749
- <provider selected="true" editor-type-id="text-editor">
750
- <state vertical-scroll-proportion="0.0" vertical-offset="630" max-vertical-offset="720">
751
- <caret line="42" column="0" selection-start-line="42" selection-start-column="0" selection-end-line="42" selection-end-column="0" />
752
- <folding />
753
- </state>
754
- </provider>
755
- </entry>
756
761
  <entry file="file://$PROJECT_DIR$/lib/meta_methods/core.rb">
757
762
  <provider selected="true" editor-type-id="text-editor">
758
763
  <state vertical-scroll-proportion="0.0" vertical-offset="75" max-vertical-offset="1590">
@@ -828,14 +833,6 @@
828
833
  </state>
829
834
  </provider>
830
835
  </entry>
831
- <entry file="file://$PROJECT_DIR$/spec/core_spec.rb">
832
- <provider selected="true" editor-type-id="text-editor">
833
- <state vertical-scroll-proportion="0.0" vertical-offset="270" max-vertical-offset="360">
834
- <caret line="18" column="0" selection-start-line="18" selection-start-column="0" selection-end-line="18" selection-end-column="0" />
835
- <folding />
836
- </state>
837
- </provider>
838
- </entry>
839
836
  <entry file="file://$PROJECT_DIR$/CHANGES">
840
837
  <provider selected="true" editor-type-id="text-editor">
841
838
  <state vertical-scroll-proportion="0.0" vertical-offset="120" max-vertical-offset="210">
@@ -962,58 +959,50 @@
962
959
  </state>
963
960
  </provider>
964
961
  </entry>
965
- <entry file="file://$PROJECT_DIR$/.ruby-version">
966
- <provider selected="true" editor-type-id="text-editor">
967
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="683">
968
- <caret line="0" column="5" selection-start-line="0" selection-start-column="5" selection-end-line="0" selection-end-column="5" />
969
- <folding />
970
- </state>
971
- </provider>
972
- </entry>
973
- <entry file="file://$PROJECT_DIR$/lib/meta_methods/dsl_builder.rb">
962
+ <entry file="file://$PROJECT_DIR$/spec/core_spec.rb">
974
963
  <provider selected="true" editor-type-id="text-editor">
975
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="680">
976
- <caret line="4" column="0" selection-start-line="4" selection-start-column="0" selection-end-line="4" selection-end-column="21" />
964
+ <state vertical-scroll-proportion="0.0" vertical-offset="208" max-vertical-offset="705">
965
+ <caret line="32" column="30" selection-start-line="32" selection-start-column="30" selection-end-line="32" selection-end-column="30" />
977
966
  <folding />
978
967
  </state>
979
968
  </provider>
980
969
  </entry>
981
- <entry file="file://$PROJECT_DIR$/lib/meta_methods/core.rb">
970
+ <entry file="file://$PROJECT_DIR$/spec/dsl_builder_spec.rb">
982
971
  <provider selected="true" editor-type-id="text-editor">
983
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="969">
984
- <caret line="5" column="0" selection-start-line="5" selection-start-column="0" selection-end-line="5" selection-end-column="0" />
972
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="540">
973
+ <caret line="4" column="0" selection-start-line="4" selection-start-column="0" selection-end-line="4" selection-end-column="0" />
985
974
  <folding />
986
975
  </state>
987
976
  </provider>
988
977
  </entry>
989
- <entry file="file://$PROJECT_DIR$/spec/dsl_builder_spec.rb">
978
+ <entry file="file://$PROJECT_DIR$/lib/meta_methods/version.rb">
990
979
  <provider selected="true" editor-type-id="text-editor">
991
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="612">
992
- <caret line="19" column="15" selection-start-line="19" selection-start-column="15" selection-end-line="19" selection-end-column="15" />
980
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="153">
981
+ <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
993
982
  <folding />
994
983
  </state>
995
984
  </provider>
996
985
  </entry>
997
- <entry file="file://$PROJECT_DIR$/spec/core_spec.rb">
986
+ <entry file="file://$PROJECT_DIR$/lib/meta_methods/core.rb">
998
987
  <provider selected="true" editor-type-id="text-editor">
999
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="799">
1000
- <caret line="1" column="0" selection-start-line="1" selection-start-column="0" selection-end-line="1" selection-end-column="0" />
988
+ <state vertical-scroll-proportion="0.0" vertical-offset="105" max-vertical-offset="960">
989
+ <caret line="18" column="21" selection-start-line="18" selection-start-column="8" selection-end-line="18" selection-end-column="21" />
1001
990
  <folding />
1002
991
  </state>
1003
992
  </provider>
1004
993
  </entry>
1005
- <entry file="file://$PROJECT_DIR$/lib/meta_methods/version.rb">
994
+ <entry file="file://$PROJECT_DIR$/CHANGES">
1006
995
  <provider selected="true" editor-type-id="text-editor">
1007
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="153">
1008
- <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
996
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="480">
997
+ <caret line="26" column="40" selection-start-line="26" selection-start-column="2" selection-end-line="26" selection-end-column="40" />
1009
998
  <folding />
1010
999
  </state>
1011
1000
  </provider>
1012
1001
  </entry>
1013
- <entry file="file://$PROJECT_DIR$/CHANGES">
1002
+ <entry file="file://$PROJECT_DIR$/.ruby-version">
1014
1003
  <provider selected="true" editor-type-id="text-editor">
1015
- <state vertical-scroll-proportion="0.5475842" vertical-offset="0" max-vertical-offset="683">
1016
- <caret line="22" column="2" selection-start-line="22" selection-start-column="2" selection-end-line="22" selection-end-column="13" />
1004
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="683">
1005
+ <caret line="0" column="5" selection-start-line="0" selection-start-column="5" selection-end-line="0" selection-end-column="5" />
1017
1006
  <folding />
1018
1007
  </state>
1019
1008
  </provider>
@@ -1 +1 @@
1
- 1.9.3
1
+ 2.1.4
data/CHANGES CHANGED
@@ -20,4 +20,8 @@
20
20
  == Version 1.2.0
21
21
 
22
22
  * Adding Dsl Builder.
23
- * Api changes.
23
+ * Api changes.
24
+
25
+ == Version 1.3.0
26
+
27
+ * Change locals_to_hash to block_to_hash.
@@ -16,22 +16,33 @@ module MetaMethods
16
16
  end
17
17
  end
18
18
 
19
- def locals_to_hash object, content
20
- scope = object.instance_eval { binding }
19
+ def block_to_hash content
20
+ object = Object.new
21
+ scope = object.send :binding
21
22
 
22
- eval(content, scope)
23
+ object.send(:eval, content, scope)
23
24
 
24
- extract_values(defined_vars(scope), scope)
25
+ vars_list = defined_vars(object, scope) - [:content, :vars_list]
26
+
27
+ extract_values(vars_list, object, scope)
25
28
  end
26
29
 
27
30
  private
28
31
 
29
- def defined_vars scope
30
- eval("local_variables", scope) - Kernel.local_variables - %w(content)
32
+ def defined_vars object, scope
33
+ object.send(:eval, "local_variables", scope) - Kernel.local_variables
31
34
  end
32
35
 
33
- def extract_values vars_list, scope
34
- vars_values_list = vars_list.collect { |name| [name, get_property(name, scope)] }
36
+ def extract_values vars_list, object, scope
37
+ vars_values_list = vars_list.collect do |name|
38
+ value = begin
39
+ get_property(object, name, scope)
40
+ rescue NameError
41
+ nil
42
+ end
43
+
44
+ [name, value]
45
+ end
35
46
 
36
47
  hash = {}
37
48
  vars_values_list.each do |var, value|
@@ -41,12 +52,8 @@ module MetaMethods
41
52
  hash
42
53
  end
43
54
 
44
- def get_property name, scope
45
- begin
46
- eval(name.to_s, scope)
47
- rescue NameError
48
- nil
49
- end
55
+ def get_property object, name, scope
56
+ object.send :eval, name.to_s, scope
50
57
  end
51
58
  end
52
59
  end
@@ -1,3 +1,3 @@
1
1
  class MetaMethods
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.0"
3
3
  end
@@ -26,11 +26,11 @@ describe MetaMethods::Core do
26
26
  end
27
27
  end
28
28
 
29
- describe "#locals_to_hash" do
29
+ describe "#block_to_hash" do
30
30
  it "should evaluate content" do
31
- s = "a=1; b=2"
31
+ content = "a=1; b=2"
32
32
 
33
- hash = subject.locals_to_hash subject, s
33
+ hash = subject.block_to_hash content
34
34
 
35
35
  expect(hash[:a]).to eq 1
36
36
  expect(hash[:b]).to eq 2
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meta_methods
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Shvets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-03 00:00:00.000000000 Z
11
+ date: 2014-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gemspec_deps_gen
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: gemcutter
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: Collection of methods for easing meta-programming
@@ -44,19 +44,19 @@ executables: []
44
44
  extensions: []
45
45
  extra_rdoc_files: []
46
46
  files:
47
- - .gitignore
48
- - .idea/.name
49
- - .idea/.rakeTasks
50
- - .idea/cssxfire.xml
51
- - .idea/encodings.xml
52
- - .idea/meta_methods.iml
53
- - .idea/misc.xml
54
- - .idea/modules.xml
55
- - .idea/scopes/scope_settings.xml
56
- - .idea/vcs.xml
57
- - .idea/workspace.xml
58
- - .ruby-gemset
59
- - .ruby-version
47
+ - ".gitignore"
48
+ - ".idea/.name"
49
+ - ".idea/.rakeTasks"
50
+ - ".idea/cssxfire.xml"
51
+ - ".idea/encodings.xml"
52
+ - ".idea/meta_methods.iml"
53
+ - ".idea/misc.xml"
54
+ - ".idea/modules.xml"
55
+ - ".idea/scopes/scope_settings.xml"
56
+ - ".idea/vcs.xml"
57
+ - ".idea/workspace.xml"
58
+ - ".ruby-gemset"
59
+ - ".ruby-version"
60
60
  - CHANGES
61
61
  - Gemfile
62
62
  - LICENSE
@@ -79,12 +79,12 @@ require_paths:
79
79
  - lib
80
80
  required_ruby_version: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - ! '>='
82
+ - - ">="
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ! '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  requirements: []