weitest 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 19dc31243e56e4c9afa8d2ab614c9cf1c5878cf9
4
+ data.tar.gz: d84ecac4ed2cc86b1d056406db5e2be9576dfe10
5
+ SHA512:
6
+ metadata.gz: 3f8b10906106df9f162d0afdbce5b55cfea42946710aa0675f137dfc7df854c484d4de93401a26d657192c746ee44ff232f8f7acfe580c535327a8b779ac113c
7
+ data.tar.gz: c8d982160f5276b6e667da2f4b8e6e294eb79b6daf009d9aef29d00f61c5ecbedb6b6df86e8e67777a40443c5a4025b06c2af751a212254f45a995fc9918f930
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
@@ -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.3.0" project-jdk-type="RUBY_SDK" />
4
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/weitest.iml" filepath="$PROJECT_DIR$/.idea/weitest.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$" />
5
+ <orderEntry type="inheritedJdk" />
6
+ <orderEntry type="sourceFolder" forTests="false" />
7
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.13.6, RVM: ruby-2.3.0) [gem]" level="application" />
8
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, RVM: ruby-2.3.0) [gem]" level="application" />
9
+ <orderEntry type="library" scope="PROVIDED" name="thor (v0.19.4, RVM: ruby-2.3.0) [gem]" level="application" />
10
+ </component>
11
+ </module>
@@ -0,0 +1,248 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="da2707af-7dba-46fb-9933-5224591732d7" name="Default" comment="" />
5
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
6
+ <option name="TRACKING_ENABLED" value="true" />
7
+ <option name="SHOW_DIALOG" value="false" />
8
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
9
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
10
+ <option name="LAST_RESOLUTION" value="IGNORE" />
11
+ </component>
12
+ <component name="CreatePatchCommitExecutor">
13
+ <option name="PATCH_PATH" value="" />
14
+ </component>
15
+ <component name="FavoritesManager">
16
+ <favorites_list name="weitest" />
17
+ </component>
18
+ <component name="FileEditorManager">
19
+ <leaf>
20
+ <file leaf-file-name="weitest.gemspec" pinned="false" current-in-tab="false">
21
+ <entry file="file://$PROJECT_DIR$/weitest.gemspec">
22
+ <provider selected="true" editor-type-id="text-editor">
23
+ <state relative-caret-position="195">
24
+ <caret line="13" column="34" lean-forward="false" selection-start-line="13" selection-start-column="31" selection-end-line="13" selection-end-column="34" />
25
+ <folding />
26
+ </state>
27
+ </provider>
28
+ </entry>
29
+ </file>
30
+ <file leaf-file-name="weitest.rb" pinned="false" current-in-tab="false">
31
+ <entry file="file://$PROJECT_DIR$/lib/weitest.rb">
32
+ <provider selected="true" editor-type-id="text-editor">
33
+ <state relative-caret-position="45">
34
+ <caret line="3" column="0" lean-forward="true" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
35
+ <folding />
36
+ </state>
37
+ </provider>
38
+ </entry>
39
+ </file>
40
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="true">
41
+ <entry file="file://$PROJECT_DIR$/lib/weitest/version.rb">
42
+ <provider selected="true" editor-type-id="text-editor">
43
+ <state relative-caret-position="15">
44
+ <caret line="1" column="18" lean-forward="false" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
45
+ <folding />
46
+ </state>
47
+ </provider>
48
+ </entry>
49
+ </file>
50
+ </leaf>
51
+ </component>
52
+ <component name="IdeDocumentHistory">
53
+ <option name="CHANGED_PATHS">
54
+ <list>
55
+ <option value="$PROJECT_DIR$/exe/weitest" />
56
+ <option value="$PROJECT_DIR$/weitest.gemspec" />
57
+ <option value="$PROJECT_DIR$/lib/weitest.rb" />
58
+ <option value="$PROJECT_DIR$/lib/weitest/version.rb" />
59
+ </list>
60
+ </option>
61
+ </component>
62
+ <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
63
+ <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
64
+ <component name="JsGulpfileManager">
65
+ <detection-done>true</detection-done>
66
+ <sorting>DEFINITION_ORDER</sorting>
67
+ </component>
68
+ <component name="ProjectFrameBounds">
69
+ <option name="x" value="88" />
70
+ <option name="y" value="23" />
71
+ <option name="width" value="1260" />
72
+ <option name="height" value="698" />
73
+ </component>
74
+ <component name="ProjectView">
75
+ <navigator currentView="ProjectPane" proportions="" version="1">
76
+ <flattenPackages />
77
+ <showMembers />
78
+ <showModules />
79
+ <showLibraryContents />
80
+ <hideEmptyPackages />
81
+ <abbreviatePackageNames />
82
+ <autoscrollToSource />
83
+ <autoscrollFromSource />
84
+ <sortByType />
85
+ <manualOrder />
86
+ <foldersAlwaysOnTop value="true" />
87
+ </navigator>
88
+ <panes>
89
+ <pane id="ProjectPane">
90
+ <subPane>
91
+ <PATH>
92
+ <PATH_ELEMENT>
93
+ <option name="myItemId" value="weitest" />
94
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
95
+ </PATH_ELEMENT>
96
+ <PATH_ELEMENT>
97
+ <option name="myItemId" value="weitest" />
98
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
99
+ </PATH_ELEMENT>
100
+ </PATH>
101
+ <PATH>
102
+ <PATH_ELEMENT>
103
+ <option name="myItemId" value="weitest" />
104
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
105
+ </PATH_ELEMENT>
106
+ <PATH_ELEMENT>
107
+ <option name="myItemId" value="weitest" />
108
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
109
+ </PATH_ELEMENT>
110
+ <PATH_ELEMENT>
111
+ <option name="myItemId" value="lib" />
112
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
113
+ </PATH_ELEMENT>
114
+ </PATH>
115
+ <PATH>
116
+ <PATH_ELEMENT>
117
+ <option name="myItemId" value="weitest" />
118
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
119
+ </PATH_ELEMENT>
120
+ <PATH_ELEMENT>
121
+ <option name="myItemId" value="weitest" />
122
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
123
+ </PATH_ELEMENT>
124
+ <PATH_ELEMENT>
125
+ <option name="myItemId" value="lib" />
126
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
127
+ </PATH_ELEMENT>
128
+ <PATH_ELEMENT>
129
+ <option name="myItemId" value="weitest" />
130
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
131
+ </PATH_ELEMENT>
132
+ </PATH>
133
+ <PATH>
134
+ <PATH_ELEMENT>
135
+ <option name="myItemId" value="weitest" />
136
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
137
+ </PATH_ELEMENT>
138
+ <PATH_ELEMENT>
139
+ <option name="myItemId" value="weitest" />
140
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
141
+ </PATH_ELEMENT>
142
+ <PATH_ELEMENT>
143
+ <option name="myItemId" value="exe" />
144
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
145
+ </PATH_ELEMENT>
146
+ </PATH>
147
+ </subPane>
148
+ </pane>
149
+ <pane id="Scratches" />
150
+ <pane id="Scope" />
151
+ </panes>
152
+ </component>
153
+ <component name="PropertiesComponent">
154
+ <property name="WebServerToolWindowFactoryState" value="false" />
155
+ </component>
156
+ <component name="ShelveChangesManager" show_recycled="false">
157
+ <option name="remove_strategy" value="false" />
158
+ </component>
159
+ <component name="TaskManager">
160
+ <task active="true" id="Default" summary="Default task">
161
+ <changelist id="da2707af-7dba-46fb-9933-5224591732d7" name="Default" comment="" />
162
+ <created>1481786306292</created>
163
+ <option name="number" value="Default" />
164
+ <option name="presentableId" value="Default" />
165
+ <updated>1481786306292</updated>
166
+ <workItem from="1481786307587" duration="1048000" />
167
+ </task>
168
+ <servers />
169
+ </component>
170
+ <component name="TimeTrackingManager">
171
+ <option name="totallyTimeSpent" value="1048000" />
172
+ </component>
173
+ <component name="ToolWindowManager">
174
+ <frame x="88" y="23" width="1260" height="698" extended-state="0" />
175
+ <editor active="false" />
176
+ <layout>
177
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.24958949" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
178
+ <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" />
179
+ <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="-1" side_tool="true" content_ui="tabs" />
180
+ <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="-1" side_tool="false" content_ui="tabs" />
181
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.5712025" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
182
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
183
+ <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" />
184
+ <window_info id="Terminal" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.4477848" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
185
+ <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" />
186
+ <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="-1" side_tool="true" content_ui="tabs" />
187
+ <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" />
188
+ <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" />
189
+ <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" />
190
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
191
+ <window_info id="Find" 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="1" side_tool="false" content_ui="tabs" />
192
+ <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" />
193
+ <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" />
194
+ </layout>
195
+ </component>
196
+ <component name="TypeScriptGeneratedFilesManager">
197
+ <option name="processedProjectFiles" value="true" />
198
+ </component>
199
+ <component name="VcsContentAnnotationSettings">
200
+ <option name="myLimit" value="2678400000" />
201
+ </component>
202
+ <component name="XDebuggerManager">
203
+ <breakpoint-manager />
204
+ <watches-manager />
205
+ </component>
206
+ <component name="editorHistoryManager">
207
+ <entry file="file://$PROJECT_DIR$/Gemfile">
208
+ <provider selected="true" editor-type-id="text-editor">
209
+ <state relative-caret-position="60">
210
+ <caret line="4" column="0" lean-forward="true" selection-start-line="4" selection-start-column="0" selection-end-line="4" selection-end-column="0" />
211
+ <folding />
212
+ </state>
213
+ </provider>
214
+ </entry>
215
+ <entry file="file://$PROJECT_DIR$/exe/weitest">
216
+ <provider selected="true" editor-type-id="text-editor">
217
+ <state relative-caret-position="105">
218
+ <caret line="7" column="13" lean-forward="true" selection-start-line="7" selection-start-column="13" selection-end-line="7" selection-end-column="13" />
219
+ <folding />
220
+ </state>
221
+ </provider>
222
+ </entry>
223
+ <entry file="file://$PROJECT_DIR$/weitest.gemspec">
224
+ <provider selected="true" editor-type-id="text-editor">
225
+ <state relative-caret-position="195">
226
+ <caret line="13" column="34" lean-forward="false" selection-start-line="13" selection-start-column="31" selection-end-line="13" selection-end-column="34" />
227
+ <folding />
228
+ </state>
229
+ </provider>
230
+ </entry>
231
+ <entry file="file://$PROJECT_DIR$/lib/weitest.rb">
232
+ <provider selected="true" editor-type-id="text-editor">
233
+ <state relative-caret-position="45">
234
+ <caret line="3" column="0" lean-forward="true" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
235
+ <folding />
236
+ </state>
237
+ </provider>
238
+ </entry>
239
+ <entry file="file://$PROJECT_DIR$/lib/weitest/version.rb">
240
+ <provider selected="true" editor-type-id="text-editor">
241
+ <state relative-caret-position="15">
242
+ <caret line="1" column="18" lean-forward="false" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
243
+ <folding />
244
+ </state>
245
+ </provider>
246
+ </entry>
247
+ </component>
248
+ </project>
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at 545025590@qq.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in weitest.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 warmwei818
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,41 @@
1
+ # Weitest
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/weitest`. 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 'weitest'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install weitest
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. 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]/weitest. 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
+
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "weitest"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+ # encoding: utf-8
3
+
4
+ require_relative '../lib/weitest'
5
+
6
+ begin
7
+ # OS.set_locale
8
+ Weitest::MyCLI.start ARGV
9
+ rescue => e
10
+ raise e if $DEBUG
11
+ STDERR.puts e.message
12
+ STDERR.puts e.backtrace.join("\n")
13
+ exit 1
14
+ end
@@ -0,0 +1,19 @@
1
+ require "weitest/version"
2
+
3
+ require 'thor'
4
+
5
+ module Weitest
6
+ class MyCLI < Thor
7
+
8
+ desc "build_apk", "hahaha"
9
+ def action1
10
+ puts "hahaha"
11
+ end
12
+
13
+ desc "publish", "hehehe"
14
+ def action2
15
+ puts "hehehe"
16
+ end
17
+ end
18
+
19
+ end
@@ -0,0 +1,3 @@
1
+ module Weitest
2
+ VERSION = "0.1.1"
3
+ end
@@ -0,0 +1,38 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'weitest/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "weitest"
8
+ spec.version = Weitest::VERSION
9
+ spec.authors = ["warmwei818"]
10
+ spec.email = ["545025590@qq.com"]
11
+
12
+ spec.summary = %q{Write a short summary, because Rubygems requires one.}
13
+ spec.description = %q{Write a longer description or delete this line.}
14
+ spec.homepage = "http://www.baidu.com"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ # if spec.respond_to?(:metadata)
20
+ # spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
21
+ # else
22
+ # raise "RubyGems 2.0 or newer is required to protect against " \
23
+ # "public gem pushes."
24
+ # end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
+ f.match(%r{^(test|spec|features)/})
28
+ end
29
+ spec.bindir = "exe"
30
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ["lib"]
32
+
33
+ spec.add_development_dependency "bundler", "~> 1.13"
34
+ spec.add_development_dependency "rake", "~> 10.0"
35
+
36
+ spec.add_dependency 'thor', '~> 0.19'
37
+
38
+ end
metadata ADDED
@@ -0,0 +1,103 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: weitest
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - warmwei818
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-12-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.13'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.13'
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: thor
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.19'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.19'
55
+ description: Write a longer description or delete this line.
56
+ email:
57
+ - 545025590@qq.com
58
+ executables:
59
+ - weitest
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".gitignore"
64
+ - ".idea/misc.xml"
65
+ - ".idea/modules.xml"
66
+ - ".idea/weitest.iml"
67
+ - ".idea/workspace.xml"
68
+ - CODE_OF_CONDUCT.md
69
+ - Gemfile
70
+ - LICENSE.txt
71
+ - README.md
72
+ - Rakefile
73
+ - bin/console
74
+ - bin/setup
75
+ - exe/weitest
76
+ - lib/weitest.rb
77
+ - lib/weitest/version.rb
78
+ - weitest.gemspec
79
+ homepage: http://www.baidu.com
80
+ licenses:
81
+ - MIT
82
+ metadata: {}
83
+ post_install_message:
84
+ rdoc_options: []
85
+ require_paths:
86
+ - lib
87
+ required_ruby_version: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ required_rubygems_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ requirements: []
98
+ rubyforge_project:
99
+ rubygems_version: 2.5.1
100
+ signing_key:
101
+ specification_version: 4
102
+ summary: Write a short summary, because Rubygems requires one.
103
+ test_files: []