meta_methods 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/.idea/meta_methods.iml +32 -32
- data/.idea/workspace.xml +220 -132
- data/.ruby-version +1 -1
- data/CHANGES +6 -1
- data/lib/meta_methods/core.rb +5 -27
- data/lib/meta_methods/dsl_builder.rb +34 -0
- data/lib/meta_methods/version.rb +1 -1
- data/spec/{meta_methods_spec.rb → core_spec.rb} +2 -28
- data/spec/dsl_builder_spec.rb +30 -0
- metadata +25 -22
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NTcyYTA5YjM5N2QyMWExYjAyNjQxN2ExNTIyZGVhMTdiZmE5MWU0ZQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NTM0NzMxOTJmNGIwNDdiYTRhZTJiMzkzYWZlNTVmNDYxNDk4YmI2Nw==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MTMxNmIyOTgzYTBjZDAyMWE3MzdhNTYzN2NlYjNmNzRmMjk2YTE3YjM1NWUy
|
10
|
+
ZDg5M2E1MTVhZDY4YzM1NDU4NTFkOTZiOTg4NmRlNWM0Y2Q0ZjVlZjg4MjI0
|
11
|
+
YjA2MDVkOTkxYzk1Y2Q3Mzk1OWM3Y2Y2Mjk3MmZmNDA5MDNhZmE=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NDgyNWRkZDc5ZDg0ZTAwMGFkZDQwY2UzNGRlNGI3YmQxMTRmZjBiYzA0NTIx
|
14
|
+
Y2I4NGU2YTdkOWIwMWJhOWFmMjAzZjhmZjRhNmIzOGEwYTc5NGVjYzVlZDdk
|
15
|
+
ZDczYTVmYTA0MTFlNDQ0NWMxNWU4OWQwZmZmOTkzNWZmYjllNWM=
|
data/.idea/meta_methods.iml
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
</facet>
|
11
11
|
</component>
|
12
12
|
<component name="ModuleRunConfigurationManager">
|
13
|
-
<configuration default="false" name="
|
13
|
+
<configuration default="false" name="MetaMethodsDemo#evaluate_dsl : 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)" />
|
@@ -21,7 +21,7 @@
|
|
21
21
|
<envs>
|
22
22
|
<env name="JRUBY_OPTS" value="-X+O" />
|
23
23
|
</envs>
|
24
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="
|
24
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
25
25
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
26
26
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
27
27
|
<COVERAGE_PATTERN ENABLED="true">
|
@@ -30,10 +30,10 @@
|
|
30
30
|
</EXTENSION>
|
31
31
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
32
32
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
33
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
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="" />
|
36
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MetaMethodsDemo#evaluate_dsl " />
|
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,11 +42,13 @@
|
|
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" />
|
45
46
|
<RunnerSettings RunnerId="RubyRunner" />
|
47
|
+
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
46
48
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
47
49
|
<method />
|
48
50
|
</configuration>
|
49
|
-
<configuration default="false" name="
|
51
|
+
<configuration default="false" name="DslBuilder#evaluate_dsl calls all lambdas: meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
50
52
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
51
53
|
<module name="meta_methods" />
|
52
54
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -57,7 +59,7 @@
|
|
57
59
|
<envs>
|
58
60
|
<env name="JRUBY_OPTS" value="-X+O" />
|
59
61
|
</envs>
|
60
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="
|
62
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
61
63
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
62
64
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
63
65
|
<COVERAGE_PATTERN ENABLED="true">
|
@@ -66,10 +68,10 @@
|
|
66
68
|
</EXTENSION>
|
67
69
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
68
70
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
69
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
71
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/dsl_builder_spec.rb" />
|
70
72
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
71
73
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
72
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="
|
74
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="DslBuilder#evaluate_dsl calls all lambdas" />
|
73
75
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
74
76
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
75
77
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -82,7 +84,7 @@
|
|
82
84
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
83
85
|
<method />
|
84
86
|
</configuration>
|
85
|
-
<configuration default="false" name="
|
87
|
+
<configuration default="false" name="MetaMethods::Core: meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
86
88
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
87
89
|
<module name="meta_methods" />
|
88
90
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -102,10 +104,10 @@
|
|
102
104
|
</EXTENSION>
|
103
105
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
104
106
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
105
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
107
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/core_spec.rb" />
|
106
108
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
107
109
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
108
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="
|
110
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MetaMethods::Core" />
|
109
111
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
110
112
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
111
113
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -118,7 +120,7 @@
|
|
118
120
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
119
121
|
<method />
|
120
122
|
</configuration>
|
121
|
-
<configuration default="false" name="
|
123
|
+
<configuration default="false" name="Run spec 'core_spec': meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
122
124
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
123
125
|
<module name="meta_methods" />
|
124
126
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -138,10 +140,10 @@
|
|
138
140
|
</EXTENSION>
|
139
141
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
140
142
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
141
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
143
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/core_spec.rb" />
|
142
144
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
143
145
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
144
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="
|
146
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
145
147
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
146
148
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
147
149
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -154,7 +156,7 @@
|
|
154
156
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
155
157
|
<method />
|
156
158
|
</configuration>
|
157
|
-
<configuration default="false" name="
|
159
|
+
<configuration default="false" name="Run spec 'dsl_builder_spec': meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
158
160
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
159
161
|
<module name="meta_methods" />
|
160
162
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -174,10 +176,10 @@
|
|
174
176
|
</EXTENSION>
|
175
177
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
176
178
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
177
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
179
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/dsl_builder_spec.rb" />
|
178
180
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
179
181
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
180
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="
|
182
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
181
183
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
182
184
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
183
185
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -186,28 +188,26 @@
|
|
186
188
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
187
189
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
188
190
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
189
|
-
<RunnerSettings RunnerId="RubyDebugRunner" />
|
190
191
|
<RunnerSettings RunnerId="RubyRunner" />
|
191
|
-
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
192
192
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
193
193
|
<method />
|
194
194
|
</configuration>
|
195
195
|
</component>
|
196
196
|
<component name="NewModuleRootManager">
|
197
197
|
<content url="file://$MODULE_DIR$" />
|
198
|
-
<orderEntry type="jdk" jdkName="RVM: ruby-
|
198
|
+
<orderEntry type="jdk" jdkName="RVM: ruby-1.9.3-p550 [meta_methods]" jdkType="RUBY_SDK" />
|
199
199
|
<orderEntry type="sourceFolder" forTests="false" />
|
200
|
-
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.7.4, RVM: ruby-
|
201
|
-
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.5, RVM: ruby-
|
202
|
-
<orderEntry type="library" scope="PROVIDED" name="file_utils (v1.0.7, RVM: ruby-
|
203
|
-
<orderEntry type="library" scope="PROVIDED" name="gemcutter (v0.7.1, RVM: ruby-
|
204
|
-
<orderEntry type="library" scope="PROVIDED" name="gemspec_deps_gen (v1.1.2, RVM: ruby-
|
205
|
-
<orderEntry type="library" scope="PROVIDED" name="metaclass (v0.0.4, RVM: ruby-
|
206
|
-
<orderEntry type="library" scope="PROVIDED" name="mocha (v1.1.0, RVM: ruby-
|
207
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.1.0, RVM: ruby-
|
208
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.1.7, RVM: ruby-
|
209
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.1.2, RVM: ruby-
|
210
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.1.3, RVM: ruby-
|
211
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.1.2, RVM: ruby-
|
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" />
|
212
212
|
</component>
|
213
213
|
</module>
|
data/.idea/workspace.xml
CHANGED
@@ -2,13 +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="
|
6
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/CHANGES" afterPath="$PROJECT_DIR$/CHANGES" />
|
7
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/meta_methods/core.rb" afterPath="$PROJECT_DIR$/lib/meta_methods/core.rb" />
|
8
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/meta_methods.iml" afterPath="$PROJECT_DIR$/.idea/meta_methods.iml" />
|
9
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/spec/meta_methods_spec.rb" afterPath="$PROJECT_DIR$/spec/meta_methods_spec.rb" />
|
10
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/meta_methods/version.rb" afterPath="$PROJECT_DIR$/lib/meta_methods/version.rb" />
|
11
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
5
|
+
<change type="MOVED" beforePath="$PROJECT_DIR$/spec/meta_methods_spec.rb" afterPath="$PROJECT_DIR$/spec/core_spec.rb" />
|
12
6
|
</list>
|
13
7
|
<ignored path="meta_methods.iws" />
|
14
8
|
<ignored path=".idea/workspace.xml" />
|
@@ -22,12 +16,14 @@
|
|
22
16
|
</component>
|
23
17
|
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
24
18
|
<component name="CoverageDataManager">
|
25
|
-
<SUITE FILE_PATH="coverage/meta_methods@
|
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" />
|
26
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" />
|
27
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" />
|
28
|
-
<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" />
|
29
|
-
<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" />
|
30
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
|
+
<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" />
|
31
27
|
</component>
|
32
28
|
<component name="CreatePatchCommitExecutor">
|
33
29
|
<option name="PATCH_PATH" value="" />
|
@@ -41,21 +37,21 @@
|
|
41
37
|
</component>
|
42
38
|
<component name="FileEditorManager">
|
43
39
|
<leaf>
|
44
|
-
<file leaf-file-name="
|
45
|
-
<entry file="file://$PROJECT_DIR$/spec/
|
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">
|
46
42
|
<provider selected="true" editor-type-id="text-editor">
|
47
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
48
|
-
<caret line="
|
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" />
|
49
45
|
<folding />
|
50
46
|
</state>
|
51
47
|
</provider>
|
52
48
|
</entry>
|
53
49
|
</file>
|
54
|
-
<file leaf-file-name="
|
55
|
-
<entry file="file://$PROJECT_DIR$/
|
50
|
+
<file leaf-file-name="core_spec.rb" pinned="false" current-in-tab="false">
|
51
|
+
<entry file="file://$PROJECT_DIR$/spec/core_spec.rb">
|
56
52
|
<provider selected="true" editor-type-id="text-editor">
|
57
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
58
|
-
<caret line="
|
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" />
|
59
55
|
<folding />
|
60
56
|
</state>
|
61
57
|
</provider>
|
@@ -64,18 +60,58 @@
|
|
64
60
|
<file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
|
65
61
|
<entry file="file://$PROJECT_DIR$/lib/meta_methods/version.rb">
|
66
62
|
<provider selected="true" editor-type-id="text-editor">
|
67
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="
|
63
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="153">
|
68
64
|
<caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
|
69
65
|
<folding />
|
70
66
|
</state>
|
71
67
|
</provider>
|
72
68
|
</entry>
|
73
69
|
</file>
|
70
|
+
<file leaf-file-name=".ruby-gemset" pinned="false" current-in-tab="false">
|
71
|
+
<entry file="file://$PROJECT_DIR$/.ruby-gemset">
|
72
|
+
<provider selected="true" editor-type-id="text-editor">
|
73
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="102">
|
74
|
+
<caret line="0" column="12" selection-start-line="0" selection-start-column="12" selection-end-line="0" selection-end-column="12" />
|
75
|
+
<folding />
|
76
|
+
</state>
|
77
|
+
</provider>
|
78
|
+
</entry>
|
79
|
+
</file>
|
80
|
+
<file leaf-file-name=".ruby-version" pinned="false" current-in-tab="false">
|
81
|
+
<entry file="file://$PROJECT_DIR$/.ruby-version">
|
82
|
+
<provider selected="true" editor-type-id="text-editor">
|
83
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="102">
|
84
|
+
<caret line="0" column="5" selection-start-line="0" selection-start-column="5" selection-end-line="0" selection-end-column="5" />
|
85
|
+
<folding />
|
86
|
+
</state>
|
87
|
+
</provider>
|
88
|
+
</entry>
|
89
|
+
</file>
|
90
|
+
<file leaf-file-name="core.rb" pinned="false" current-in-tab="false">
|
91
|
+
<entry file="file://$PROJECT_DIR$/lib/meta_methods/core.rb">
|
92
|
+
<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" />
|
95
|
+
<folding />
|
96
|
+
</state>
|
97
|
+
</provider>
|
98
|
+
</entry>
|
99
|
+
</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">
|
102
|
+
<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" />
|
105
|
+
<folding />
|
106
|
+
</state>
|
107
|
+
</provider>
|
108
|
+
</entry>
|
109
|
+
</file>
|
74
110
|
<file leaf-file-name="CHANGES" pinned="false" current-in-tab="true">
|
75
111
|
<entry file="file://$PROJECT_DIR$/CHANGES">
|
76
112
|
<provider selected="true" editor-type-id="text-editor">
|
77
|
-
<state vertical-scroll-proportion="0.
|
78
|
-
<caret line="
|
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" />
|
79
115
|
<folding />
|
80
116
|
</state>
|
81
117
|
</provider>
|
@@ -101,10 +137,10 @@
|
|
101
137
|
<detection-done>true</detection-done>
|
102
138
|
</component>
|
103
139
|
<component name="ProjectFrameBounds">
|
104
|
-
<option name="x" value="
|
105
|
-
<option name="y" value="
|
106
|
-
<option name="width" value="
|
107
|
-
<option name="height" value="
|
140
|
+
<option name="x" value="48" />
|
141
|
+
<option name="y" value="22" />
|
142
|
+
<option name="width" value="1872" />
|
143
|
+
<option name="height" value="1178" />
|
108
144
|
</component>
|
109
145
|
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
110
146
|
<OptionsSetting value="true" id="Add" />
|
@@ -208,9 +244,10 @@
|
|
208
244
|
<property name="options.splitter.main.proportions" value="0.3" />
|
209
245
|
<property name="options.splitter.details.proportions" value="0.2" />
|
210
246
|
<property name="options.searchVisible" value="true" />
|
247
|
+
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
211
248
|
</component>
|
212
|
-
<component name="RunManager" selected="RSpec.
|
213
|
-
<configuration default="false" name="
|
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">
|
214
251
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
215
252
|
<module name="meta_methods" />
|
216
253
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -221,7 +258,7 @@
|
|
221
258
|
<envs>
|
222
259
|
<env name="JRUBY_OPTS" value="-X+O" />
|
223
260
|
</envs>
|
224
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="
|
261
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
225
262
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
226
263
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
227
264
|
<COVERAGE_PATTERN ENABLED="true">
|
@@ -230,10 +267,10 @@
|
|
230
267
|
</EXTENSION>
|
231
268
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
232
269
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
233
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
270
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/core_spec.rb" />
|
234
271
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
235
272
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
236
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
273
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MetaMethodsDemo#evaluate_dsl " />
|
237
274
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
238
275
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
239
276
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -242,11 +279,13 @@
|
|
242
279
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
243
280
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
244
281
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
282
|
+
<RunnerSettings RunnerId="RubyDebugRunner" />
|
245
283
|
<RunnerSettings RunnerId="RubyRunner" />
|
284
|
+
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
246
285
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
247
286
|
<method />
|
248
287
|
</configuration>
|
249
|
-
<configuration default="false" name="
|
288
|
+
<configuration default="false" name="DslBuilder#evaluate_dsl calls all lambdas: meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
250
289
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
251
290
|
<module name="meta_methods" />
|
252
291
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -257,7 +296,7 @@
|
|
257
296
|
<envs>
|
258
297
|
<env name="JRUBY_OPTS" value="-X+O" />
|
259
298
|
</envs>
|
260
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="
|
299
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
261
300
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
262
301
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
263
302
|
<COVERAGE_PATTERN ENABLED="true">
|
@@ -266,10 +305,10 @@
|
|
266
305
|
</EXTENSION>
|
267
306
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
268
307
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
269
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
308
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/dsl_builder_spec.rb" />
|
270
309
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
271
310
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
272
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="
|
311
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="DslBuilder#evaluate_dsl calls all lambdas" />
|
273
312
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
274
313
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
275
314
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -282,7 +321,7 @@
|
|
282
321
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
283
322
|
<method />
|
284
323
|
</configuration>
|
285
|
-
<configuration default="false" name="
|
324
|
+
<configuration default="false" name="MetaMethods::Core: meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
286
325
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
287
326
|
<module name="meta_methods" />
|
288
327
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -302,10 +341,10 @@
|
|
302
341
|
</EXTENSION>
|
303
342
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
304
343
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
305
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
344
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/core_spec.rb" />
|
306
345
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
307
346
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
308
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="
|
347
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MetaMethods::Core" />
|
309
348
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
310
349
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
311
350
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -318,7 +357,7 @@
|
|
318
357
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
319
358
|
<method />
|
320
359
|
</configuration>
|
321
|
-
<configuration default="false" name="
|
360
|
+
<configuration default="false" name="Run spec 'core_spec': meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
322
361
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
323
362
|
<module name="meta_methods" />
|
324
363
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -338,10 +377,10 @@
|
|
338
377
|
</EXTENSION>
|
339
378
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
340
379
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
341
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
380
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/core_spec.rb" />
|
342
381
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
343
382
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
344
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="
|
383
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
345
384
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
346
385
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
347
386
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -354,7 +393,7 @@
|
|
354
393
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
355
394
|
<method />
|
356
395
|
</configuration>
|
357
|
-
<configuration default="false" name="
|
396
|
+
<configuration default="false" name="Run spec 'dsl_builder_spec': meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
358
397
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
359
398
|
<module name="meta_methods" />
|
360
399
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -374,10 +413,10 @@
|
|
374
413
|
</EXTENSION>
|
375
414
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
376
415
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
377
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
416
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/dsl_builder_spec.rb" />
|
378
417
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
379
418
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
380
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="
|
419
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
381
420
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
382
421
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
383
422
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -386,9 +425,7 @@
|
|
386
425
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
387
426
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
388
427
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
389
|
-
<RunnerSettings RunnerId="RubyDebugRunner" />
|
390
428
|
<RunnerSettings RunnerId="RubyRunner" />
|
391
|
-
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
392
429
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
393
430
|
<method />
|
394
431
|
</configuration>
|
@@ -482,23 +519,34 @@
|
|
482
519
|
<configuration default="true" type="NodeJSConfigurationType" factoryName="Node.js" working-dir="">
|
483
520
|
<method />
|
484
521
|
</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>
|
485
528
|
<configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
|
529
|
+
<node-options />
|
530
|
+
<gulpfile />
|
531
|
+
<tasks />
|
532
|
+
<pass-parent-envs>true</pass-parent-envs>
|
533
|
+
<envs />
|
486
534
|
<method />
|
487
535
|
</configuration>
|
488
536
|
<list size="5">
|
489
|
-
<item index="0" class="java.lang.String" itemvalue="RSpec.
|
490
|
-
<item index="1" class="java.lang.String" itemvalue="RSpec.
|
491
|
-
<item index="2" class="java.lang.String" itemvalue="RSpec.
|
492
|
-
<item index="3" class="java.lang.String" itemvalue="RSpec.
|
493
|
-
<item index="4" class="java.lang.String" itemvalue="RSpec.
|
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" />
|
494
542
|
</list>
|
495
543
|
<recent_temporary>
|
496
544
|
<list size="5">
|
497
|
-
<item index="0" class="java.lang.String" itemvalue="RSpec.
|
498
|
-
<item index="1" class="java.lang.String" itemvalue="RSpec.
|
499
|
-
<item index="2" class="java.lang.String" itemvalue="RSpec.
|
500
|
-
<item index="3" class="java.lang.String" itemvalue="RSpec.
|
501
|
-
<item index="4" class="java.lang.String" itemvalue="RSpec.
|
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" />
|
547
|
+
<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" />
|
502
550
|
</list>
|
503
551
|
</recent_temporary>
|
504
552
|
</component>
|
@@ -510,32 +558,45 @@
|
|
510
558
|
<option name="number" value="Default" />
|
511
559
|
<updated>1380730985117</updated>
|
512
560
|
</task>
|
561
|
+
<task id="LOCAL-00001" summary="bug fixes">
|
562
|
+
<created>1414983583221</created>
|
563
|
+
<option name="number" value="00001" />
|
564
|
+
<option name="project" value="LOCAL" />
|
565
|
+
<updated>1414983583221</updated>
|
566
|
+
</task>
|
567
|
+
<task id="LOCAL-00002" summary="Api changes">
|
568
|
+
<created>1415034798556</created>
|
569
|
+
<option name="number" value="00002" />
|
570
|
+
<option name="project" value="LOCAL" />
|
571
|
+
<updated>1415034798556</updated>
|
572
|
+
</task>
|
573
|
+
<option name="localTasksCounter" value="3" />
|
513
574
|
<servers />
|
514
575
|
</component>
|
515
576
|
<component name="ToolWindowManager">
|
516
|
-
<frame x="
|
577
|
+
<frame x="48" y="22" width="1872" height="1178" extended-state="6" />
|
517
578
|
<editor active="false" />
|
518
579
|
<layout>
|
519
|
-
<window_info id="Changes" active="
|
520
|
-
<window_info id="Terminal" active="
|
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" />
|
521
582
|
<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" />
|
522
583
|
<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" />
|
523
|
-
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.
|
584
|
+
<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" />
|
524
585
|
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
525
586
|
<window_info id="Version Control" 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" />
|
587
|
+
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3298647" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
526
588
|
<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" />
|
527
589
|
<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" />
|
528
590
|
<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" />
|
529
|
-
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.
|
530
|
-
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.
|
531
|
-
<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="
|
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" />
|
593
|
+
<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" />
|
532
594
|
<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" />
|
533
595
|
<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" />
|
534
596
|
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
535
597
|
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32917964" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
536
598
|
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
537
599
|
<window_info id="jenkinsBrowser" 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" />
|
538
|
-
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3298647" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
539
600
|
<window_info id="CSS-X-Fire" 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" />
|
540
601
|
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
541
602
|
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
@@ -558,32 +619,66 @@
|
|
558
619
|
<option name="myTodoPanelSettings">
|
559
620
|
<TodoPanelSettings />
|
560
621
|
</option>
|
622
|
+
<MESSAGE value="bug fixes" />
|
623
|
+
<MESSAGE value="Api changes" />
|
624
|
+
<option name="LAST_COMMIT_MESSAGE" value="Api changes" />
|
561
625
|
</component>
|
562
626
|
<component name="XDebuggerManager">
|
563
627
|
<breakpoint-manager>
|
564
|
-
<breakpoints>
|
565
|
-
<line-breakpoint enabled="true" type="ruby-line">
|
566
|
-
<url>file://$PROJECT_DIR$/spec/meta_methods_spec.rb</url>
|
567
|
-
<line>60</line>
|
568
|
-
<option name="timeStamp" value="4" />
|
569
|
-
</line-breakpoint>
|
570
|
-
<line-breakpoint enabled="true" type="ruby-line">
|
571
|
-
<url>file://$PROJECT_DIR$/spec/meta_methods_spec.rb</url>
|
572
|
-
<line>64</line>
|
573
|
-
<option name="timeStamp" value="5" />
|
574
|
-
</line-breakpoint>
|
575
|
-
<line-breakpoint enabled="true" type="ruby-line">
|
576
|
-
<url>file://$PROJECT_DIR$/spec/meta_methods_spec.rb</url>
|
577
|
-
<line>56</line>
|
578
|
-
<option name="timeStamp" value="6" />
|
579
|
-
</line-breakpoint>
|
580
|
-
</breakpoints>
|
581
628
|
<option name="time" value="7" />
|
582
629
|
</breakpoint-manager>
|
583
630
|
<watches-manager />
|
584
631
|
</component>
|
585
632
|
<component name="editorHistoryManager">
|
586
|
-
<entry file="file://$PROJECT_DIR$/
|
633
|
+
<entry file="file://$PROJECT_DIR$/lib/meta_methods/dsl_builder.rb">
|
634
|
+
<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" />
|
637
|
+
<folding />
|
638
|
+
</state>
|
639
|
+
</provider>
|
640
|
+
</entry>
|
641
|
+
<entry file="file://$PROJECT_DIR$/CHANGES">
|
642
|
+
<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" />
|
645
|
+
<folding />
|
646
|
+
</state>
|
647
|
+
</provider>
|
648
|
+
</entry>
|
649
|
+
<entry file="file://$PROJECT_DIR$/spec/core_spec.rb">
|
650
|
+
<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" />
|
653
|
+
<folding />
|
654
|
+
</state>
|
655
|
+
</provider>
|
656
|
+
</entry>
|
657
|
+
<entry file="file://$PROJECT_DIR$/lib/meta_methods/core.rb">
|
658
|
+
<provider selected="true" editor-type-id="text-editor">
|
659
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="119" max-vertical-offset="1343">
|
660
|
+
<caret line="7" column="0" selection-start-line="7" selection-start-column="0" selection-end-line="7" selection-end-column="0" />
|
661
|
+
<folding />
|
662
|
+
</state>
|
663
|
+
</provider>
|
664
|
+
</entry>
|
665
|
+
<entry file="file://$PROJECT_DIR$/lib/meta_methods/version.rb">
|
666
|
+
<provider selected="true" editor-type-id="text-editor">
|
667
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="17" max-vertical-offset="153">
|
668
|
+
<caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
|
669
|
+
<folding />
|
670
|
+
</state>
|
671
|
+
</provider>
|
672
|
+
</entry>
|
673
|
+
<entry file="file://$PROJECT_DIR$/CHANGES">
|
674
|
+
<provider selected="true" editor-type-id="text-editor">
|
675
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="100">
|
676
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
677
|
+
<folding />
|
678
|
+
</state>
|
679
|
+
</provider>
|
680
|
+
</entry>
|
681
|
+
<entry file="file://$PROJECT_DIR$/spec/core_spec.rb">
|
587
682
|
<provider selected="true" editor-type-id="text-editor">
|
588
683
|
<state vertical-scroll-proportion="0.0" vertical-offset="630" max-vertical-offset="720">
|
589
684
|
<caret line="42" column="0" selection-start-line="42" selection-start-column="0" selection-end-line="42" selection-end-column="0" />
|
@@ -603,7 +698,6 @@
|
|
603
698
|
<provider selected="true" editor-type-id="text-editor">
|
604
699
|
<state vertical-scroll-proportion="0.0" vertical-offset="345" max-vertical-offset="435">
|
605
700
|
<caret line="23" column="0" selection-start-line="23" selection-start-column="0" selection-end-line="23" selection-end-column="0" />
|
606
|
-
<folding />
|
607
701
|
</state>
|
608
702
|
</provider>
|
609
703
|
</entry>
|
@@ -611,7 +705,6 @@
|
|
611
705
|
<provider selected="true" editor-type-id="text-editor">
|
612
706
|
<state vertical-scroll-proportion="0.0" vertical-offset="210" max-vertical-offset="735">
|
613
707
|
<caret line="14" column="52" selection-start-line="14" selection-start-column="52" selection-end-line="14" selection-end-column="52" />
|
614
|
-
<folding />
|
615
708
|
</state>
|
616
709
|
</provider>
|
617
710
|
</entry>
|
@@ -635,7 +728,6 @@
|
|
635
728
|
<provider selected="true" editor-type-id="text-editor">
|
636
729
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="90">
|
637
730
|
<caret line="0" column="5" selection-start-line="0" selection-start-column="5" selection-end-line="0" selection-end-column="5" />
|
638
|
-
<folding />
|
639
731
|
</state>
|
640
732
|
</provider>
|
641
733
|
</entry>
|
@@ -643,7 +735,6 @@
|
|
643
735
|
<provider selected="true" editor-type-id="text-editor">
|
644
736
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="100">
|
645
737
|
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
646
|
-
<folding />
|
647
738
|
</state>
|
648
739
|
</provider>
|
649
740
|
</entry>
|
@@ -651,13 +742,10 @@
|
|
651
742
|
<provider selected="true" editor-type-id="text-editor">
|
652
743
|
<state vertical-scroll-proportion="0.0" vertical-offset="300" max-vertical-offset="390">
|
653
744
|
<caret line="20" column="0" selection-start-line="20" selection-start-column="0" selection-end-line="20" selection-end-column="0" />
|
654
|
-
<folding>
|
655
|
-
<marker date="1414981629000" expanded="true" signature="-1:-1" placeholder="do ... end" />
|
656
|
-
</folding>
|
657
745
|
</state>
|
658
746
|
</provider>
|
659
747
|
</entry>
|
660
|
-
<entry file="file://$PROJECT_DIR$/spec/
|
748
|
+
<entry file="file://$PROJECT_DIR$/spec/core_spec.rb">
|
661
749
|
<provider selected="true" editor-type-id="text-editor">
|
662
750
|
<state vertical-scroll-proportion="0.0" vertical-offset="630" max-vertical-offset="720">
|
663
751
|
<caret line="42" column="0" selection-start-line="42" selection-start-column="0" selection-end-line="42" selection-end-column="0" />
|
@@ -677,7 +765,6 @@
|
|
677
765
|
<provider selected="true" editor-type-id="text-editor">
|
678
766
|
<state vertical-scroll-proportion="0.0" vertical-offset="345" max-vertical-offset="435">
|
679
767
|
<caret line="23" column="0" selection-start-line="23" selection-start-column="0" selection-end-line="23" selection-end-column="0" />
|
680
|
-
<folding />
|
681
768
|
</state>
|
682
769
|
</provider>
|
683
770
|
</entry>
|
@@ -685,7 +772,6 @@
|
|
685
772
|
<provider selected="true" editor-type-id="text-editor">
|
686
773
|
<state vertical-scroll-proportion="0.0" vertical-offset="210" max-vertical-offset="735">
|
687
774
|
<caret line="14" column="52" selection-start-line="14" selection-start-column="52" selection-end-line="14" selection-end-column="52" />
|
688
|
-
<folding />
|
689
775
|
</state>
|
690
776
|
</provider>
|
691
777
|
</entry>
|
@@ -709,9 +795,6 @@
|
|
709
795
|
<provider selected="true" editor-type-id="text-editor">
|
710
796
|
<state vertical-scroll-proportion="0.0" vertical-offset="300" max-vertical-offset="390">
|
711
797
|
<caret line="20" column="0" selection-start-line="20" selection-start-column="0" selection-end-line="20" selection-end-column="0" />
|
712
|
-
<folding>
|
713
|
-
<marker date="1414981629000" expanded="true" signature="-1:-1" placeholder="do ... end" />
|
714
|
-
</folding>
|
715
798
|
</state>
|
716
799
|
</provider>
|
717
800
|
</entry>
|
@@ -734,7 +817,6 @@
|
|
734
817
|
<provider selected="true" editor-type-id="text-editor">
|
735
818
|
<state vertical-scroll-proportion="0.0" vertical-offset="345" max-vertical-offset="435">
|
736
819
|
<caret line="23" column="0" selection-start-line="23" selection-start-column="0" selection-end-line="23" selection-end-column="0" />
|
737
|
-
<folding />
|
738
820
|
</state>
|
739
821
|
</provider>
|
740
822
|
</entry>
|
@@ -746,7 +828,7 @@
|
|
746
828
|
</state>
|
747
829
|
</provider>
|
748
830
|
</entry>
|
749
|
-
<entry file="file://$PROJECT_DIR$/spec/
|
831
|
+
<entry file="file://$PROJECT_DIR$/spec/core_spec.rb">
|
750
832
|
<provider selected="true" editor-type-id="text-editor">
|
751
833
|
<state vertical-scroll-proportion="0.0" vertical-offset="270" max-vertical-offset="360">
|
752
834
|
<caret line="18" column="0" selection-start-line="18" selection-start-column="0" selection-end-line="18" selection-end-column="0" />
|
@@ -773,9 +855,6 @@
|
|
773
855
|
<provider selected="true" editor-type-id="text-editor">
|
774
856
|
<state vertical-scroll-proportion="0.0" vertical-offset="300" max-vertical-offset="390">
|
775
857
|
<caret line="20" column="0" selection-start-line="20" selection-start-column="0" selection-end-line="20" selection-end-column="0" />
|
776
|
-
<folding>
|
777
|
-
<marker date="1414981629000" expanded="true" signature="-1:-1" placeholder="do ... end" />
|
778
|
-
</folding>
|
779
858
|
</state>
|
780
859
|
</provider>
|
781
860
|
</entry>
|
@@ -783,7 +862,6 @@
|
|
783
862
|
<provider selected="true" editor-type-id="text-editor">
|
784
863
|
<state vertical-scroll-proportion="0.0" vertical-offset="120" max-vertical-offset="735">
|
785
864
|
<caret line="8" column="30" selection-start-line="8" selection-start-column="30" selection-end-line="8" selection-end-column="30" />
|
786
|
-
<folding />
|
787
865
|
</state>
|
788
866
|
</provider>
|
789
867
|
</entry>
|
@@ -798,7 +876,6 @@
|
|
798
876
|
<provider selected="true" editor-type-id="text-editor">
|
799
877
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="0">
|
800
878
|
<caret line="24" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
801
|
-
<folding />
|
802
879
|
</state>
|
803
880
|
</provider>
|
804
881
|
</entry>
|
@@ -810,14 +887,14 @@
|
|
810
887
|
</provider>
|
811
888
|
</entry>
|
812
889
|
<entry file="file://$PROJECT_DIR$/README.md">
|
813
|
-
<provider editor-type-id="MarkdownPreviewEditor">
|
814
|
-
<state />
|
815
|
-
</provider>
|
816
890
|
<provider selected="true" editor-type-id="text-editor">
|
817
891
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="675">
|
818
892
|
<caret line="0" column="65" selection-start-line="0" selection-start-column="65" selection-end-line="0" selection-end-column="65" />
|
819
893
|
</state>
|
820
894
|
</provider>
|
895
|
+
<provider editor-type-id="MarkdownPreviewEditor">
|
896
|
+
<state />
|
897
|
+
</provider>
|
821
898
|
</entry>
|
822
899
|
<entry file="file://$PROJECT_DIR$/Gemfile">
|
823
900
|
<provider selected="true" editor-type-id="text-editor">
|
@@ -852,15 +929,34 @@
|
|
852
929
|
<provider selected="true" editor-type-id="text-editor">
|
853
930
|
<state vertical-scroll-proportion="0.0" vertical-offset="300" max-vertical-offset="390">
|
854
931
|
<caret line="20" column="0" selection-start-line="20" selection-start-column="0" selection-end-line="20" selection-end-column="0" />
|
855
|
-
|
856
|
-
|
857
|
-
|
932
|
+
</state>
|
933
|
+
</provider>
|
934
|
+
</entry>
|
935
|
+
<entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
|
936
|
+
<provider selected="true" editor-type-id="text-editor">
|
937
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="135" max-vertical-offset="13650">
|
938
|
+
<caret line="9" column="11" selection-start-line="9" selection-start-column="11" selection-end-line="9" selection-end-column="11" />
|
939
|
+
<folding />
|
940
|
+
</state>
|
941
|
+
</provider>
|
942
|
+
</entry>
|
943
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
944
|
+
<provider selected="true" editor-type-id="text-editor">
|
945
|
+
<state vertical-scroll-proportion="0.4233871" vertical-offset="0" max-vertical-offset="735">
|
946
|
+
<caret line="14" column="52" selection-start-line="14" selection-start-column="52" selection-end-line="14" selection-end-column="52" />
|
947
|
+
</state>
|
948
|
+
</provider>
|
949
|
+
</entry>
|
950
|
+
<entry file="file://$PROJECT_DIR$/meta_methods.gemspec">
|
951
|
+
<provider selected="true" editor-type-id="text-editor">
|
952
|
+
<state vertical-scroll-proportion="0.6955645" vertical-offset="0" max-vertical-offset="496">
|
953
|
+
<caret line="23" column="0" selection-start-line="23" selection-start-column="0" selection-end-line="23" selection-end-column="0" />
|
858
954
|
</state>
|
859
955
|
</provider>
|
860
956
|
</entry>
|
861
957
|
<entry file="file://$PROJECT_DIR$/.ruby-gemset">
|
862
958
|
<provider selected="true" editor-type-id="text-editor">
|
863
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="
|
959
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="102">
|
864
960
|
<caret line="0" column="12" selection-start-line="0" selection-start-column="12" selection-end-line="0" selection-end-column="12" />
|
865
961
|
<folding />
|
866
962
|
</state>
|
@@ -868,64 +964,56 @@
|
|
868
964
|
</entry>
|
869
965
|
<entry file="file://$PROJECT_DIR$/.ruby-version">
|
870
966
|
<provider selected="true" editor-type-id="text-editor">
|
871
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="
|
967
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="683">
|
872
968
|
<caret line="0" column="5" selection-start-line="0" selection-start-column="5" selection-end-line="0" selection-end-column="5" />
|
873
969
|
<folding />
|
874
970
|
</state>
|
875
971
|
</provider>
|
876
972
|
</entry>
|
877
|
-
<entry file="file://$PROJECT_DIR
|
973
|
+
<entry file="file://$PROJECT_DIR$/lib/meta_methods/dsl_builder.rb">
|
878
974
|
<provider selected="true" editor-type-id="text-editor">
|
879
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
880
|
-
<caret line="
|
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" />
|
881
977
|
<folding />
|
882
978
|
</state>
|
883
979
|
</provider>
|
884
980
|
</entry>
|
885
|
-
<entry file="file://$PROJECT_DIR$/
|
981
|
+
<entry file="file://$PROJECT_DIR$/lib/meta_methods/core.rb">
|
886
982
|
<provider selected="true" editor-type-id="text-editor">
|
887
|
-
<state vertical-scroll-proportion="0.
|
888
|
-
<caret line="
|
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" />
|
889
985
|
<folding />
|
890
986
|
</state>
|
891
987
|
</provider>
|
892
988
|
</entry>
|
893
|
-
<entry file="file://$PROJECT_DIR$/
|
989
|
+
<entry file="file://$PROJECT_DIR$/spec/dsl_builder_spec.rb">
|
894
990
|
<provider selected="true" editor-type-id="text-editor">
|
895
|
-
<state vertical-scroll-proportion="0.
|
896
|
-
<caret line="
|
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" />
|
897
993
|
<folding />
|
898
994
|
</state>
|
899
995
|
</provider>
|
900
996
|
</entry>
|
901
|
-
<entry file="file://$PROJECT_DIR$/spec/
|
997
|
+
<entry file="file://$PROJECT_DIR$/spec/core_spec.rb">
|
902
998
|
<provider selected="true" editor-type-id="text-editor">
|
903
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
904
|
-
<caret line="
|
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" />
|
905
1001
|
<folding />
|
906
1002
|
</state>
|
907
1003
|
</provider>
|
908
1004
|
</entry>
|
909
1005
|
<entry file="file://$PROJECT_DIR$/lib/meta_methods/version.rb">
|
910
1006
|
<provider selected="true" editor-type-id="text-editor">
|
911
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="
|
1007
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="153">
|
912
1008
|
<caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
|
913
1009
|
<folding />
|
914
1010
|
</state>
|
915
1011
|
</provider>
|
916
1012
|
</entry>
|
917
|
-
<entry file="file://$PROJECT_DIR$/lib/meta_methods/core.rb">
|
918
|
-
<provider selected="true" editor-type-id="text-editor">
|
919
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="165" max-vertical-offset="1185">
|
920
|
-
<caret line="7" column="0" selection-start-line="7" selection-start-column="0" selection-end-line="7" selection-end-column="0" />
|
921
|
-
<folding />
|
922
|
-
</state>
|
923
|
-
</provider>
|
924
|
-
</entry>
|
925
1013
|
<entry file="file://$PROJECT_DIR$/CHANGES">
|
926
1014
|
<provider selected="true" editor-type-id="text-editor">
|
927
|
-
<state vertical-scroll-proportion="0.
|
928
|
-
<caret line="
|
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" />
|
929
1017
|
<folding />
|
930
1018
|
</state>
|
931
1019
|
</provider>
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
1.9.3
|
data/CHANGES
CHANGED
data/lib/meta_methods/core.rb
CHANGED
@@ -1,5 +1,9 @@
|
|
1
|
+
require 'singleton'
|
2
|
+
|
1
3
|
module MetaMethods
|
2
|
-
|
4
|
+
class Core
|
5
|
+
include Singleton
|
6
|
+
|
3
7
|
def define_attribute(object, key, value)
|
4
8
|
object.singleton_class.send :attr_accessor, key.to_sym # creates accessor
|
5
9
|
|
@@ -20,32 +24,6 @@ module MetaMethods
|
|
20
24
|
extract_values(defined_vars(scope), scope)
|
21
25
|
end
|
22
26
|
|
23
|
-
def evaluate_dsl(create_block, destroy_block, execute_block)
|
24
|
-
begin
|
25
|
-
created_object = create_block.kind_of?(Proc) ? create_block.call : create_block
|
26
|
-
|
27
|
-
created_object.instance_variable_set(:@parent, block_parent(execute_block))
|
28
|
-
|
29
|
-
def created_object.method_missing(sym, *args, &block)
|
30
|
-
@parent.send sym, *args, &block
|
31
|
-
end
|
32
|
-
|
33
|
-
def created_object.respond_to?(sym, include_private = false)
|
34
|
-
@parent.respond_to? sym, include_private
|
35
|
-
end
|
36
|
-
|
37
|
-
created_object.instance_eval(&execute_block)
|
38
|
-
ensure
|
39
|
-
destroy_block.call(created_object) if destroy_block && created_object
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
def block_parent block
|
44
|
-
block_binding = block.binding
|
45
|
-
|
46
|
-
block_binding.eval 'self'
|
47
|
-
end
|
48
|
-
|
49
27
|
private
|
50
28
|
|
51
29
|
def defined_vars scope
|
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'singleton'
|
2
|
+
|
3
|
+
module MetaMethods
|
4
|
+
class DslBuilder
|
5
|
+
include Singleton
|
6
|
+
|
7
|
+
def evaluate_dsl(create_block, destroy_block, execute_block, parent_name="parent")
|
8
|
+
begin
|
9
|
+
created_object = create_block.kind_of?(Proc) ? create_block.call : create_block
|
10
|
+
|
11
|
+
created_object.instance_variable_set("@#{parent_name}".to_sym, context_parent(execute_block))
|
12
|
+
|
13
|
+
def created_object.method_missing(sym, *args, &block)
|
14
|
+
@parent.send sym, *args, &block
|
15
|
+
end
|
16
|
+
|
17
|
+
def created_object.respond_to?(sym, include_private = false)
|
18
|
+
@parent.respond_to? sym, include_private
|
19
|
+
end
|
20
|
+
|
21
|
+
created_object.instance_eval(&execute_block)
|
22
|
+
ensure
|
23
|
+
destroy_block.call(created_object) if destroy_block && created_object
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def context_parent block
|
28
|
+
block_binding = block.binding
|
29
|
+
|
30
|
+
block_binding.eval 'self'
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
34
|
+
end
|
data/lib/meta_methods/version.rb
CHANGED
@@ -1,10 +1,8 @@
|
|
1
1
|
require 'meta_methods/core'
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
end
|
3
|
+
describe MetaMethods::Core do
|
4
|
+
let(:subject) { MetaMethods::Core.instance }
|
6
5
|
|
7
|
-
describe MetaMethodsDemo do
|
8
6
|
describe "#define_attribute" do
|
9
7
|
it "creates new attribute on object" do
|
10
8
|
object = Object.new
|
@@ -40,28 +38,4 @@ describe MetaMethodsDemo do
|
|
40
38
|
end
|
41
39
|
end
|
42
40
|
|
43
|
-
describe "#evaluate_dsl" do
|
44
|
-
it "calls all lambdas" do
|
45
|
-
create_block = lambda { created }
|
46
|
-
destroy_block = lambda {|object| p destroyed(object) }
|
47
|
-
|
48
|
-
execute_block = lambda {|object| p executed(object) }
|
49
|
-
|
50
|
-
subject.evaluate_dsl(create_block, destroy_block, execute_block)
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
private
|
55
|
-
|
56
|
-
def created
|
57
|
-
p "created"
|
58
|
-
end
|
59
|
-
|
60
|
-
def destroyed object
|
61
|
-
p "destroyed: #{object}"
|
62
|
-
end
|
63
|
-
|
64
|
-
def executed object
|
65
|
-
p "executed: #{object}"
|
66
|
-
end
|
67
41
|
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'meta_methods/dsl_builder'
|
2
|
+
|
3
|
+
describe MetaMethods::DslBuilder do
|
4
|
+
let(:subject) { MetaMethods::DslBuilder.instance }
|
5
|
+
|
6
|
+
describe "#evaluate_dsl" do
|
7
|
+
it "calls all lambdas" do
|
8
|
+
create_block = lambda { created }
|
9
|
+
destroy_block = lambda {|object| p destroyed(object) }
|
10
|
+
|
11
|
+
execute_block = lambda {|object| p executed(object) }
|
12
|
+
|
13
|
+
subject.evaluate_dsl(create_block, destroy_block, execute_block)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
def created
|
20
|
+
p "created"
|
21
|
+
end
|
22
|
+
|
23
|
+
def destroyed object
|
24
|
+
p "destroyed: #{object}"
|
25
|
+
end
|
26
|
+
|
27
|
+
def executed object
|
28
|
+
p "executed: #{object}"
|
29
|
+
end
|
30
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meta_methods
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Shvets
|
@@ -14,28 +14,28 @@ dependencies:
|
|
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
|
-
-
|
48
|
-
-
|
49
|
-
-
|
50
|
-
-
|
51
|
-
-
|
52
|
-
-
|
53
|
-
-
|
54
|
-
-
|
55
|
-
-
|
56
|
-
-
|
57
|
-
-
|
58
|
-
-
|
59
|
-
-
|
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
|
@@ -64,10 +64,12 @@ files:
|
|
64
64
|
- Rakefile
|
65
65
|
- lib/meta_methods.rb
|
66
66
|
- lib/meta_methods/core.rb
|
67
|
+
- lib/meta_methods/dsl_builder.rb
|
67
68
|
- lib/meta_methods/version.rb
|
68
69
|
- meta_methods.gemspec
|
69
70
|
- meta_methods.gemspec.erb
|
70
|
-
- spec/
|
71
|
+
- spec/core_spec.rb
|
72
|
+
- spec/dsl_builder_spec.rb
|
71
73
|
homepage: http://github.com/shvets/meta_methods
|
72
74
|
licenses: []
|
73
75
|
metadata: {}
|
@@ -77,12 +79,12 @@ require_paths:
|
|
77
79
|
- lib
|
78
80
|
required_ruby_version: !ruby/object:Gem::Requirement
|
79
81
|
requirements:
|
80
|
-
- -
|
82
|
+
- - ! '>='
|
81
83
|
- !ruby/object:Gem::Version
|
82
84
|
version: '0'
|
83
85
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
86
|
requirements:
|
85
|
-
- -
|
87
|
+
- - ! '>='
|
86
88
|
- !ruby/object:Gem::Version
|
87
89
|
version: '0'
|
88
90
|
requirements: []
|
@@ -92,4 +94,5 @@ signing_key:
|
|
92
94
|
specification_version: 4
|
93
95
|
summary: Collection of methods for easing meta-programming
|
94
96
|
test_files:
|
95
|
-
- spec/
|
97
|
+
- spec/core_spec.rb
|
98
|
+
- spec/dsl_builder_spec.rb
|