Sentencemate 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 16510413225ef1114122fad05825e211d1610d1a
4
+ data.tar.gz: a7226221962f165ca00f355ab1a2f223d4b9e957
5
+ SHA512:
6
+ metadata.gz: 13d50e86d6ab9b5f4d0c1f0a685aef6724d154d3e18ed925053aca0b62bc8bc2e344946a91e6a2240b7f659f840e03767c939e2ad20206fa979b3e237aacf9c9
7
+ data.tar.gz: 5956033f3f334dc86de15be7a728410c935a10bffac6c3a7d880c2fb4534926962897c627a0b0010d8e2974f8c13bfb1294b85834110c9954b96e1ff2a00e652
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.idea/.name ADDED
@@ -0,0 +1 @@
1
+ Sentencemate
@@ -0,0 +1,65 @@
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="$MODULE_DIR$/test" />
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="sentencemate" type="CommandRunConfigurationType" factoryName="Gem Command">
14
+ <module name="Sentencemate" />
15
+ <COMMAND_RUN_CONFIGURATION NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
16
+ <COMMAND_RUN_CONFIGURATION NAME="WORK DIR" VALUE="$MODULE_DIR$" />
17
+ <COMMAND_RUN_CONFIGURATION NAME="SHOULD_USE_SDK" VALUE="false" />
18
+ <COMMAND_RUN_CONFIGURATION NAME="ALTERN_SDK_NAME" VALUE="" />
19
+ <COMMAND_RUN_CONFIGURATION 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
+ <COMMAND_CONFIG_SETTINGS_ID NAME="GEM_NAME" VALUE="bundler" />
30
+ <COMMAND_CONFIG_SETTINGS_ID NAME="EXECUTABLE_NAME" VALUE="gem" />
31
+ <COMMAND_CONFIG_SETTINGS_ID NAME="EXECUTABLE_ARGS" VALUE="install ./Sentencemate-0.1.0.gem" />
32
+ <COMMAND_CONFIG_SETTINGS_ID NAME="WORKING_DIR" VALUE="install ./Sentencemate-0.1.0.gem" />
33
+ <method />
34
+ </configuration>
35
+ <configuration default="false" name="IRB console: Sentencemate" type="IrbRunConfigurationType" factoryName="IRB console" temporary="true">
36
+ <module name="Sentencemate" />
37
+ <IRB_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
38
+ <IRB_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$" />
39
+ <IRB_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
40
+ <IRB_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
41
+ <IRB_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
42
+ <envs />
43
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
44
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
45
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
46
+ <COVERAGE_PATTERN ENABLED="true">
47
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
48
+ </COVERAGE_PATTERN>
49
+ </EXTENSION>
50
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
51
+ <IRB_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="/usr/bin/irb" />
52
+ <IRB_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="--prompt simple" />
53
+ <IRB_RUN_CONFIG NAME="IS_RAILS_CONSOLE" VALUE="false" />
54
+ <method />
55
+ </configuration>
56
+ </component>
57
+ <component name="NewModuleRootManager">
58
+ <content url="file://$MODULE_DIR$">
59
+ <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
60
+ </content>
61
+ <orderEntry type="inheritedJdk" />
62
+ <orderEntry type="sourceFolder" forTests="false" />
63
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.10.6, ruby-2.0.0-p481) [gem]" level="application" />
64
+ </component>
65
+ </module>
data/.idea/misc.xml ADDED
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
4
+ <OptionsSetting value="true" id="Add" />
5
+ <OptionsSetting value="true" id="Remove" />
6
+ <OptionsSetting value="true" id="Checkout" />
7
+ <OptionsSetting value="true" id="Update" />
8
+ <OptionsSetting value="true" id="Status" />
9
+ <OptionsSetting value="true" id="Edit" />
10
+ <ConfirmationsSetting value="0" id="Add" />
11
+ <ConfirmationsSetting value="0" id="Remove" />
12
+ </component>
13
+ <component name="ProjectRootManager" version="2" project-jdk-name="ruby-2.0.0-p481" project-jdk-type="RUBY_SDK" />
14
+ </project>
data/.idea/modules.xml ADDED
@@ -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://$PROJECT_DIR$/.idea/Sentencemate.iml" filepath="$PROJECT_DIR$/.idea/Sentencemate.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
data/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,499 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="24893200-97de-4817-a103-a41804c2030f" name="Default" comment="" />
5
+ <ignored path="Sentencemate.iws" />
6
+ <ignored path=".idea/workspace.xml" />
7
+ <ignored path=".idea/dataSources.local.xml" />
8
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
9
+ <option name="TRACKING_ENABLED" value="true" />
10
+ <option name="SHOW_DIALOG" value="false" />
11
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
12
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
13
+ <option name="LAST_RESOLUTION" value="IGNORE" />
14
+ </component>
15
+ <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
16
+ <component name="CoverageDataManager">
17
+ <SUITE FILE_PATH="coverage/Sentencemate@sentencemate.coverage" NAME="sentencemate Coverage Results" MODIFIED="1442302054297" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="Sentencemate" />
18
+ <SUITE FILE_PATH="coverage/Sentencemate@IRB_console__Sentencemate.coverage" NAME="IRB console: Sentencemate Coverage Results" MODIFIED="1442302194087" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="Sentencemate" />
19
+ </component>
20
+ <component name="CreatePatchCommitExecutor">
21
+ <option name="PATCH_PATH" value="" />
22
+ </component>
23
+ <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
24
+ <component name="FavoritesManager">
25
+ <favorites_list name="Sentencemate" />
26
+ </component>
27
+ <component name="FileEditorManager">
28
+ <leaf>
29
+ <file leaf-file-name="Sentencemate.gemspec" pinned="false" current-in-tab="true">
30
+ <entry file="file://$PROJECT_DIR$/Sentencemate.gemspec">
31
+ <provider selected="true" editor-type-id="text-editor">
32
+ <state vertical-scroll-proportion="0.58441556">
33
+ <caret line="19" column="62" selection-start-line="19" selection-start-column="62" selection-end-line="19" selection-end-column="62" />
34
+ <folding />
35
+ </state>
36
+ </provider>
37
+ </entry>
38
+ </file>
39
+ <file leaf-file-name="console" pinned="false" current-in-tab="false">
40
+ <entry file="file://$PROJECT_DIR$/bin/console">
41
+ <provider selected="true" editor-type-id="text-editor">
42
+ <state vertical-scroll-proportion="0.0">
43
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
44
+ <folding />
45
+ </state>
46
+ </provider>
47
+ </entry>
48
+ </file>
49
+ <file leaf-file-name="setup" pinned="false" current-in-tab="false">
50
+ <entry file="file://$PROJECT_DIR$/bin/setup">
51
+ <provider selected="true" editor-type-id="text-editor">
52
+ <state vertical-scroll-proportion="0.0">
53
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
54
+ <folding />
55
+ </state>
56
+ </provider>
57
+ </entry>
58
+ </file>
59
+ <file leaf-file-name=".travis.yml" pinned="false" current-in-tab="false">
60
+ <entry file="file://$PROJECT_DIR$/.travis.yml">
61
+ <provider selected="true" editor-type-id="text-editor">
62
+ <state vertical-scroll-proportion="0.0">
63
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
64
+ <folding />
65
+ </state>
66
+ </provider>
67
+ </entry>
68
+ </file>
69
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
70
+ <entry file="file://$PROJECT_DIR$/lib/Sentencemate/version.rb">
71
+ <provider selected="true" editor-type-id="text-editor">
72
+ <state vertical-scroll-proportion="0.0">
73
+ <caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
74
+ <folding />
75
+ </state>
76
+ </provider>
77
+ </entry>
78
+ </file>
79
+ <file leaf-file-name="Sentencemate.rb" pinned="false" current-in-tab="false">
80
+ <entry file="file://$PROJECT_DIR$/lib/Sentencemate.rb">
81
+ <provider selected="true" editor-type-id="text-editor">
82
+ <state vertical-scroll-proportion="0.0">
83
+ <caret line="11" column="7" selection-start-line="11" selection-start-column="7" selection-end-line="11" selection-end-column="7" />
84
+ <folding />
85
+ </state>
86
+ </provider>
87
+ </entry>
88
+ </file>
89
+ <file leaf-file-name="README.md" pinned="false" current-in-tab="false">
90
+ <entry file="file://$PROJECT_DIR$/README.md">
91
+ <provider selected="true" editor-type-id="text-editor">
92
+ <state vertical-scroll-proportion="-4.4444447">
93
+ <caret line="11" column="0" selection-start-line="11" selection-start-column="0" selection-end-line="11" selection-end-column="18" />
94
+ <folding />
95
+ </state>
96
+ </provider>
97
+ </entry>
98
+ </file>
99
+ <file leaf-file-name="Gemfile" pinned="false" current-in-tab="false">
100
+ <entry file="file://$PROJECT_DIR$/Gemfile">
101
+ <provider selected="true" editor-type-id="text-editor">
102
+ <state vertical-scroll-proportion="0.0">
103
+ <caret line="4" column="0" selection-start-line="4" selection-start-column="0" selection-end-line="4" selection-end-column="0" />
104
+ <folding />
105
+ </state>
106
+ </provider>
107
+ </entry>
108
+ </file>
109
+ <file leaf-file-name="Rakefile" pinned="false" current-in-tab="false">
110
+ <entry file="file://$PROJECT_DIR$/Rakefile">
111
+ <provider selected="true" editor-type-id="text-editor">
112
+ <state vertical-scroll-proportion="0.0">
113
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
114
+ <folding />
115
+ </state>
116
+ </provider>
117
+ </entry>
118
+ </file>
119
+ </leaf>
120
+ </component>
121
+ <component name="IdeDocumentHistory">
122
+ <option name="CHANGED_PATHS">
123
+ <list>
124
+ <option value="$PROJECT_DIR$/lib/Sentencemate.rb" />
125
+ <option value="$PROJECT_DIR$/Gemfile" />
126
+ <option value="$PROJECT_DIR$/Sentencemate.gemspec" />
127
+ </list>
128
+ </option>
129
+ </component>
130
+ <component name="JsBuildToolGruntFileManager" detection-done="true" />
131
+ <component name="JsGulpfileManager">
132
+ <detection-done>true</detection-done>
133
+ </component>
134
+ <component name="NamedScopeManager">
135
+ <order />
136
+ </component>
137
+ <component name="ProjectFrameBounds">
138
+ <option name="x" value="20" />
139
+ <option name="y" value="63" />
140
+ <option name="width" value="1260" />
141
+ <option name="height" value="682" />
142
+ </component>
143
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
144
+ <OptionsSetting value="true" id="Add" />
145
+ <OptionsSetting value="true" id="Remove" />
146
+ <OptionsSetting value="true" id="Checkout" />
147
+ <OptionsSetting value="true" id="Update" />
148
+ <OptionsSetting value="true" id="Status" />
149
+ <OptionsSetting value="true" id="Edit" />
150
+ <ConfirmationsSetting value="0" id="Add" />
151
+ <ConfirmationsSetting value="0" id="Remove" />
152
+ </component>
153
+ <component name="ProjectView">
154
+ <navigator currentView="ProjectPane" proportions="" version="1">
155
+ <flattenPackages />
156
+ <showMembers />
157
+ <showModules />
158
+ <showLibraryContents />
159
+ <hideEmptyPackages />
160
+ <abbreviatePackageNames />
161
+ <autoscrollToSource />
162
+ <autoscrollFromSource />
163
+ <sortByType />
164
+ </navigator>
165
+ <panes>
166
+ <pane id="Scope" />
167
+ <pane id="ProjectPane">
168
+ <subPane>
169
+ <PATH>
170
+ <PATH_ELEMENT>
171
+ <option name="myItemId" value="Sentencemate" />
172
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
173
+ </PATH_ELEMENT>
174
+ </PATH>
175
+ <PATH>
176
+ <PATH_ELEMENT>
177
+ <option name="myItemId" value="Sentencemate" />
178
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
179
+ </PATH_ELEMENT>
180
+ <PATH_ELEMENT>
181
+ <option name="myItemId" value="Sentencemate" />
182
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
183
+ </PATH_ELEMENT>
184
+ </PATH>
185
+ <PATH>
186
+ <PATH_ELEMENT>
187
+ <option name="myItemId" value="Sentencemate" />
188
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
189
+ </PATH_ELEMENT>
190
+ <PATH_ELEMENT>
191
+ <option name="myItemId" value="Sentencemate" />
192
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
193
+ </PATH_ELEMENT>
194
+ <PATH_ELEMENT>
195
+ <option name="myItemId" value="lib" />
196
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
197
+ </PATH_ELEMENT>
198
+ </PATH>
199
+ <PATH>
200
+ <PATH_ELEMENT>
201
+ <option name="myItemId" value="Sentencemate" />
202
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
203
+ </PATH_ELEMENT>
204
+ <PATH_ELEMENT>
205
+ <option name="myItemId" value="Sentencemate" />
206
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
207
+ </PATH_ELEMENT>
208
+ <PATH_ELEMENT>
209
+ <option name="myItemId" value="lib" />
210
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
211
+ </PATH_ELEMENT>
212
+ <PATH_ELEMENT>
213
+ <option name="myItemId" value="Sentencemate" />
214
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
215
+ </PATH_ELEMENT>
216
+ </PATH>
217
+ <PATH>
218
+ <PATH_ELEMENT>
219
+ <option name="myItemId" value="Sentencemate" />
220
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
221
+ </PATH_ELEMENT>
222
+ <PATH_ELEMENT>
223
+ <option name="myItemId" value="Sentencemate" />
224
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
225
+ </PATH_ELEMENT>
226
+ <PATH_ELEMENT>
227
+ <option name="myItemId" value="bin" />
228
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
229
+ </PATH_ELEMENT>
230
+ </PATH>
231
+ </subPane>
232
+ </pane>
233
+ <pane id="Scratches" />
234
+ </panes>
235
+ </component>
236
+ <component name="PropertiesComponent">
237
+ <property name="settings.editor.selected.configurable" value="org.jetbrains.plugins.ruby.settings.RubyActiveModuleSdkConfigurable" />
238
+ <property name="settings.editor.splitter.proportion" value="0.2" />
239
+ <property name="WebServerToolWindowFactoryState" value="false" />
240
+ <property name="recentsLimit" value="5" />
241
+ <property name="restartRequiresConfirmation" value="true" />
242
+ </component>
243
+ <component name="RunManager" selected="IRB console.IRB console: Sentencemate">
244
+ <configuration default="false" name="IRB console: Sentencemate" type="IrbRunConfigurationType" factoryName="IRB console" temporary="true">
245
+ <module name="Sentencemate" />
246
+ <IRB_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
247
+ <IRB_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$" />
248
+ <IRB_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
249
+ <IRB_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
250
+ <IRB_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
251
+ <envs />
252
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
253
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
254
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
255
+ <COVERAGE_PATTERN ENABLED="true">
256
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
257
+ </COVERAGE_PATTERN>
258
+ </EXTENSION>
259
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
260
+ <IRB_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="/usr/bin/irb" />
261
+ <IRB_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="--prompt simple" />
262
+ <IRB_RUN_CONFIG NAME="IS_RAILS_CONSOLE" VALUE="false" />
263
+ <method />
264
+ </configuration>
265
+ <configuration default="true" type="CommandRunConfigurationType" factoryName="Gem Command">
266
+ <module name="Sentencemate" />
267
+ <COMMAND_RUN_CONFIGURATION NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
268
+ <COMMAND_RUN_CONFIGURATION NAME="WORK DIR" VALUE="" />
269
+ <COMMAND_RUN_CONFIGURATION NAME="SHOULD_USE_SDK" VALUE="false" />
270
+ <COMMAND_RUN_CONFIGURATION NAME="ALTERN_SDK_NAME" VALUE="" />
271
+ <COMMAND_RUN_CONFIGURATION NAME="myPassParentEnvs" VALUE="true" />
272
+ <envs />
273
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
274
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
275
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
276
+ <COVERAGE_PATTERN ENABLED="true">
277
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
278
+ </COVERAGE_PATTERN>
279
+ </EXTENSION>
280
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
281
+ <COMMAND_CONFIG_SETTINGS_ID NAME="GEM_NAME" VALUE="bundler" />
282
+ <COMMAND_CONFIG_SETTINGS_ID NAME="EXECUTABLE_NAME" VALUE="gem" />
283
+ <COMMAND_CONFIG_SETTINGS_ID NAME="EXECUTABLE_ARGS" VALUE="install ./Sentencemate-0.1.0.gem" />
284
+ <COMMAND_CONFIG_SETTINGS_ID NAME="WORKING_DIR" VALUE="install ./Sentencemate-0.1.0.gem" />
285
+ <method />
286
+ </configuration>
287
+ <configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
288
+ <predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
289
+ <module name="" />
290
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
291
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
292
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
293
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
294
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
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
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
305
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
306
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
307
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
308
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
309
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
310
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
311
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
312
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
313
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
314
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
315
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
316
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
317
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
318
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
319
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
320
+ <method />
321
+ </configuration>
322
+ <configuration default="true" type="IrbRunConfigurationType" factoryName="IRB console">
323
+ <module name="" />
324
+ <IRB_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
325
+ <IRB_RUN_CONFIG NAME="WORK DIR" VALUE="" />
326
+ <IRB_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
327
+ <IRB_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
328
+ <IRB_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
329
+ <envs />
330
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
331
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
332
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
333
+ <COVERAGE_PATTERN ENABLED="true">
334
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
335
+ </COVERAGE_PATTERN>
336
+ </EXTENSION>
337
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
338
+ <IRB_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
339
+ <IRB_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
340
+ <IRB_RUN_CONFIG NAME="IS_RAILS_CONSOLE" VALUE="false" />
341
+ <method />
342
+ </configuration>
343
+ <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
344
+ <method />
345
+ </configuration>
346
+ <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
347
+ <method />
348
+ </configuration>
349
+ <configuration default="false" name="sentencemate" type="CommandRunConfigurationType" factoryName="Gem Command">
350
+ <module name="Sentencemate" />
351
+ <COMMAND_RUN_CONFIGURATION NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
352
+ <COMMAND_RUN_CONFIGURATION NAME="WORK DIR" VALUE="$MODULE_DIR$" />
353
+ <COMMAND_RUN_CONFIGURATION NAME="SHOULD_USE_SDK" VALUE="false" />
354
+ <COMMAND_RUN_CONFIGURATION NAME="ALTERN_SDK_NAME" VALUE="" />
355
+ <COMMAND_RUN_CONFIGURATION NAME="myPassParentEnvs" VALUE="true" />
356
+ <envs />
357
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
358
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
359
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
360
+ <COVERAGE_PATTERN ENABLED="true">
361
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
362
+ </COVERAGE_PATTERN>
363
+ </EXTENSION>
364
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
365
+ <COMMAND_CONFIG_SETTINGS_ID NAME="GEM_NAME" VALUE="bundler" />
366
+ <COMMAND_CONFIG_SETTINGS_ID NAME="EXECUTABLE_NAME" VALUE="gem" />
367
+ <COMMAND_CONFIG_SETTINGS_ID NAME="EXECUTABLE_ARGS" VALUE="install ./Sentencemate-0.1.0.gem" />
368
+ <COMMAND_CONFIG_SETTINGS_ID NAME="WORKING_DIR" VALUE="install ./Sentencemate-0.1.0.gem" />
369
+ <method />
370
+ </configuration>
371
+ <list size="2">
372
+ <item index="0" class="java.lang.String" itemvalue="Gem Command.sentencemate" />
373
+ <item index="1" class="java.lang.String" itemvalue="IRB console.IRB console: Sentencemate" />
374
+ </list>
375
+ <recent_temporary>
376
+ <list size="1">
377
+ <item index="0" class="java.lang.String" itemvalue="IRB console.IRB console: Sentencemate" />
378
+ </list>
379
+ </recent_temporary>
380
+ </component>
381
+ <component name="ShelveChangesManager" show_recycled="false" />
382
+ <component name="SvnConfiguration">
383
+ <configuration />
384
+ </component>
385
+ <component name="TaskManager">
386
+ <task active="true" id="Default" summary="Default task">
387
+ <changelist id="24893200-97de-4817-a103-a41804c2030f" name="Default" comment="" />
388
+ <created>1442300533088</created>
389
+ <option name="number" value="Default" />
390
+ <updated>1442300533088</updated>
391
+ </task>
392
+ <servers />
393
+ </component>
394
+ <component name="ToolWindowManager">
395
+ <frame x="20" y="63" width="1260" height="682" extended-state="0" />
396
+ <editor active="true" />
397
+ <layout>
398
+ <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" />
399
+ <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" />
400
+ <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" />
401
+ <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" />
402
+ <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" />
403
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.24958949" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
404
+ <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" />
405
+ <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" />
406
+ <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" />
407
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32954547" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
408
+ <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" />
409
+ <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" />
410
+ <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" />
411
+ <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" />
412
+ <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" />
413
+ <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" />
414
+ <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" />
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
+ </layout>
417
+ </component>
418
+ <component name="VcsContentAnnotationSettings">
419
+ <option name="myLimit" value="2678400000" />
420
+ </component>
421
+ <component name="XDebuggerManager">
422
+ <breakpoint-manager />
423
+ <watches-manager />
424
+ </component>
425
+ <component name="editorHistoryManager">
426
+ <entry file="file://$PROJECT_DIR$/Rakefile">
427
+ <provider selected="true" editor-type-id="text-editor">
428
+ <state vertical-scroll-proportion="0.0">
429
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
430
+ <folding />
431
+ </state>
432
+ </provider>
433
+ </entry>
434
+ <entry file="file://$PROJECT_DIR$/lib/Sentencemate/version.rb">
435
+ <provider selected="true" editor-type-id="text-editor">
436
+ <state vertical-scroll-proportion="0.0">
437
+ <caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
438
+ <folding />
439
+ </state>
440
+ </provider>
441
+ </entry>
442
+ <entry file="file://$PROJECT_DIR$/lib/Sentencemate.rb">
443
+ <provider selected="true" editor-type-id="text-editor">
444
+ <state vertical-scroll-proportion="0.0">
445
+ <caret line="11" column="7" selection-start-line="11" selection-start-column="7" selection-end-line="11" selection-end-column="7" />
446
+ <folding />
447
+ </state>
448
+ </provider>
449
+ </entry>
450
+ <entry file="file://$PROJECT_DIR$/Gemfile">
451
+ <provider selected="true" editor-type-id="text-editor">
452
+ <state vertical-scroll-proportion="0.0">
453
+ <caret line="4" column="0" selection-start-line="4" selection-start-column="0" selection-end-line="4" selection-end-column="0" />
454
+ <folding />
455
+ </state>
456
+ </provider>
457
+ </entry>
458
+ <entry file="file://$PROJECT_DIR$/bin/console">
459
+ <provider selected="true" editor-type-id="text-editor">
460
+ <state vertical-scroll-proportion="0.0">
461
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
462
+ <folding />
463
+ </state>
464
+ </provider>
465
+ </entry>
466
+ <entry file="file://$PROJECT_DIR$/bin/setup">
467
+ <provider selected="true" editor-type-id="text-editor">
468
+ <state vertical-scroll-proportion="0.0">
469
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
470
+ <folding />
471
+ </state>
472
+ </provider>
473
+ </entry>
474
+ <entry file="file://$PROJECT_DIR$/.travis.yml">
475
+ <provider selected="true" editor-type-id="text-editor">
476
+ <state vertical-scroll-proportion="0.0">
477
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
478
+ <folding />
479
+ </state>
480
+ </provider>
481
+ </entry>
482
+ <entry file="file://$PROJECT_DIR$/README.md">
483
+ <provider selected="true" editor-type-id="text-editor">
484
+ <state vertical-scroll-proportion="-4.4444447">
485
+ <caret line="11" column="0" selection-start-line="11" selection-start-column="0" selection-end-line="11" selection-end-column="18" />
486
+ <folding />
487
+ </state>
488
+ </provider>
489
+ </entry>
490
+ <entry file="file://$PROJECT_DIR$/Sentencemate.gemspec">
491
+ <provider selected="true" editor-type-id="text-editor">
492
+ <state vertical-scroll-proportion="0.58441556">
493
+ <caret line="19" column="62" selection-start-line="19" selection-start-column="62" selection-end-line="19" selection-end-column="62" />
494
+ <folding />
495
+ </state>
496
+ </provider>
497
+ </entry>
498
+ </component>
499
+ </project>
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ before_install: gem install bundler -v 1.10.6
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'Sentencemate', :path => ''
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Joshua Weinstein
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.
data/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # Sentencemate
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/Sentencemate`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'Sentencemate'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install Sentencemate
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake false` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ 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).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/Sentencemate.
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
+
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'Sentencemate/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "Sentencemate"
8
+ spec.version = Sentencemate::VERSION
9
+ spec.authors = ["Joshua Weinstein"]
10
+ spec.email = ["jweinst1@berkeley.edu"]
11
+
12
+ spec.summary = %q{Set of three objects that facilitate collecting and sorting of English text strings. It allows words, sentences, and
13
+ paragraphs to be easily accessed and manipulated with proper methods.}
14
+ spec.description = %q{A toolset for manipulating and utilizing long text strings. Useful for analyzing user input or bodys of text. Can break text into compacted
15
+ series of words, sentences and paragraphs.}
16
+ spec.homepage = "https://github.com/jweinst1/Textism"
17
+ spec.license = "MIT"
18
+
19
+
20
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
21
+ spec.bindir = "exe"
22
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
+ spec.require_paths = ["lib"]
24
+
25
+ spec.add_development_dependency "bundler", "~> 1.10"
26
+ spec.add_development_dependency "rake", "~> 10.0"
27
+ end
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "Sentencemate"
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
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,119 @@
1
+ require "Sentencemate/version"
2
+
3
+ module Sentencemate
4
+ #Object used to emulate a single word in text.
5
+ class Word
6
+ def initialize(word)
7
+ @word = word
8
+ end
9
+ def append(str)
10
+ @word = @word << str
11
+ return @word
12
+ end
13
+ def get
14
+ return @word
15
+ end
16
+ def setword(str)
17
+ @word = str
18
+ end
19
+ def tag(str)
20
+ @tag = str
21
+ end
22
+ end
23
+ # Object used to emulate a sentence in text.
24
+ class Sentence
25
+ def initialize(statement)
26
+ @sentence = statement
27
+ statement = statement.chop
28
+ statement = statement.downcase
29
+ lst = statement.split(" ")
30
+ @words = []
31
+ for elem in lst
32
+ @words << Word.new(elem)
33
+ end
34
+ if @sentence[@sentence.length-1] == "?"
35
+ @question = true
36
+ else
37
+ @question = false
38
+ end
39
+ end
40
+ def addword(str)
41
+ @words << Word.new(str)
42
+ end
43
+ def addword_to_place(str, i)
44
+ @words.insert(i, Word.new(str))
45
+ end
46
+ def set_word(i, other)
47
+ @words[i].setword(other)
48
+ end
49
+ def [](i)
50
+ @words[i].get()
51
+ end
52
+ def length
53
+ @words.length
54
+ end
55
+ def addpunc(symbol)
56
+ @words[self.length-1].setword(@words[self.length-1].get << symbol)
57
+ end
58
+ def checkforword(str)
59
+ for elem in @words
60
+ if elem.get == str
61
+ return true
62
+ end
63
+ end
64
+ return false
65
+ end
66
+ end
67
+ #object meant to simulate a paragraph or block of text.
68
+ class Paragraph
69
+ def initialize(text)
70
+ @paragraph = text
71
+ @sentence_box = []
72
+ count = 0
73
+ until text.length == 0 do
74
+ if text[count] == "."
75
+ @sentence_box << Sentence.new(text[0..count])
76
+ text = self.cutstring(text, 0, count)
77
+ count = 0
78
+ elsif text[count] == "?"
79
+ @sentence_box << Sentence.new(text[0..count])
80
+ text = self.cutstring(text, 0, count)
81
+ count = 0
82
+ elsif text[count] == "!"
83
+ @sentence_box << Sentence.new(text[0..count])
84
+ text = self.cutstring(text, 0, count)
85
+ count = 0
86
+ else
87
+ count += 1
88
+ end
89
+ end
90
+ end
91
+ def cutstring(str, start, stop)
92
+ str[start..stop] = ""
93
+ return str
94
+ end
95
+ def [](i)
96
+ @sentence_box[i]
97
+ end
98
+ def paragraph
99
+ return @paragraph
100
+ end
101
+ def lettercount
102
+ return @paragraph.split("").length
103
+ end
104
+ def wordcount
105
+ return @paragraph.split(" ").length
106
+ end
107
+ def checkforword(str)
108
+ for sentence in @sentence_box
109
+ if sentence.checkforword(str)
110
+ return true
111
+ end
112
+ end
113
+ return false
114
+ end
115
+ def word_at_index(i)
116
+ return @paragraph.split(" ")[i]
117
+ end
118
+ end
119
+ end
@@ -0,0 +1,3 @@
1
+ module Sentencemate
2
+ VERSION = "0.1.0"
3
+ end
metadata ADDED
@@ -0,0 +1,93 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: Sentencemate
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Joshua Weinstein
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-09-15 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.10'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.10'
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
+ description: |-
42
+ A toolset for manipulating and utilizing long text strings. Useful for analyzing user input or bodys of text. Can break text into compacted
43
+ series of words, sentences and paragraphs.
44
+ email:
45
+ - jweinst1@berkeley.edu
46
+ executables: []
47
+ extensions: []
48
+ extra_rdoc_files: []
49
+ files:
50
+ - .gitignore
51
+ - .idea/.name
52
+ - .idea/Sentencemate.iml
53
+ - .idea/misc.xml
54
+ - .idea/modules.xml
55
+ - .idea/vcs.xml
56
+ - .idea/workspace.xml
57
+ - .travis.yml
58
+ - Gemfile
59
+ - LICENSE.txt
60
+ - README.md
61
+ - Rakefile
62
+ - Sentencemate.gemspec
63
+ - bin/console
64
+ - bin/setup
65
+ - lib/Sentencemate.rb
66
+ - lib/Sentencemate/version.rb
67
+ homepage: https://github.com/jweinst1/Textism
68
+ licenses:
69
+ - MIT
70
+ metadata: {}
71
+ post_install_message:
72
+ rdoc_options: []
73
+ require_paths:
74
+ - lib
75
+ required_ruby_version: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - '>='
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ required_rubygems_version: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - '>='
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ requirements: []
86
+ rubyforge_project:
87
+ rubygems_version: 2.4.8
88
+ signing_key:
89
+ specification_version: 4
90
+ summary: Set of three objects that facilitate collecting and sorting of English text
91
+ strings. It allows words, sentences, and paragraphs to be easily accessed and manipulated
92
+ with proper methods.
93
+ test_files: []