meta_methods 1.0.6 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.idea/meta_methods.iml +121 -1
- data/.idea/misc.xml +0 -3
- data/.idea/workspace.xml +305 -159
- data/CHANGES +6 -1
- data/Rakefile +4 -4
- data/lib/meta_methods.rb +2 -2
- data/lib/meta_methods/{meta_methods.rb → core.rb} +32 -19
- data/lib/meta_methods/version.rb +1 -1
- data/spec/meta_methods_spec.rb +31 -7
- metadata +4 -5
- data/projectFilesBackup/.idea/meta_methods.iml +0 -19
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGEwZDJkNjA1MjMzODY5ZTY4NWNjNTY4ODc3Yjk1N2E5OGRhNjRhNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWE3YzgwMTdhMDNhOWI0YmExMzU4YzI2MzE5YjkxYjQzNjU1N2YxOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTRjZDgxNGI5NTQ0YjVjN2ExMmIzOWM4NDk1ZmMzN2RiZWUxODI1YjA2YTE3
|
10
|
+
NjdmNGI0NDJiMjg5MWQ3YzY3OTgxNzg4ZDUwZWI4ZDY5NTQ4ODc0MGFkZDFl
|
11
|
+
MDdkYTUwN2NiYzk1YzI3NTBlZjAxZDVmNzMxYzM1YjAyMGIxNDU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjY5MGU1YjY2Zjc4Y2JmZGQxZDk4YTJmOTE2MGJmYTdiNWMxMzc0MDYyZjQx
|
14
|
+
OTdiMThmNTRmMzc4YWU3ZDRhZjNjMjZjYjE1NGY0OGVjMjFmNmQ5N2U1Yzg0
|
15
|
+
Y2I4MGJhMWJlNWQxNjlhZThkODA4YWZiZTFkYzZjMzBkZTU0NWQ=
|
data/.idea/meta_methods.iml
CHANGED
@@ -9,10 +9,130 @@
|
|
9
9
|
</configuration>
|
10
10
|
</facet>
|
11
11
|
</component>
|
12
|
+
<component name="ModuleRunConfigurationManager">
|
13
|
+
<configuration default="false" name="MetaMethodsDemo should evaluate content" 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$/spec" />
|
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="true" />
|
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="MetaMethodsDemo should evaluate content" />
|
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="Run spec 'meta_methods_spec': meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
50
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
51
|
+
<module name="meta_methods" />
|
52
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
53
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
54
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
55
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
56
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
57
|
+
<envs>
|
58
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
59
|
+
</envs>
|
60
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
61
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
62
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
63
|
+
<COVERAGE_PATTERN ENABLED="true">
|
64
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
65
|
+
</COVERAGE_PATTERN>
|
66
|
+
</EXTENSION>
|
67
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
68
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
69
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/meta_methods_spec.rb" />
|
70
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
71
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
72
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
73
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
74
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
75
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
76
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
77
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
78
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
79
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
80
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
81
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
82
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
83
|
+
<method />
|
84
|
+
</configuration>
|
85
|
+
<configuration default="false" name="MetaMethods: meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
86
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
87
|
+
<module name="meta_methods" />
|
88
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
89
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
90
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
91
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
92
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
93
|
+
<envs>
|
94
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
95
|
+
</envs>
|
96
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
97
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
98
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
99
|
+
<COVERAGE_PATTERN ENABLED="true">
|
100
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
101
|
+
</COVERAGE_PATTERN>
|
102
|
+
</EXTENSION>
|
103
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
104
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
105
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/meta_methods_spec.rb" />
|
106
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
107
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
108
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MetaMethods" />
|
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
|
+
</component>
|
12
122
|
<component name="NewModuleRootManager">
|
13
123
|
<content url="file://$MODULE_DIR$" />
|
14
|
-
<orderEntry type="
|
124
|
+
<orderEntry type="jdk" jdkName="RVM: ruby-1.9.3-p545 [meta_methods]" jdkType="RUBY_SDK" />
|
15
125
|
<orderEntry type="sourceFolder" forTests="false" />
|
126
|
+
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.5, RVM: ruby-1.9.3-p545 [meta_methods]) [gem]" level="application" />
|
127
|
+
<orderEntry type="library" scope="PROVIDED" name="file_utils (v1.0.7, RVM: ruby-1.9.3-p545 [meta_methods]) [gem]" level="application" />
|
128
|
+
<orderEntry type="library" scope="PROVIDED" name="gemcutter (v0.7.1, RVM: ruby-1.9.3-p545 [meta_methods]) [gem]" level="application" />
|
129
|
+
<orderEntry type="library" scope="PROVIDED" name="gemspec_deps_gen (v1.1.2, RVM: ruby-1.9.3-p545 [meta_methods]) [gem]" level="application" />
|
130
|
+
<orderEntry type="library" scope="PROVIDED" name="metaclass (v0.0.4, RVM: ruby-1.9.3-p545 [meta_methods]) [gem]" level="application" />
|
131
|
+
<orderEntry type="library" scope="PROVIDED" name="mocha (v1.0.0, RVM: ruby-1.9.3-p545 [meta_methods]) [gem]" level="application" />
|
132
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec (v2.14.1, RVM: ruby-1.9.3-p545 [meta_methods]) [gem]" level="application" />
|
133
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v2.14.8, RVM: ruby-1.9.3-p545 [meta_methods]) [gem]" level="application" />
|
134
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v2.14.5, RVM: ruby-1.9.3-p545 [meta_methods]) [gem]" level="application" />
|
135
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v2.14.6, RVM: ruby-1.9.3-p545 [meta_methods]) [gem]" level="application" />
|
16
136
|
</component>
|
17
137
|
</module>
|
18
138
|
|
data/.idea/misc.xml
CHANGED
@@ -1,8 +1,5 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<project version="4">
|
3
|
-
<component name="ProjectResources">
|
4
|
-
<default-html-doctype>$APPLICATION_HOME_DIR$/lib/rubymine.jar!/resources/html5-schema/html5.rnc</default-html-doctype>
|
5
|
-
</component>
|
6
3
|
<component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-1.9.3-p194 [meta_methods]" project-jdk-type="RUBY_SDK" />
|
7
4
|
</project>
|
8
5
|
|
data/.idea/workspace.xml
CHANGED
@@ -1,30 +1,9 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<project version="4">
|
3
3
|
<component name="ChangeListManager">
|
4
|
-
<list default="true" id="cb96d5fa-a536-45ee-8377-2c11e1c06313" name="Default" comment=""
|
5
|
-
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.ruby-gemset" />
|
6
|
-
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.ruby-version" />
|
7
|
-
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/projectFilesBackup/.idea/meta_methods.iml" />
|
8
|
-
<change type="DELETED" beforePath="$PROJECT_DIR$/.rvmrc" afterPath="" />
|
9
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/CHANGES" afterPath="$PROJECT_DIR$/CHANGES" />
|
10
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Gemfile" afterPath="$PROJECT_DIR$/Gemfile" />
|
11
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/LICENSE" afterPath="$PROJECT_DIR$/LICENSE" />
|
12
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Rakefile" afterPath="$PROJECT_DIR$/Rakefile" />
|
13
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/meta_methods.gemspec.erb" afterPath="$PROJECT_DIR$/meta_methods.gemspec.erb" />
|
14
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/meta_methods.iml" afterPath="$PROJECT_DIR$/.idea/meta_methods.iml" />
|
15
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/meta_methods/meta_methods.rb" afterPath="$PROJECT_DIR$/lib/meta_methods/meta_methods.rb" />
|
16
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/meta_methods/version.rb" afterPath="$PROJECT_DIR$/lib/meta_methods/version.rb" />
|
17
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
18
|
-
</list>
|
4
|
+
<list default="true" id="cb96d5fa-a536-45ee-8377-2c11e1c06313" name="Default" comment="" />
|
19
5
|
<ignored path="meta_methods.iws" />
|
20
6
|
<ignored path=".idea/workspace.xml" />
|
21
|
-
<file path="/Dummy.txt" changelist="cb96d5fa-a536-45ee-8377-2c11e1c06313" time="1380730985283" ignored="false" />
|
22
|
-
<file path="$PROJECT_DIR$/../zip_dsl/.idea/workspace.xml" changelist="cb96d5fa-a536-45ee-8377-2c11e1c06313" time="1380731367618" ignored="false" />
|
23
|
-
<file path="/.ruby-version" changelist="cb96d5fa-a536-45ee-8377-2c11e1c06313" time="1380731037138" ignored="false" />
|
24
|
-
<file path="/version.rb" changelist="cb96d5fa-a536-45ee-8377-2c11e1c06313" time="1380731064434" ignored="false" />
|
25
|
-
<file path="/meta_methods.rb" changelist="cb96d5fa-a536-45ee-8377-2c11e1c06313" time="1380731311027" ignored="false" />
|
26
|
-
<file path="/meta_methods.gemspec.erb" changelist="cb96d5fa-a536-45ee-8377-2c11e1c06313" time="1380731389524" ignored="false" />
|
27
|
-
<file path="/CHANGES" changelist="cb96d5fa-a536-45ee-8377-2c11e1c06313" time="1380731416907" ignored="false" />
|
28
7
|
<option name="TRACKING_ENABLED" value="true" />
|
29
8
|
<option name="SHOW_DIALOG" value="false" />
|
30
9
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
@@ -32,6 +11,9 @@
|
|
32
11
|
<option name="LAST_RESOLUTION" value="IGNORE" />
|
33
12
|
</component>
|
34
13
|
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
14
|
+
<component name="CoverageDataManager">
|
15
|
+
<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" />
|
16
|
+
</component>
|
35
17
|
<component name="CreatePatchCommitExecutor">
|
36
18
|
<option name="PATCH_PATH" value="" />
|
37
19
|
</component>
|
@@ -44,22 +26,21 @@
|
|
44
26
|
</component>
|
45
27
|
<component name="FileEditorManager">
|
46
28
|
<leaf>
|
47
|
-
<file leaf-file-name="
|
48
|
-
<entry file="file://$PROJECT_DIR$/
|
49
|
-
<provider editor-type-id="MarkdownPreviewEditor">
|
50
|
-
<state />
|
51
|
-
</provider>
|
29
|
+
<file leaf-file-name="meta_methods_spec.rb" pinned="false" current="false" current-in-tab="false">
|
30
|
+
<entry file="file://$PROJECT_DIR$/spec/meta_methods_spec.rb">
|
52
31
|
<provider selected="true" editor-type-id="text-editor">
|
53
|
-
<state
|
32
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="720">
|
33
|
+
<caret line="42" column="0" selection-start-line="42" selection-start-column="0" selection-end-line="42" selection-end-column="0" />
|
54
34
|
<folding />
|
55
35
|
</state>
|
56
36
|
</provider>
|
57
37
|
</entry>
|
58
38
|
</file>
|
59
|
-
<file leaf-file-name="
|
60
|
-
<entry file="file://$PROJECT_DIR$/
|
39
|
+
<file leaf-file-name="core.rb" pinned="false" current="false" current-in-tab="false">
|
40
|
+
<entry file="file://$PROJECT_DIR$/lib/meta_methods/core.rb">
|
61
41
|
<provider selected="true" editor-type-id="text-editor">
|
62
|
-
<state
|
42
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1590">
|
43
|
+
<caret line="5" column="26" selection-start-line="5" selection-start-column="26" selection-end-line="5" selection-end-column="26" />
|
63
44
|
<folding />
|
64
45
|
</state>
|
65
46
|
</provider>
|
@@ -68,25 +49,28 @@
|
|
68
49
|
<file leaf-file-name="meta_methods.gemspec" pinned="false" current="false" current-in-tab="false">
|
69
50
|
<entry file="file://$PROJECT_DIR$/meta_methods.gemspec">
|
70
51
|
<provider selected="true" editor-type-id="text-editor">
|
71
|
-
<state
|
52
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="435">
|
53
|
+
<caret line="23" column="0" selection-start-line="23" selection-start-column="0" selection-end-line="23" selection-end-column="0" />
|
72
54
|
<folding />
|
73
55
|
</state>
|
74
56
|
</provider>
|
75
57
|
</entry>
|
76
58
|
</file>
|
77
|
-
<file leaf-file-name="
|
78
|
-
<entry file="file://$PROJECT_DIR$/
|
59
|
+
<file leaf-file-name="Rakefile" pinned="false" current="false" current-in-tab="false">
|
60
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
79
61
|
<provider selected="true" editor-type-id="text-editor">
|
80
|
-
<state
|
62
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="735">
|
63
|
+
<caret line="14" column="52" selection-start-line="14" selection-start-column="52" selection-end-line="14" selection-end-column="52" />
|
81
64
|
<folding />
|
82
65
|
</state>
|
83
66
|
</provider>
|
84
67
|
</entry>
|
85
68
|
</file>
|
86
|
-
<file leaf-file-name="
|
87
|
-
<entry file="file://$PROJECT_DIR
|
69
|
+
<file leaf-file-name="workspace.xml" pinned="false" current="false" current-in-tab="false">
|
70
|
+
<entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
|
88
71
|
<provider selected="true" editor-type-id="text-editor">
|
89
|
-
<state
|
72
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="15" max-vertical-offset="11400">
|
73
|
+
<caret line="5" column="55" selection-start-line="5" selection-start-column="55" selection-end-line="5" selection-end-column="55" />
|
90
74
|
<folding />
|
91
75
|
</state>
|
92
76
|
</provider>
|
@@ -95,19 +79,8 @@
|
|
95
79
|
<file leaf-file-name="CHANGES" pinned="false" current="true" current-in-tab="true">
|
96
80
|
<entry file="file://$PROJECT_DIR$/CHANGES">
|
97
81
|
<provider selected="true" editor-type-id="text-editor">
|
98
|
-
<state
|
99
|
-
<
|
100
|
-
</state>
|
101
|
-
</provider>
|
102
|
-
</entry>
|
103
|
-
</file>
|
104
|
-
<file leaf-file-name="LICENSE" pinned="false" current="false" current-in-tab="false">
|
105
|
-
<entry file="file://$PROJECT_DIR$/LICENSE">
|
106
|
-
<provider editor-type-id="com.intellij.persistence.database.editor.CsvTableFileEditorProvider">
|
107
|
-
<state />
|
108
|
-
</provider>
|
109
|
-
<provider selected="true" editor-type-id="text-editor">
|
110
|
-
<state line="0" column="18" selection-start="18" selection-end="18" vertical-scroll-proportion="-0.0">
|
82
|
+
<state vertical-scroll-proportion="0.2932331" vertical-offset="0" max-vertical-offset="665">
|
83
|
+
<caret line="13" column="14" selection-start-line="13" selection-start-column="14" selection-end-line="13" selection-end-column="14" />
|
111
84
|
<folding />
|
112
85
|
</state>
|
113
86
|
</provider>
|
@@ -116,16 +89,8 @@
|
|
116
89
|
<file leaf-file-name="meta_methods.gemspec.erb" pinned="false" current="false" current-in-tab="false">
|
117
90
|
<entry file="file://$PROJECT_DIR$/meta_methods.gemspec.erb">
|
118
91
|
<provider selected="true" editor-type-id="text-editor">
|
119
|
-
<state
|
120
|
-
<
|
121
|
-
</state>
|
122
|
-
</provider>
|
123
|
-
</entry>
|
124
|
-
</file>
|
125
|
-
<file leaf-file-name="Rakefile" pinned="false" current="false" current-in-tab="false">
|
126
|
-
<entry file="file://$PROJECT_DIR$/Rakefile">
|
127
|
-
<provider selected="true" editor-type-id="text-editor">
|
128
|
-
<state line="8" column="30" selection-start="0" selection-end="1006" vertical-scroll-proportion="0.0">
|
92
|
+
<state vertical-scroll-proportion="-12.5" vertical-offset="0" max-vertical-offset="390">
|
93
|
+
<caret line="20" column="0" selection-start-line="20" selection-start-column="0" selection-end-line="20" selection-end-column="0" />
|
129
94
|
<folding />
|
130
95
|
</state>
|
131
96
|
</provider>
|
@@ -157,13 +122,17 @@
|
|
157
122
|
<option value="$PROJECT_DIR$/meta_methods.gemspec" />
|
158
123
|
<option value="$PROJECT_DIR$/.ruby-gemset" />
|
159
124
|
<option value="$PROJECT_DIR$/.ruby-version" />
|
160
|
-
<option value="$PROJECT_DIR$/lib/meta_methods/version.rb" />
|
161
125
|
<option value="$PROJECT_DIR$/Gemfile" />
|
162
126
|
<option value="$PROJECT_DIR$/Rakefile" />
|
163
|
-
<option value="$PROJECT_DIR$/lib/meta_methods/meta_methods.rb" />
|
164
127
|
<option value="$PROJECT_DIR$/LICENSE" />
|
165
128
|
<option value="$PROJECT_DIR$/meta_methods.gemspec.erb" />
|
129
|
+
<option value="$PROJECT_DIR$/lib/meta_methods/meta_methods.rb" />
|
130
|
+
<option value="$PROJECT_DIR$/lib/meta_methods.rb" />
|
131
|
+
<option value="$PROJECT_DIR$/lib/meta_methods/version.rb" />
|
166
132
|
<option value="$PROJECT_DIR$/CHANGES" />
|
133
|
+
<option value="$PROJECT_DIR$/spec/meta_methods_spec.rb" />
|
134
|
+
<option value="$PROJECT_DIR$/lib/meta_methods/core.rb" />
|
135
|
+
<option value="$PROJECT_DIR$/.idea/workspace.xml" />
|
167
136
|
</list>
|
168
137
|
</option>
|
169
138
|
</component>
|
@@ -187,7 +156,7 @@
|
|
187
156
|
<option name="STATE" value="0" />
|
188
157
|
</component>
|
189
158
|
<component name="ProjectView">
|
190
|
-
<navigator currentView="ProjectPane" proportions="" version="1"
|
159
|
+
<navigator currentView="ProjectPane" proportions="" version="1">
|
191
160
|
<flattenPackages />
|
192
161
|
<showMembers />
|
193
162
|
<showModules />
|
@@ -199,7 +168,6 @@
|
|
199
168
|
<sortByType />
|
200
169
|
</navigator>
|
201
170
|
<panes>
|
202
|
-
<pane id="Scope" />
|
203
171
|
<pane id="ProjectPane">
|
204
172
|
<subPane>
|
205
173
|
<PATH>
|
@@ -266,18 +234,23 @@
|
|
266
234
|
</PATH>
|
267
235
|
</subPane>
|
268
236
|
</pane>
|
237
|
+
<pane id="Scope" />
|
269
238
|
</panes>
|
270
239
|
</component>
|
271
240
|
<component name="PropertiesComponent">
|
272
241
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
273
242
|
<property name="recentsLimit" value="5" />
|
243
|
+
<property name="options.lastSelected" value="org.jetbrains.plugins.ruby.settings.RubyActiveModuleSdkConfigurable" />
|
244
|
+
<property name="options.splitter.main.proportions" value="0.3" />
|
245
|
+
<property name="options.splitter.details.proportions" value="0.2" />
|
246
|
+
<property name="options.searchVisible" value="true" />
|
274
247
|
</component>
|
275
|
-
<component name="RunManager" selected="RSpec.
|
248
|
+
<component name="RunManager" selected="RSpec.MetaMethods: meta_methods">
|
276
249
|
<configuration default="false" name="MetaMethodsDemo should evaluate content" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
277
250
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
278
251
|
<module name="meta_methods" />
|
279
252
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
280
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$
|
253
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$/spec" />
|
281
254
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
282
255
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
283
256
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
@@ -285,7 +258,7 @@
|
|
285
258
|
<env name="JRUBY_OPTS" value="-X+O" />
|
286
259
|
</envs>
|
287
260
|
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
288
|
-
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
261
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
289
262
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
290
263
|
<COVERAGE_PATTERN ENABLED="true">
|
291
264
|
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
@@ -293,7 +266,7 @@
|
|
293
266
|
</EXTENSION>
|
294
267
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
295
268
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
296
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$
|
269
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/meta_methods_spec.rb" />
|
297
270
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
298
271
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
299
272
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MetaMethodsDemo should evaluate content" />
|
@@ -302,11 +275,89 @@
|
|
302
275
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
303
276
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
304
277
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
278
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
279
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
280
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
281
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
282
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
283
|
+
<method />
|
284
|
+
</configuration>
|
285
|
+
<configuration default="false" name="Run spec 'meta_methods_spec': meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
286
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
287
|
+
<module name="meta_methods" />
|
288
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
289
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
290
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
291
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
292
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
293
|
+
<envs>
|
294
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
295
|
+
</envs>
|
296
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
297
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
298
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
299
|
+
<COVERAGE_PATTERN ENABLED="true">
|
300
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
301
|
+
</COVERAGE_PATTERN>
|
302
|
+
</EXTENSION>
|
303
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
304
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
305
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/meta_methods_spec.rb" />
|
306
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
307
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
308
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
309
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
310
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
311
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
312
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
313
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
314
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
315
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
305
316
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
306
317
|
<RunnerSettings RunnerId="RubyRunner" />
|
307
318
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
308
319
|
<method />
|
309
320
|
</configuration>
|
321
|
+
<configuration default="false" name="MetaMethods: meta_methods" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
322
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
323
|
+
<module name="meta_methods" />
|
324
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
325
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
326
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
327
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
328
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
329
|
+
<envs>
|
330
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
331
|
+
</envs>
|
332
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
333
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
334
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
335
|
+
<COVERAGE_PATTERN ENABLED="true">
|
336
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
337
|
+
</COVERAGE_PATTERN>
|
338
|
+
</EXTENSION>
|
339
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
340
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
341
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/meta_methods_spec.rb" />
|
342
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
343
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
344
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MetaMethods" />
|
345
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
346
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
347
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
348
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
349
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
350
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
351
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
352
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
353
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
354
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
355
|
+
<method />
|
356
|
+
</configuration>
|
357
|
+
<configuration default="true" type="JavaScriptTestRunnerKarma" factoryName="Karma" config-file="">
|
358
|
+
<envs />
|
359
|
+
<method />
|
360
|
+
</configuration>
|
310
361
|
<configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
|
311
362
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
312
363
|
<module name="" />
|
@@ -317,7 +368,7 @@
|
|
317
368
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
318
369
|
<envs />
|
319
370
|
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
320
|
-
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
371
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
321
372
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
322
373
|
<COVERAGE_PATTERN ENABLED="true">
|
323
374
|
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
@@ -334,6 +385,8 @@
|
|
334
385
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
335
386
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
336
387
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
388
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
389
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
337
390
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
338
391
|
<method />
|
339
392
|
</configuration>
|
@@ -346,7 +399,7 @@
|
|
346
399
|
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
347
400
|
<envs />
|
348
401
|
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
349
|
-
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
402
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
350
403
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
351
404
|
<COVERAGE_PATTERN ENABLED="true">
|
352
405
|
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
@@ -357,6 +410,9 @@
|
|
357
410
|
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
358
411
|
<method />
|
359
412
|
</configuration>
|
413
|
+
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
|
414
|
+
<method />
|
415
|
+
</configuration>
|
360
416
|
<configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
|
361
417
|
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
362
418
|
<module name="" />
|
@@ -367,7 +423,7 @@
|
|
367
423
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
368
424
|
<envs />
|
369
425
|
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
370
|
-
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
426
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
371
427
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
372
428
|
<COVERAGE_PATTERN ENABLED="true">
|
373
429
|
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
@@ -380,15 +436,24 @@
|
|
380
436
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
381
437
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
382
438
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
439
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
440
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
383
441
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
384
442
|
<method />
|
385
443
|
</configuration>
|
386
|
-
<
|
444
|
+
<configuration default="true" type="NodeJSConfigurationType" factoryName="Node.js" working-dir="">
|
445
|
+
<method />
|
446
|
+
</configuration>
|
447
|
+
<list size="3">
|
387
448
|
<item index="0" class="java.lang.String" itemvalue="RSpec.MetaMethodsDemo should evaluate content" />
|
449
|
+
<item index="1" class="java.lang.String" itemvalue="RSpec.Run spec 'meta_methods_spec': meta_methods" />
|
450
|
+
<item index="2" class="java.lang.String" itemvalue="RSpec.MetaMethods: meta_methods" />
|
388
451
|
</list>
|
389
452
|
<recent_temporary>
|
390
|
-
<list size="
|
391
|
-
<item index="0" class="java.lang.String" itemvalue="RSpec.
|
453
|
+
<list size="3">
|
454
|
+
<item index="0" class="java.lang.String" itemvalue="RSpec.MetaMethods: meta_methods" />
|
455
|
+
<item index="1" class="java.lang.String" itemvalue="RSpec.Run spec 'meta_methods_spec': meta_methods" />
|
456
|
+
<item index="2" class="java.lang.String" itemvalue="RSpec.MetaMethodsDemo should evaluate content" />
|
392
457
|
</list>
|
393
458
|
</recent_temporary>
|
394
459
|
</component>
|
@@ -399,126 +464,173 @@
|
|
399
464
|
<created>1380730985117</created>
|
400
465
|
<updated>1380730985117</updated>
|
401
466
|
</task>
|
467
|
+
<task id="LOCAL-00001" summary="changes in internal implementation">
|
468
|
+
<created>1395773352735</created>
|
469
|
+
<updated>1395773352735</updated>
|
470
|
+
</task>
|
471
|
+
<option name="localTasksCounter" value="2" />
|
402
472
|
<servers />
|
403
473
|
</component>
|
404
474
|
<component name="ToolWindowManager">
|
405
475
|
<frame x="240" y="142" width="1588" height="1058" extended-state="0" />
|
406
|
-
<editor active="
|
476
|
+
<editor active="false" />
|
407
477
|
<layout>
|
408
|
-
<window_info id="
|
409
|
-
<window_info id="
|
410
|
-
<window_info id="
|
411
|
-
<window_info id="
|
412
|
-
<window_info id="
|
478
|
+
<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="-1" side_tool="false" content_ui="tabs" />
|
479
|
+
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.28037384" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
480
|
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
481
|
+
<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" />
|
482
|
+
<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" />
|
413
483
|
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
414
|
-
<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" />
|
415
484
|
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
|
416
|
-
<window_info id="
|
485
|
+
<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" />
|
417
486
|
<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" />
|
487
|
+
<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" />
|
488
|
+
<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" />
|
489
|
+
<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" />
|
490
|
+
<window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.2567917" sideWeight="0.71904266" order="0" side_tool="false" content_ui="combo" />
|
491
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32917964" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
418
492
|
<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" />
|
419
493
|
<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" />
|
420
494
|
<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" />
|
421
|
-
<window_info id="Find" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3298647" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
422
495
|
<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" />
|
423
|
-
<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" />
|
424
496
|
<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" />
|
425
497
|
<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" />
|
426
|
-
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
427
498
|
<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" />
|
499
|
+
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
428
500
|
</layout>
|
429
501
|
</component>
|
502
|
+
<component name="Vcs.Log.UiProperties">
|
503
|
+
<option name="RECENTLY_FILTERED_USER_GROUPS">
|
504
|
+
<collection />
|
505
|
+
</option>
|
506
|
+
<option name="RECENTLY_FILTERED_BRANCH_GROUPS">
|
507
|
+
<collection />
|
508
|
+
</option>
|
509
|
+
</component>
|
430
510
|
<component name="VcsContentAnnotationSettings">
|
431
511
|
<option name="myLimit" value="2678400000" />
|
432
512
|
</component>
|
433
513
|
<component name="VcsManagerConfiguration">
|
434
|
-
<option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="true" />
|
435
514
|
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="true" />
|
436
|
-
<option name="CHECK_NEW_TODO" value="true" />
|
437
515
|
<option name="myTodoPanelSettings">
|
438
|
-
<
|
439
|
-
<are-packages-shown value="false" />
|
440
|
-
<are-modules-shown value="false" />
|
441
|
-
<flatten-packages value="false" />
|
442
|
-
<is-autoscroll-to-source value="false" />
|
443
|
-
</value>
|
516
|
+
<TodoPanelSettings />
|
444
517
|
</option>
|
445
|
-
<
|
446
|
-
<option name="
|
447
|
-
<option name="PERFORM_EDIT_IN_BACKGROUND" value="true" />
|
448
|
-
<option name="PERFORM_CHECKOUT_IN_BACKGROUND" value="true" />
|
449
|
-
<option name="PERFORM_ADD_REMOVE_IN_BACKGROUND" value="true" />
|
450
|
-
<option name="PERFORM_ROLLBACK_IN_BACKGROUND" value="false" />
|
451
|
-
<option name="CHECK_LOCALLY_CHANGED_CONFLICTS_IN_BACKGROUND" value="false" />
|
452
|
-
<option name="CHANGED_ON_SERVER_INTERVAL" value="60" />
|
453
|
-
<option name="SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value="true" />
|
454
|
-
<option name="CHECK_COMMIT_MESSAGE_SPELLING" value="true" />
|
455
|
-
<option name="DEFAULT_PATCH_EXTENSION" value="patch" />
|
456
|
-
<option name="SHORT_DIFF_HORIZONTALLY" value="true" />
|
457
|
-
<option name="SHORT_DIFF_EXTRA_LINES" value="2" />
|
458
|
-
<option name="SOFT_WRAPS_IN_SHORT_DIFF" value="true" />
|
459
|
-
<option name="INCLUDE_TEXT_INTO_PATCH" value="false" />
|
460
|
-
<option name="INCLUDE_TEXT_INTO_SHELF" value="false" />
|
461
|
-
<option name="SHOW_FILE_HISTORY_DETAILS" value="true" />
|
462
|
-
<option name="SHOW_VCS_ERROR_NOTIFICATIONS" value="true" />
|
463
|
-
<option name="SHOW_DIRTY_RECURSIVELY" value="false" />
|
464
|
-
<option name="LIMIT_HISTORY" value="true" />
|
465
|
-
<option name="MAXIMUM_HISTORY_ROWS" value="1000" />
|
466
|
-
<option name="UPDATE_FILTER_SCOPE_NAME" />
|
467
|
-
<option name="USE_COMMIT_MESSAGE_MARGIN" value="false" />
|
468
|
-
<option name="COMMIT_MESSAGE_MARGIN_SIZE" value="72" />
|
469
|
-
<option name="WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN" value="false" />
|
470
|
-
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
|
471
|
-
<option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="false" />
|
472
|
-
<option name="LAST_COMMIT_MESSAGE" />
|
473
|
-
<option name="MAKE_NEW_CHANGELIST_ACTIVE" value="false" />
|
474
|
-
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
|
475
|
-
<option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
|
476
|
-
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
|
477
|
-
<option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
|
478
|
-
<option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
|
479
|
-
<option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
|
480
|
-
<option name="ACTIVE_VCS_NAME" />
|
481
|
-
<option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
|
482
|
-
<option name="UPDATE_GROUP_BY_CHANGELIST" value="false" />
|
483
|
-
<option name="UPDATE_FILTER_BY_SCOPE" value="false" />
|
484
|
-
<option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
|
485
|
-
<option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
|
518
|
+
<MESSAGE value="changes in internal implementation" />
|
519
|
+
<option name="LAST_COMMIT_MESSAGE" value="changes in internal implementation" />
|
486
520
|
</component>
|
487
521
|
<component name="XDebuggerManager">
|
488
522
|
<breakpoint-manager />
|
489
523
|
</component>
|
490
524
|
<component name="editorHistoryManager">
|
525
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
526
|
+
<provider selected="true" editor-type-id="text-editor">
|
527
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="675">
|
528
|
+
<caret line="0" column="65" selection-start-line="0" selection-start-column="65" selection-end-line="0" selection-end-column="65" />
|
529
|
+
<folding />
|
530
|
+
</state>
|
531
|
+
</provider>
|
532
|
+
</entry>
|
533
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
534
|
+
<provider selected="true" editor-type-id="text-editor">
|
535
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="195" max-vertical-offset="315">
|
536
|
+
<caret line="13" column="13" selection-start-line="13" selection-start-column="13" selection-end-line="13" selection-end-column="13" />
|
537
|
+
<folding />
|
538
|
+
</state>
|
539
|
+
</provider>
|
540
|
+
</entry>
|
541
|
+
<entry file="file://$PROJECT_DIR$/meta_methods.gemspec">
|
542
|
+
<provider selected="true" editor-type-id="text-editor">
|
543
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="345" max-vertical-offset="435">
|
544
|
+
<caret line="23" column="0" selection-start-line="23" selection-start-column="0" selection-end-line="23" selection-end-column="0" />
|
545
|
+
<folding />
|
546
|
+
</state>
|
547
|
+
</provider>
|
548
|
+
</entry>
|
549
|
+
<entry file="file://$PROJECT_DIR$/lib/meta_methods/core.rb">
|
550
|
+
<provider selected="true" editor-type-id="text-editor">
|
551
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="915" max-vertical-offset="1395">
|
552
|
+
<caret line="61" column="0" selection-start-line="61" selection-start-column="0" selection-end-line="61" selection-end-column="0" />
|
553
|
+
<folding />
|
554
|
+
</state>
|
555
|
+
</provider>
|
556
|
+
</entry>
|
557
|
+
<entry file="file://$PROJECT_DIR$/spec/meta_methods_spec.rb">
|
558
|
+
<provider selected="true" editor-type-id="text-editor">
|
559
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="270" max-vertical-offset="360">
|
560
|
+
<caret line="18" column="0" selection-start-line="18" selection-start-column="0" selection-end-line="18" selection-end-column="0" />
|
561
|
+
<folding />
|
562
|
+
</state>
|
563
|
+
</provider>
|
564
|
+
</entry>
|
565
|
+
<entry file="file://$PROJECT_DIR$/CHANGES">
|
566
|
+
<provider selected="true" editor-type-id="text-editor">
|
567
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="120" max-vertical-offset="210">
|
568
|
+
<caret line="8" column="2" selection-start-line="8" selection-start-column="2" selection-end-line="8" selection-end-column="2" />
|
569
|
+
<folding />
|
570
|
+
</state>
|
571
|
+
</provider>
|
572
|
+
</entry>
|
573
|
+
<entry file="file://$PROJECT_DIR$/LICENSE">
|
574
|
+
<provider editor-type-id="com.intellij.persistence.database.editor.CsvTableFileEditorProvider">
|
575
|
+
<state />
|
576
|
+
</provider>
|
577
|
+
<provider selected="true" editor-type-id="text-editor">
|
578
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="405">
|
579
|
+
<caret line="0" column="18" selection-start-line="0" selection-start-column="18" selection-end-line="0" selection-end-column="18" />
|
580
|
+
<folding />
|
581
|
+
</state>
|
582
|
+
</provider>
|
583
|
+
</entry>
|
584
|
+
<entry file="file://$PROJECT_DIR$/meta_methods.gemspec.erb">
|
585
|
+
<provider selected="true" editor-type-id="text-editor">
|
586
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="300" max-vertical-offset="390">
|
587
|
+
<caret line="20" column="0" selection-start-line="20" selection-start-column="0" selection-end-line="20" selection-end-column="0" />
|
588
|
+
<folding />
|
589
|
+
</state>
|
590
|
+
</provider>
|
591
|
+
</entry>
|
592
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
593
|
+
<provider selected="true" editor-type-id="text-editor">
|
594
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="120" max-vertical-offset="735">
|
595
|
+
<caret line="8" column="30" selection-start-line="8" selection-start-column="30" selection-end-line="8" selection-end-column="30" />
|
596
|
+
<folding />
|
597
|
+
</state>
|
598
|
+
</provider>
|
599
|
+
</entry>
|
491
600
|
<entry file="file://$PROJECT_DIR$/lib/meta_methods/version.rb">
|
492
601
|
<provider selected="true" editor-type-id="text-editor">
|
493
|
-
<state
|
602
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="0">
|
603
|
+
<caret line="1" column="18" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
494
604
|
<folding />
|
495
605
|
</state>
|
496
606
|
</provider>
|
497
607
|
</entry>
|
498
608
|
<entry file="file://$PROJECT_DIR$/Rakefile">
|
499
609
|
<provider selected="true" editor-type-id="text-editor">
|
500
|
-
<state
|
610
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="0">
|
611
|
+
<caret line="24" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
501
612
|
<folding />
|
502
613
|
</state>
|
503
614
|
</provider>
|
504
615
|
</entry>
|
505
616
|
<entry file="file://$PROJECT_DIR$/.gitignore">
|
506
617
|
<provider selected="true" editor-type-id="text-editor">
|
507
|
-
<state
|
508
|
-
<
|
618
|
+
<state vertical-scroll-proportion="0.6486486" vertical-offset="0" max-vertical-offset="0">
|
619
|
+
<caret line="18" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
509
620
|
</state>
|
510
621
|
</provider>
|
511
622
|
</entry>
|
512
623
|
<entry file="file://$PROJECT_DIR$/.ruby-gemset">
|
513
624
|
<provider selected="true" editor-type-id="text-editor">
|
514
|
-
<state
|
515
|
-
<
|
625
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="0">
|
626
|
+
<caret line="0" column="12" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
516
627
|
</state>
|
517
628
|
</provider>
|
518
629
|
</entry>
|
519
630
|
<entry file="file://$PROJECT_DIR$/.ruby-version">
|
520
631
|
<provider selected="true" editor-type-id="text-editor">
|
521
|
-
<state
|
632
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="0">
|
633
|
+
<caret line="0" column="5" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
522
634
|
<folding />
|
523
635
|
</state>
|
524
636
|
</provider>
|
@@ -528,73 +640,107 @@
|
|
528
640
|
<state />
|
529
641
|
</provider>
|
530
642
|
<provider selected="true" editor-type-id="text-editor">
|
531
|
-
<state
|
643
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="675">
|
644
|
+
<caret line="0" column="65" selection-start-line="0" selection-start-column="65" selection-end-line="0" selection-end-column="65" />
|
532
645
|
<folding />
|
533
646
|
</state>
|
534
647
|
</provider>
|
535
648
|
</entry>
|
536
649
|
<entry file="file://$PROJECT_DIR$/Gemfile">
|
537
650
|
<provider selected="true" editor-type-id="text-editor">
|
538
|
-
<state
|
651
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="195" max-vertical-offset="315">
|
652
|
+
<caret line="13" column="13" selection-start-line="13" selection-start-column="13" selection-end-line="13" selection-end-column="13" />
|
539
653
|
<folding />
|
540
654
|
</state>
|
541
655
|
</provider>
|
542
656
|
</entry>
|
543
|
-
<entry file="file://$PROJECT_DIR$/
|
657
|
+
<entry file="file://$PROJECT_DIR$/LICENSE">
|
658
|
+
<provider editor-type-id="com.intellij.persistence.database.editor.CsvTableFileEditorProvider">
|
659
|
+
<state />
|
660
|
+
</provider>
|
661
|
+
<provider selected="true" editor-type-id="text-editor">
|
662
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="405">
|
663
|
+
<caret line="0" column="18" selection-start-line="0" selection-start-column="18" selection-end-line="0" selection-end-column="18" />
|
664
|
+
<folding />
|
665
|
+
</state>
|
666
|
+
</provider>
|
667
|
+
</entry>
|
668
|
+
<entry file="file://$PROJECT_DIR$/lib/meta_methods/version.rb">
|
544
669
|
<provider selected="true" editor-type-id="text-editor">
|
545
|
-
<state
|
670
|
+
<state vertical-scroll-proportion="0.024271844" vertical-offset="0" max-vertical-offset="618">
|
671
|
+
<caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
|
546
672
|
<folding />
|
547
673
|
</state>
|
548
674
|
</provider>
|
549
675
|
</entry>
|
550
|
-
<entry file="file://$PROJECT_DIR$/lib/meta_methods
|
676
|
+
<entry file="file://$PROJECT_DIR$/lib/meta_methods.rb">
|
551
677
|
<provider selected="true" editor-type-id="text-editor">
|
552
|
-
<state
|
678
|
+
<state vertical-scroll-proportion="0.07281554" vertical-offset="0" max-vertical-offset="618">
|
679
|
+
<caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
|
553
680
|
<folding />
|
554
681
|
</state>
|
555
682
|
</provider>
|
556
683
|
</entry>
|
557
684
|
<entry file="file://$PROJECT_DIR$/spec/meta_methods_spec.rb">
|
558
685
|
<provider selected="true" editor-type-id="text-editor">
|
559
|
-
<state
|
686
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="720">
|
687
|
+
<caret line="42" column="0" selection-start-line="42" selection-start-column="0" selection-end-line="42" selection-end-column="0" />
|
560
688
|
<folding />
|
561
689
|
</state>
|
562
690
|
</provider>
|
563
691
|
</entry>
|
564
|
-
<entry file="file://$
|
565
|
-
<provider editor-type-id="
|
566
|
-
<state
|
692
|
+
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs193/object.rb">
|
693
|
+
<provider selected="true" editor-type-id="text-editor">
|
694
|
+
<state vertical-scroll-proportion="0.33333334" vertical-offset="3889" max-vertical-offset="11565">
|
695
|
+
<caret line="273" column="8" selection-start-line="273" selection-start-column="8" selection-end-line="273" selection-end-column="8" />
|
696
|
+
<folding />
|
697
|
+
</state>
|
567
698
|
</provider>
|
699
|
+
</entry>
|
700
|
+
<entry file="file://$PROJECT_DIR$/lib/meta_methods/core.rb">
|
568
701
|
<provider selected="true" editor-type-id="text-editor">
|
569
|
-
<state
|
702
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1590">
|
703
|
+
<caret line="5" column="26" selection-start-line="5" selection-start-column="26" selection-end-line="5" selection-end-column="26" />
|
570
704
|
<folding />
|
571
705
|
</state>
|
572
706
|
</provider>
|
573
707
|
</entry>
|
574
|
-
<entry file="file://$PROJECT_DIR$/
|
708
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
575
709
|
<provider selected="true" editor-type-id="text-editor">
|
576
|
-
<state
|
710
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="735">
|
711
|
+
<caret line="14" column="52" selection-start-line="14" selection-start-column="52" selection-end-line="14" selection-end-column="52" />
|
577
712
|
<folding />
|
578
713
|
</state>
|
579
714
|
</provider>
|
580
715
|
</entry>
|
581
|
-
<entry file="file://$PROJECT_DIR
|
716
|
+
<entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
|
582
717
|
<provider selected="true" editor-type-id="text-editor">
|
583
|
-
<state
|
718
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="15" max-vertical-offset="11250">
|
719
|
+
<caret line="5" column="55" selection-start-line="5" selection-start-column="55" selection-end-line="5" selection-end-column="55" />
|
584
720
|
<folding />
|
585
721
|
</state>
|
586
722
|
</provider>
|
587
723
|
</entry>
|
588
724
|
<entry file="file://$PROJECT_DIR$/meta_methods.gemspec">
|
589
725
|
<provider selected="true" editor-type-id="text-editor">
|
590
|
-
<state
|
726
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="345" max-vertical-offset="435">
|
727
|
+
<caret line="23" column="0" selection-start-line="23" selection-start-column="0" selection-end-line="23" selection-end-column="0" />
|
728
|
+
<folding />
|
729
|
+
</state>
|
730
|
+
</provider>
|
731
|
+
</entry>
|
732
|
+
<entry file="file://$PROJECT_DIR$/meta_methods.gemspec.erb">
|
733
|
+
<provider selected="true" editor-type-id="text-editor">
|
734
|
+
<state vertical-scroll-proportion="-12.5" vertical-offset="0" max-vertical-offset="390">
|
735
|
+
<caret line="20" column="0" selection-start-line="20" selection-start-column="0" selection-end-line="20" selection-end-column="0" />
|
591
736
|
<folding />
|
592
737
|
</state>
|
593
738
|
</provider>
|
594
739
|
</entry>
|
595
740
|
<entry file="file://$PROJECT_DIR$/CHANGES">
|
596
741
|
<provider selected="true" editor-type-id="text-editor">
|
597
|
-
<state
|
742
|
+
<state vertical-scroll-proportion="0.2932331" vertical-offset="0" max-vertical-offset="665">
|
743
|
+
<caret line="13" column="14" selection-start-line="13" selection-start-column="14" selection-end-line="13" selection-end-column="14" />
|
598
744
|
<folding />
|
599
745
|
</state>
|
600
746
|
</provider>
|
data/CHANGES
CHANGED
data/Rakefile
CHANGED
@@ -36,8 +36,8 @@ RSpec::Core::RakeTask.new do |task|
|
|
36
36
|
task.verbose = false
|
37
37
|
end
|
38
38
|
|
39
|
-
task :fix_debug do
|
40
|
-
|
41
|
-
|
42
|
-
end
|
39
|
+
# task :fix_debug do
|
40
|
+
# system "mkdir -p $GEM_HOME/gems/debugger-ruby_core_source-1.2.3/lib"
|
41
|
+
# system "cp -R ~/debugger-ruby_core_source/lib $GEM_HOME/gems/debugger-ruby_core_source-1.2.3"
|
42
|
+
# end
|
43
43
|
|
data/lib/meta_methods.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
|
1
|
+
require "meta_methods/version"
|
2
2
|
|
3
|
-
require "meta_methods/
|
3
|
+
require "meta_methods/core"
|
@@ -1,27 +1,40 @@
|
|
1
|
-
module MetaMethods
|
1
|
+
module MetaMethods::Core
|
2
2
|
def metaclass object
|
3
|
-
class << object
|
4
|
-
|
5
|
-
end
|
3
|
+
# class << object
|
4
|
+
# self
|
5
|
+
# end
|
6
|
+
object.singleton_class
|
6
7
|
end
|
7
8
|
|
8
|
-
def define_attributes(type, object, hash, create_instance=true)
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
# def define_attributes(type, object, hash, create_instance=true)
|
10
|
+
# hash.each_pair do |key, value|
|
11
|
+
# define_attribute(type, object, key, value, create_instance)
|
12
|
+
# end
|
13
|
+
# end
|
14
|
+
#
|
15
|
+
# def define_attribute(type, object, key, value, create_instance=true)
|
16
|
+
# if create_instance
|
17
|
+
# metaclass(object).send type, key.to_sym
|
18
|
+
#
|
19
|
+
# object.instance_variable_set("@#{key}".to_sym, value)
|
20
|
+
# else
|
21
|
+
# metaclass(object).class_eval <<-CODE
|
22
|
+
# def #{key}
|
23
|
+
# "#{value}"
|
24
|
+
# end
|
25
|
+
# CODE
|
26
|
+
# end
|
27
|
+
# end
|
28
|
+
|
29
|
+
def define_attribute(object, key, value)
|
30
|
+
object.singleton_class.send :attr_accessor, key.to_sym # creates accessor
|
31
|
+
|
32
|
+
object.send "#{key}=".to_sym, value # sets up value for attribute
|
12
33
|
end
|
13
34
|
|
14
|
-
def
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
object.instance_variable_set("@#{key}".to_sym, value)
|
19
|
-
else
|
20
|
-
metaclass(object).class_eval <<-CODE
|
21
|
-
def #{key}
|
22
|
-
"#{value}"
|
23
|
-
end
|
24
|
-
CODE
|
35
|
+
def define_attributes(object, hash)
|
36
|
+
hash.each_pair do |key, value|
|
37
|
+
define_attribute(object, key, value)
|
25
38
|
end
|
26
39
|
end
|
27
40
|
|
data/lib/meta_methods/version.rb
CHANGED
data/spec/meta_methods_spec.rb
CHANGED
@@ -1,18 +1,42 @@
|
|
1
1
|
require 'meta_methods'
|
2
2
|
|
3
3
|
class MetaMethodsDemo
|
4
|
-
include MetaMethods
|
4
|
+
include MetaMethods::Core
|
5
5
|
end
|
6
6
|
|
7
7
|
describe MetaMethodsDemo do
|
8
|
+
describe "#define_attribute" do
|
9
|
+
it "creates new attribute on object" do
|
10
|
+
object = Object.new
|
8
11
|
|
9
|
-
|
10
|
-
s = "a=1; b=2"
|
12
|
+
subject.define_attribute object, :new_attribute, "new_attribute_value"
|
11
13
|
|
12
|
-
|
14
|
+
expect(object.new_attribute).to eq("new_attribute_value")
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
describe "#define_attributes" do
|
19
|
+
it "creates new attributes on object" do
|
20
|
+
object = Object.new
|
21
|
+
|
22
|
+
subject.define_attributes object,
|
23
|
+
{new_attribute1: "new_attribute_value1",
|
24
|
+
new_attribute2: "new_attribute_value2" }
|
25
|
+
|
26
|
+
expect(object.new_attribute1).to eq("new_attribute_value1")
|
27
|
+
expect(object.new_attribute2).to eq("new_attribute_value2")
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
describe "#locals_to_hash" do
|
32
|
+
it "should evaluate content" do
|
33
|
+
s = "a=1; b=2"
|
34
|
+
|
35
|
+
hash = subject.locals_to_hash subject, s
|
13
36
|
|
14
|
-
|
15
|
-
|
16
|
-
|
37
|
+
hash[:a].should == 1
|
38
|
+
hash[:b].should == 2
|
39
|
+
hash[:c].should be_nil
|
40
|
+
end
|
17
41
|
end
|
18
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meta_methods
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.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:
|
11
|
+
date: 2014-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gemspec_deps_gen
|
@@ -63,11 +63,10 @@ files:
|
|
63
63
|
- README.md
|
64
64
|
- Rakefile
|
65
65
|
- lib/meta_methods.rb
|
66
|
-
- lib/meta_methods/
|
66
|
+
- lib/meta_methods/core.rb
|
67
67
|
- lib/meta_methods/version.rb
|
68
68
|
- meta_methods.gemspec
|
69
69
|
- meta_methods.gemspec.erb
|
70
|
-
- projectFilesBackup/.idea/meta_methods.iml
|
71
70
|
- spec/meta_methods_spec.rb
|
72
71
|
homepage: http://github.com/shvets/meta_methods
|
73
72
|
licenses: []
|
@@ -88,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
87
|
version: '0'
|
89
88
|
requirements: []
|
90
89
|
rubyforge_project:
|
91
|
-
rubygems_version: 2.
|
90
|
+
rubygems_version: 2.2.2
|
92
91
|
signing_key:
|
93
92
|
specification_version: 4
|
94
93
|
summary: Collection of methods for easing meta-programming
|
@@ -1,19 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<module type="RUBY_MODULE" version="4">
|
3
|
-
<component name="NewModuleRootManager">
|
4
|
-
<content url="file://$MODULE_DIR$" />
|
5
|
-
<orderEntry type="inheritedJdk" />
|
6
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
7
|
-
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.1.3, RVM: ruby-1.9.3-p194 [meta_methods]) [gem]" level="application" />
|
8
|
-
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.1.3, RVM: ruby-1.9.3-p194 [meta_methods]) [gem]" level="application" />
|
9
|
-
<orderEntry type="library" scope="PROVIDED" name="gemcutter (v0.7.1, RVM: ruby-1.9.3-p194 [meta_methods]) [gem]" level="application" />
|
10
|
-
<orderEntry type="library" scope="PROVIDED" name="gemspec_deps_gen (v1.0.0, RVM: ruby-1.9.3-p194 [meta_methods]) [gem]" level="application" />
|
11
|
-
<orderEntry type="library" scope="PROVIDED" name="metaclass (v0.0.1, RVM: ruby-1.9.3-p194 [meta_methods]) [gem]" level="application" />
|
12
|
-
<orderEntry type="library" scope="PROVIDED" name="mocha (v0.10.3, RVM: ruby-1.9.3-p194 [meta_methods]) [gem]" level="application" />
|
13
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec (v2.9.0, RVM: ruby-1.9.3-p194 [meta_methods]) [gem]" level="application" />
|
14
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v2.9.0, RVM: ruby-1.9.3-p194 [meta_methods]) [gem]" level="application" />
|
15
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v2.9.1, RVM: ruby-1.9.3-p194 [meta_methods]) [gem]" level="application" />
|
16
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v2.9.0, RVM: ruby-1.9.3-p194 [meta_methods]) [gem]" level="application" />
|
17
|
-
</component>
|
18
|
-
</module>
|
19
|
-
|