duniversity 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +18 -0
- data/.idea/.name +1 -0
- data/.idea/.rakeTasks +7 -0
- data/.idea/daitan.iml +21 -0
- data/.idea/encodings.xml +5 -0
- data/.idea/misc.xml +5 -0
- data/.idea/modules.xml +9 -0
- data/.idea/scopes/scope_settings.xml +5 -0
- data/.idea/vcs.xml +7 -0
- data/.idea/workspace.xml +557 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +10 -0
- data/duniversity.gemspec +23 -0
- data/lib/duniversity/saudacao/logger.rb +15 -0
- data/lib/duniversity/version.rb +3 -0
- data/lib/duniversity.rb +50 -0
- data/test/config/config.yml +2 -0
- data/test/log/test_daitan.log +64 -0
- data/test/test_duniversity.rb +42 -0
- metadata +102 -0
data/.gitignore
ADDED
data/.idea/.name
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
duniversity
|
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 duniversity_sample-0.0.1.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Executa testes para gema Duniversity" fullCmd="default" taksId="default" /><RakeTask description="Build and install duniversity_sample-0.0.1.gem into system gems" fullCmd="install" taksId="install" /><RakeTask description="Create tag v0.0.1 and build and push duniversity_sample-0.0.1.gem to Rubygems" fullCmd="release" taksId="release" /><RakeTask description="Run tests" fullCmd="test" taksId="test" /></RakeGroup></Settings>
|
data/.idea/daitan.iml
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="FacetManager">
|
4
|
+
<facet type="gem" name="Ruby Gem">
|
5
|
+
<configuration>
|
6
|
+
<option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
|
7
|
+
<option name="GEM_APP_TEST_PATH" value="" />
|
8
|
+
<option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
|
9
|
+
</configuration>
|
10
|
+
</facet>
|
11
|
+
</component>
|
12
|
+
<component name="NewModuleRootManager">
|
13
|
+
<content url="file://$MODULE_DIR$" />
|
14
|
+
<orderEntry type="inheritedJdk" />
|
15
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
16
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.3.5, ruby-1.9.3-p194) [gem]" level="application" />
|
17
|
+
<orderEntry type="library" scope="PROVIDED" name="logger (v1.2.8, ruby-1.9.3-p194) [gem]" level="application" />
|
18
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v10.3.2, ruby-1.9.3-p194) [gem]" level="application" />
|
19
|
+
</component>
|
20
|
+
</module>
|
21
|
+
|
data/.idea/encodings.xml
ADDED
data/.idea/misc.xml
ADDED
data/.idea/modules.xml
ADDED
data/.idea/vcs.xml
ADDED
data/.idea/workspace.xml
ADDED
@@ -0,0 +1,557 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ChangeListManager">
|
4
|
+
<list default="true" id="3385d4f1-2150-4d5f-871a-e4f5cc113252" name="Default" comment="">
|
5
|
+
<change type="DELETED" beforePath="$PROJECT_DIR$/screenshot/screenshot_001.png" afterPath="" />
|
6
|
+
<change type="DELETED" beforePath="$PROJECT_DIR$/screenshot/screenshot_002.png" afterPath="" />
|
7
|
+
<change type="DELETED" beforePath="$PROJECT_DIR$/screenshot/screenshot_003.png" afterPath="" />
|
8
|
+
<change type="DELETED" beforePath="$PROJECT_DIR$/screenshot/screenshot_004.png" afterPath="" />
|
9
|
+
<change type="DELETED" beforePath="$PROJECT_DIR$/screenshot/screenshot_005.png" afterPath="" />
|
10
|
+
<change type="DELETED" beforePath="$PROJECT_DIR$/screenshot/screenshot_006.png" afterPath="" />
|
11
|
+
<change type="DELETED" beforePath="$PROJECT_DIR$/screenshot/screenshot_007.png" afterPath="" />
|
12
|
+
<change type="DELETED" beforePath="$PROJECT_DIR$/screenshot/screenshot_008.png" afterPath="" />
|
13
|
+
<change type="DELETED" beforePath="$PROJECT_DIR$/screenshot/screenshot_009.png" afterPath="" />
|
14
|
+
<change type="DELETED" beforePath="$PROJECT_DIR$/screenshot/screenshot_010.png" afterPath="" />
|
15
|
+
<change type="DELETED" beforePath="$PROJECT_DIR$/screenshot/screenshot_011.png" afterPath="" />
|
16
|
+
<change type="DELETED" beforePath="$PROJECT_DIR$/screenshot/screenshot_012.png" afterPath="" />
|
17
|
+
<change type="DELETED" beforePath="$PROJECT_DIR$/screenshot/screenshot_013.png" afterPath="" />
|
18
|
+
<change type="DELETED" beforePath="$PROJECT_DIR$/screenshot/screenshot_014.png" afterPath="" />
|
19
|
+
<change type="DELETED" beforePath="$PROJECT_DIR$/screenshot/screenshot_015.png" afterPath="" />
|
20
|
+
<change type="DELETED" beforePath="$PROJECT_DIR$/screenshot/screenshot_016.png" afterPath="" />
|
21
|
+
<change type="DELETED" beforePath="$PROJECT_DIR$/screenshot/screenshot_017.png" afterPath="" />
|
22
|
+
<change type="DELETED" beforePath="$PROJECT_DIR$/screenshot/screenshot_018.png" afterPath="" />
|
23
|
+
<change type="DELETED" beforePath="$PROJECT_DIR$/screenshot/screenshot_019.png" afterPath="" />
|
24
|
+
<change type="DELETED" beforePath="$PROJECT_DIR$/screenshot/screenshot_020.png" afterPath="" />
|
25
|
+
<change type="MOVED" beforePath="$PROJECT_DIR$/daitan.gemspec" afterPath="$PROJECT_DIR$/duniversity.gemspec" />
|
26
|
+
<change type="MOVED" beforePath="$PROJECT_DIR$/lib/daitan.rb" afterPath="$PROJECT_DIR$/lib/duniversity.rb" />
|
27
|
+
<change type="MOVED" beforePath="$PROJECT_DIR$/lib/daitan/saudacao/logger.rb" afterPath="$PROJECT_DIR$/lib/duniversity/saudacao/logger.rb" />
|
28
|
+
<change type="MOVED" beforePath="$PROJECT_DIR$/lib/daitan/version.rb" afterPath="$PROJECT_DIR$/lib/duniversity/version.rb" />
|
29
|
+
<change type="MOVED" beforePath="$PROJECT_DIR$/test/test_daitan.rb" afterPath="$PROJECT_DIR$/test/test_duniversity.rb" />
|
30
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.gitignore" afterPath="$PROJECT_DIR$/.gitignore" />
|
31
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/.name" afterPath="$PROJECT_DIR$/.idea/.name" />
|
32
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/.rakeTasks" afterPath="$PROJECT_DIR$/.idea/.rakeTasks" />
|
33
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Gemfile" afterPath="$PROJECT_DIR$/Gemfile" />
|
34
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/README.md" afterPath="$PROJECT_DIR$/README.md" />
|
35
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Rakefile" afterPath="$PROJECT_DIR$/Rakefile" />
|
36
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/test/config/config.yml" afterPath="$PROJECT_DIR$/test/config/config.yml" />
|
37
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/test/log/test_daitan.log" afterPath="$PROJECT_DIR$/test/log/test_daitan.log" />
|
38
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
39
|
+
</list>
|
40
|
+
<ignored path="daitan.iws" />
|
41
|
+
<ignored path=".idea/workspace.xml" />
|
42
|
+
<option name="TRACKING_ENABLED" value="true" />
|
43
|
+
<option name="SHOW_DIALOG" value="false" />
|
44
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
45
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
46
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
47
|
+
</component>
|
48
|
+
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
49
|
+
<component name="CreatePatchCommitExecutor">
|
50
|
+
<option name="PATCH_PATH" value="" />
|
51
|
+
</component>
|
52
|
+
<component name="DaemonCodeAnalyzer">
|
53
|
+
<disable_hints />
|
54
|
+
</component>
|
55
|
+
<component name="FavoritesManager">
|
56
|
+
<favorites_list name="daitan" />
|
57
|
+
</component>
|
58
|
+
<component name="FileEditorManager">
|
59
|
+
<leaf>
|
60
|
+
<file leaf-file-name="config.yml" pinned="false" current="false" current-in-tab="false">
|
61
|
+
<entry file="file://$PROJECT_DIR$/test/config/config.yml">
|
62
|
+
<provider selected="true" editor-type-id="text-editor">
|
63
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="133">
|
64
|
+
<caret line="1" column="8" selection-start-line="1" selection-start-column="8" selection-end-line="1" selection-end-column="8" />
|
65
|
+
<folding />
|
66
|
+
</state>
|
67
|
+
</provider>
|
68
|
+
</entry>
|
69
|
+
</file>
|
70
|
+
<file leaf-file-name="test_duniversity.rb" pinned="false" current="false" current-in-tab="false">
|
71
|
+
<entry file="file://$PROJECT_DIR$/test/test_duniversity.rb">
|
72
|
+
<provider selected="true" editor-type-id="text-editor">
|
73
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="705">
|
74
|
+
<caret line="8" column="16" selection-start-line="8" selection-start-column="16" selection-end-line="8" selection-end-column="16" />
|
75
|
+
<folding />
|
76
|
+
</state>
|
77
|
+
</provider>
|
78
|
+
</entry>
|
79
|
+
</file>
|
80
|
+
<file leaf-file-name="duniversity.gemspec" pinned="false" current="true" current-in-tab="true">
|
81
|
+
<entry file="file://$PROJECT_DIR$/duniversity.gemspec">
|
82
|
+
<provider selected="true" editor-type-id="text-editor">
|
83
|
+
<state vertical-scroll-proportion="0.30508474" vertical-offset="0" max-vertical-offset="885">
|
84
|
+
<caret line="18" column="10" selection-start-line="18" selection-start-column="10" selection-end-line="18" selection-end-column="10" />
|
85
|
+
<folding />
|
86
|
+
</state>
|
87
|
+
</provider>
|
88
|
+
</entry>
|
89
|
+
</file>
|
90
|
+
</leaf>
|
91
|
+
</component>
|
92
|
+
<component name="FindManager">
|
93
|
+
<FindUsagesManager>
|
94
|
+
<setting name="OPEN_NEW_TAB" value="true" />
|
95
|
+
</FindUsagesManager>
|
96
|
+
</component>
|
97
|
+
<component name="Git.Settings">
|
98
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
99
|
+
</component>
|
100
|
+
<component name="IdeDocumentHistory">
|
101
|
+
<option name="changedFiles">
|
102
|
+
<list>
|
103
|
+
<option value="$PROJECT_DIR$/daitan.gemspec" />
|
104
|
+
<option value="$PROJECT_DIR$/lib/daitan/logger.rb" />
|
105
|
+
<option value="$PROJECT_DIR$/lib/daitan/saudacao/logger.rb" />
|
106
|
+
<option value="$PROJECT_DIR$/lib/daitan.rb" />
|
107
|
+
<option value="$PROJECT_DIR$/lib/duniversity_sample.rb" />
|
108
|
+
<option value="$PROJECT_DIR$/lib/duniversity_sample/version.rb" />
|
109
|
+
<option value="$PROJECT_DIR$/duniversity_sample.gemspec" />
|
110
|
+
<option value="$PROJECT_DIR$/test/test_daitan.rb" />
|
111
|
+
<option value="$PROJECT_DIR$/lib/duniversity_sample/saudacao/logger.rb" />
|
112
|
+
<option value="$PROJECT_DIR$/README.md" />
|
113
|
+
<option value="$PROJECT_DIR$/Rakefile" />
|
114
|
+
<option value="$PROJECT_DIR$/Gemfile" />
|
115
|
+
<option value="$PROJECT_DIR$/lib/duniversity/version.rb" />
|
116
|
+
<option value="$PROJECT_DIR$/.idea/.name" />
|
117
|
+
<option value="$PROJECT_DIR$/test/config/config.yml" />
|
118
|
+
<option value="$PROJECT_DIR$/lib/duniversity/saudacao/logger.rb" />
|
119
|
+
<option value="$PROJECT_DIR$/lib/duniversity.rb" />
|
120
|
+
<option value="$PROJECT_DIR$/test/test_duniversity.rb" />
|
121
|
+
<option value="$PROJECT_DIR$/duniversity.gemspec" />
|
122
|
+
</list>
|
123
|
+
</option>
|
124
|
+
</component>
|
125
|
+
<component name="ProjectFrameBounds">
|
126
|
+
<option name="x" value="-2" />
|
127
|
+
<option name="y" value="-3" />
|
128
|
+
<option name="width" value="1284" />
|
129
|
+
<option name="height" value="1004" />
|
130
|
+
</component>
|
131
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
132
|
+
<OptionsSetting value="true" id="Add" />
|
133
|
+
<OptionsSetting value="true" id="Remove" />
|
134
|
+
<OptionsSetting value="true" id="Checkout" />
|
135
|
+
<OptionsSetting value="true" id="Update" />
|
136
|
+
<OptionsSetting value="true" id="Status" />
|
137
|
+
<OptionsSetting value="true" id="Edit" />
|
138
|
+
<ConfirmationsSetting value="1" id="Add" />
|
139
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
140
|
+
</component>
|
141
|
+
<component name="ProjectReloadState">
|
142
|
+
<option name="STATE" value="0" />
|
143
|
+
</component>
|
144
|
+
<component name="ProjectView">
|
145
|
+
<navigator currentView="ProjectPane" proportions="" version="1">
|
146
|
+
<flattenPackages />
|
147
|
+
<showMembers />
|
148
|
+
<showModules />
|
149
|
+
<showLibraryContents />
|
150
|
+
<hideEmptyPackages />
|
151
|
+
<abbreviatePackageNames />
|
152
|
+
<autoscrollToSource />
|
153
|
+
<autoscrollFromSource />
|
154
|
+
<sortByType />
|
155
|
+
</navigator>
|
156
|
+
<panes>
|
157
|
+
<pane id="Scope" />
|
158
|
+
<pane id="ProjectPane">
|
159
|
+
<subPane>
|
160
|
+
<PATH>
|
161
|
+
<PATH_ELEMENT>
|
162
|
+
<option name="myItemId" value="duniversity" />
|
163
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
164
|
+
</PATH_ELEMENT>
|
165
|
+
</PATH>
|
166
|
+
<PATH>
|
167
|
+
<PATH_ELEMENT>
|
168
|
+
<option name="myItemId" value="duniversity" />
|
169
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
170
|
+
</PATH_ELEMENT>
|
171
|
+
<PATH_ELEMENT>
|
172
|
+
<option name="myItemId" value="duniversity" />
|
173
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
174
|
+
</PATH_ELEMENT>
|
175
|
+
</PATH>
|
176
|
+
<PATH>
|
177
|
+
<PATH_ELEMENT>
|
178
|
+
<option name="myItemId" value="duniversity" />
|
179
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
180
|
+
</PATH_ELEMENT>
|
181
|
+
<PATH_ELEMENT>
|
182
|
+
<option name="myItemId" value="duniversity" />
|
183
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
184
|
+
</PATH_ELEMENT>
|
185
|
+
<PATH_ELEMENT>
|
186
|
+
<option name="myItemId" value="test" />
|
187
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
188
|
+
</PATH_ELEMENT>
|
189
|
+
</PATH>
|
190
|
+
<PATH>
|
191
|
+
<PATH_ELEMENT>
|
192
|
+
<option name="myItemId" value="duniversity" />
|
193
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
194
|
+
</PATH_ELEMENT>
|
195
|
+
<PATH_ELEMENT>
|
196
|
+
<option name="myItemId" value="duniversity" />
|
197
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
198
|
+
</PATH_ELEMENT>
|
199
|
+
<PATH_ELEMENT>
|
200
|
+
<option name="myItemId" value="test" />
|
201
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
202
|
+
</PATH_ELEMENT>
|
203
|
+
<PATH_ELEMENT>
|
204
|
+
<option name="myItemId" value="log" />
|
205
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
206
|
+
</PATH_ELEMENT>
|
207
|
+
</PATH>
|
208
|
+
<PATH>
|
209
|
+
<PATH_ELEMENT>
|
210
|
+
<option name="myItemId" value="duniversity" />
|
211
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
212
|
+
</PATH_ELEMENT>
|
213
|
+
<PATH_ELEMENT>
|
214
|
+
<option name="myItemId" value="duniversity" />
|
215
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
216
|
+
</PATH_ELEMENT>
|
217
|
+
<PATH_ELEMENT>
|
218
|
+
<option name="myItemId" value="test" />
|
219
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
220
|
+
</PATH_ELEMENT>
|
221
|
+
<PATH_ELEMENT>
|
222
|
+
<option name="myItemId" value="config" />
|
223
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
224
|
+
</PATH_ELEMENT>
|
225
|
+
</PATH>
|
226
|
+
<PATH>
|
227
|
+
<PATH_ELEMENT>
|
228
|
+
<option name="myItemId" value="duniversity" />
|
229
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
230
|
+
</PATH_ELEMENT>
|
231
|
+
<PATH_ELEMENT>
|
232
|
+
<option name="myItemId" value="duniversity" />
|
233
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
234
|
+
</PATH_ELEMENT>
|
235
|
+
<PATH_ELEMENT>
|
236
|
+
<option name="myItemId" value="lib" />
|
237
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
238
|
+
</PATH_ELEMENT>
|
239
|
+
</PATH>
|
240
|
+
</subPane>
|
241
|
+
</pane>
|
242
|
+
</panes>
|
243
|
+
</component>
|
244
|
+
<component name="PropertiesComponent">
|
245
|
+
<property name="options.lastSelected" value="org.jetbrains.plugins.ruby.settings.RubyActiveModuleSdkConfigurable" />
|
246
|
+
<property name="options.splitter.main.proportions" value="0.3" />
|
247
|
+
<property name="options.splitter.details.proportions" value="0.2" />
|
248
|
+
<property name="options.searchVisible" value="true" />
|
249
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
250
|
+
<property name="FullScreen" value="false" />
|
251
|
+
<property name="last_opened_file_path" value="$PROJECT_DIR$/../test/duniversity" />
|
252
|
+
</component>
|
253
|
+
<component name="RecentsManager">
|
254
|
+
<key name="CopyFile.RECENT_KEYS">
|
255
|
+
<recent name="$PROJECT_DIR$/lib/daitan" />
|
256
|
+
</key>
|
257
|
+
</component>
|
258
|
+
<component name="RunManager">
|
259
|
+
<configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
|
260
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
261
|
+
<module name="" />
|
262
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
263
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
264
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
265
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
266
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
267
|
+
<envs />
|
268
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
269
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
270
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
271
|
+
<COVERAGE_PATTERN ENABLED="true">
|
272
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
273
|
+
</COVERAGE_PATTERN>
|
274
|
+
</EXTENSION>
|
275
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
276
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
277
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
278
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
279
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
280
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
281
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
282
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
283
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
284
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
285
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
286
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
287
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
288
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
289
|
+
<method />
|
290
|
+
</configuration>
|
291
|
+
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
|
292
|
+
<method />
|
293
|
+
</configuration>
|
294
|
+
<configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
|
295
|
+
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
296
|
+
<module name="" />
|
297
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
298
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
299
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
300
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
301
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
302
|
+
<envs />
|
303
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
304
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
305
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
306
|
+
<COVERAGE_PATTERN ENABLED="true">
|
307
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
308
|
+
</COVERAGE_PATTERN>
|
309
|
+
</EXTENSION>
|
310
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
311
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
312
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
313
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
314
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
315
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
316
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
317
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
318
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
319
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
320
|
+
<method />
|
321
|
+
</configuration>
|
322
|
+
<list size="0" />
|
323
|
+
</component>
|
324
|
+
<component name="ShelveChangesManager" show_recycled="false" />
|
325
|
+
<component name="SvnConfiguration">
|
326
|
+
<configuration />
|
327
|
+
</component>
|
328
|
+
<component name="TaskManager">
|
329
|
+
<task active="true" id="Default" summary="Default task">
|
330
|
+
<changelist id="3385d4f1-2150-4d5f-871a-e4f5cc113252" name="Default" comment="" />
|
331
|
+
<created>1403528590511</created>
|
332
|
+
<updated>1403528590511</updated>
|
333
|
+
</task>
|
334
|
+
<servers />
|
335
|
+
</component>
|
336
|
+
<component name="ToolWindowManager">
|
337
|
+
<frame x="-2" y="-3" width="1284" height="1004" extended-state="6" />
|
338
|
+
<editor active="true" />
|
339
|
+
<layout>
|
340
|
+
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.22983426" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
341
|
+
<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="7" side_tool="false" content_ui="tabs" />
|
342
|
+
<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" />
|
343
|
+
<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="3" side_tool="false" content_ui="tabs" />
|
344
|
+
<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" />
|
345
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.2641357" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
346
|
+
<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" />
|
347
|
+
<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="2" side_tool="true" content_ui="tabs" />
|
348
|
+
<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="7" side_tool="true" content_ui="tabs" />
|
349
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
350
|
+
<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="7" side_tool="false" content_ui="tabs" />
|
351
|
+
<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" />
|
352
|
+
<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" />
|
353
|
+
<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" />
|
354
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32894737" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
355
|
+
<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" />
|
356
|
+
<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" />
|
357
|
+
<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" />
|
358
|
+
</layout>
|
359
|
+
</component>
|
360
|
+
<component name="Vcs.Log.UiProperties">
|
361
|
+
<option name="RECENTLY_FILTERED_USER_GROUPS">
|
362
|
+
<collection />
|
363
|
+
</option>
|
364
|
+
<option name="RECENTLY_FILTERED_BRANCH_GROUPS">
|
365
|
+
<collection />
|
366
|
+
</option>
|
367
|
+
</component>
|
368
|
+
<component name="VcsContentAnnotationSettings">
|
369
|
+
<option name="myLimit" value="2678400000" />
|
370
|
+
</component>
|
371
|
+
<component name="VcsManagerConfiguration">
|
372
|
+
<option name="myTodoPanelSettings">
|
373
|
+
<TodoPanelSettings />
|
374
|
+
</option>
|
375
|
+
</component>
|
376
|
+
<component name="XDebuggerManager">
|
377
|
+
<breakpoint-manager />
|
378
|
+
</component>
|
379
|
+
<component name="editorHistoryManager">
|
380
|
+
<entry file="file://$PROJECT_DIR$/test/config/config.yml">
|
381
|
+
<provider selected="true" editor-type-id="text-editor">
|
382
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="105">
|
383
|
+
<caret line="0" column="46" selection-start-line="0" selection-start-column="46" selection-end-line="0" selection-end-column="46" />
|
384
|
+
<folding />
|
385
|
+
</state>
|
386
|
+
</provider>
|
387
|
+
</entry>
|
388
|
+
<entry file="file://$PROJECT_DIR$/test/config/config.yml">
|
389
|
+
<provider selected="true" editor-type-id="text-editor">
|
390
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="105">
|
391
|
+
<caret line="0" column="46" selection-start-line="0" selection-start-column="46" selection-end-line="0" selection-end-column="46" />
|
392
|
+
<folding />
|
393
|
+
</state>
|
394
|
+
</provider>
|
395
|
+
</entry>
|
396
|
+
<entry file="file://$PROJECT_DIR$/test/config/config.yml">
|
397
|
+
<provider selected="true" editor-type-id="text-editor">
|
398
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="105">
|
399
|
+
<caret line="1" column="19" selection-start-line="1" selection-start-column="19" selection-end-line="1" selection-end-column="19" />
|
400
|
+
<folding />
|
401
|
+
</state>
|
402
|
+
</provider>
|
403
|
+
</entry>
|
404
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
405
|
+
<provider selected="true" editor-type-id="text-editor">
|
406
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="120" max-vertical-offset="525">
|
407
|
+
<caret line="8" column="27" selection-start-line="8" selection-start-column="27" selection-end-line="8" selection-end-column="27" />
|
408
|
+
</state>
|
409
|
+
</provider>
|
410
|
+
</entry>
|
411
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
412
|
+
<provider selected="true" editor-type-id="text-editor">
|
413
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="225">
|
414
|
+
<caret line="5" column="11" selection-start-line="5" selection-start-column="9" selection-end-line="5" selection-end-column="11" />
|
415
|
+
</state>
|
416
|
+
</provider>
|
417
|
+
</entry>
|
418
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
419
|
+
<provider selected="true" editor-type-id="text-editor">
|
420
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="165">
|
421
|
+
<caret line="5" column="12" selection-start-line="5" selection-start-column="12" selection-end-line="5" selection-end-column="12" />
|
422
|
+
<folding />
|
423
|
+
</state>
|
424
|
+
</provider>
|
425
|
+
</entry>
|
426
|
+
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs193/basic_object.rb">
|
427
|
+
<provider selected="true" editor-type-id="text-editor">
|
428
|
+
<state vertical-scroll-proportion="0.33257404" vertical-offset="743" max-vertical-offset="4545">
|
429
|
+
<caret line="69" column="13" selection-start-line="69" selection-start-column="13" selection-end-line="69" selection-end-column="13" />
|
430
|
+
</state>
|
431
|
+
</provider>
|
432
|
+
</entry>
|
433
|
+
<entry file="file:///usr/lib/ruby/1.9.1/logger.rb">
|
434
|
+
<provider selected="true" editor-type-id="text-editor">
|
435
|
+
<state vertical-scroll-proportion="0.33333334" vertical-offset="4295" max-vertical-offset="12105">
|
436
|
+
<caret line="306" column="6" selection-start-line="306" selection-start-column="6" selection-end-line="306" selection-end-column="6" />
|
437
|
+
</state>
|
438
|
+
</provider>
|
439
|
+
</entry>
|
440
|
+
<entry file="file:///var/lib/gems/1.9.1/gems/logger-1.2.8/lib/logger.rb">
|
441
|
+
<provider selected="true" editor-type-id="text-editor">
|
442
|
+
<state vertical-scroll-proportion="0.33333334" vertical-offset="2555" max-vertical-offset="11475">
|
443
|
+
<caret line="190" column="6" selection-start-line="190" selection-start-column="6" selection-end-line="190" selection-end-column="6" />
|
444
|
+
</state>
|
445
|
+
</provider>
|
446
|
+
</entry>
|
447
|
+
<entry file="file:///var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/testtask.rb">
|
448
|
+
<provider selected="true" editor-type-id="text-editor">
|
449
|
+
<state vertical-scroll-proportion="0.33107343" vertical-offset="892" max-vertical-offset="2790">
|
450
|
+
<caret line="79" column="8" selection-start-line="79" selection-start-column="8" selection-end-line="79" selection-end-column="8" />
|
451
|
+
</state>
|
452
|
+
</provider>
|
453
|
+
</entry>
|
454
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
455
|
+
<provider selected="true" editor-type-id="text-editor">
|
456
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="559">
|
457
|
+
<caret line="0" column="8" selection-start-line="0" selection-start-column="8" selection-end-line="0" selection-end-column="8" />
|
458
|
+
</state>
|
459
|
+
</provider>
|
460
|
+
</entry>
|
461
|
+
<entry file="file://$PROJECT_DIR$/LICENSE.txt">
|
462
|
+
<provider selected="true" editor-type-id="text-editor">
|
463
|
+
<state vertical-scroll-proportion="0.509839" vertical-offset="0" max-vertical-offset="559">
|
464
|
+
<caret line="19" column="22" selection-start-line="19" selection-start-column="22" selection-end-line="19" selection-end-column="22" />
|
465
|
+
</state>
|
466
|
+
</provider>
|
467
|
+
<provider editor-type-id="com.intellij.persistence.database.editor.CsvTableFileEditorProvider">
|
468
|
+
<state />
|
469
|
+
</provider>
|
470
|
+
</entry>
|
471
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
472
|
+
<provider selected="true" editor-type-id="text-editor">
|
473
|
+
<state vertical-scroll-proportion="0.051282052" vertical-offset="0" max-vertical-offset="585">
|
474
|
+
<caret line="2" column="48" selection-start-line="2" selection-start-column="48" selection-end-line="2" selection-end-column="48" />
|
475
|
+
<folding />
|
476
|
+
</state>
|
477
|
+
</provider>
|
478
|
+
</entry>
|
479
|
+
<entry file="file://$PROJECT_DIR$/lib/duniversity/version.rb">
|
480
|
+
<provider selected="true" editor-type-id="text-editor">
|
481
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="585">
|
482
|
+
<caret line="0" column="18" selection-start-line="0" selection-start-column="18" selection-end-line="0" selection-end-column="18" />
|
483
|
+
</state>
|
484
|
+
</provider>
|
485
|
+
</entry>
|
486
|
+
<entry file="file://$PROJECT_DIR$/.idea/.name">
|
487
|
+
<provider selected="true" editor-type-id="text-editor">
|
488
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="585">
|
489
|
+
<caret line="0" column="11" selection-start-line="0" selection-start-column="11" selection-end-line="0" selection-end-column="11" />
|
490
|
+
</state>
|
491
|
+
</provider>
|
492
|
+
</entry>
|
493
|
+
<entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
|
494
|
+
<provider selected="true" editor-type-id="text-editor">
|
495
|
+
<state vertical-scroll-proportion="0.3409091" vertical-offset="765" max-vertical-offset="7095">
|
496
|
+
<caret line="64" column="56" selection-start-line="64" selection-start-column="56" selection-end-line="64" selection-end-column="56" />
|
497
|
+
</state>
|
498
|
+
</provider>
|
499
|
+
</entry>
|
500
|
+
<entry file="file://$PROJECT_DIR$/test/log/test_daitan.log">
|
501
|
+
<provider selected="true" editor-type-id="text-editor">
|
502
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="680">
|
503
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
504
|
+
</state>
|
505
|
+
</provider>
|
506
|
+
</entry>
|
507
|
+
<entry file="file://$PROJECT_DIR$/lib/duniversity/saudacao/logger.rb">
|
508
|
+
<provider selected="true" editor-type-id="text-editor">
|
509
|
+
<state vertical-scroll-proportion="0.08656036" vertical-offset="0" max-vertical-offset="878">
|
510
|
+
<caret line="4" column="11" selection-start-line="4" selection-start-column="11" selection-end-line="4" selection-end-column="11" />
|
511
|
+
<folding />
|
512
|
+
</state>
|
513
|
+
</provider>
|
514
|
+
</entry>
|
515
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
516
|
+
<provider selected="true" editor-type-id="text-editor">
|
517
|
+
<state vertical-scroll-proportion="0.19476081" vertical-offset="0" max-vertical-offset="878">
|
518
|
+
<caret line="9" column="22" selection-start-line="9" selection-start-column="22" selection-end-line="9" selection-end-column="22" />
|
519
|
+
<folding />
|
520
|
+
</state>
|
521
|
+
</provider>
|
522
|
+
</entry>
|
523
|
+
<entry file="file://$PROJECT_DIR$/test/config/config.yml">
|
524
|
+
<provider selected="true" editor-type-id="text-editor">
|
525
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="133">
|
526
|
+
<caret line="1" column="8" selection-start-line="1" selection-start-column="8" selection-end-line="1" selection-end-column="8" />
|
527
|
+
<folding />
|
528
|
+
</state>
|
529
|
+
</provider>
|
530
|
+
</entry>
|
531
|
+
<entry file="file://$PROJECT_DIR$/lib/duniversity.rb">
|
532
|
+
<provider selected="true" editor-type-id="text-editor">
|
533
|
+
<state vertical-scroll-proportion="0.13667426" vertical-offset="0" max-vertical-offset="878">
|
534
|
+
<caret line="8" column="0" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="0" />
|
535
|
+
<folding />
|
536
|
+
</state>
|
537
|
+
</provider>
|
538
|
+
</entry>
|
539
|
+
<entry file="file://$PROJECT_DIR$/test/test_duniversity.rb">
|
540
|
+
<provider selected="true" editor-type-id="text-editor">
|
541
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="705">
|
542
|
+
<caret line="8" column="16" selection-start-line="8" selection-start-column="16" selection-end-line="8" selection-end-column="16" />
|
543
|
+
<folding />
|
544
|
+
</state>
|
545
|
+
</provider>
|
546
|
+
</entry>
|
547
|
+
<entry file="file://$PROJECT_DIR$/duniversity.gemspec">
|
548
|
+
<provider selected="true" editor-type-id="text-editor">
|
549
|
+
<state vertical-scroll-proportion="0.30508474" vertical-offset="0" max-vertical-offset="885">
|
550
|
+
<caret line="18" column="10" selection-start-line="18" selection-start-column="10" selection-end-line="18" selection-end-column="10" />
|
551
|
+
<folding />
|
552
|
+
</state>
|
553
|
+
</provider>
|
554
|
+
</entry>
|
555
|
+
</component>
|
556
|
+
</project>
|
557
|
+
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Jeremias Almeida
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# duniversity sample
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'duniversity'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install duniversity
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
TODO: Write usage instructions here
|
22
|
+
|
23
|
+
## Contributing
|
24
|
+
|
25
|
+
1. Fork it
|
26
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
data/duniversity.gemspec
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'duniversity/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "duniversity"
|
8
|
+
spec.version = Duniversity::VERSION
|
9
|
+
spec.authors = ["Jeremias Almeida"]
|
10
|
+
spec.email = ["jeremias_almeida@yahoo.com.br"]
|
11
|
+
spec.description = %q{Just a sample gem!}
|
12
|
+
spec.summary = %q{Daitan University gem sample!}
|
13
|
+
spec.homepage = "https://rubygems.org/gems/duniversity"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
end
|
data/lib/duniversity.rb
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
require 'logger'
|
2
|
+
require "yaml"
|
3
|
+
require "duniversity/version"
|
4
|
+
require "duniversity/saudacao/logger"
|
5
|
+
|
6
|
+
module Duniversity
|
7
|
+
class Saudacao
|
8
|
+
attr_accessor :config
|
9
|
+
|
10
|
+
def initialize(yaml_path)
|
11
|
+
self.config= {
|
12
|
+
:log_path => "/tmp/saudacao.log",
|
13
|
+
:ola_txt => "Ola!"
|
14
|
+
}
|
15
|
+
|
16
|
+
@valid_keys = {
|
17
|
+
:log_path => "",
|
18
|
+
:ola_txt => "",
|
19
|
+
}
|
20
|
+
|
21
|
+
begin
|
22
|
+
data = YAML::load(IO.read(yaml_path))
|
23
|
+
rescue Exception => e
|
24
|
+
puts "Problema ao carregar YAML com erro #{e.message} para o caminho #{yaml_path}"
|
25
|
+
exit(1)
|
26
|
+
end
|
27
|
+
|
28
|
+
data.each {|k,v|
|
29
|
+
self.config[k.to_sym] = v if @valid_keys.include? k.to_sym
|
30
|
+
}
|
31
|
+
self.logger= Logger.new(config[:log_path])
|
32
|
+
self.logger.debug "Inicializado com sucesso"
|
33
|
+
end
|
34
|
+
|
35
|
+
def ola
|
36
|
+
self.config[:ola_txt]
|
37
|
+
end
|
38
|
+
|
39
|
+
def sauda
|
40
|
+
case Time.new.hour
|
41
|
+
when 0...12
|
42
|
+
"Bom dia!"
|
43
|
+
when 12...18
|
44
|
+
"Boa tarde"
|
45
|
+
else
|
46
|
+
"Boa Noite"
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# Logfile created on 2014-06-25 13:52:18 -0300 by logger.rb/31641
|
2
|
+
D, [2014-06-25T13:52:18.943670 #28925] DEBUG -- : Inicializado com sucesso
|
3
|
+
D, [2014-06-25T13:52:18.944979 #28925] DEBUG -- : Inicializado com sucesso
|
4
|
+
D, [2014-06-25T13:52:18.946312 #28925] DEBUG -- : Inicializado com sucesso
|
5
|
+
D, [2014-06-25T13:56:03.455179 #29115] DEBUG -- : Inicializado com sucesso
|
6
|
+
D, [2014-06-25T13:56:03.457010 #29115] DEBUG -- : Inicializado com sucesso
|
7
|
+
D, [2014-06-25T13:56:03.458625 #29115] DEBUG -- : Inicializado com sucesso
|
8
|
+
D, [2014-06-25T13:56:33.239834 #29150] DEBUG -- : Inicializado com sucesso
|
9
|
+
D, [2014-06-25T13:56:33.241166 #29150] DEBUG -- : Inicializado com sucesso
|
10
|
+
D, [2014-06-25T13:56:33.242493 #29150] DEBUG -- : Inicializado com sucesso
|
11
|
+
D, [2014-06-25T13:56:53.476883 #29170] DEBUG -- : Inicializado com sucesso
|
12
|
+
D, [2014-06-25T13:56:53.478415 #29170] DEBUG -- : Inicializado com sucesso
|
13
|
+
D, [2014-06-25T13:56:53.479873 #29170] DEBUG -- : Inicializado com sucesso
|
14
|
+
D, [2014-06-25T13:57:47.060259 #29222] DEBUG -- : Inicializado com sucesso
|
15
|
+
D, [2014-06-25T13:57:47.061916 #29222] DEBUG -- : Inicializado com sucesso
|
16
|
+
D, [2014-06-25T13:57:47.063425 #29222] DEBUG -- : Inicializado com sucesso
|
17
|
+
D, [2014-06-25T13:58:05.181155 #29250] DEBUG -- : Inicializado com sucesso
|
18
|
+
D, [2014-06-25T13:58:05.183038 #29250] DEBUG -- : Inicializado com sucesso
|
19
|
+
D, [2014-06-25T13:58:05.184961 #29250] DEBUG -- : Inicializado com sucesso
|
20
|
+
D, [2014-06-25T13:58:19.280189 #29271] DEBUG -- : Inicializado com sucesso
|
21
|
+
D, [2014-06-25T13:58:19.281589 #29271] DEBUG -- : Inicializado com sucesso
|
22
|
+
D, [2014-06-25T13:58:19.282949 #29271] DEBUG -- : Inicializado com sucesso
|
23
|
+
D, [2014-06-25T13:58:41.560830 #29299] DEBUG -- : Inicializado com sucesso
|
24
|
+
D, [2014-06-25T13:58:41.562529 #29299] DEBUG -- : Inicializado com sucesso
|
25
|
+
D, [2014-06-25T13:58:41.565518 #29299] DEBUG -- : Inicializado com sucesso
|
26
|
+
D, [2014-06-25T14:00:48.170686 #29391] DEBUG -- : Inicializado com sucesso
|
27
|
+
D, [2014-06-25T14:00:48.174942 #29391] DEBUG -- : Inicializado com sucesso
|
28
|
+
D, [2014-06-25T14:00:48.178214 #29391] DEBUG -- : Inicializado com sucesso
|
29
|
+
D, [2014-06-25T14:01:02.540821 #29417] DEBUG -- : Inicializado com sucesso
|
30
|
+
D, [2014-06-25T14:01:02.542281 #29417] DEBUG -- : Inicializado com sucesso
|
31
|
+
D, [2014-06-25T14:01:02.543689 #29417] DEBUG -- : Inicializado com sucesso
|
32
|
+
D, [2014-06-25T14:03:00.379507 #29504] DEBUG -- : Inicializado com sucesso
|
33
|
+
D, [2014-06-25T14:03:00.380948 #29504] DEBUG -- : Inicializado com sucesso
|
34
|
+
D, [2014-06-25T14:03:00.382314 #29504] DEBUG -- : Inicializado com sucesso
|
35
|
+
D, [2014-06-25T14:03:35.774463 #29548] DEBUG -- : Inicializado com sucesso
|
36
|
+
D, [2014-06-25T14:03:35.776223 #29548] DEBUG -- : Inicializado com sucesso
|
37
|
+
D, [2014-06-25T14:03:35.777697 #29548] DEBUG -- : Inicializado com sucesso
|
38
|
+
D, [2014-06-25T14:04:39.667404 #29596] DEBUG -- : Inicializado com sucesso
|
39
|
+
D, [2014-06-25T14:04:39.668972 #29596] DEBUG -- : Inicializado com sucesso
|
40
|
+
D, [2014-06-25T14:04:39.670927 #29596] DEBUG -- : Inicializado com sucesso
|
41
|
+
D, [2014-06-25T14:05:03.805542 #29623] DEBUG -- : Inicializado com sucesso
|
42
|
+
D, [2014-06-25T14:05:03.808495 #29623] DEBUG -- : Inicializado com sucesso
|
43
|
+
D, [2014-06-25T14:05:03.810724 #29623] DEBUG -- : Inicializado com sucesso
|
44
|
+
D, [2014-06-25T14:05:19.025849 #29642] DEBUG -- : Inicializado com sucesso
|
45
|
+
D, [2014-06-25T14:05:19.027302 #29642] DEBUG -- : Inicializado com sucesso
|
46
|
+
D, [2014-06-25T14:05:19.028641 #29642] DEBUG -- : Inicializado com sucesso
|
47
|
+
D, [2014-06-25T14:10:18.531288 #29857] DEBUG -- : Inicializado com sucesso
|
48
|
+
D, [2014-06-25T14:10:18.532664 #29857] DEBUG -- : Inicializado com sucesso
|
49
|
+
D, [2014-06-25T14:10:18.534481 #29857] DEBUG -- : Inicializado com sucesso
|
50
|
+
D, [2014-06-25T14:11:00.595590 #29888] DEBUG -- : Inicializado com sucesso
|
51
|
+
D, [2014-06-25T14:11:00.596924 #29888] DEBUG -- : Inicializado com sucesso
|
52
|
+
D, [2014-06-25T14:11:00.598750 #29888] DEBUG -- : Inicializado com sucesso
|
53
|
+
D, [2014-06-25T14:11:20.656449 #29917] DEBUG -- : Inicializado com sucesso
|
54
|
+
D, [2014-06-25T14:11:20.657858 #29917] DEBUG -- : Inicializado com sucesso
|
55
|
+
D, [2014-06-25T14:11:20.659206 #29917] DEBUG -- : Inicializado com sucesso
|
56
|
+
D, [2014-06-25T14:16:58.688910 #30210] DEBUG -- : Inicializado com sucesso
|
57
|
+
D, [2014-06-25T14:16:58.691328 #30210] DEBUG -- : Inicializado com sucesso
|
58
|
+
D, [2014-06-25T14:16:58.692743 #30210] DEBUG -- : Inicializado com sucesso
|
59
|
+
D, [2014-06-25T14:21:25.257455 #30424] DEBUG -- : Inicializado com sucesso
|
60
|
+
D, [2014-06-25T14:21:25.259487 #30424] DEBUG -- : Inicializado com sucesso
|
61
|
+
D, [2014-06-25T14:21:25.261054 #30424] DEBUG -- : Inicializado com sucesso
|
62
|
+
D, [2014-06-25T14:21:40.359296 #30442] DEBUG -- : Inicializado com sucesso
|
63
|
+
D, [2014-06-25T14:21:40.360636 #30442] DEBUG -- : Inicializado com sucesso
|
64
|
+
D, [2014-06-25T14:21:40.362021 #30442] DEBUG -- : Inicializado com sucesso
|
@@ -0,0 +1,42 @@
|
|
1
|
+
require 'test/unit'
|
2
|
+
require 'duniversity'
|
3
|
+
|
4
|
+
class DuniversityTest < Test::Unit::TestCase
|
5
|
+
@saudacao
|
6
|
+
|
7
|
+
def saudacao
|
8
|
+
if @saudacao.nil?
|
9
|
+
@saudacao = Duniversity::Saudacao.new('/home/careers/university/duniversity/test/config/config.yml')
|
10
|
+
end
|
11
|
+
@saudacao
|
12
|
+
end
|
13
|
+
|
14
|
+
def test_version
|
15
|
+
assert_equal "0.0.1",
|
16
|
+
Duniversity::VERSION
|
17
|
+
end
|
18
|
+
|
19
|
+
def test_ola_text
|
20
|
+
assert_equal "Ola Amigo!",
|
21
|
+
saudacao.ola
|
22
|
+
end
|
23
|
+
|
24
|
+
def test_logger
|
25
|
+
assert_instance_of Logger,
|
26
|
+
saudacao.logger
|
27
|
+
end
|
28
|
+
|
29
|
+
def test_sauda
|
30
|
+
case Time.new.hour
|
31
|
+
when 0...12
|
32
|
+
assert_equal "Bom dia!",
|
33
|
+
saudacao.sauda
|
34
|
+
when 12...18
|
35
|
+
assert_equal "Boa tarde",
|
36
|
+
saudacao.sauda
|
37
|
+
else
|
38
|
+
assert_equal "Boa Noite",
|
39
|
+
saudacao.sauda
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
metadata
ADDED
@@ -0,0 +1,102 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: duniversity
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Jeremias Almeida
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2014-06-25 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: bundler
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.3'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.3'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rake
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
description: Just a sample gem!
|
47
|
+
email:
|
48
|
+
- jeremias_almeida@yahoo.com.br
|
49
|
+
executables: []
|
50
|
+
extensions: []
|
51
|
+
extra_rdoc_files: []
|
52
|
+
files:
|
53
|
+
- .gitignore
|
54
|
+
- .idea/.name
|
55
|
+
- .idea/.rakeTasks
|
56
|
+
- .idea/daitan.iml
|
57
|
+
- .idea/encodings.xml
|
58
|
+
- .idea/misc.xml
|
59
|
+
- .idea/modules.xml
|
60
|
+
- .idea/scopes/scope_settings.xml
|
61
|
+
- .idea/vcs.xml
|
62
|
+
- .idea/workspace.xml
|
63
|
+
- Gemfile
|
64
|
+
- LICENSE.txt
|
65
|
+
- README.md
|
66
|
+
- Rakefile
|
67
|
+
- duniversity.gemspec
|
68
|
+
- lib/duniversity.rb
|
69
|
+
- lib/duniversity/saudacao/logger.rb
|
70
|
+
- lib/duniversity/version.rb
|
71
|
+
- test/config/config.yml
|
72
|
+
- test/log/test_daitan.log
|
73
|
+
- test/test_duniversity.rb
|
74
|
+
homepage: https://rubygems.org/gems/duniversity
|
75
|
+
licenses:
|
76
|
+
- MIT
|
77
|
+
post_install_message:
|
78
|
+
rdoc_options: []
|
79
|
+
require_paths:
|
80
|
+
- lib
|
81
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ! '>='
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
|
+
none: false
|
89
|
+
requirements:
|
90
|
+
- - ! '>='
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '0'
|
93
|
+
requirements: []
|
94
|
+
rubyforge_project:
|
95
|
+
rubygems_version: 1.8.23
|
96
|
+
signing_key:
|
97
|
+
specification_version: 3
|
98
|
+
summary: Daitan University gem sample!
|
99
|
+
test_files:
|
100
|
+
- test/config/config.yml
|
101
|
+
- test/log/test_daitan.log
|
102
|
+
- test/test_duniversity.rb
|