blade-gpt 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c4736774ac5656d1b39f6e8d1174d652db597a8fc476e3c4fd92b92c30ebfcfc
4
+ data.tar.gz: 8628e7a45827e985f5854a368c474951529713c6ff6e93efa32480fb3205d814
5
+ SHA512:
6
+ metadata.gz: a948b6bec2148fa62c698750f8e47ff08bc29c0d0234b9ca89290b0b8ba15f80a3caf2ed0898aa6f8115c85d563b40d77f8f3bdd9ed9dccaed1b8a2739763deb
7
+ data.tar.gz: b6e5f9c804754cc96b3b06b449640bb10785fc490b05b9dd99998c0e3716214a86942851f717be7ea712a25b1db8ed4fcc1031abc4ad93d2eee7d92bd5837310
data/.DS_Store ADDED
Binary file
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/.rakeTasks ADDED
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Settings><!--This file was automatically generated by Ruby plugin.
3
+ You are allowed to:
4
+ 1. Remove rake task
5
+ 2. Add existing rake tasks
6
+ To add existing rake tasks automatically delete this file and reload the project.
7
+ --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build blade-translate-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 blade-translate-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install blade-translate-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 blade-translate-0.1.0.gem to Rubygems" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><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,28 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="FacetManager">
4
+ <facet type="gem" name="New Gem">
5
+ <configuration />
6
+ </facet>
7
+ </component>
8
+ <component name="ModuleRunConfigurationManager">
9
+ <shared />
10
+ </component>
11
+ <component name="NewModuleRootManager">
12
+ <content url="file://$MODULE_DIR$">
13
+ <excludeFolder url="file://$MODULE_DIR$/.bundle" />
14
+ <excludeFolder url="file://$MODULE_DIR$/vendor/bundle" />
15
+ </content>
16
+ <orderEntry type="inheritedJdk" />
17
+ <orderEntry type="sourceFolder" forTests="false" />
18
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.11.2, RVM: ruby-2.2.1) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.5, RVM: ruby-2.2.1) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="rainbow (v2.1.0, RVM: ruby-2.2.1) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, RVM: ruby-2.2.1) [gem]" level="application" />
22
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v3.3.0, RVM: ruby-2.2.1) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.3.2, RVM: ruby-2.2.1) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.3.1, RVM: ruby-2.2.1) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.3.2, RVM: ruby-2.2.1) [gem]" level="application" />
26
+ <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.3.0, RVM: ruby-2.2.1) [gem]" level="application" />
27
+ </component>
28
+ </module>
data/.idea/misc.xml ADDED
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.2.1" project-jdk-type="RUBY_SDK" />
4
+ </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/blade-translate.iml" filepath="$PROJECT_DIR$/.idea/blade-translate.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="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,587 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="AutoImportSettings">
4
+ <option name="autoReloadType" value="SELECTIVE" />
5
+ </component>
6
+ <component name="ChangeListManager">
7
+ <list default="true" id="5e8bc335-8301-412e-9672-5d35dfc99f81" name="Default" comment="">
8
+ <change beforePath="$PROJECT_DIR$/.idea/blade-translate.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/blade-translate.iml" afterDir="false" />
9
+ <change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
10
+ <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
11
+ <change beforePath="$PROJECT_DIR$/Gemfile" beforeDir="false" afterPath="$PROJECT_DIR$/Gemfile" afterDir="false" />
12
+ <change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
13
+ <change beforePath="$PROJECT_DIR$/bin/bt" beforeDir="false" afterPath="$PROJECT_DIR$/bin/gpt" afterDir="false" />
14
+ <change beforePath="$PROJECT_DIR$/bin/console" beforeDir="false" afterPath="$PROJECT_DIR$/bin/console" afterDir="false" />
15
+ <change beforePath="$PROJECT_DIR$/blade-translate.gemspec" beforeDir="false" afterPath="$PROJECT_DIR$/blade-gpt.gemspec" afterDir="false" />
16
+ <change beforePath="$PROJECT_DIR$/lib/blade/translate.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/blade/gpt.rb" afterDir="false" />
17
+ <change beforePath="$PROJECT_DIR$/lib/blade/translate/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/blade/gpt/version.rb" afterDir="false" />
18
+ <change beforePath="$PROJECT_DIR$/spec/spec_helper.rb" beforeDir="false" afterPath="$PROJECT_DIR$/spec/spec_helper.rb" afterDir="false" />
19
+ </list>
20
+ <option name="SHOW_DIALOG" value="false" />
21
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
22
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
23
+ <option name="LAST_RESOLUTION" value="IGNORE" />
24
+ </component>
25
+ <component name="CreatePatchCommitExecutor">
26
+ <option name="PATCH_PATH" value="" />
27
+ </component>
28
+ <component name="Git.Settings">
29
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
30
+ </component>
31
+ <component name="IdeDocumentHistory">
32
+ <option name="CHANGED_PATHS">
33
+ <list>
34
+ <option value="$PROJECT_DIR$/bin/thc.rb" />
35
+ <option value="$PROJECT_DIR$/bin/thc" />
36
+ <option value="$PROJECT_DIR$/spec/blade/translate_spec.rb" />
37
+ <option value="$PROJECT_DIR$/lib/blade/translate.rb" />
38
+ <option value="$PROJECT_DIR$/lib/blade/translate/version.rb" />
39
+ <option value="$PROJECT_DIR$/bin/bt" />
40
+ <option value="$PROJECT_DIR$/blade-translate.gemspec" />
41
+ <option value="$PROJECT_DIR$/README.md" />
42
+ </list>
43
+ </option>
44
+ </component>
45
+ <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
46
+ <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
47
+ <component name="JsGulpfileManager">
48
+ <detection-done>true</detection-done>
49
+ <sorting>DEFINITION_ORDER</sorting>
50
+ </component>
51
+ <component name="MarkdownSettingsMigration">
52
+ <option name="stateVersion" value="1" />
53
+ </component>
54
+ <component name="ProjectFrameBounds">
55
+ <option name="y" value="23" />
56
+ <option name="width" value="1440" />
57
+ <option name="height" value="810" />
58
+ </component>
59
+ <component name="ProjectId" id="2NRQsi12Z7xxn48ngLkwjyfdcEs" />
60
+ <component name="ProjectView">
61
+ <navigator currentView="ProjectPane" proportions="" version="1">
62
+ <flattenPackages />
63
+ <showMembers />
64
+ <showModules />
65
+ <showLibraryContents />
66
+ <hideEmptyPackages />
67
+ <abbreviatePackageNames />
68
+ <autoscrollToSource />
69
+ <autoscrollFromSource />
70
+ <sortByType />
71
+ <manualOrder />
72
+ <foldersAlwaysOnTop value="true" />
73
+ </navigator>
74
+ <panes>
75
+ <pane id="Scratches" />
76
+ <pane id="Scope" />
77
+ <pane id="ProjectPane">
78
+ <subPane>
79
+ <PATH>
80
+ <PATH_ELEMENT>
81
+ <option name="myItemId" value="blade-translate" />
82
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
83
+ </PATH_ELEMENT>
84
+ <PATH_ELEMENT>
85
+ <option name="myItemId" value="External Libraries" />
86
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ExternalLibrariesNode" />
87
+ </PATH_ELEMENT>
88
+ </PATH>
89
+ <PATH>
90
+ <PATH_ELEMENT>
91
+ <option name="myItemId" value="blade-translate" />
92
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
93
+ </PATH_ELEMENT>
94
+ <PATH_ELEMENT>
95
+ <option name="myItemId" value="blade-translate" />
96
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
97
+ </PATH_ELEMENT>
98
+ </PATH>
99
+ <PATH>
100
+ <PATH_ELEMENT>
101
+ <option name="myItemId" value="blade-translate" />
102
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
103
+ </PATH_ELEMENT>
104
+ <PATH_ELEMENT>
105
+ <option name="myItemId" value="blade-translate" />
106
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
107
+ </PATH_ELEMENT>
108
+ <PATH_ELEMENT>
109
+ <option name="myItemId" value="spec" />
110
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
111
+ </PATH_ELEMENT>
112
+ </PATH>
113
+ <PATH>
114
+ <PATH_ELEMENT>
115
+ <option name="myItemId" value="blade-translate" />
116
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
117
+ </PATH_ELEMENT>
118
+ <PATH_ELEMENT>
119
+ <option name="myItemId" value="blade-translate" />
120
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
121
+ </PATH_ELEMENT>
122
+ <PATH_ELEMENT>
123
+ <option name="myItemId" value="spec" />
124
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
125
+ </PATH_ELEMENT>
126
+ <PATH_ELEMENT>
127
+ <option name="myItemId" value="blade" />
128
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
129
+ </PATH_ELEMENT>
130
+ </PATH>
131
+ <PATH>
132
+ <PATH_ELEMENT>
133
+ <option name="myItemId" value="blade-translate" />
134
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
135
+ </PATH_ELEMENT>
136
+ <PATH_ELEMENT>
137
+ <option name="myItemId" value="blade-translate" />
138
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
139
+ </PATH_ELEMENT>
140
+ <PATH_ELEMENT>
141
+ <option name="myItemId" value="lib" />
142
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
143
+ </PATH_ELEMENT>
144
+ <PATH_ELEMENT>
145
+ <option name="myItemId" value="blade" />
146
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
147
+ </PATH_ELEMENT>
148
+ </PATH>
149
+ <PATH>
150
+ <PATH_ELEMENT>
151
+ <option name="myItemId" value="blade-translate" />
152
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
153
+ </PATH_ELEMENT>
154
+ <PATH_ELEMENT>
155
+ <option name="myItemId" value="blade-translate" />
156
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
157
+ </PATH_ELEMENT>
158
+ <PATH_ELEMENT>
159
+ <option name="myItemId" value="lib" />
160
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
161
+ </PATH_ELEMENT>
162
+ <PATH_ELEMENT>
163
+ <option name="myItemId" value="blade" />
164
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
165
+ </PATH_ELEMENT>
166
+ <PATH_ELEMENT>
167
+ <option name="myItemId" value="translate" />
168
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
169
+ </PATH_ELEMENT>
170
+ </PATH>
171
+ <PATH>
172
+ <PATH_ELEMENT>
173
+ <option name="myItemId" value="blade-translate" />
174
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
175
+ </PATH_ELEMENT>
176
+ <PATH_ELEMENT>
177
+ <option name="myItemId" value="blade-translate" />
178
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
179
+ </PATH_ELEMENT>
180
+ <PATH_ELEMENT>
181
+ <option name="myItemId" value="bin" />
182
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
183
+ </PATH_ELEMENT>
184
+ </PATH>
185
+ </subPane>
186
+ </pane>
187
+ </panes>
188
+ </component>
189
+ <component name="ProjectViewState">
190
+ <option name="hideEmptyMiddlePackages" value="true" />
191
+ <option name="showLibraryContents" value="true" />
192
+ </component>
193
+ <component name="PropertiesComponent"><![CDATA[{
194
+ "keyToString": {
195
+ "WebServerToolWindowFactoryState": "false",
196
+ "last_opened_file_path": "/Users/icepoint/code/blade-translate",
197
+ "node.js.detected.package.eslint": "true",
198
+ "node.js.detected.package.tslint": "true",
199
+ "node.js.selected.package.eslint": "(autodetect)",
200
+ "node.js.selected.package.tslint": "(autodetect)",
201
+ "nodejs_package_manager_path": "npm",
202
+ "ruby.rails.projectView.checked": "true",
203
+ "ruby.structure.view.model.defaults.configured": "true",
204
+ "vue.rearranger.settings.migration": "true"
205
+ }
206
+ }]]></component>
207
+ <component name="RecentsManager">
208
+ <key name="CopyFile.RECENT_KEYS">
209
+ <recent name="$PROJECT_DIR$" />
210
+ <recent name="$PROJECT_DIR$/bin" />
211
+ </key>
212
+ </component>
213
+ <component name="RunManager">
214
+ <configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
215
+ <predefined_log_file enabled="true" id="RUBY_CUCUMBER" />
216
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
217
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
218
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
219
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
220
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
221
+ <EXTENSION ID="BundlerRunConfigurationExtension" BUNDLE_MODE="DISABLE" bundleExecEnabled="false" />
222
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
223
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
224
+ <COVERAGE_PATTERN ENABLED="true">
225
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
226
+ </COVERAGE_PATTERN>
227
+ </EXTENSION>
228
+ <EXTENSION ID="org.jetbrains.plugins.ruby.rails.run.RailsRunConfigurationExtension" SCRATCH_USE_RAILS_RUNNER="false" />
229
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
230
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
231
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
232
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
233
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPTS_PATHS" VALUE="" />
234
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
235
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
236
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
237
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
238
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
239
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
240
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
241
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
242
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
243
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
244
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
245
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
246
+ <method v="2" />
247
+ </configuration>
248
+ <configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
249
+ <predefined_log_file enabled="true" id="RUBY_RSPEC" />
250
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
251
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
252
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
253
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
254
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
255
+ <EXTENSION ID="BundlerRunConfigurationExtension" BUNDLE_MODE="DISABLE" bundleExecEnabled="false" />
256
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
257
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
258
+ <COVERAGE_PATTERN ENABLED="true">
259
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
260
+ </COVERAGE_PATTERN>
261
+ </EXTENSION>
262
+ <EXTENSION ID="org.jetbrains.plugins.ruby.rails.run.RailsRunConfigurationExtension" SCRATCH_USE_RAILS_RUNNER="false" />
263
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
264
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
265
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATHS" VALUE="" />
266
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
267
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
268
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
269
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
270
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
271
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
272
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
273
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
274
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
275
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
276
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
277
+ <method v="2" />
278
+ </configuration>
279
+ <configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
280
+ <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
281
+ <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
282
+ <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
283
+ <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
284
+ <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
285
+ <EXTENSION ID="BundlerRunConfigurationExtension" BUNDLE_MODE="DISABLE" bundleExecEnabled="false" />
286
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
287
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
288
+ <COVERAGE_PATTERN ENABLED="true">
289
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
290
+ </COVERAGE_PATTERN>
291
+ </EXTENSION>
292
+ <EXTENSION ID="org.jetbrains.plugins.ruby.rails.run.RailsRunConfigurationExtension" SCRATCH_USE_RAILS_RUNNER="false" />
293
+ <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
294
+ <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
295
+ <method v="2" />
296
+ </configuration>
297
+ <configuration name="gpt" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
298
+ <module name="blade-translate" />
299
+ <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
300
+ <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$" />
301
+ <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
302
+ <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
303
+ <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
304
+ <EXTENSION ID="BundlerRunConfigurationExtension" BUNDLE_MODE="DISABLE" bundleExecEnabled="false" />
305
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
306
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
307
+ <COVERAGE_PATTERN ENABLED="true">
308
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
309
+ </COVERAGE_PATTERN>
310
+ </EXTENSION>
311
+ <EXTENSION ID="org.jetbrains.plugins.ruby.rails.run.RailsRunConfigurationExtension" SCRATCH_USE_RAILS_RUNNER="false" />
312
+ <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/lib/blade/gpt.rb" />
313
+ <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
314
+ <method v="2" />
315
+ </configuration>
316
+ <configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
317
+ <predefined_log_file enabled="true" id="RUBY_TESTUNIT" />
318
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
319
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
320
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
321
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
322
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
323
+ <EXTENSION ID="BundlerRunConfigurationExtension" BUNDLE_MODE="DISABLE" bundleExecEnabled="false" />
324
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
325
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
326
+ <COVERAGE_PATTERN ENABLED="true">
327
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
328
+ </COVERAGE_PATTERN>
329
+ </EXTENSION>
330
+ <EXTENSION ID="org.jetbrains.plugins.ruby.rails.run.RailsRunConfigurationExtension" SCRATCH_USE_RAILS_RUNNER="false" />
331
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
332
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
333
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPTS_PATHS" VALUE="" />
334
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
335
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
336
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="CUSTOM_SET_OF_FILES" />
337
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
338
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
339
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
340
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
341
+ <method v="2" />
342
+ </configuration>
343
+ <configuration default="true" type="js.build_tools.gulp">
344
+ <node-interpreter>project</node-interpreter>
345
+ <node-options />
346
+ <gulpfile />
347
+ <tasks />
348
+ <arguments />
349
+ <envs />
350
+ <method v="2" />
351
+ </configuration>
352
+ <recent_temporary>
353
+ <list>
354
+ <item itemvalue="Ruby.gpt" />
355
+ </list>
356
+ </recent_temporary>
357
+ </component>
358
+ <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
359
+ <component name="SvnConfiguration">
360
+ <configuration />
361
+ </component>
362
+ <component name="TaskManager">
363
+ <task active="true" id="Default" summary="Default task">
364
+ <changelist id="5e8bc335-8301-412e-9672-5d35dfc99f81" name="Default" comment="" />
365
+ <created>1477113393537</created>
366
+ <option name="number" value="Default" />
367
+ <option name="presentableId" value="Default" />
368
+ <updated>1477113393537</updated>
369
+ <workItem from="1477113394791" duration="4158000" />
370
+ <workItem from="1477310795750" duration="50000" />
371
+ <workItem from="1516678356632" duration="151000" />
372
+ <workItem from="1679624625781" duration="1996000" />
373
+ </task>
374
+ <servers />
375
+ </component>
376
+ <component name="TimeTrackingManager">
377
+ <option name="totallyTimeSpent" value="4359000" />
378
+ </component>
379
+ <component name="ToolWindowManager">
380
+ <frame x="0" y="23" width="1440" height="810" extended-state="0" />
381
+ <editor active="true" />
382
+ <layout>
383
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.26037195" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
384
+ <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
385
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
386
+ <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
387
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3293011" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
388
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
389
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
390
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
391
+ <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
392
+ <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
393
+ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
394
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
395
+ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
396
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
397
+ <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
398
+ <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
399
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
400
+ </layout>
401
+ </component>
402
+ <component name="TypeScriptGeneratedFilesManager">
403
+ <option name="version" value="3" />
404
+ </component>
405
+ <component name="Vcs.Log.UiProperties">
406
+ <option name="RECENTLY_FILTERED_USER_GROUPS">
407
+ <collection />
408
+ </option>
409
+ <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
410
+ <collection />
411
+ </option>
412
+ </component>
413
+ <component name="editorHistoryManager">
414
+ <entry file="file://$PROJECT_DIR$/bin/bt">
415
+ <provider selected="true" editor-type-id="text-editor">
416
+ <state relative-caret-position="300">
417
+ <caret line="20" column="43" selection-start-line="20" selection-start-column="43" selection-end-line="20" selection-end-column="43" />
418
+ <folding />
419
+ </state>
420
+ </provider>
421
+ </entry>
422
+ <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
423
+ <provider selected="true" editor-type-id="text-editor">
424
+ <state relative-caret-position="0">
425
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
426
+ <folding />
427
+ </state>
428
+ </provider>
429
+ </entry>
430
+ <entry file="file://$PROJECT_DIR$/spec/blade/translate_spec.rb">
431
+ <provider selected="true" editor-type-id="text-editor">
432
+ <state relative-caret-position="135">
433
+ <caret line="9" column="0" selection-start-line="9" selection-start-column="0" selection-end-line="9" selection-end-column="0" />
434
+ <folding />
435
+ </state>
436
+ </provider>
437
+ </entry>
438
+ <entry file="file://$PROJECT_DIR$/lib/blade/translate.rb">
439
+ <provider selected="true" editor-type-id="text-editor">
440
+ <state relative-caret-position="105">
441
+ <caret line="7" column="66" selection-start-line="7" selection-start-column="66" selection-end-line="7" selection-end-column="66" />
442
+ <folding />
443
+ </state>
444
+ </provider>
445
+ </entry>
446
+ <entry file="file://$PROJECT_DIR$/lib/blade/translate/version.rb">
447
+ <provider selected="true" editor-type-id="text-editor">
448
+ <state relative-caret-position="30">
449
+ <caret line="2" column="20" selection-start-line="2" selection-start-column="20" selection-end-line="2" selection-end-column="20" />
450
+ <folding />
451
+ </state>
452
+ </provider>
453
+ </entry>
454
+ <entry file="file://$PROJECT_DIR$/bin/console">
455
+ <provider selected="true" editor-type-id="text-editor">
456
+ <state relative-caret-position="45">
457
+ <caret line="3" column="18" selection-start-line="3" selection-start-column="18" selection-end-line="3" selection-end-column="18" />
458
+ <folding />
459
+ </state>
460
+ </provider>
461
+ </entry>
462
+ <entry file="file://$PROJECT_DIR$/bin/setup">
463
+ <provider selected="true" editor-type-id="text-editor">
464
+ <state relative-caret-position="0">
465
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
466
+ <folding />
467
+ </state>
468
+ </provider>
469
+ </entry>
470
+ <entry file="file://$PROJECT_DIR$/blade-translate.gemspec">
471
+ <provider selected="true" editor-type-id="text-editor">
472
+ <state relative-caret-position="420">
473
+ <caret line="28" column="43" selection-start-line="28" selection-start-column="43" selection-end-line="28" selection-end-column="43" />
474
+ <folding />
475
+ </state>
476
+ </provider>
477
+ </entry>
478
+ <entry file="file://$PROJECT_DIR$/.gitignore">
479
+ <provider selected="true" editor-type-id="text-editor">
480
+ <state relative-caret-position="120">
481
+ <caret line="8" column="5" selection-start-line="8" selection-start-column="5" selection-end-line="8" selection-end-column="5" />
482
+ <folding />
483
+ </state>
484
+ </provider>
485
+ </entry>
486
+ <entry file="file://$PROJECT_DIR$/README.md">
487
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
488
+ <state split_layout="SPLIT">
489
+ <first_editor relative-caret-position="0">
490
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
491
+ <folding />
492
+ </first_editor>
493
+ <second_editor />
494
+ </state>
495
+ </provider>
496
+ </entry>
497
+ <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
498
+ <provider selected="true" editor-type-id="text-editor">
499
+ <state relative-caret-position="0">
500
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
501
+ <folding />
502
+ </state>
503
+ </provider>
504
+ </entry>
505
+ <entry file="file://$PROJECT_DIR$/spec/blade/translate_spec.rb">
506
+ <provider selected="true" editor-type-id="text-editor">
507
+ <state relative-caret-position="135">
508
+ <caret line="9" column="0" selection-start-line="9" selection-start-column="0" selection-end-line="9" selection-end-column="0" />
509
+ <folding />
510
+ </state>
511
+ </provider>
512
+ </entry>
513
+ <entry file="file://$PROJECT_DIR$/lib/blade/translate.rb">
514
+ <provider selected="true" editor-type-id="text-editor">
515
+ <state relative-caret-position="105">
516
+ <caret line="7" column="66" selection-start-line="7" selection-start-column="66" selection-end-line="7" selection-end-column="66" />
517
+ <folding />
518
+ </state>
519
+ </provider>
520
+ </entry>
521
+ <entry file="file://$PROJECT_DIR$/lib/blade/translate/version.rb">
522
+ <provider selected="true" editor-type-id="text-editor">
523
+ <state relative-caret-position="30">
524
+ <caret line="2" column="20" selection-start-line="2" selection-start-column="20" selection-end-line="2" selection-end-column="20" />
525
+ <folding />
526
+ </state>
527
+ </provider>
528
+ </entry>
529
+ <entry file="file://$PROJECT_DIR$/.gitignore">
530
+ <provider selected="true" editor-type-id="text-editor">
531
+ <state relative-caret-position="120">
532
+ <caret line="8" column="5" selection-start-line="8" selection-start-column="5" selection-end-line="8" selection-end-column="5" />
533
+ <folding />
534
+ </state>
535
+ </provider>
536
+ </entry>
537
+ <entry file="file://$PROJECT_DIR$/bin/bt">
538
+ <provider selected="true" editor-type-id="text-editor">
539
+ <state relative-caret-position="120">
540
+ <caret line="8" column="16" selection-start-line="8" selection-start-column="16" selection-end-line="8" selection-end-column="16" />
541
+ <folding />
542
+ </state>
543
+ </provider>
544
+ </entry>
545
+ <entry file="file://$PROJECT_DIR$/bin/setup">
546
+ <provider selected="true" editor-type-id="text-editor">
547
+ <state relative-caret-position="105">
548
+ <caret line="7" column="33" selection-start-line="7" selection-start-column="31" selection-end-line="7" selection-end-column="33" />
549
+ <folding />
550
+ </state>
551
+ </provider>
552
+ </entry>
553
+ <entry file="file://$PROJECT_DIR$/bin/console">
554
+ <provider selected="true" editor-type-id="text-editor">
555
+ <state relative-caret-position="210">
556
+ <caret line="14" column="0" selection-start-line="14" selection-start-column="0" selection-end-line="14" selection-end-column="0" />
557
+ <folding />
558
+ </state>
559
+ </provider>
560
+ </entry>
561
+ <entry file="file://$PROJECT_DIR$/blade-translate.gemspec">
562
+ <provider selected="true" editor-type-id="text-editor">
563
+ <state relative-caret-position="180">
564
+ <caret line="12" column="39" selection-start-line="12" selection-start-column="39" selection-end-line="12" selection-end-column="39" />
565
+ <folding />
566
+ </state>
567
+ </provider>
568
+ </entry>
569
+ <entry file="file://$PROJECT_DIR$/README.md">
570
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
571
+ <state split_layout="SPLIT">
572
+ <first_editor relative-caret-position="345">
573
+ <caret line="23" column="13" selection-start-line="23" selection-start-column="13" selection-end-line="23" selection-end-column="13" />
574
+ <folding />
575
+ </first_editor>
576
+ <second_editor />
577
+ </state>
578
+ </provider>
579
+ <provider editor-type-id="text-editor">
580
+ <state relative-caret-position="360">
581
+ <caret line="24" column="0" selection-start-line="24" selection-start-column="0" selection-end-line="24" selection-end-column="14" />
582
+ <folding />
583
+ </state>
584
+ </provider>
585
+ </entry>
586
+ </component>
587
+ </project>
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.1
4
+ before_install: gem install bundler -v 1.11.2
@@ -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 351711778@qq.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 blade-gpt.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 icepoint0
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
+ # Blade::Translate
2
+
3
+ command line translate
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'blade-gpt'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install blade-translate
20
+
21
+ ## Usage
22
+
23
+ ```
24
+ bt your_world
25
+ ```
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` 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/icepoint0/blade-translate. 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.
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,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/gpt ADDED
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require_relative '../lib/blade/gpt'
4
+
5
+ help = <<HELP
6
+ gpt: Translate tools in the command line
7
+ $ gpt word
8
+ $ gpt clean
9
+ > enter the loop mode, ctrl+c to exit
10
+ HELP
11
+
12
+ if ARGV.empty?
13
+ gpt = Blade::Gpt.new
14
+ begin
15
+ loop do
16
+ print 'gpt > '
17
+ input = gets.chomp
18
+ # 输入为空时继续循环
19
+ next if input == ''
20
+ gpt.ask(input)
21
+ end
22
+ rescue Interrupt
23
+ puts 'bye~'
24
+ end
25
+ elsif %w{-h --help}.any? { |c| ARGV.include? c }
26
+ puts help
27
+ else
28
+ gpt = Blade::Gpt.new
29
+ gpt.ask(input)
30
+ end
data/blade-gpt.gemspec ADDED
@@ -0,0 +1,30 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'blade/gpt/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "blade-gpt"
8
+ spec.version = Blade::GPT::VERSION
9
+ spec.authors = ["icepoint0"]
10
+ spec.email = ["351711778@qq.com"]
11
+
12
+ spec.summary = "blade gpt"
13
+ spec.description = "blade gpt"
14
+ spec.homepage = "http://thunderjava.com"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
18
+ # delete this section to allow pushing this gem to any host.
19
+
20
+
21
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
+ spec.bindir = "bin"
23
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
24
+ spec.require_paths = ["lib"]
25
+
26
+ spec.add_development_dependency "bundler", "~> 1.11"
27
+ spec.add_development_dependency "rake", "~> 10.0"
28
+ spec.add_development_dependency "rspec", "~> 3.0"
29
+ spec.add_dependency "rainbow" ,"~>2.1.0"
30
+ end
@@ -0,0 +1,5 @@
1
+ module Blade
2
+ module GPT
3
+ VERSION = "0.1.1"
4
+ end
5
+ end
data/lib/blade/gpt.rb ADDED
@@ -0,0 +1,38 @@
1
+ require "uri"
2
+ require "net/http"
3
+ require "json"
4
+ require "rainbow/ext/string"
5
+
6
+ module Blade
7
+ class Gpt
8
+ def initialize
9
+ @questions = []
10
+ end
11
+
12
+ def ask(question)
13
+ @questions << { role: "user", content: question }
14
+ uri = URI.parse("https://api.thunderjava.com/v1/chat/completions")
15
+ request = Net::HTTP::Post.new(uri)
16
+ request.content_type = "application/json"
17
+ request["Authorization"] = "Bearer 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"
18
+
19
+ request.body = JSON.dump({
20
+ "model": "gpt-3.5-turbo",
21
+ "messages": @questions
22
+ })
23
+
24
+ req_options = {
25
+ use_ssl: uri.scheme == "https",
26
+ }
27
+ response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http|
28
+ http.request(request)
29
+ end
30
+ res = JSON.parse(response.body)
31
+ (res["choices"] || [] ).each do |choice|
32
+ puts Rainbow("GPT: ").yellow + Rainbow(choice["message"]["content"]).cyan
33
+ @questions << choice["message"]
34
+ end
35
+ return res["choices"]
36
+ end
37
+ end
38
+ end
data/thc-translate.png ADDED
Binary file
metadata ADDED
@@ -0,0 +1,120 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: blade-gpt
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - icepoint0
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-03-24 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: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rainbow
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 2.1.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 2.1.0
69
+ description: blade gpt
70
+ email:
71
+ - 351711778@qq.com
72
+ executables:
73
+ - gpt
74
+ extensions: []
75
+ extra_rdoc_files: []
76
+ files:
77
+ - ".DS_Store"
78
+ - ".gitignore"
79
+ - ".idea/.rakeTasks"
80
+ - ".idea/blade-translate.iml"
81
+ - ".idea/misc.xml"
82
+ - ".idea/modules.xml"
83
+ - ".idea/vcs.xml"
84
+ - ".idea/workspace.xml"
85
+ - ".rspec"
86
+ - ".travis.yml"
87
+ - CODE_OF_CONDUCT.md
88
+ - Gemfile
89
+ - LICENSE.txt
90
+ - README.md
91
+ - Rakefile
92
+ - bin/gpt
93
+ - blade-gpt.gemspec
94
+ - lib/blade/gpt.rb
95
+ - lib/blade/gpt/version.rb
96
+ - thc-translate.png
97
+ homepage: http://thunderjava.com
98
+ licenses:
99
+ - MIT
100
+ metadata: {}
101
+ post_install_message:
102
+ rdoc_options: []
103
+ require_paths:
104
+ - lib
105
+ required_ruby_version: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ required_rubygems_version: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ version: '0'
115
+ requirements: []
116
+ rubygems_version: 3.0.9
117
+ signing_key:
118
+ specification_version: 4
119
+ summary: blade gpt
120
+ test_files: []