pwork 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 12fc46646afad842b2d26d7b4f73e71f05508331
4
+ data.tar.gz: 8204dcfb88889545c61c5a4777a72ac7f5c8e52a
5
+ SHA512:
6
+ metadata.gz: c5b91b4ad0f0d3fcfe2472f6da54a31f144f8f0dfe7767f1f23cbe977e5f502946cb9327c4ada5d0b08a8b5cd15111dfe850cdf00cb8d1c5ceffb25802f70508
7
+ data.tar.gz: 4618f27997ed76d4f68881227fcaaba9c75fae7a715722b842c1908a139400a034e4d473c8296ed9400af70047fbe602f2bb53daaadea213e5c40d0350f0b15c
@@ -0,0 +1,2 @@
1
+ ---
2
+ BUNDLE_WITHOUT: uat:staging:preprod:production
@@ -0,0 +1,4 @@
1
+ src/.DS_Store
2
+ .DS_Store
3
+ src/log/*
4
+ src/tmp/*
@@ -0,0 +1 @@
1
+ pworker
@@ -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 pworker-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 pworker-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install pworker-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 pworker-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>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding">
4
+ <file url="PROJECT" charset="UTF-8" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,33 @@
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
+ <State>
11
+ <id>Ruby</id>
12
+ </State>
13
+ </expanded-state>
14
+ <selected-state>
15
+ <State>
16
+ <id>RubyConvertAllHashesInFileInspections</id>
17
+ </State>
18
+ </selected-state>
19
+ </profile-state>
20
+ </entry>
21
+ </component>
22
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
23
+ <OptionsSetting value="true" id="Add" />
24
+ <OptionsSetting value="true" id="Remove" />
25
+ <OptionsSetting value="true" id="Checkout" />
26
+ <OptionsSetting value="true" id="Update" />
27
+ <OptionsSetting value="true" id="Status" />
28
+ <OptionsSetting value="true" id="Edit" />
29
+ <ConfirmationsSetting value="0" id="Add" />
30
+ <ConfirmationsSetting value="0" id="Remove" />
31
+ </component>
32
+ <component name="ProjectRootManager" version="2" project-jdk-name="rbenv: 2.1.5" project-jdk-type="RUBY_SDK" />
33
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$USER_HOME$/Documents/Projects/pwork/.idea/pworker.iml" filepath="$USER_HOME$/Documents/Projects/pwork/.idea/pworker.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,25 @@
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$/../pworker" />
7
+ <option name="GEM_APP_TEST_PATH" value="" />
8
+ <option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/../pworker/lib" />
9
+ </configuration>
10
+ </facet>
11
+ </component>
12
+ <component name="NewModuleRootManager">
13
+ <content url="file://$MODULE_DIR$" />
14
+ <orderEntry type="inheritedJdk" />
15
+ <orderEntry type="sourceFolder" forTests="false" />
16
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.11.2, rbenv: 2.1.5) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.5, rbenv: 2.1.5) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, rbenv: 2.1.5) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v3.4.0, rbenv: 2.1.5) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.4.4, rbenv: 2.1.5) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.4.0, rbenv: 2.1.5) [gem]" level="application" />
22
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.4.1, rbenv: 2.1.5) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.4.1, rbenv: 2.1.5) [gem]" level="application" />
24
+ </component>
25
+ </module>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,508 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="db89e2dd-d181-494e-8b26-1703e9d201f2" name="Default" comment="">
5
+ <change type="NEW" beforePath="" afterPath="$USER_HOME$/Documents/Projects/pwork/.gitignore" />
6
+ <change type="NEW" beforePath="" afterPath="$USER_HOME$/Documents/Projects/pwork/CODE_OF_CONDUCT.md" />
7
+ <change type="NEW" beforePath="" afterPath="$USER_HOME$/Documents/Projects/pwork/Gemfile" />
8
+ <change type="NEW" beforePath="" afterPath="$USER_HOME$/Documents/Projects/pwork/LICENSE.txt" />
9
+ <change type="NEW" beforePath="" afterPath="$USER_HOME$/Documents/Projects/pwork/README.md" />
10
+ <change type="NEW" beforePath="" afterPath="$USER_HOME$/Documents/Projects/pwork/Rakefile" />
11
+ <change type="NEW" beforePath="" afterPath="$USER_HOME$/Documents/Projects/pwork/bin/console" />
12
+ <change type="NEW" beforePath="" afterPath="$USER_HOME$/Documents/Projects/pwork/lib/pwork.rb" />
13
+ <change type="NEW" beforePath="" afterPath="$USER_HOME$/Documents/Projects/pwork/spec/pwork_spec.rb" />
14
+ <change type="NEW" beforePath="" afterPath="$USER_HOME$/Documents/Projects/pwork/pwork.gemspec" />
15
+ <change type="NEW" beforePath="" afterPath="$USER_HOME$/Documents/Projects/pwork/bin/setup" />
16
+ <change type="NEW" beforePath="" afterPath="$USER_HOME$/Documents/Projects/pwork/lib/pwork/version.rb" />
17
+ </list>
18
+ <ignored path="pworker.iws" />
19
+ <ignored path=".idea/workspace.xml" />
20
+ <ignored path=".idea/dataSources.local.xml" />
21
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
22
+ <option name="TRACKING_ENABLED" value="true" />
23
+ <option name="SHOW_DIALOG" value="false" />
24
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
25
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
26
+ <option name="LAST_RESOLUTION" value="IGNORE" />
27
+ </component>
28
+ <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
29
+ <component name="CreatePatchCommitExecutor">
30
+ <option name="PATCH_PATH" value="" />
31
+ </component>
32
+ <component name="FavoritesManager">
33
+ <favorites_list name="pworker" />
34
+ </component>
35
+ <component name="FileEditorManager">
36
+ <leaf>
37
+ <file leaf-file-name="pwork.gemspec" pinned="false" current-in-tab="false">
38
+ <entry file="file://$USER_HOME$/Documents/Projects/pwork/pwork.gemspec">
39
+ <provider selected="true" editor-type-id="text-editor">
40
+ <state vertical-scroll-proportion="0.0">
41
+ <caret line="13" column="52" selection-start-line="13" selection-start-column="52" selection-end-line="13" selection-end-column="52" />
42
+ <folding />
43
+ </state>
44
+ </provider>
45
+ </entry>
46
+ </file>
47
+ <file leaf-file-name="spec_helper.rb" pinned="false" current-in-tab="false">
48
+ <entry file="file://$USER_HOME$/Documents/Projects/pwork/spec/spec_helper.rb">
49
+ <provider selected="true" editor-type-id="text-editor">
50
+ <state vertical-scroll-proportion="0.0">
51
+ <caret line="1" column="0" selection-start-line="1" selection-start-column="0" selection-end-line="1" selection-end-column="0" />
52
+ <folding />
53
+ </state>
54
+ </provider>
55
+ </entry>
56
+ </file>
57
+ <file leaf-file-name="pwork.rb" pinned="false" current-in-tab="false">
58
+ <entry file="file://$USER_HOME$/Documents/Projects/pwork/lib/pwork.rb">
59
+ <provider selected="true" editor-type-id="text-editor">
60
+ <state vertical-scroll-proportion="0.0">
61
+ <caret line="21" column="7" selection-start-line="21" selection-start-column="7" selection-end-line="21" selection-end-column="7" />
62
+ <folding />
63
+ </state>
64
+ </provider>
65
+ </entry>
66
+ </file>
67
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
68
+ <entry file="file://$USER_HOME$/Documents/Projects/pwork/lib/pwork/version.rb">
69
+ <provider selected="true" editor-type-id="text-editor">
70
+ <state vertical-scroll-proportion="0.0">
71
+ <caret line="0" column="12" selection-start-line="0" selection-start-column="12" selection-end-line="0" selection-end-column="12" />
72
+ <folding />
73
+ </state>
74
+ </provider>
75
+ </entry>
76
+ </file>
77
+ <file leaf-file-name="CODE_OF_CONDUCT.md" pinned="false" current-in-tab="false">
78
+ <entry file="file://$USER_HOME$/Documents/Projects/pwork/CODE_OF_CONDUCT.md">
79
+ <provider editor-type-id="com.intellij.database.editor.CsvTableFileEditorProvider">
80
+ <state />
81
+ </provider>
82
+ <provider selected="true" editor-type-id="text-editor">
83
+ <state vertical-scroll-proportion="-0.0">
84
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
85
+ <folding />
86
+ </state>
87
+ </provider>
88
+ </entry>
89
+ </file>
90
+ <file leaf-file-name=".rspec" pinned="false" current-in-tab="false">
91
+ <entry file="file://$USER_HOME$/Documents/Projects/pwork/.rspec">
92
+ <provider selected="true" editor-type-id="text-editor">
93
+ <state vertical-scroll-proportion="0.0">
94
+ <caret line="2" column="12" selection-start-line="2" selection-start-column="12" selection-end-line="2" selection-end-column="12" />
95
+ <folding />
96
+ </state>
97
+ </provider>
98
+ </entry>
99
+ </file>
100
+ <file leaf-file-name="pwork_spec.rb" pinned="false" current-in-tab="false">
101
+ <entry file="file://$USER_HOME$/Documents/Projects/pwork/spec/pwork_spec.rb">
102
+ <provider selected="true" editor-type-id="text-editor">
103
+ <state vertical-scroll-proportion="0.0">
104
+ <caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
105
+ <folding>
106
+ <element signature="e#182#786#0" expanded="false" />
107
+ <element signature="e#893#1500#0" expanded="false" />
108
+ <element signature="e#1672#4847#0" expanded="false" />
109
+ <element signature="e#4984#8164#0" expanded="false" />
110
+ </folding>
111
+ </state>
112
+ </provider>
113
+ </entry>
114
+ </file>
115
+ <file leaf-file-name=".gitignore" pinned="false" current-in-tab="false">
116
+ <entry file="file://$USER_HOME$/Documents/Projects/pwork/.gitignore">
117
+ <provider selected="true" editor-type-id="text-editor">
118
+ <state vertical-scroll-proportion="-1.6666666">
119
+ <caret line="3" column="9" selection-start-line="3" selection-start-column="9" selection-end-line="3" selection-end-column="9" />
120
+ <folding />
121
+ </state>
122
+ </provider>
123
+ </entry>
124
+ </file>
125
+ <file leaf-file-name="README.md" pinned="false" current-in-tab="true">
126
+ <entry file="file://$USER_HOME$/Documents/Projects/pwork/README.md">
127
+ <provider selected="true" editor-type-id="text-editor">
128
+ <state vertical-scroll-proportion="0.9764706">
129
+ <caret line="93" column="109" selection-start-line="93" selection-start-column="109" selection-end-line="93" selection-end-column="109" />
130
+ <folding />
131
+ </state>
132
+ </provider>
133
+ </entry>
134
+ </file>
135
+ </leaf>
136
+ </component>
137
+ <component name="Git.Settings">
138
+ <option name="RECENT_GIT_ROOT_PATH" value="$USER_HOME$/Documents/Projects/pworker" />
139
+ </component>
140
+ <component name="IdeDocumentHistory">
141
+ <option name="CHANGED_PATHS">
142
+ <list>
143
+ <option value="$USER_HOME$/Documents/Projects/pworker/pworker.gemspec" />
144
+ <option value="$USER_HOME$/Documents/Projects/pworker/spec/spec_helper.rb" />
145
+ <option value="$USER_HOME$/Documents/Projects/pworker/.rspec" />
146
+ <option value="$USER_HOME$/Documents/Projects/pworker/spec/pworker_spec.rb" />
147
+ <option value="$USER_HOME$/Documents/Projects/pworker/lib/pworker.rb" />
148
+ <option value="$USER_HOME$/Documents/Projects/pwork/lib/pwork/version.rb" />
149
+ <option value="$USER_HOME$/Documents/Projects/pwork/spec/pwork_spec.rb" />
150
+ <option value="$USER_HOME$/Documents/Projects/pwork/.gitignore" />
151
+ <option value="$USER_HOME$/Documents/Projects/pwork/pwork.gemspec" />
152
+ <option value="$USER_HOME$/Documents/Projects/pwork/README.md" />
153
+ </list>
154
+ </option>
155
+ </component>
156
+ <component name="JsBuildToolGruntFileManager" detection-done="true" />
157
+ <component name="JsGulpfileManager">
158
+ <detection-done>true</detection-done>
159
+ </component>
160
+ <component name="NamedScopeManager">
161
+ <order />
162
+ </component>
163
+ <component name="ProjectFrameBounds">
164
+ <option name="x" value="1935" />
165
+ <option name="y" value="30" />
166
+ <option name="width" value="2479" />
167
+ <option name="height" value="1396" />
168
+ </component>
169
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
170
+ <OptionsSetting value="true" id="Add" />
171
+ <OptionsSetting value="true" id="Remove" />
172
+ <OptionsSetting value="true" id="Checkout" />
173
+ <OptionsSetting value="true" id="Update" />
174
+ <OptionsSetting value="true" id="Status" />
175
+ <OptionsSetting value="true" id="Edit" />
176
+ <ConfirmationsSetting value="0" id="Add" />
177
+ <ConfirmationsSetting value="0" id="Remove" />
178
+ </component>
179
+ <component name="ProjectView">
180
+ <navigator currentView="ProjectPane" proportions="" version="1">
181
+ <flattenPackages />
182
+ <showMembers />
183
+ <showModules />
184
+ <showLibraryContents />
185
+ <hideEmptyPackages />
186
+ <abbreviatePackageNames />
187
+ <autoscrollToSource />
188
+ <autoscrollFromSource />
189
+ <sortByType />
190
+ </navigator>
191
+ <panes>
192
+ <pane id="Scope" />
193
+ <pane id="ProjectPane">
194
+ <subPane>
195
+ <PATH>
196
+ <PATH_ELEMENT>
197
+ <option name="myItemId" value="pworker" />
198
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
199
+ </PATH_ELEMENT>
200
+ <PATH_ELEMENT>
201
+ <option name="myItemId" value="pwork" />
202
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
203
+ </PATH_ELEMENT>
204
+ </PATH>
205
+ <PATH>
206
+ <PATH_ELEMENT>
207
+ <option name="myItemId" value="pworker" />
208
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
209
+ </PATH_ELEMENT>
210
+ <PATH_ELEMENT>
211
+ <option name="myItemId" value="pwork" />
212
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
213
+ </PATH_ELEMENT>
214
+ <PATH_ELEMENT>
215
+ <option name="myItemId" value="spec" />
216
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
217
+ </PATH_ELEMENT>
218
+ </PATH>
219
+ <PATH>
220
+ <PATH_ELEMENT>
221
+ <option name="myItemId" value="pworker" />
222
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
223
+ </PATH_ELEMENT>
224
+ <PATH_ELEMENT>
225
+ <option name="myItemId" value="pwork" />
226
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
227
+ </PATH_ELEMENT>
228
+ <PATH_ELEMENT>
229
+ <option name="myItemId" value="lib" />
230
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
231
+ </PATH_ELEMENT>
232
+ </PATH>
233
+ <PATH>
234
+ <PATH_ELEMENT>
235
+ <option name="myItemId" value="pworker" />
236
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
237
+ </PATH_ELEMENT>
238
+ <PATH_ELEMENT>
239
+ <option name="myItemId" value="pwork" />
240
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
241
+ </PATH_ELEMENT>
242
+ <PATH_ELEMENT>
243
+ <option name="myItemId" value="lib" />
244
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
245
+ </PATH_ELEMENT>
246
+ <PATH_ELEMENT>
247
+ <option name="myItemId" value="pwork" />
248
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
249
+ </PATH_ELEMENT>
250
+ </PATH>
251
+ </subPane>
252
+ </pane>
253
+ <pane id="Scratches" />
254
+ </panes>
255
+ </component>
256
+ <component name="PropertiesComponent">
257
+ <property name="settings.editor.selected.configurable" value="org.jetbrains.plugins.ruby.settings.RubyActiveModuleSdkConfigurable" />
258
+ <property name="settings.editor.splitter.proportion" value="0.2" />
259
+ <property name="last_opened_file_path" value="$USER_HOME$/Documents/Projects/pworker" />
260
+ <property name="WebServerToolWindowFactoryState" value="false" />
261
+ </component>
262
+ <component name="RunManager">
263
+ <configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
264
+ <predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
265
+ <module name="" />
266
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
267
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
268
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
269
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
270
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
271
+ <envs />
272
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
273
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
274
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
275
+ <COVERAGE_PATTERN ENABLED="true">
276
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
277
+ </COVERAGE_PATTERN>
278
+ </EXTENSION>
279
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
280
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
281
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
282
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
283
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
284
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
285
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
286
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
287
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
288
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
289
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
290
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
291
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
292
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
293
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
294
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
295
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
296
+ <method />
297
+ </configuration>
298
+ <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
299
+ <method />
300
+ </configuration>
301
+ <configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
302
+ <predefined_log_file id="RUBY_RSPEC" enabled="true" />
303
+ <module name="" />
304
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
305
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
306
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
307
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
308
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
309
+ <envs />
310
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
311
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
312
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
313
+ <COVERAGE_PATTERN ENABLED="true">
314
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
315
+ </COVERAGE_PATTERN>
316
+ </EXTENSION>
317
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
318
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
319
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
320
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
321
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
322
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
323
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
324
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
325
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
326
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
327
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
328
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
329
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
330
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
331
+ <method />
332
+ </configuration>
333
+ <configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
334
+ <module name="" />
335
+ <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
336
+ <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
337
+ <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
338
+ <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
339
+ <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
340
+ <envs />
341
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
342
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
343
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
344
+ <COVERAGE_PATTERN ENABLED="true">
345
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
346
+ </COVERAGE_PATTERN>
347
+ </EXTENSION>
348
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
349
+ <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
350
+ <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
351
+ <method />
352
+ </configuration>
353
+ <configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
354
+ <predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
355
+ <module name="" />
356
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
357
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
358
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
359
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
360
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
361
+ <envs />
362
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
363
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
364
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
365
+ <COVERAGE_PATTERN ENABLED="true">
366
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
367
+ </COVERAGE_PATTERN>
368
+ </EXTENSION>
369
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
370
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
371
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
372
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
373
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
374
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
375
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
376
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
377
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
378
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
379
+ <method />
380
+ </configuration>
381
+ <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
382
+ <method />
383
+ </configuration>
384
+ </component>
385
+ <component name="ShelveChangesManager" show_recycled="false" />
386
+ <component name="TaskManager">
387
+ <task active="true" id="Default" summary="Default task">
388
+ <changelist id="db89e2dd-d181-494e-8b26-1703e9d201f2" name="Default" comment="" />
389
+ <created>1459235375829</created>
390
+ <option name="number" value="Default" />
391
+ <updated>1459235375829</updated>
392
+ </task>
393
+ <servers />
394
+ </component>
395
+ <component name="ToolWindowManager">
396
+ <frame x="1935" y="30" width="2479" height="1396" extended-state="0" />
397
+ <editor active="true" />
398
+ <layout>
399
+ <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" />
400
+ <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" />
401
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32932332" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
402
+ <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" />
403
+ <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" />
404
+ <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" />
405
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.24989742" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
406
+ <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" />
407
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
408
+ <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" />
409
+ <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" />
410
+ <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" />
411
+ <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" />
412
+ <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" />
413
+ <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" />
414
+ <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" />
415
+ <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" />
416
+ <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" />
417
+ </layout>
418
+ </component>
419
+ <component name="VcsContentAnnotationSettings">
420
+ <option name="myLimit" value="2678400000" />
421
+ </component>
422
+ <component name="XDebuggerManager">
423
+ <breakpoint-manager />
424
+ <watches-manager />
425
+ </component>
426
+ <component name="editorHistoryManager">
427
+ <entry file="file://$USER_HOME$/Documents/Projects/pwork/CODE_OF_CONDUCT.md">
428
+ <provider editor-type-id="com.intellij.database.editor.CsvTableFileEditorProvider">
429
+ <state />
430
+ </provider>
431
+ <provider selected="true" editor-type-id="text-editor">
432
+ <state vertical-scroll-proportion="-0.0">
433
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
434
+ <folding />
435
+ </state>
436
+ </provider>
437
+ </entry>
438
+ <entry file="file://$USER_HOME$/Documents/Projects/pwork/.rspec">
439
+ <provider selected="true" editor-type-id="text-editor">
440
+ <state vertical-scroll-proportion="0.0">
441
+ <caret line="2" column="12" selection-start-line="2" selection-start-column="12" selection-end-line="2" selection-end-column="12" />
442
+ <folding />
443
+ </state>
444
+ </provider>
445
+ </entry>
446
+ <entry file="file://$USER_HOME$/Documents/Projects/pwork/spec/spec_helper.rb">
447
+ <provider selected="true" editor-type-id="text-editor">
448
+ <state vertical-scroll-proportion="0.0">
449
+ <caret line="1" column="0" selection-start-line="1" selection-start-column="0" selection-end-line="1" selection-end-column="0" />
450
+ <folding />
451
+ </state>
452
+ </provider>
453
+ </entry>
454
+ <entry file="file://$USER_HOME$/Documents/Projects/pwork/lib/pwork/version.rb">
455
+ <provider selected="true" editor-type-id="text-editor">
456
+ <state vertical-scroll-proportion="0.0">
457
+ <caret line="0" column="12" selection-start-line="0" selection-start-column="12" selection-end-line="0" selection-end-column="12" />
458
+ <folding />
459
+ </state>
460
+ </provider>
461
+ </entry>
462
+ <entry file="file://$USER_HOME$/Documents/Projects/pwork/spec/pwork_spec.rb">
463
+ <provider selected="true" editor-type-id="text-editor">
464
+ <state vertical-scroll-proportion="0.0">
465
+ <caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
466
+ <folding>
467
+ <element signature="e#182#786#0" expanded="false" />
468
+ <element signature="e#893#1500#0" expanded="false" />
469
+ <element signature="e#1672#4847#0" expanded="false" />
470
+ <element signature="e#4984#8164#0" expanded="false" />
471
+ </folding>
472
+ </state>
473
+ </provider>
474
+ </entry>
475
+ <entry file="file://$USER_HOME$/Documents/Projects/pwork/.gitignore">
476
+ <provider selected="true" editor-type-id="text-editor">
477
+ <state vertical-scroll-proportion="-1.6666666">
478
+ <caret line="3" column="9" selection-start-line="3" selection-start-column="9" selection-end-line="3" selection-end-column="9" />
479
+ <folding />
480
+ </state>
481
+ </provider>
482
+ </entry>
483
+ <entry file="file://$USER_HOME$/Documents/Projects/pwork/pwork.gemspec">
484
+ <provider selected="true" editor-type-id="text-editor">
485
+ <state vertical-scroll-proportion="0.0">
486
+ <caret line="13" column="52" selection-start-line="13" selection-start-column="52" selection-end-line="13" selection-end-column="52" />
487
+ <folding />
488
+ </state>
489
+ </provider>
490
+ </entry>
491
+ <entry file="file://$USER_HOME$/Documents/Projects/pwork/lib/pwork.rb">
492
+ <provider selected="true" editor-type-id="text-editor">
493
+ <state vertical-scroll-proportion="0.0">
494
+ <caret line="21" column="7" selection-start-line="21" selection-start-column="7" selection-end-line="21" selection-end-column="7" />
495
+ <folding />
496
+ </state>
497
+ </provider>
498
+ </entry>
499
+ <entry file="file://$USER_HOME$/Documents/Projects/pwork/README.md">
500
+ <provider selected="true" editor-type-id="text-editor">
501
+ <state vertical-scroll-proportion="0.9764706">
502
+ <caret line="93" column="109" selection-start-line="93" selection-start-column="109" selection-end-line="93" selection-end-column="109" />
503
+ <folding />
504
+ </state>
505
+ </provider>
506
+ </entry>
507
+ </component>
508
+ </project>
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --color
2
+ --require spec_helper
3
+ --format doc
@@ -0,0 +1,49 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This code of conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at vaughan.britton@sage.com. All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
+ version 1.3.0, available at
46
+ [http://contributor-covenant.org/version/1/3/0/][version]
47
+
48
+ [homepage]: http://contributor-covenant.org
49
+ [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in pworker.gemspec
4
+ gemspec
@@ -0,0 +1,35 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ pwork (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ diff-lcs (1.2.5)
10
+ rake (10.5.0)
11
+ rspec (3.4.0)
12
+ rspec-core (~> 3.4.0)
13
+ rspec-expectations (~> 3.4.0)
14
+ rspec-mocks (~> 3.4.0)
15
+ rspec-core (3.4.4)
16
+ rspec-support (~> 3.4.0)
17
+ rspec-expectations (3.4.0)
18
+ diff-lcs (>= 1.2.0, < 2.0)
19
+ rspec-support (~> 3.4.0)
20
+ rspec-mocks (3.4.1)
21
+ diff-lcs (>= 1.2.0, < 2.0)
22
+ rspec-support (~> 3.4.0)
23
+ rspec-support (3.4.1)
24
+
25
+ PLATFORMS
26
+ ruby
27
+
28
+ DEPENDENCIES
29
+ bundler (~> 1.11)
30
+ pwork!
31
+ rake (~> 10.0)
32
+ rspec
33
+
34
+ BUNDLED WITH
35
+ 1.11.2
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 vaughanbrittonsage
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,95 @@
1
+ # Pwork
2
+
3
+ Welcome to your Pwork. A gem to help with the execution of code on parallel threads.
4
+
5
+ > Parallel execution is especially useful at improving performance for long running I/O processes such as database & web service operations.
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'pwork'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install pwork
22
+
23
+ ## Usage
24
+
25
+ Pwork provides the following options for parallel work execution:
26
+
27
+ ### #.peach
28
+ This method provides a parallel thread based execution of an each block iteration over an array.
29
+
30
+ **Params:**
31
+
32
+ - **thread_count** [Integer] [Optional] [Default=5] This is the number of threads that the parallel iteration should be spread across.
33
+
34
+ **Example:**
35
+
36
+ #array each iteration using the default thread count
37
+ array.peach do |item|
38
+ ......
39
+ end
40
+
41
+ #array each iteration using a specified thread count
42
+ array.peach(8) do |item|
43
+ ......
44
+ end
45
+
46
+ ### Pwork::Worker
47
+
48
+ The worker object is used to attach one or more blocks of code to execute in parallel.
49
+ The number of threads to spread the parallel execution across can be specified in the workers construction.
50
+
51
+ **Params:**
52
+
53
+ - **thread_count** [Integer] [Optional] [Default=5] This is the number of threads that the parallel execution should be spread across.
54
+
55
+ **Example:**
56
+
57
+ #create a worker with the default number of parallel threads
58
+ worker = Pwork::Worker.new
59
+
60
+ #create a worker with a specific number of parallel threads
61
+ worker = Pwork::Worker.new(8)
62
+
63
+ Then add your blocks of code to execute in parallel:
64
+
65
+ worker.add do
66
+ .......
67
+ end
68
+
69
+ worker.add do
70
+ .......
71
+ end
72
+
73
+ Once all blocks of code required to be executed in parallel have been added to the worker, a call to the execute method is required to begin processing:
74
+
75
+ worker.execute
76
+
77
+ All blocks of code will be executed in parallel across the workers threads.
78
+
79
+ > The Worker object is not asynchronous, the worker processes are executed on separate threads in parallel but the worker execute method is synchronous and will wait until all execution has completed before continuing past the **worker.execute** call line.
80
+
81
+ ## Development
82
+
83
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
84
+
85
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
86
+
87
+ ## Contributing
88
+
89
+ Bug reports and pull requests are welcome on GitHub at https://github.com/vaughanbrittonsage/pworker. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
90
+
91
+
92
+ ## License
93
+
94
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
95
+
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "pwork"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,69 @@
1
+ require "pwork/version"
2
+
3
+ module Pwork
4
+
5
+ class Worker
6
+
7
+ def initialize(thread_count = 5)
8
+ @processes = []
9
+ @thread_count = thread_count
10
+ end
11
+
12
+ #This method is called to add a process to this worker
13
+ def add(&block)
14
+ @processes.push(block)
15
+ end
16
+
17
+ #This method is called to execute all processes attached to this worker in parallel on the specified number of threads.
18
+ def execute
19
+ @processes.peach(@thread_count) do |item|
20
+ item.call
21
+ end
22
+ end
23
+
24
+ end
25
+
26
+ end
27
+
28
+
29
+ class Array
30
+
31
+ #This method is called to loop over each item in this array in parallel threads
32
+ def peach(thread_count = 5, &block)
33
+ mutex = Mutex.new
34
+ index_count = -1
35
+ threads = []
36
+ thread_count.times.each do
37
+ thread = Thread.new do
38
+ thread_process(index_count, mutex, &block)
39
+ end
40
+ threads.push(thread)
41
+ end
42
+ #wait for all threads to exit
43
+ threads.each { |thr| thr.join }
44
+ end
45
+
46
+ #This method is used to recursively process an item on a thread
47
+ def thread_process(index_count, mutex, &block)
48
+
49
+ item = nil
50
+
51
+ #use a mutex to get the next item from the array to ensure thread safety
52
+ mutex.synchronize do
53
+ index_count += 1
54
+
55
+ if index_count > self.length - 1
56
+ return
57
+ end
58
+
59
+ item = self[index_count]
60
+ end
61
+
62
+ #execute the block for the current item
63
+ yield item
64
+
65
+ #recursively attempt to process another item from the array opn this thread
66
+ thread_process(index_count, mutex, &block)
67
+ end
68
+
69
+ end
@@ -0,0 +1,3 @@
1
+ module Pwork
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,25 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'pwork/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "pwork"
8
+ spec.version = Pwork::VERSION
9
+ spec.authors = ["vaughanbrittonage"]
10
+ spec.email = ["vaughanbritton@gmail.com"]
11
+
12
+ spec.summary = 'This is a library to facilitate with the execution of work on parallel threads.'
13
+ spec.description = 'This is a library to facilitate with the execution of work on parallel threads.'
14
+ spec.homepage = "https://github.com/vaughanbrittonsage/pwork"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_development_dependency "bundler", "~> 1.11"
23
+ spec.add_development_dependency "rake", "~> 10.0"
24
+ spec.add_development_dependency "rspec"
25
+ end
metadata ADDED
@@ -0,0 +1,110 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pwork
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - vaughanbrittonage
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-03-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.11'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.11'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: This is a library to facilitate with the execution of work on parallel
56
+ threads.
57
+ email:
58
+ - vaughanbritton@gmail.com
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".bundle/config"
64
+ - ".gitignore"
65
+ - ".idea/.name"
66
+ - ".idea/.rakeTasks"
67
+ - ".idea/encodings.xml"
68
+ - ".idea/misc.xml"
69
+ - ".idea/modules.xml"
70
+ - ".idea/pworker.iml"
71
+ - ".idea/vcs.xml"
72
+ - ".idea/workspace.xml"
73
+ - ".rspec"
74
+ - CODE_OF_CONDUCT.md
75
+ - Gemfile
76
+ - Gemfile.lock
77
+ - LICENSE.txt
78
+ - README.md
79
+ - Rakefile
80
+ - bin/console
81
+ - bin/setup
82
+ - lib/pwork.rb
83
+ - lib/pwork/version.rb
84
+ - pwork.gemspec
85
+ homepage: https://github.com/vaughanbrittonsage/pwork
86
+ licenses:
87
+ - MIT
88
+ metadata: {}
89
+ post_install_message:
90
+ rdoc_options: []
91
+ require_paths:
92
+ - lib
93
+ required_ruby_version: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ required_rubygems_version: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ requirements: []
104
+ rubyforge_project:
105
+ rubygems_version: 2.5.1
106
+ signing_key:
107
+ specification_version: 4
108
+ summary: This is a library to facilitate with the execution of work on parallel threads.
109
+ test_files: []
110
+ has_rdoc: