arb_web 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/.name +1 -0
- data/.idea/.rakeTasks +7 -0
- data/.idea/arb_web.iml +42 -0
- data/.idea/misc.xml +30 -0
- data/.idea/modules.xml +8 -0
- data/.idea/vcs.xml +6 -0
- data/.idea/workspace.xml +291 -0
- data/lib/arb_web/version.rb +1 -1
- data/lib/arb_web.rb +7 -6
- metadata +8 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9697df015e88c26da8b5cbef124f9b9fddd06a1
|
4
|
+
data.tar.gz: 1ca77bd084e21f638bca336437267bf2ceacf325
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe8c648a93da999ae82cf1f8aeb01c4a59ee12507516c9890046e099a3a09030319477e5bbe5bbdecb90bace01bd0780f29c35e032707e9ced4d5eeaba6f3da9
|
7
|
+
data.tar.gz: 0d038d41c8f10f83daf9fc76581bc540d16cd0a539b8bf8e6f33bc45ca14407e05960f529e17149a54fdaa6c6b50b10c145bd5ce9f3781e11841955a6507216d
|
data/.idea/.name
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
arb_web
|
data/.idea/.rakeTasks
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Settings><!--This file was automatically generated by Ruby plugin.
|
3
|
+
You are allowed to:
|
4
|
+
1. Remove rake task
|
5
|
+
2. Add existing rake tasks
|
6
|
+
To add existing rake tasks automatically delete this file and reload the project.
|
7
|
+
--><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build arb_web-0.1.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated files" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install arb_web-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install arb_web-0.1.0.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v0.1.0 and build and push arb_web-0.1.0.gem to Rubygems" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
|
data/.idea/arb_web.iml
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="FacetManager">
|
4
|
+
<facet type="gem" name="Ruby Gem">
|
5
|
+
<configuration>
|
6
|
+
<option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
|
7
|
+
<option name="GEM_APP_TEST_PATH" value="" />
|
8
|
+
<option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
|
9
|
+
</configuration>
|
10
|
+
</facet>
|
11
|
+
</component>
|
12
|
+
<component name="ModuleRunConfigurationManager">
|
13
|
+
<configuration default="false" name="arb_web" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
|
14
|
+
<module name="arb_web" />
|
15
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
16
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/lib" />
|
17
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
18
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
19
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
20
|
+
<envs />
|
21
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
22
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
23
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
24
|
+
<COVERAGE_PATTERN ENABLED="true">
|
25
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
26
|
+
</COVERAGE_PATTERN>
|
27
|
+
</EXTENSION>
|
28
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
29
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/lib/arb_web.rb" />
|
30
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
31
|
+
<method />
|
32
|
+
</configuration>
|
33
|
+
</component>
|
34
|
+
<component name="NewModuleRootManager">
|
35
|
+
<content url="file://$MODULE_DIR$" />
|
36
|
+
<orderEntry type="inheritedJdk" />
|
37
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
38
|
+
<orderEntry type="library" scope="PROVIDED" name="mini_portile2 (v2.0.0, RVM: ruby-2.2.1) [gem]" level="application" />
|
39
|
+
<orderEntry type="library" scope="PROVIDED" name="nokogiri (v1.6.7.2, RVM: ruby-2.2.1) [gem]" level="application" />
|
40
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, RVM: ruby-2.2.1) [gem]" level="application" />
|
41
|
+
</component>
|
42
|
+
</module>
|
data/.idea/misc.xml
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ProjectInspectionProfilesVisibleTreeState">
|
4
|
+
<entry key="Project Default">
|
5
|
+
<profile-state>
|
6
|
+
<expanded-state>
|
7
|
+
<State>
|
8
|
+
<id />
|
9
|
+
</State>
|
10
|
+
</expanded-state>
|
11
|
+
<selected-state>
|
12
|
+
<State>
|
13
|
+
<id>CoffeeScript</id>
|
14
|
+
</State>
|
15
|
+
</selected-state>
|
16
|
+
</profile-state>
|
17
|
+
</entry>
|
18
|
+
</component>
|
19
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
20
|
+
<OptionsSetting value="true" id="Add" />
|
21
|
+
<OptionsSetting value="true" id="Remove" />
|
22
|
+
<OptionsSetting value="true" id="Checkout" />
|
23
|
+
<OptionsSetting value="true" id="Update" />
|
24
|
+
<OptionsSetting value="true" id="Status" />
|
25
|
+
<OptionsSetting value="true" id="Edit" />
|
26
|
+
<ConfirmationsSetting value="0" id="Add" />
|
27
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
28
|
+
</component>
|
29
|
+
<component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.2.1" project-jdk-type="RUBY_SDK" />
|
30
|
+
</project>
|
data/.idea/modules.xml
ADDED
data/.idea/vcs.xml
ADDED
data/.idea/workspace.xml
ADDED
@@ -0,0 +1,291 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ChangeListManager">
|
4
|
+
<list default="true" id="efa9d285-1a5b-4a1f-8b57-22111f253962" name="Default" comment="">
|
5
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/arb_web.gemspec" afterPath="$PROJECT_DIR$/arb_web.gemspec" />
|
6
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/arb_web.rb" afterPath="$PROJECT_DIR$/lib/arb_web.rb" />
|
7
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/arb_web/version.rb" afterPath="$PROJECT_DIR$/lib/arb_web/version.rb" />
|
8
|
+
</list>
|
9
|
+
<ignored path="arb_web.iws" />
|
10
|
+
<ignored path=".idea/workspace.xml" />
|
11
|
+
<ignored path=".idea/dataSources.local.xml" />
|
12
|
+
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
13
|
+
<option name="TRACKING_ENABLED" value="true" />
|
14
|
+
<option name="SHOW_DIALOG" value="false" />
|
15
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
16
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
17
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
18
|
+
</component>
|
19
|
+
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
20
|
+
<component name="CoverageDataManager">
|
21
|
+
<SUITE FILE_PATH="coverage/arb_web@arb_web.coverage" NAME="arb_web Coverage Results" MODIFIED="1464934458108" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/lib" MODULE_NAME="arb_web" />
|
22
|
+
</component>
|
23
|
+
<component name="CreatePatchCommitExecutor">
|
24
|
+
<option name="PATCH_PATH" value="" />
|
25
|
+
</component>
|
26
|
+
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
|
27
|
+
<component name="FavoritesManager">
|
28
|
+
<favorites_list name="arb_web" />
|
29
|
+
</component>
|
30
|
+
<component name="FileEditorManager">
|
31
|
+
<leaf>
|
32
|
+
<file leaf-file-name="arb_web.rb" pinned="false" current-in-tab="true">
|
33
|
+
<entry file="file://$PROJECT_DIR$/lib/arb_web.rb">
|
34
|
+
<provider selected="true" editor-type-id="text-editor">
|
35
|
+
<state vertical-scroll-proportion="-0.14173229">
|
36
|
+
<caret line="6" column="0" selection-start-line="6" selection-start-column="0" selection-end-line="6" selection-end-column="0" />
|
37
|
+
<folding />
|
38
|
+
</state>
|
39
|
+
</provider>
|
40
|
+
</entry>
|
41
|
+
</file>
|
42
|
+
</leaf>
|
43
|
+
</component>
|
44
|
+
<component name="Git.Settings">
|
45
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
46
|
+
</component>
|
47
|
+
<component name="IdeDocumentHistory">
|
48
|
+
<option name="CHANGED_PATHS">
|
49
|
+
<list>
|
50
|
+
<option value="$PROJECT_DIR$/lib/arb_web.rb" />
|
51
|
+
</list>
|
52
|
+
</option>
|
53
|
+
</component>
|
54
|
+
<component name="JsBuildToolGruntFileManager" detection-done="true" />
|
55
|
+
<component name="JsGulpfileManager">
|
56
|
+
<detection-done>true</detection-done>
|
57
|
+
</component>
|
58
|
+
<component name="NamedScopeManager">
|
59
|
+
<order />
|
60
|
+
</component>
|
61
|
+
<component name="ProjectFrameBounds">
|
62
|
+
<option name="x" value="81" />
|
63
|
+
<option name="y" value="24" />
|
64
|
+
<option name="width" value="1839" />
|
65
|
+
<option name="height" value="1056" />
|
66
|
+
</component>
|
67
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
68
|
+
<OptionsSetting value="true" id="Add" />
|
69
|
+
<OptionsSetting value="true" id="Remove" />
|
70
|
+
<OptionsSetting value="true" id="Checkout" />
|
71
|
+
<OptionsSetting value="true" id="Update" />
|
72
|
+
<OptionsSetting value="true" id="Status" />
|
73
|
+
<OptionsSetting value="true" id="Edit" />
|
74
|
+
<ConfirmationsSetting value="0" id="Add" />
|
75
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
76
|
+
</component>
|
77
|
+
<component name="ProjectView">
|
78
|
+
<navigator currentView="ProjectPane" proportions="" version="1">
|
79
|
+
<flattenPackages />
|
80
|
+
<showMembers />
|
81
|
+
<showModules />
|
82
|
+
<showLibraryContents />
|
83
|
+
<hideEmptyPackages />
|
84
|
+
<abbreviatePackageNames />
|
85
|
+
<autoscrollToSource />
|
86
|
+
<autoscrollFromSource />
|
87
|
+
<sortByType />
|
88
|
+
</navigator>
|
89
|
+
<panes>
|
90
|
+
<pane id="Scope" />
|
91
|
+
<pane id="Scratches" />
|
92
|
+
<pane id="ProjectPane">
|
93
|
+
<subPane>
|
94
|
+
<PATH>
|
95
|
+
<PATH_ELEMENT>
|
96
|
+
<option name="myItemId" value="arb_web" />
|
97
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
98
|
+
</PATH_ELEMENT>
|
99
|
+
</PATH>
|
100
|
+
<PATH>
|
101
|
+
<PATH_ELEMENT>
|
102
|
+
<option name="myItemId" value="arb_web" />
|
103
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
104
|
+
</PATH_ELEMENT>
|
105
|
+
<PATH_ELEMENT>
|
106
|
+
<option name="myItemId" value="arb_web" />
|
107
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
108
|
+
</PATH_ELEMENT>
|
109
|
+
</PATH>
|
110
|
+
<PATH>
|
111
|
+
<PATH_ELEMENT>
|
112
|
+
<option name="myItemId" value="arb_web" />
|
113
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
114
|
+
</PATH_ELEMENT>
|
115
|
+
<PATH_ELEMENT>
|
116
|
+
<option name="myItemId" value="arb_web" />
|
117
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
118
|
+
</PATH_ELEMENT>
|
119
|
+
<PATH_ELEMENT>
|
120
|
+
<option name="myItemId" value="lib" />
|
121
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
122
|
+
</PATH_ELEMENT>
|
123
|
+
</PATH>
|
124
|
+
<PATH>
|
125
|
+
<PATH_ELEMENT>
|
126
|
+
<option name="myItemId" value="arb_web" />
|
127
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
128
|
+
</PATH_ELEMENT>
|
129
|
+
<PATH_ELEMENT>
|
130
|
+
<option name="myItemId" value="arb_web" />
|
131
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
132
|
+
</PATH_ELEMENT>
|
133
|
+
<PATH_ELEMENT>
|
134
|
+
<option name="myItemId" value="bin" />
|
135
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
136
|
+
</PATH_ELEMENT>
|
137
|
+
</PATH>
|
138
|
+
</subPane>
|
139
|
+
</pane>
|
140
|
+
</panes>
|
141
|
+
</component>
|
142
|
+
<component name="PropertiesComponent">
|
143
|
+
<property name="settings.editor.selected.configurable" value="Errors" />
|
144
|
+
<property name="settings.editor.splitter.proportion" value="0.2" />
|
145
|
+
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
146
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
147
|
+
<property name="recentsLimit" value="5" />
|
148
|
+
</component>
|
149
|
+
<component name="RunManager" selected="Ruby.arb_web">
|
150
|
+
<configuration default="false" name="arb_web" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
|
151
|
+
<module name="arb_web" />
|
152
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
153
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/lib" />
|
154
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
155
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
156
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
157
|
+
<envs />
|
158
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
159
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
160
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
161
|
+
<COVERAGE_PATTERN ENABLED="true">
|
162
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
163
|
+
</COVERAGE_PATTERN>
|
164
|
+
</EXTENSION>
|
165
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
166
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/lib/arb_web.rb" />
|
167
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
168
|
+
<method />
|
169
|
+
</configuration>
|
170
|
+
<configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
|
171
|
+
<predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
|
172
|
+
<module name="" />
|
173
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
174
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
175
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
176
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
177
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
178
|
+
<envs />
|
179
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
180
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
181
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
182
|
+
<COVERAGE_PATTERN ENABLED="true">
|
183
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
184
|
+
</COVERAGE_PATTERN>
|
185
|
+
</EXTENSION>
|
186
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
187
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
|
188
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
189
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
190
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
191
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
|
192
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
|
193
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
|
194
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
195
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
196
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
|
197
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
198
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
199
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
200
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
|
201
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
|
202
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
|
203
|
+
<method />
|
204
|
+
</configuration>
|
205
|
+
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
|
206
|
+
<method />
|
207
|
+
</configuration>
|
208
|
+
<configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
|
209
|
+
<module name="" />
|
210
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
211
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
|
212
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
213
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
214
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
215
|
+
<envs />
|
216
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
217
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
218
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
219
|
+
<COVERAGE_PATTERN ENABLED="true">
|
220
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
221
|
+
</COVERAGE_PATTERN>
|
222
|
+
</EXTENSION>
|
223
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
224
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
|
225
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
226
|
+
<method />
|
227
|
+
</configuration>
|
228
|
+
<configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
|
229
|
+
<method />
|
230
|
+
</configuration>
|
231
|
+
<list size="1">
|
232
|
+
<item index="0" class="java.lang.String" itemvalue="Ruby.arb_web" />
|
233
|
+
</list>
|
234
|
+
<recent_temporary>
|
235
|
+
<list size="1">
|
236
|
+
<item index="0" class="java.lang.String" itemvalue="Ruby.arb_web" />
|
237
|
+
</list>
|
238
|
+
</recent_temporary>
|
239
|
+
</component>
|
240
|
+
<component name="ShelveChangesManager" show_recycled="false" />
|
241
|
+
<component name="TaskManager">
|
242
|
+
<task active="true" id="Default" summary="Default task">
|
243
|
+
<changelist id="efa9d285-1a5b-4a1f-8b57-22111f253962" name="Default" comment="" />
|
244
|
+
<created>1464932622256</created>
|
245
|
+
<option name="number" value="Default" />
|
246
|
+
<updated>1464932622256</updated>
|
247
|
+
</task>
|
248
|
+
<servers />
|
249
|
+
</component>
|
250
|
+
<component name="ToolWindowManager">
|
251
|
+
<frame x="81" y="24" width="1839" height="1056" extended-state="6" />
|
252
|
+
<editor active="true" />
|
253
|
+
<layout>
|
254
|
+
<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" />
|
255
|
+
<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" />
|
256
|
+
<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="-1" side_tool="false" content_ui="tabs" />
|
257
|
+
<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="false" content_ui="tabs" />
|
258
|
+
<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="-1" side_tool="false" content_ui="tabs" />
|
259
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.24986057" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
260
|
+
<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" />
|
261
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.42336547" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
262
|
+
<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="-1" side_tool="true" content_ui="tabs" />
|
263
|
+
<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="-1" side_tool="true" content_ui="tabs" />
|
264
|
+
<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="-1" side_tool="false" content_ui="tabs" />
|
265
|
+
<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" />
|
266
|
+
<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" />
|
267
|
+
<window_info id="Find" 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" />
|
268
|
+
<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" />
|
269
|
+
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
270
|
+
<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" />
|
271
|
+
<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" />
|
272
|
+
</layout>
|
273
|
+
</component>
|
274
|
+
<component name="VcsContentAnnotationSettings">
|
275
|
+
<option name="myLimit" value="2678400000" />
|
276
|
+
</component>
|
277
|
+
<component name="XDebuggerManager">
|
278
|
+
<breakpoint-manager />
|
279
|
+
<watches-manager />
|
280
|
+
</component>
|
281
|
+
<component name="editorHistoryManager">
|
282
|
+
<entry file="file://$PROJECT_DIR$/lib/arb_web.rb">
|
283
|
+
<provider selected="true" editor-type-id="text-editor">
|
284
|
+
<state vertical-scroll-proportion="-0.14173229">
|
285
|
+
<caret line="6" column="0" selection-start-line="6" selection-start-column="0" selection-end-line="6" selection-end-column="0" />
|
286
|
+
<folding />
|
287
|
+
</state>
|
288
|
+
</provider>
|
289
|
+
</entry>
|
290
|
+
</component>
|
291
|
+
</project>
|
data/lib/arb_web/version.rb
CHANGED
data/lib/arb_web.rb
CHANGED
@@ -3,21 +3,22 @@ module ARB
|
|
3
3
|
require 'nokogiri'
|
4
4
|
require 'httpclient'
|
5
5
|
class DOMCore
|
6
|
-
attr_accessor :client, :url, :params, :
|
7
|
-
def initialize(client, url, params,
|
6
|
+
attr_accessor :client, :url, :params, :proxy_method, :doc
|
7
|
+
def initialize(client, url, params, proxy_method, doc)
|
8
8
|
local_variables.each do |param|
|
9
9
|
method("#{param}=")[binding.local_variable_get(param)] rescue 0
|
10
10
|
end
|
11
11
|
end
|
12
12
|
def rebuild
|
13
|
-
self.class.send
|
13
|
+
self.class.send proxy_method, client, url, **params
|
14
14
|
end
|
15
|
+
default_global_client= HTTPClient.new
|
15
16
|
%i(get post patch put delete).each do |http_method|
|
16
17
|
%i(dom doc raw).each do |type|
|
17
|
-
singleton_class.send :define_method, "#{http_method}_#{type}" do |client, url, **params, &block|
|
18
|
+
singleton_class.send :define_method, "#{http_method}_#{type}" do |client=default_global_client, url, **params, &block|
|
18
19
|
raw =client.get(url, **params)
|
19
20
|
doc = Nokogiri.parse(raw.body)
|
20
|
-
dom= self.new(client, url, params, http_method, doc)
|
21
|
+
dom= self.new(client, url, params, "#{http_method}_#{type}", doc)
|
21
22
|
binding.local_variable_get(type).tap do |ret|
|
22
23
|
block[ret] if block
|
23
24
|
end
|
@@ -26,4 +27,4 @@ module ARB
|
|
26
27
|
end
|
27
28
|
end
|
28
29
|
end
|
29
|
-
end
|
30
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arb_web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- arybin
|
@@ -74,6 +74,13 @@ extensions: []
|
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
76
|
- ".gitignore"
|
77
|
+
- ".idea/.name"
|
78
|
+
- ".idea/.rakeTasks"
|
79
|
+
- ".idea/arb_web.iml"
|
80
|
+
- ".idea/misc.xml"
|
81
|
+
- ".idea/modules.xml"
|
82
|
+
- ".idea/vcs.xml"
|
83
|
+
- ".idea/workspace.xml"
|
77
84
|
- Gemfile
|
78
85
|
- LICENSE
|
79
86
|
- README.md
|