chupakabra_tools 0.0.7 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +6 -5
- data/.idea/scopes/scope_settings.xml +5 -0
- data/.idea/workspace.xml +433 -0
- data/Gemfile.lock +38 -0
- data/README.md +2 -29
- data/lib/chupakabra_tools/active_record.rb +39 -13
- data/lib/chupakabra_tools/convert.rb +1 -1
- data/lib/chupakabra_tools/logging.rb +135 -0
- data/lib/chupakabra_tools/version.rb +1 -1
- data/lib/chupakabra_tools.rb +1 -0
- data/projectFilesBackup/.idea/chupakabra_tools.iml +20 -0
- data/update/.gitignore +17 -0
- data/update/Gemfile +4 -0
- data/update/LICENSE.txt +22 -0
- data/update/README.md +29 -0
- data/update/Rakefile +1 -0
- data/update/lib/update/version.rb +3 -0
- data/update/lib/update.rb +5 -0
- data/update/update.gemspec +19 -0
- metadata +15 -2
data/.gitignore
CHANGED
@@ -2,12 +2,8 @@
|
|
2
2
|
*.rbc
|
3
3
|
.bundle
|
4
4
|
.config
|
5
|
-
.yardoc
|
6
|
-
Gemfile.lock
|
7
|
-
InstalledFiles
|
8
|
-
_yardoc
|
9
5
|
coverage
|
10
|
-
|
6
|
+
InstalledFiles
|
11
7
|
lib/bundler/man
|
12
8
|
pkg
|
13
9
|
rdoc
|
@@ -15,3 +11,8 @@ spec/reports
|
|
15
11
|
test/tmp
|
16
12
|
test/version_tmp
|
17
13
|
tmp
|
14
|
+
|
15
|
+
# YARD artifacts
|
16
|
+
.yardoc
|
17
|
+
_yardoc
|
18
|
+
doc/
|
data/.idea/workspace.xml
ADDED
@@ -0,0 +1,433 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ChangeListManager">
|
4
|
+
<list default="true" id="d6aa733e-1913-4274-b172-8caf8ff85836" name="Default" comment="">
|
5
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/chupakabra_tools/logging.rb" />
|
6
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Gemfile.lock" afterPath="$PROJECT_DIR$/Gemfile.lock" />
|
7
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/chupakabra_tools/active_record.rb" afterPath="$PROJECT_DIR$/lib/chupakabra_tools/active_record.rb" />
|
8
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/chupakabra_tools.rb" afterPath="$PROJECT_DIR$/lib/chupakabra_tools.rb" />
|
9
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/chupakabra_tools/version.rb" afterPath="$PROJECT_DIR$/lib/chupakabra_tools/version.rb" />
|
10
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
11
|
+
</list>
|
12
|
+
<ignored path="chupakabra_tools.iws" />
|
13
|
+
<ignored path=".idea/workspace.xml" />
|
14
|
+
<file path="/Dummy.txt" changelist="d6aa733e-1913-4274-b172-8caf8ff85836" time="1373737012001" ignored="false" />
|
15
|
+
<file path="/active_record.rb" changelist="d6aa733e-1913-4274-b172-8caf8ff85836" time="1367255437093" ignored="false" />
|
16
|
+
<file path="/logging.rb" changelist="d6aa733e-1913-4274-b172-8caf8ff85836" time="1373107681123" ignored="false" />
|
17
|
+
<file path="/chupakabra_tools.rb" changelist="d6aa733e-1913-4274-b172-8caf8ff85836" time="1372075909362" ignored="false" />
|
18
|
+
<option name="TRACKING_ENABLED" value="true" />
|
19
|
+
<option name="SHOW_DIALOG" value="false" />
|
20
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
21
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
22
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
23
|
+
</component>
|
24
|
+
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
25
|
+
<component name="CreatePatchCommitExecutor">
|
26
|
+
<option name="PATCH_PATH" value="" />
|
27
|
+
</component>
|
28
|
+
<component name="DaemonCodeAnalyzer">
|
29
|
+
<disable_hints />
|
30
|
+
</component>
|
31
|
+
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
|
32
|
+
<component name="FavoritesManager">
|
33
|
+
<favorites_list name="chupakabra_tools" />
|
34
|
+
</component>
|
35
|
+
<component name="FileEditorManager">
|
36
|
+
<leaf />
|
37
|
+
</component>
|
38
|
+
<component name="FindManager">
|
39
|
+
<FindUsagesManager>
|
40
|
+
<setting name="OPEN_NEW_TAB" value="false" />
|
41
|
+
</FindUsagesManager>
|
42
|
+
</component>
|
43
|
+
<component name="Git.Settings">
|
44
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
45
|
+
</component>
|
46
|
+
<component name="GitLogSettings">
|
47
|
+
<option name="myDateState">
|
48
|
+
<MyDateState />
|
49
|
+
</option>
|
50
|
+
</component>
|
51
|
+
<component name="IdeDocumentHistory">
|
52
|
+
<option name="changedFiles">
|
53
|
+
<list>
|
54
|
+
<option value="$PROJECT_DIR$/lib/chupakabra/TimeInterval.rb" />
|
55
|
+
<option value="$PROJECT_DIR$/lib/chupakabra/time_interval.rb" />
|
56
|
+
<option value="$PROJECT_DIR$/Gemfile" />
|
57
|
+
<option value="$PROJECT_DIR$/lib/chupakabra_tools/time_interval.rb" />
|
58
|
+
<option value="$PROJECT_DIR$/lib/chupakabra_tools/predefined_time_intervals.rb" />
|
59
|
+
<option value="$PROJECT_DIR$/lib/chupakabra_tools/security.rb" />
|
60
|
+
<option value="$PROJECT_DIR$/lib/chupakabra_tools/http.rb" />
|
61
|
+
<option value="$PROJECT_DIR$/lib/chupakabra_tools/number_as_text.rb" />
|
62
|
+
<option value="$PROJECT_DIR$/lib/chupakabra_tools/validattions.rb" />
|
63
|
+
<option value="$PROJECT_DIR$/chupakabra_tools.gemspec" />
|
64
|
+
<option value="$PROJECT_DIR$/lib/chupakabra_tools/transliterator.rb" />
|
65
|
+
<option value="$PROJECT_DIR$/lib/chupakabra_tools/convert.rb" />
|
66
|
+
<option value="$PROJECT_DIR$/lib/chupakabra_tools/active_record.rb" />
|
67
|
+
<option value="$PROJECT_DIR$/lib/chupakabra_tools.rb" />
|
68
|
+
<option value="$PROJECT_DIR$/lib/chupakabra_tools/logging.rb" />
|
69
|
+
<option value="$PROJECT_DIR$/lib/chupakabra_tools/version.rb" />
|
70
|
+
</list>
|
71
|
+
</option>
|
72
|
+
</component>
|
73
|
+
<component name="ProjectFrameBounds">
|
74
|
+
<option name="x" value="1440" />
|
75
|
+
<option name="width" value="1920" />
|
76
|
+
<option name="height" value="1080" />
|
77
|
+
</component>
|
78
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
79
|
+
<OptionsSetting value="true" id="Add" />
|
80
|
+
<OptionsSetting value="true" id="Remove" />
|
81
|
+
<OptionsSetting value="true" id="Checkout" />
|
82
|
+
<OptionsSetting value="true" id="Update" />
|
83
|
+
<OptionsSetting value="true" id="Status" />
|
84
|
+
<OptionsSetting value="true" id="Edit" />
|
85
|
+
<ConfirmationsSetting value="0" id="Add" />
|
86
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
87
|
+
</component>
|
88
|
+
<component name="ProjectReloadState">
|
89
|
+
<option name="STATE" value="0" />
|
90
|
+
</component>
|
91
|
+
<component name="ProjectView">
|
92
|
+
<navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">
|
93
|
+
<flattenPackages />
|
94
|
+
<showMembers />
|
95
|
+
<showModules />
|
96
|
+
<showLibraryContents />
|
97
|
+
<hideEmptyPackages />
|
98
|
+
<abbreviatePackageNames />
|
99
|
+
<autoscrollToSource />
|
100
|
+
<autoscrollFromSource />
|
101
|
+
<sortByType />
|
102
|
+
</navigator>
|
103
|
+
<panes>
|
104
|
+
<pane id="Scope" />
|
105
|
+
<pane id="ProjectPane">
|
106
|
+
<subPane>
|
107
|
+
<PATH>
|
108
|
+
<PATH_ELEMENT>
|
109
|
+
<option name="myItemId" value="chupakabra_tools" />
|
110
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
111
|
+
</PATH_ELEMENT>
|
112
|
+
</PATH>
|
113
|
+
<PATH>
|
114
|
+
<PATH_ELEMENT>
|
115
|
+
<option name="myItemId" value="chupakabra_tools" />
|
116
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
117
|
+
</PATH_ELEMENT>
|
118
|
+
<PATH_ELEMENT>
|
119
|
+
<option name="myItemId" value="chupakabra_tools" />
|
120
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
121
|
+
</PATH_ELEMENT>
|
122
|
+
</PATH>
|
123
|
+
<PATH>
|
124
|
+
<PATH_ELEMENT>
|
125
|
+
<option name="myItemId" value="chupakabra_tools" />
|
126
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
127
|
+
</PATH_ELEMENT>
|
128
|
+
<PATH_ELEMENT>
|
129
|
+
<option name="myItemId" value="chupakabra_tools" />
|
130
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
131
|
+
</PATH_ELEMENT>
|
132
|
+
<PATH_ELEMENT>
|
133
|
+
<option name="myItemId" value="lib" />
|
134
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
135
|
+
</PATH_ELEMENT>
|
136
|
+
</PATH>
|
137
|
+
<PATH>
|
138
|
+
<PATH_ELEMENT>
|
139
|
+
<option name="myItemId" value="chupakabra_tools" />
|
140
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
141
|
+
</PATH_ELEMENT>
|
142
|
+
<PATH_ELEMENT>
|
143
|
+
<option name="myItemId" value="chupakabra_tools" />
|
144
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
145
|
+
</PATH_ELEMENT>
|
146
|
+
<PATH_ELEMENT>
|
147
|
+
<option name="myItemId" value="lib" />
|
148
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
149
|
+
</PATH_ELEMENT>
|
150
|
+
<PATH_ELEMENT>
|
151
|
+
<option name="myItemId" value="chupakabra_tools" />
|
152
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
153
|
+
</PATH_ELEMENT>
|
154
|
+
</PATH>
|
155
|
+
</subPane>
|
156
|
+
</pane>
|
157
|
+
</panes>
|
158
|
+
</component>
|
159
|
+
<component name="PropertiesComponent">
|
160
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
161
|
+
</component>
|
162
|
+
<component name="RecentsManager">
|
163
|
+
<key name="MoveFile.RECENT_KEYS">
|
164
|
+
<recent name="$PROJECT_DIR$/lib/chupakabra_tools" />
|
165
|
+
</key>
|
166
|
+
</component>
|
167
|
+
<component name="RunManager">
|
168
|
+
<configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
|
169
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
170
|
+
<module name="" />
|
171
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
172
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
173
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
174
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
175
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
176
|
+
<envs />
|
177
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
178
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
179
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
180
|
+
<COVERAGE_PATTERN ENABLED="true">
|
181
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
182
|
+
</COVERAGE_PATTERN>
|
183
|
+
</EXTENSION>
|
184
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
185
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
186
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
187
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
188
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
189
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
190
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
191
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
192
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
193
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
194
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
195
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
196
|
+
<method />
|
197
|
+
</configuration>
|
198
|
+
<configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
|
199
|
+
<module name="" />
|
200
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
201
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
|
202
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
203
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
204
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
205
|
+
<envs />
|
206
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
207
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
208
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
209
|
+
<COVERAGE_PATTERN ENABLED="true">
|
210
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
211
|
+
</COVERAGE_PATTERN>
|
212
|
+
</EXTENSION>
|
213
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
214
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
|
215
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
216
|
+
<method />
|
217
|
+
</configuration>
|
218
|
+
<configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
|
219
|
+
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
220
|
+
<module name="" />
|
221
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
222
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
223
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
224
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
225
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
226
|
+
<envs />
|
227
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
228
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
229
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
230
|
+
<COVERAGE_PATTERN ENABLED="true">
|
231
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
232
|
+
</COVERAGE_PATTERN>
|
233
|
+
</EXTENSION>
|
234
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
235
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
236
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
237
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
238
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
239
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
240
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
241
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
242
|
+
<method />
|
243
|
+
</configuration>
|
244
|
+
<list size="0" />
|
245
|
+
</component>
|
246
|
+
<component name="ShelveChangesManager" show_recycled="false" />
|
247
|
+
<component name="TaskManager">
|
248
|
+
<task active="true" id="Default" summary="Default task">
|
249
|
+
<changelist id="d6aa733e-1913-4274-b172-8caf8ff85836" name="Default" comment="" />
|
250
|
+
<created>1361516072365</created>
|
251
|
+
<updated>1361516072365</updated>
|
252
|
+
</task>
|
253
|
+
<servers />
|
254
|
+
</component>
|
255
|
+
<component name="ToolWindowManager">
|
256
|
+
<frame x="1440" y="0" width="1920" height="1080" extended-state="0" />
|
257
|
+
<editor active="false" />
|
258
|
+
<layout>
|
259
|
+
<window_info id="Changes" 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" />
|
260
|
+
<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" />
|
261
|
+
<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="0" side_tool="false" content_ui="tabs" />
|
262
|
+
<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="true" content_ui="tabs" />
|
263
|
+
<window_info id="Project" active="true" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.33645833" sideWeight="0.67039675" order="4" side_tool="false" content_ui="combo" />
|
264
|
+
<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" />
|
265
|
+
<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="0" side_tool="true" content_ui="tabs" />
|
266
|
+
<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" />
|
267
|
+
<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" />
|
268
|
+
<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" />
|
269
|
+
<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" />
|
270
|
+
<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" />
|
271
|
+
<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="2" side_tool="false" content_ui="tabs" />
|
272
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32960325" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
273
|
+
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
274
|
+
<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="3" side_tool="false" content_ui="combo" />
|
275
|
+
<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" />
|
276
|
+
</layout>
|
277
|
+
</component>
|
278
|
+
<component name="VcsContentAnnotationSettings">
|
279
|
+
<option name="myLimit" value="2678400000" />
|
280
|
+
</component>
|
281
|
+
<component name="VcsManagerConfiguration">
|
282
|
+
<option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="true" />
|
283
|
+
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="true" />
|
284
|
+
<option name="CHECK_NEW_TODO" value="true" />
|
285
|
+
<option name="myTodoPanelSettings">
|
286
|
+
<value>
|
287
|
+
<are-packages-shown value="false" />
|
288
|
+
<are-modules-shown value="false" />
|
289
|
+
<flatten-packages value="false" />
|
290
|
+
<is-autoscroll-to-source value="false" />
|
291
|
+
</value>
|
292
|
+
</option>
|
293
|
+
<option name="PERFORM_UPDATE_IN_BACKGROUND" value="true" />
|
294
|
+
<option name="PERFORM_COMMIT_IN_BACKGROUND" value="true" />
|
295
|
+
<option name="PERFORM_EDIT_IN_BACKGROUND" value="true" />
|
296
|
+
<option name="PERFORM_CHECKOUT_IN_BACKGROUND" value="true" />
|
297
|
+
<option name="PERFORM_ADD_REMOVE_IN_BACKGROUND" value="true" />
|
298
|
+
<option name="PERFORM_ROLLBACK_IN_BACKGROUND" value="false" />
|
299
|
+
<option name="CHECK_LOCALLY_CHANGED_CONFLICTS_IN_BACKGROUND" value="false" />
|
300
|
+
<option name="CHANGED_ON_SERVER_INTERVAL" value="60" />
|
301
|
+
<option name="SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value="true" />
|
302
|
+
<option name="CHECK_COMMIT_MESSAGE_SPELLING" value="true" />
|
303
|
+
<option name="DEFAULT_PATCH_EXTENSION" value="patch" />
|
304
|
+
<option name="SHORT_DIFF_HORIZONTALLY" value="true" />
|
305
|
+
<option name="SHORT_DIFF_EXTRA_LINES" value="2" />
|
306
|
+
<option name="SOFT_WRAPS_IN_SHORT_DIFF" value="true" />
|
307
|
+
<option name="INCLUDE_TEXT_INTO_PATCH" value="false" />
|
308
|
+
<option name="INCLUDE_TEXT_INTO_SHELF" value="false" />
|
309
|
+
<option name="SHOW_FILE_HISTORY_DETAILS" value="true" />
|
310
|
+
<option name="SHOW_VCS_ERROR_NOTIFICATIONS" value="true" />
|
311
|
+
<option name="SHOW_DIRTY_RECURSIVELY" value="false" />
|
312
|
+
<option name="LIMIT_HISTORY" value="true" />
|
313
|
+
<option name="MAXIMUM_HISTORY_ROWS" value="1000" />
|
314
|
+
<option name="UPDATE_FILTER_SCOPE_NAME" />
|
315
|
+
<option name="USE_COMMIT_MESSAGE_MARGIN" value="false" />
|
316
|
+
<option name="COMMIT_MESSAGE_MARGIN_SIZE" value="72" />
|
317
|
+
<option name="WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN" value="false" />
|
318
|
+
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
|
319
|
+
<option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="false" />
|
320
|
+
<option name="LAST_COMMIT_MESSAGE" />
|
321
|
+
<option name="MAKE_NEW_CHANGELIST_ACTIVE" value="false" />
|
322
|
+
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
|
323
|
+
<option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
|
324
|
+
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
|
325
|
+
<option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
|
326
|
+
<option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
|
327
|
+
<option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
|
328
|
+
<option name="ACTIVE_VCS_NAME" />
|
329
|
+
<option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
|
330
|
+
<option name="UPDATE_GROUP_BY_CHANGELIST" value="false" />
|
331
|
+
<option name="UPDATE_FILTER_BY_SCOPE" value="false" />
|
332
|
+
<option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
|
333
|
+
<option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
|
334
|
+
</component>
|
335
|
+
<component name="XDebuggerManager">
|
336
|
+
<breakpoint-manager />
|
337
|
+
</component>
|
338
|
+
<component name="editorHistoryManager">
|
339
|
+
<entry file="file://$PROJECT_DIR$/lib/chupakabra_tools/version.rb">
|
340
|
+
<provider selected="true" editor-type-id="text-editor">
|
341
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
|
342
|
+
</provider>
|
343
|
+
</entry>
|
344
|
+
<entry file="file://$PROJECT_DIR$/lib/chupakabra_tools.rb">
|
345
|
+
<provider selected="true" editor-type-id="text-editor">
|
346
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
|
347
|
+
</provider>
|
348
|
+
</entry>
|
349
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
350
|
+
<provider selected="true" editor-type-id="text-editor">
|
351
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
|
352
|
+
<folding />
|
353
|
+
</state>
|
354
|
+
</provider>
|
355
|
+
</entry>
|
356
|
+
<entry file="file://$PROJECT_DIR$/chupakabra_tools.gemspec">
|
357
|
+
<provider selected="true" editor-type-id="text-editor">
|
358
|
+
<state line="25" column="50" selection-start="794" selection-end="794" vertical-scroll-proportion="0.0" />
|
359
|
+
</provider>
|
360
|
+
</entry>
|
361
|
+
<entry file="file://$PROJECT_DIR$/lib/chupakabra_tools/active_record.rb">
|
362
|
+
<provider selected="true" editor-type-id="text-editor">
|
363
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
|
364
|
+
</provider>
|
365
|
+
</entry>
|
366
|
+
<entry file="file://$PROJECT_DIR$/lib/chupakabra_tools/active_record.rb">
|
367
|
+
<provider selected="true" editor-type-id="text-editor">
|
368
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
|
369
|
+
</provider>
|
370
|
+
</entry>
|
371
|
+
<entry file="file://$PROJECT_DIR$/lib/chupakabra_tools/convert.rb">
|
372
|
+
<provider selected="true" editor-type-id="text-editor">
|
373
|
+
<state line="30" column="25" selection-start="294" selection-end="884" vertical-scroll-proportion="0.5974395" />
|
374
|
+
</provider>
|
375
|
+
</entry>
|
376
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
377
|
+
<provider selected="true" editor-type-id="text-editor">
|
378
|
+
<state line="1" column="45" selection-start="28" selection-end="28" vertical-scroll-proportion="0.019914651" />
|
379
|
+
</provider>
|
380
|
+
</entry>
|
381
|
+
<entry file="file://$PROJECT_DIR$/lib/chupakabra_tools/active_record.rb">
|
382
|
+
<provider selected="true" editor-type-id="text-editor">
|
383
|
+
<state line="62" column="7" selection-start="38" selection-end="1351" vertical-scroll-proportion="0.8961593" />
|
384
|
+
</provider>
|
385
|
+
</entry>
|
386
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
387
|
+
<provider selected="true" editor-type-id="text-editor">
|
388
|
+
<state line="5" column="58" selection-start="102" selection-end="102" vertical-scroll-proportion="0.07314525">
|
389
|
+
<folding />
|
390
|
+
</state>
|
391
|
+
</provider>
|
392
|
+
</entry>
|
393
|
+
<entry file="file://$PROJECT_DIR$/lib/chupakabra_tools/http.rb">
|
394
|
+
<provider selected="true" editor-type-id="text-editor">
|
395
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
|
396
|
+
</provider>
|
397
|
+
</entry>
|
398
|
+
<entry file="file://$PROJECT_DIR$/lib/chupakabra_tools/transliterator.rb">
|
399
|
+
<provider selected="true" editor-type-id="text-editor">
|
400
|
+
<state line="14" column="61" selection-start="437" selection-end="437" vertical-scroll-proportion="0.20480669" />
|
401
|
+
</provider>
|
402
|
+
</entry>
|
403
|
+
<entry file="file://$PROJECT_DIR$/lib/chupakabra_tools/logging.rb">
|
404
|
+
<provider selected="true" editor-type-id="text-editor">
|
405
|
+
<state line="81" column="22" selection-start="1641" selection-end="1641" vertical-scroll-proportion="0.14460285">
|
406
|
+
<folding />
|
407
|
+
</state>
|
408
|
+
</provider>
|
409
|
+
</entry>
|
410
|
+
<entry file="file://$PROJECT_DIR$/chupakabra_tools.gemspec">
|
411
|
+
<provider selected="true" editor-type-id="text-editor">
|
412
|
+
<state line="18" column="117" selection-start="653" selection-end="653" vertical-scroll-proportion="0.25661916">
|
413
|
+
<folding />
|
414
|
+
</state>
|
415
|
+
</provider>
|
416
|
+
</entry>
|
417
|
+
<entry file="file://$PROJECT_DIR$/lib/chupakabra_tools.rb">
|
418
|
+
<provider selected="true" editor-type-id="text-editor">
|
419
|
+
<state line="15" column="124" selection-start="436" selection-end="436" vertical-scroll-proportion="0.21384929">
|
420
|
+
<folding />
|
421
|
+
</state>
|
422
|
+
</provider>
|
423
|
+
</entry>
|
424
|
+
<entry file="file://$PROJECT_DIR$/lib/chupakabra_tools/version.rb">
|
425
|
+
<provider selected="true" editor-type-id="text-editor">
|
426
|
+
<state line="1" column="18" selection-start="41" selection-end="41" vertical-scroll-proportion="0.014256619">
|
427
|
+
<folding />
|
428
|
+
</state>
|
429
|
+
</provider>
|
430
|
+
</entry>
|
431
|
+
</component>
|
432
|
+
</project>
|
433
|
+
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
chupakabra_tools (0.0.8)
|
5
|
+
active_enum
|
6
|
+
activerecord
|
7
|
+
activesupport
|
8
|
+
russian
|
9
|
+
|
10
|
+
GEM
|
11
|
+
remote: https://rubygems.org/
|
12
|
+
specs:
|
13
|
+
active_enum (0.9.12)
|
14
|
+
activesupport (~> 3.0)
|
15
|
+
activemodel (3.2.12)
|
16
|
+
activesupport (= 3.2.12)
|
17
|
+
builder (~> 3.0.0)
|
18
|
+
activerecord (3.2.12)
|
19
|
+
activemodel (= 3.2.12)
|
20
|
+
activesupport (= 3.2.12)
|
21
|
+
arel (~> 3.0.2)
|
22
|
+
tzinfo (~> 0.3.29)
|
23
|
+
activesupport (3.2.12)
|
24
|
+
i18n (~> 0.6)
|
25
|
+
multi_json (~> 1.0)
|
26
|
+
arel (3.0.2)
|
27
|
+
builder (3.0.4)
|
28
|
+
i18n (0.6.4)
|
29
|
+
multi_json (1.7.7)
|
30
|
+
russian (0.6.0)
|
31
|
+
i18n (>= 0.5.0)
|
32
|
+
tzinfo (0.3.37)
|
33
|
+
|
34
|
+
PLATFORMS
|
35
|
+
ruby
|
36
|
+
|
37
|
+
DEPENDENCIES
|
38
|
+
chupakabra_tools!
|
data/README.md
CHANGED
@@ -1,29 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
TODO: Write a gem description
|
4
|
-
|
5
|
-
## Installation
|
6
|
-
|
7
|
-
Add this line to your application's Gemfile:
|
8
|
-
|
9
|
-
gem 'chupakabra_tools'
|
10
|
-
|
11
|
-
And then execute:
|
12
|
-
|
13
|
-
$ bundle
|
14
|
-
|
15
|
-
Or install it yourself as:
|
16
|
-
|
17
|
-
$ gem install chupakabra_tools
|
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
|
1
|
+
chupakabra_tools
|
2
|
+
================
|
@@ -1,29 +1,23 @@
|
|
1
1
|
module ChupakabraTools::ActiveRecord
|
2
|
-
def
|
2
|
+
def sanitize_order(sort_order = nil)
|
3
3
|
return 'asc' if sort_order.nil? || sort_order.empty?
|
4
4
|
return 'asc' if sort_order.downcase == 'asc'
|
5
5
|
return 'desc' if sort_order.downcase == 'desc'
|
6
|
-
|
7
|
-
end
|
8
|
-
|
9
|
-
def self.sanitize_order(sort_order = nil)
|
10
|
-
sanitize_sortorder(sort_order)
|
6
|
+
'asc'
|
11
7
|
end
|
12
8
|
|
13
|
-
def self.
|
9
|
+
def self.invert_order(sort_order = nil)
|
14
10
|
return 'desc' if sort_order.nil? || sort_order.empty?
|
15
11
|
sort_order = sanitize_sortorder(sort_order)
|
16
12
|
return 'desc' if sort_order.downcase == 'asc'
|
17
13
|
'asc'
|
18
14
|
end
|
19
15
|
|
20
|
-
def
|
21
|
-
|
22
|
-
end
|
16
|
+
def sanitize_sort_by(sort_by)
|
17
|
+
|
23
18
|
|
19
|
+
unless sort_by.nil? || sort_by.empty?
|
24
20
|
|
25
|
-
def self.sanitize_sort_by(sort_by, fields_to_sort, default_sort_by = nil)
|
26
|
-
unless sort_by.nil? || sort_by.empty? || fields_to_sort.nil? || !fields_to_sort.is_a?(Array)
|
27
21
|
fields_to_sort.each do |fts|
|
28
22
|
if fts.downcase == sort_by
|
29
23
|
return sort_by
|
@@ -32,7 +26,39 @@ module ChupakabraTools::ActiveRecord
|
|
32
26
|
return default_sort_by
|
33
27
|
end
|
34
28
|
|
35
|
-
|
29
|
+
default_sort_by.nil? || default_sort_by.empty? ? default_sort_by : 'id'
|
30
|
+
end
|
31
|
+
|
32
|
+
|
33
|
+
def self.default_sort_field
|
34
|
+
defined?(@default_sort_field) ? @default_sort_field : nil
|
35
|
+
end
|
36
|
+
|
37
|
+
def self.default_sort_field= value
|
38
|
+
if value
|
39
|
+
@default_sort_field = value.to_s
|
40
|
+
else
|
41
|
+
@default_sort_field = nil
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
def self.allowed_fields_to_sort
|
46
|
+
unless defined?(@allowed_fields_to_sort)
|
47
|
+
@allowed_fields_to_sort = []
|
48
|
+
end
|
49
|
+
@allowed_fields_to_sort
|
36
50
|
end
|
37
51
|
|
52
|
+
def self.allowed_fields_to_sort= value
|
53
|
+
@allowed_fields_to_sort = []
|
54
|
+
if value
|
55
|
+
if value.is_a?(Array)
|
56
|
+
value.each do |i|
|
57
|
+
@allowed_fields_to_sort.push i.to_s
|
58
|
+
end
|
59
|
+
else
|
60
|
+
@allowed_fields_to_sort.push value.to_s
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
38
64
|
end
|
@@ -0,0 +1,135 @@
|
|
1
|
+
module ChupakabraTools
|
2
|
+
module Logging
|
3
|
+
class StringLogger
|
4
|
+
|
5
|
+
LOG_LEVELS = [:no_log, :fatal, :error, :warning, :info, :debug, :extra_debug]
|
6
|
+
|
7
|
+
def initialize(logger = nil)
|
8
|
+
@low_level_logger = logger
|
9
|
+
@log_data = []
|
10
|
+
@depth = 0
|
11
|
+
end
|
12
|
+
|
13
|
+
################### LOGGING METHODS #########################
|
14
|
+
|
15
|
+
|
16
|
+
def fatal(entry, options = {})
|
17
|
+
do_log_entry(:fatal, entry, options) if valid_level?(:fatal, options)
|
18
|
+
end
|
19
|
+
|
20
|
+
def error(entry, options = {})
|
21
|
+
do_log_entry(:error, entry, options) if valid_level?(:error, options)
|
22
|
+
end
|
23
|
+
|
24
|
+
def warning(entry, options = {})
|
25
|
+
do_log_entry(:warning, entry, options) if valid_level?(:warning, options)
|
26
|
+
end
|
27
|
+
|
28
|
+
def info(entry, options = {})
|
29
|
+
do_log_entry(:info, entry, options) if valid_level?(:info, options)
|
30
|
+
end
|
31
|
+
|
32
|
+
def debug(entry, options = {})
|
33
|
+
do_log_entry(:debug, entry, options) if valid_level?(:debug, options)
|
34
|
+
end
|
35
|
+
|
36
|
+
def extra_debug(entry, options = {})
|
37
|
+
do_log_entry(:extra_debug, entry, options) if valid_level?(:extra_debug, options)
|
38
|
+
end
|
39
|
+
|
40
|
+
################### END OF LOGGING METHODS #########################
|
41
|
+
|
42
|
+
|
43
|
+
def clear
|
44
|
+
@log_data.clear
|
45
|
+
end
|
46
|
+
|
47
|
+
def log_data
|
48
|
+
@log_data
|
49
|
+
end
|
50
|
+
|
51
|
+
def log_as_string
|
52
|
+
@log_data.map { |e| e[:data].to_s }.join("\n")
|
53
|
+
end
|
54
|
+
|
55
|
+
def log_as_xml
|
56
|
+
raise "Not Implemented Yet"
|
57
|
+
end
|
58
|
+
|
59
|
+
def log_as_json
|
60
|
+
@log_data.to_json
|
61
|
+
end
|
62
|
+
|
63
|
+
def depth
|
64
|
+
@depth
|
65
|
+
end
|
66
|
+
|
67
|
+
def depth_up
|
68
|
+
@depth += 1
|
69
|
+
end
|
70
|
+
|
71
|
+
def depth_down
|
72
|
+
@depth -= 1
|
73
|
+
if @depth < 0
|
74
|
+
@depth = 0
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
def flush
|
79
|
+
if @low_level_logger
|
80
|
+
@log_data.each do |lg|
|
81
|
+
@low_level_logger.info(lg[:data])
|
82
|
+
end
|
83
|
+
end
|
84
|
+
self.clear
|
85
|
+
end
|
86
|
+
|
87
|
+
private
|
88
|
+
def formatted_log_entry(entry, options = {})
|
89
|
+
options ||={}
|
90
|
+
(@depth > 0 ? '\t' * @depth : '') + entry
|
91
|
+
end
|
92
|
+
|
93
|
+
def do_log_entry(level, entry, options = {})
|
94
|
+
options ||={}
|
95
|
+
|
96
|
+
log_entry = {level: level, data: formatted_log_entry(entry, options), time: Time.now.utc }
|
97
|
+
log_entry[:host] = options[:host] if options[:host]
|
98
|
+
log_entry[:server] = options[:server] if options[:server]
|
99
|
+
log_entry[:http_method] = options[:http_method] if options[:http_method]
|
100
|
+
log_entry[:user_id] = options[:user_id] if options[:user_id]
|
101
|
+
|
102
|
+
@log_data.push(log_entry)
|
103
|
+
self
|
104
|
+
end
|
105
|
+
|
106
|
+
def valid_level?(log_method_level, options={})
|
107
|
+
return true
|
108
|
+
options ||={}
|
109
|
+
level = options[:log_level] || :no_log
|
110
|
+
case level
|
111
|
+
when :no_log
|
112
|
+
false
|
113
|
+
when :fatal
|
114
|
+
[:fatal].include?(log_method_level)
|
115
|
+
when :error
|
116
|
+
[:fatal, :error].include?(log_method_level)
|
117
|
+
when :warning
|
118
|
+
[:fatal, :error, :warning].include?(log_method_level)
|
119
|
+
when :info
|
120
|
+
[:fatal, :error, :warning, :info].include?(log_method_level)
|
121
|
+
when :debug
|
122
|
+
[:fatal, :error, :warning, :info, :debug].include?(log_method_level)
|
123
|
+
when :extra_debug
|
124
|
+
true
|
125
|
+
else
|
126
|
+
false
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
data/lib/chupakabra_tools.rb
CHANGED
@@ -0,0 +1,20 @@
|
|
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="active_enum (v0.9.12, RVM: ruby-1.9.3-p327) [gem]" level="application" />
|
8
|
+
<orderEntry type="library" scope="PROVIDED" name="activemodel (v3.2.12, RVM: ruby-1.9.3-p327) [gem]" level="application" />
|
9
|
+
<orderEntry type="library" scope="PROVIDED" name="activerecord (v3.2.13, RVM: ruby-1.9.3-p327) [gem]" level="application" />
|
10
|
+
<orderEntry type="library" scope="PROVIDED" name="activesupport (v3.2.13, RVM: ruby-1.9.3-p327) [gem]" level="application" />
|
11
|
+
<orderEntry type="library" scope="PROVIDED" name="arel (v3.0.2, RVM: ruby-1.9.3-p327) [gem]" level="application" />
|
12
|
+
<orderEntry type="library" scope="PROVIDED" name="builder (v3.0.4, RVM: ruby-1.9.3-p327) [gem]" level="application" />
|
13
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.3.1, RVM: ruby-1.9.3-p327) [gem]" level="application" />
|
14
|
+
<orderEntry type="library" scope="PROVIDED" name="i18n (v0.6.4, RVM: ruby-1.9.3-p327) [gem]" level="application" />
|
15
|
+
<orderEntry type="library" scope="PROVIDED" name="multi_json (v1.6.1, RVM: ruby-1.9.3-p327) [gem]" level="application" />
|
16
|
+
<orderEntry type="library" scope="PROVIDED" name="russian (v0.6.0, RVM: ruby-1.9.3-p327) [gem]" level="application" />
|
17
|
+
<orderEntry type="library" scope="PROVIDED" name="tzinfo (v0.3.36, RVM: ruby-1.9.3-p327) [gem]" level="application" />
|
18
|
+
</component>
|
19
|
+
</module>
|
20
|
+
|
data/update/.gitignore
ADDED
data/update/Gemfile
ADDED
data/update/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Mitrofanov Dmitry
|
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/update/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Update
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'update'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install update
|
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/update/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'update/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |gem|
|
7
|
+
gem.name = "update"
|
8
|
+
gem.version = Update::VERSION
|
9
|
+
gem.authors = ["Mitrofanov Dmitry"]
|
10
|
+
gem.email = ["mdima@it-guru.biz"]
|
11
|
+
gem.description = %q{TODO: Write a gem description}
|
12
|
+
gem.summary = %q{TODO: Write a gem summary}
|
13
|
+
gem.homepage = ""
|
14
|
+
|
15
|
+
gem.files = `git ls-files`.split($/)
|
16
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
17
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
|
+
gem.require_paths = ["lib"]
|
19
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chupakabra_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-07-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -83,7 +83,10 @@ extensions: []
|
|
83
83
|
extra_rdoc_files: []
|
84
84
|
files:
|
85
85
|
- .gitignore
|
86
|
+
- .idea/scopes/scope_settings.xml
|
87
|
+
- .idea/workspace.xml
|
86
88
|
- Gemfile
|
89
|
+
- Gemfile.lock
|
87
90
|
- LICENSE.txt
|
88
91
|
- README.md
|
89
92
|
- Rakefile
|
@@ -92,6 +95,7 @@ files:
|
|
92
95
|
- lib/chupakabra_tools/active_record.rb
|
93
96
|
- lib/chupakabra_tools/convert.rb
|
94
97
|
- lib/chupakabra_tools/http.rb
|
98
|
+
- lib/chupakabra_tools/logging.rb
|
95
99
|
- lib/chupakabra_tools/number_as_text.rb
|
96
100
|
- lib/chupakabra_tools/predefined_time_intervals.rb
|
97
101
|
- lib/chupakabra_tools/security.rb
|
@@ -99,6 +103,15 @@ files:
|
|
99
103
|
- lib/chupakabra_tools/transliterator.rb
|
100
104
|
- lib/chupakabra_tools/validattions.rb
|
101
105
|
- lib/chupakabra_tools/version.rb
|
106
|
+
- projectFilesBackup/.idea/chupakabra_tools.iml
|
107
|
+
- update/.gitignore
|
108
|
+
- update/Gemfile
|
109
|
+
- update/LICENSE.txt
|
110
|
+
- update/README.md
|
111
|
+
- update/Rakefile
|
112
|
+
- update/lib/update.rb
|
113
|
+
- update/lib/update/version.rb
|
114
|
+
- update/update.gemspec
|
102
115
|
homepage: ''
|
103
116
|
licenses: []
|
104
117
|
post_install_message:
|