meta_methods 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.idea/meta_methods.iml +96 -21
- data/.idea/workspace.xml +348 -164
- data/.ruby-version +1 -1
- data/CHANGES +5 -1
- data/lib/meta_methods/core.rb +50 -77
- data/lib/meta_methods/version.rb +1 -1
- data/spec/meta_methods_spec.rb +31 -6
- metadata +22 -22
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
YWE3YzgwMTdhMDNhOWI0YmExMzU4YzI2MzE5YjkxYjQzNjU1N2YxOQ==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b34fa445719070b42f6b95f6f1e57e0dcbb155a2
|
4
|
+
data.tar.gz: 17ab728f3d7aa38a2cff727773288dd247ea8c28
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
NjdmNGI0NDJiMjg5MWQ3YzY3OTgxNzg4ZDUwZWI4ZDY5NTQ4ODc0MGFkZDFl
|
11
|
-
MDdkYTUwN2NiYzk1YzI3NTBlZjAxZDVmNzMxYzM1YjAyMGIxNDU=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
MjY5MGU1YjY2Zjc4Y2JmZGQxZDk4YTJmOTE2MGJmYTdiNWMxMzc0MDYyZjQx
|
14
|
-
OTdiMThmNTRmMzc4YWU3ZDRhZjNjMjZjYjE1NGY0OGVjMjFmNmQ5N2U1Yzg0
|
15
|
-
Y2I4MGJhMWJlNWQxNjlhZThkODA4YWZiZTFkYzZjMzBkZTU0NWQ=
|
6
|
+
metadata.gz: ca0785ee8dad8ef900d75cc35627303d10c8550a31788d4f77e0b5121c4cc27469bb680b2c1a98363b2e981c1297fea02e096915b3700fc626a84c3bf32bf9f1
|
7
|
+
data.tar.gz: 6c7850742ed2314c5a5c8fe935d5bffa8bdd9b7226813c844b54782775ac37eae73bc273602fb53913b948fa21ce22eb7d44fe8da88d70d245d3d22cb8ffc181
|
data/.idea/meta_methods.iml
CHANGED
@@ -10,11 +10,47 @@
|
|
10
10
|
</facet>
|
11
11
|
</component>
|
12
12
|
<component name="ModuleRunConfigurationManager">
|
13
|
-
<configuration default="false" name="
|
13
|
+
<configuration default="false" name="Run spec 'meta_methods_spec': meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
14
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
15
|
+
<module name="meta_methods" />
|
16
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
17
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
18
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
19
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
20
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
21
|
+
<envs>
|
22
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
23
|
+
</envs>
|
24
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
25
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
26
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
27
|
+
<COVERAGE_PATTERN ENABLED="true">
|
28
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
29
|
+
</COVERAGE_PATTERN>
|
30
|
+
</EXTENSION>
|
31
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
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/meta_methods_spec.rb" />
|
34
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
35
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
36
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
37
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
38
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
39
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
40
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
41
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
42
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
43
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
44
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
45
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
46
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
47
|
+
<method />
|
48
|
+
</configuration>
|
49
|
+
<configuration default="false" name="MetaMethodsDemo#define_attribute creates new attribute on object: meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
14
50
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
15
51
|
<module name="meta_methods" />
|
16
52
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
17
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR
|
53
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
18
54
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
19
55
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
20
56
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
@@ -33,7 +69,7 @@
|
|
33
69
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/meta_methods_spec.rb" />
|
34
70
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
35
71
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
36
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MetaMethodsDemo
|
72
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MetaMethodsDemo#define_attribute creates new attribute on object" />
|
37
73
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
38
74
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
39
75
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -46,7 +82,7 @@
|
|
46
82
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
47
83
|
<method />
|
48
84
|
</configuration>
|
49
|
-
<configuration default="false" name="
|
85
|
+
<configuration default="false" name="MetaMethodsDemo#define_attributes creates new attributes on object: meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
50
86
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
51
87
|
<module name="meta_methods" />
|
52
88
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -57,7 +93,7 @@
|
|
57
93
|
<envs>
|
58
94
|
<env name="JRUBY_OPTS" value="-X+O" />
|
59
95
|
</envs>
|
60
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="
|
96
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
61
97
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
62
98
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
63
99
|
<COVERAGE_PATTERN ENABLED="true">
|
@@ -69,7 +105,43 @@
|
|
69
105
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/meta_methods_spec.rb" />
|
70
106
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
71
107
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
72
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
108
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MetaMethodsDemo#define_attributes creates new attributes on object" />
|
109
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
110
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
111
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
112
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
113
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
114
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
115
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
116
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
117
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
118
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
119
|
+
<method />
|
120
|
+
</configuration>
|
121
|
+
<configuration default="false" name="MetaMethodsDemo#locals_to_hash should evaluate content: meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
122
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
123
|
+
<module name="meta_methods" />
|
124
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
125
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
126
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
127
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
128
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
129
|
+
<envs>
|
130
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
131
|
+
</envs>
|
132
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
133
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
134
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
135
|
+
<COVERAGE_PATTERN ENABLED="true">
|
136
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
137
|
+
</COVERAGE_PATTERN>
|
138
|
+
</EXTENSION>
|
139
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
140
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
141
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/meta_methods_spec.rb" />
|
142
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
143
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
144
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MetaMethodsDemo#locals_to_hash should evaluate content" />
|
73
145
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
74
146
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
75
147
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -82,7 +154,7 @@
|
|
82
154
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
83
155
|
<method />
|
84
156
|
</configuration>
|
85
|
-
<configuration default="false" name="
|
157
|
+
<configuration default="false" name="MetaMethodsDemo#evaluate_dsl : meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
86
158
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
87
159
|
<module name="meta_methods" />
|
88
160
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -105,7 +177,7 @@
|
|
105
177
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/meta_methods_spec.rb" />
|
106
178
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
107
179
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
108
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="
|
180
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MetaMethodsDemo#evaluate_dsl " />
|
109
181
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
110
182
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
111
183
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -114,25 +186,28 @@
|
|
114
186
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
115
187
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
116
188
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
189
|
+
<RunnerSettings RunnerId="RubyDebugRunner" />
|
117
190
|
<RunnerSettings RunnerId="RubyRunner" />
|
191
|
+
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
118
192
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
119
193
|
<method />
|
120
194
|
</configuration>
|
121
195
|
</component>
|
122
196
|
<component name="NewModuleRootManager">
|
123
197
|
<content url="file://$MODULE_DIR$" />
|
124
|
-
<orderEntry type="jdk" jdkName="RVM: ruby-1.
|
198
|
+
<orderEntry type="jdk" jdkName="RVM: ruby-2.1.4 [meta_methods]" jdkType="RUBY_SDK" />
|
125
199
|
<orderEntry type="sourceFolder" forTests="false" />
|
126
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
127
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
128
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
129
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
130
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
131
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
132
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
133
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec
|
134
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-
|
135
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-
|
200
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.7.4, RVM: ruby-2.1.4 [meta_methods]) [gem]" level="application" />
|
201
|
+
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.5, RVM: ruby-2.1.4 [meta_methods]) [gem]" level="application" />
|
202
|
+
<orderEntry type="library" scope="PROVIDED" name="file_utils (v1.0.7, RVM: ruby-2.1.4 [meta_methods]) [gem]" level="application" />
|
203
|
+
<orderEntry type="library" scope="PROVIDED" name="gemcutter (v0.7.1, RVM: ruby-2.1.4 [meta_methods]) [gem]" level="application" />
|
204
|
+
<orderEntry type="library" scope="PROVIDED" name="gemspec_deps_gen (v1.1.2, RVM: ruby-2.1.4 [meta_methods]) [gem]" level="application" />
|
205
|
+
<orderEntry type="library" scope="PROVIDED" name="metaclass (v0.0.4, RVM: ruby-2.1.4 [meta_methods]) [gem]" level="application" />
|
206
|
+
<orderEntry type="library" scope="PROVIDED" name="mocha (v1.1.0, RVM: ruby-2.1.4 [meta_methods]) [gem]" level="application" />
|
207
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.1.0, RVM: ruby-2.1.4 [meta_methods]) [gem]" level="application" />
|
208
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.1.7, RVM: ruby-2.1.4 [meta_methods]) [gem]" level="application" />
|
209
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.1.2, RVM: ruby-2.1.4 [meta_methods]) [gem]" level="application" />
|
210
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.1.3, RVM: ruby-2.1.4 [meta_methods]) [gem]" level="application" />
|
211
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.1.2, RVM: ruby-2.1.4 [meta_methods]) [gem]" level="application" />
|
136
212
|
</component>
|
137
|
-
</module>
|
138
|
-
|
213
|
+
</module>
|