volt-gravatar 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.idea/scopes/scope_settings.xml +5 -0
- data/.idea/workspace.xml +532 -0
- data/Gemfile +4 -0
- data/README.md +29 -0
- data/Rakefile +1 -0
- data/app/gravatar/assets/js/md5.min.js +1 -0
- data/app/gravatar/config/dependencies.rb +1 -0
- data/app/gravatar/config/initializers/boot.rb +10 -0
- data/app/gravatar/config/routes.rb +1 -0
- data/app/gravatar/controllers/main_controller.rb +35 -0
- data/app/gravatar/views/main/index.html +2 -0
- data/lib/volt/gravatar/version.rb +5 -0
- data/lib/volt/gravatar.rb +18 -0
- data/volt-gravatar.gemspec +23 -0
- metadata +87 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d117dcb2fe977126c46a1861ac21f859d8a4dd86
|
4
|
+
data.tar.gz: 082445f8aac168636665798472df6dc3e6356ae4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 30f73aeaba09171297edbd17b71f93abadc8d78f7ec8c34415de4278f64581d371e193725ba37b1c833e5691f9bb7568520083228725fa3616e96f18c3e40ac6
|
7
|
+
data.tar.gz: 20d4ab1c11b5d16b2fcd10c8b133f18ea88d1b54245ce05057532a8b6fae3b939ba4efe715ab712d04b81c069497c7c1ced373340731d483133569384c208383
|
data/.gitignore
ADDED
data/.idea/workspace.xml
ADDED
@@ -0,0 +1,532 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ChangeListManager">
|
4
|
+
<list default="true" id="5ab31409-57f2-4161-b1e9-a138877891a4" name="Default" comment="">
|
5
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.gitignore" />
|
6
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Gemfile" />
|
7
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/README.md" />
|
8
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Rakefile" />
|
9
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/app/gravatar/config/initializers/boot.rb" />
|
10
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/app/gravatar/config/dependencies.rb" />
|
11
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/volt/gravatar.rb" />
|
12
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/app/gravatar/views/main/index.html" />
|
13
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/app/gravatar/controllers/main_controller.rb" />
|
14
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/app/gravatar/assets/js/md5.min.js" />
|
15
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/app/gravatar/config/routes.rb" />
|
16
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/volt/gravatar/version.rb" />
|
17
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/volt-gravatar.gemspec" />
|
18
|
+
</list>
|
19
|
+
<ignored path="volt-gravatar.iws" />
|
20
|
+
<ignored path=".idea/workspace.xml" />
|
21
|
+
<ignored path=".idea/dataSources.local.xml" />
|
22
|
+
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
23
|
+
<option name="TRACKING_ENABLED" value="true" />
|
24
|
+
<option name="SHOW_DIALOG" value="false" />
|
25
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
26
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
27
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
28
|
+
</component>
|
29
|
+
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
30
|
+
<component name="CreatePatchCommitExecutor">
|
31
|
+
<option name="PATCH_PATH" value="" />
|
32
|
+
</component>
|
33
|
+
<component name="DaemonCodeAnalyzer">
|
34
|
+
<disable_hints />
|
35
|
+
</component>
|
36
|
+
<component name="FavoritesManager">
|
37
|
+
<favorites_list name="volt-gravatar" />
|
38
|
+
</component>
|
39
|
+
<component name="FileEditorManager">
|
40
|
+
<leaf>
|
41
|
+
<file leaf-file-name="Gemfile" pinned="false" current-in-tab="false">
|
42
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
43
|
+
<provider selected="true" editor-type-id="text-editor">
|
44
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="150">
|
45
|
+
<caret line="4" column="0" selection-start-line="4" selection-start-column="0" selection-end-line="4" selection-end-column="0" />
|
46
|
+
<folding />
|
47
|
+
</state>
|
48
|
+
</provider>
|
49
|
+
</entry>
|
50
|
+
</file>
|
51
|
+
<file leaf-file-name="index.html" pinned="false" current-in-tab="false">
|
52
|
+
<entry file="file://$PROJECT_DIR$/app/gravatar/views/main/index.html">
|
53
|
+
<provider selected="true" editor-type-id="text-editor">
|
54
|
+
<state vertical-scroll-proportion="-0.625" vertical-offset="0" max-vertical-offset="120">
|
55
|
+
<caret line="1" column="41" selection-start-line="1" selection-start-column="41" selection-end-line="1" selection-end-column="41" />
|
56
|
+
<folding />
|
57
|
+
</state>
|
58
|
+
</provider>
|
59
|
+
</entry>
|
60
|
+
</file>
|
61
|
+
<file leaf-file-name=".gitignore" pinned="false" current-in-tab="false">
|
62
|
+
<entry file="file://$PROJECT_DIR$/.gitignore">
|
63
|
+
<provider selected="true" editor-type-id="text-editor">
|
64
|
+
<state vertical-scroll-proportion="-0.0" vertical-offset="0" max-vertical-offset="345">
|
65
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
66
|
+
<folding />
|
67
|
+
</state>
|
68
|
+
</provider>
|
69
|
+
</entry>
|
70
|
+
</file>
|
71
|
+
<file leaf-file-name="main_controller.rb" pinned="false" current-in-tab="false">
|
72
|
+
<entry file="file://$PROJECT_DIR$/app/gravatar/controllers/main_controller.rb">
|
73
|
+
<provider selected="true" editor-type-id="text-editor">
|
74
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="615">
|
75
|
+
<caret line="26" column="0" selection-start-line="26" selection-start-column="0" selection-end-line="26" selection-end-column="0" />
|
76
|
+
<folding />
|
77
|
+
</state>
|
78
|
+
</provider>
|
79
|
+
</entry>
|
80
|
+
</file>
|
81
|
+
<file leaf-file-name="md5.min.js" pinned="false" current-in-tab="false">
|
82
|
+
<entry file="file://$PROJECT_DIR$/app/gravatar/assets/js/md5.min.js">
|
83
|
+
<provider selected="true" editor-type-id="text-editor">
|
84
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="90">
|
85
|
+
<caret line="0" column="3779" selection-start-line="0" selection-start-column="3779" selection-end-line="0" selection-end-column="3779" />
|
86
|
+
<folding />
|
87
|
+
</state>
|
88
|
+
</provider>
|
89
|
+
</entry>
|
90
|
+
</file>
|
91
|
+
<file leaf-file-name="main_controller.rb" pinned="false" current-in-tab="false">
|
92
|
+
<entry file="file://$PROJECT_DIR$/../volt-gravatar_old/controllers/main_controller.rb">
|
93
|
+
<provider selected="true" editor-type-id="text-editor">
|
94
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="630">
|
95
|
+
<caret line="35" column="5" selection-start-line="2" selection-start-column="0" selection-end-line="35" selection-end-column="5" />
|
96
|
+
<folding />
|
97
|
+
</state>
|
98
|
+
</provider>
|
99
|
+
</entry>
|
100
|
+
</file>
|
101
|
+
<file leaf-file-name="Rakefile" pinned="false" current-in-tab="false">
|
102
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
103
|
+
<provider selected="true" editor-type-id="text-editor">
|
104
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="105">
|
105
|
+
<caret line="1" column="0" selection-start-line="1" selection-start-column="0" selection-end-line="1" selection-end-column="0" />
|
106
|
+
<folding />
|
107
|
+
</state>
|
108
|
+
</provider>
|
109
|
+
</entry>
|
110
|
+
</file>
|
111
|
+
<file leaf-file-name="README.md" pinned="false" current-in-tab="false">
|
112
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
113
|
+
<provider selected="true" editor-type-id="text-editor">
|
114
|
+
<state vertical-scroll-proportion="-1.2" vertical-offset="0" max-vertical-offset="525">
|
115
|
+
<caret line="2" column="115" selection-start-line="2" selection-start-column="115" selection-end-line="2" selection-end-column="115" />
|
116
|
+
<folding />
|
117
|
+
</state>
|
118
|
+
</provider>
|
119
|
+
</entry>
|
120
|
+
</file>
|
121
|
+
<file leaf-file-name="volt-gravatar.gemspec" pinned="false" current-in-tab="true">
|
122
|
+
<entry file="file://$PROJECT_DIR$/volt-gravatar.gemspec">
|
123
|
+
<provider selected="true" editor-type-id="text-editor">
|
124
|
+
<state vertical-scroll-proportion="0.47468355" vertical-offset="0" max-vertical-offset="632">
|
125
|
+
<caret line="20" column="51" selection-start-line="20" selection-start-column="51" selection-end-line="20" selection-end-column="51" />
|
126
|
+
<folding />
|
127
|
+
</state>
|
128
|
+
</provider>
|
129
|
+
</entry>
|
130
|
+
</file>
|
131
|
+
</leaf>
|
132
|
+
</component>
|
133
|
+
<component name="Git.Settings">
|
134
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
135
|
+
</component>
|
136
|
+
<component name="IdeDocumentHistory">
|
137
|
+
<option name="CHANGED_PATHS">
|
138
|
+
<list>
|
139
|
+
<option value="$PROJECT_DIR$/VERSION" />
|
140
|
+
<option value="$PROJECT_DIR$/Rakefile" />
|
141
|
+
<option value="$PROJECT_DIR$/controllers/main_controller.rb" />
|
142
|
+
<option value="$PROJECT_DIR$/Gemfile" />
|
143
|
+
<option value="$PROJECT_DIR$/app/gravatar/views/main/index.html" />
|
144
|
+
<option value="$PROJECT_DIR$/app/gravatar/assets/js/md5.min.js" />
|
145
|
+
<option value="$PROJECT_DIR$/app/gravatar/controllers/main_controller.rb" />
|
146
|
+
<option value="$PROJECT_DIR$/README.md" />
|
147
|
+
<option value="$PROJECT_DIR$/volt-gravatar.gemspec" />
|
148
|
+
</list>
|
149
|
+
</option>
|
150
|
+
</component>
|
151
|
+
<component name="JsGulpfileManager">
|
152
|
+
<detection-done>true</detection-done>
|
153
|
+
</component>
|
154
|
+
<component name="ProjectFrameBounds">
|
155
|
+
<option name="y" value="23" />
|
156
|
+
<option name="width" value="1645" />
|
157
|
+
<option name="height" value="1027" />
|
158
|
+
</component>
|
159
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
160
|
+
<OptionsSetting value="true" id="Add" />
|
161
|
+
<OptionsSetting value="true" id="Remove" />
|
162
|
+
<OptionsSetting value="true" id="Checkout" />
|
163
|
+
<OptionsSetting value="true" id="Update" />
|
164
|
+
<OptionsSetting value="true" id="Status" />
|
165
|
+
<OptionsSetting value="true" id="Edit" />
|
166
|
+
<ConfirmationsSetting value="0" id="Add" />
|
167
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
168
|
+
</component>
|
169
|
+
<component name="ProjectView">
|
170
|
+
<navigator currentView="ProjectPane" proportions="" version="1">
|
171
|
+
<flattenPackages />
|
172
|
+
<showMembers />
|
173
|
+
<showModules />
|
174
|
+
<showLibraryContents />
|
175
|
+
<hideEmptyPackages />
|
176
|
+
<abbreviatePackageNames />
|
177
|
+
<autoscrollToSource />
|
178
|
+
<autoscrollFromSource />
|
179
|
+
<sortByType />
|
180
|
+
</navigator>
|
181
|
+
<panes>
|
182
|
+
<pane id="ProjectPane">
|
183
|
+
<subPane>
|
184
|
+
<PATH>
|
185
|
+
<PATH_ELEMENT>
|
186
|
+
<option name="myItemId" value="volt-gravatar" />
|
187
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
188
|
+
</PATH_ELEMENT>
|
189
|
+
</PATH>
|
190
|
+
<PATH>
|
191
|
+
<PATH_ELEMENT>
|
192
|
+
<option name="myItemId" value="volt-gravatar" />
|
193
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
194
|
+
</PATH_ELEMENT>
|
195
|
+
<PATH_ELEMENT>
|
196
|
+
<option name="myItemId" value="volt-gravatar" />
|
197
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
198
|
+
</PATH_ELEMENT>
|
199
|
+
</PATH>
|
200
|
+
<PATH>
|
201
|
+
<PATH_ELEMENT>
|
202
|
+
<option name="myItemId" value="volt-gravatar" />
|
203
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
204
|
+
</PATH_ELEMENT>
|
205
|
+
<PATH_ELEMENT>
|
206
|
+
<option name="myItemId" value="volt-gravatar" />
|
207
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
208
|
+
</PATH_ELEMENT>
|
209
|
+
<PATH_ELEMENT>
|
210
|
+
<option name="myItemId" value="app" />
|
211
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
212
|
+
</PATH_ELEMENT>
|
213
|
+
<PATH_ELEMENT>
|
214
|
+
<option name="myItemId" value="gravatar" />
|
215
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
216
|
+
</PATH_ELEMENT>
|
217
|
+
<PATH_ELEMENT>
|
218
|
+
<option name="myItemId" value="views" />
|
219
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
220
|
+
</PATH_ELEMENT>
|
221
|
+
<PATH_ELEMENT>
|
222
|
+
<option name="myItemId" value="main" />
|
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="volt-gravatar" />
|
229
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
230
|
+
</PATH_ELEMENT>
|
231
|
+
<PATH_ELEMENT>
|
232
|
+
<option name="myItemId" value="volt-gravatar" />
|
233
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
234
|
+
</PATH_ELEMENT>
|
235
|
+
<PATH_ELEMENT>
|
236
|
+
<option name="myItemId" value="app" />
|
237
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
238
|
+
</PATH_ELEMENT>
|
239
|
+
<PATH_ELEMENT>
|
240
|
+
<option name="myItemId" value="gravatar" />
|
241
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
242
|
+
</PATH_ELEMENT>
|
243
|
+
</PATH>
|
244
|
+
<PATH>
|
245
|
+
<PATH_ELEMENT>
|
246
|
+
<option name="myItemId" value="volt-gravatar" />
|
247
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
248
|
+
</PATH_ELEMENT>
|
249
|
+
<PATH_ELEMENT>
|
250
|
+
<option name="myItemId" value="volt-gravatar" />
|
251
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
252
|
+
</PATH_ELEMENT>
|
253
|
+
<PATH_ELEMENT>
|
254
|
+
<option name="myItemId" value="app" />
|
255
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
256
|
+
</PATH_ELEMENT>
|
257
|
+
<PATH_ELEMENT>
|
258
|
+
<option name="myItemId" value="gravatar" />
|
259
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
260
|
+
</PATH_ELEMENT>
|
261
|
+
<PATH_ELEMENT>
|
262
|
+
<option name="myItemId" value="controllers" />
|
263
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
264
|
+
</PATH_ELEMENT>
|
265
|
+
</PATH>
|
266
|
+
<PATH>
|
267
|
+
<PATH_ELEMENT>
|
268
|
+
<option name="myItemId" value="volt-gravatar" />
|
269
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
270
|
+
</PATH_ELEMENT>
|
271
|
+
<PATH_ELEMENT>
|
272
|
+
<option name="myItemId" value="volt-gravatar" />
|
273
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
274
|
+
</PATH_ELEMENT>
|
275
|
+
<PATH_ELEMENT>
|
276
|
+
<option name="myItemId" value="app" />
|
277
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
278
|
+
</PATH_ELEMENT>
|
279
|
+
<PATH_ELEMENT>
|
280
|
+
<option name="myItemId" value="gravatar" />
|
281
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
282
|
+
</PATH_ELEMENT>
|
283
|
+
<PATH_ELEMENT>
|
284
|
+
<option name="myItemId" value="assets" />
|
285
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
286
|
+
</PATH_ELEMENT>
|
287
|
+
<PATH_ELEMENT>
|
288
|
+
<option name="myItemId" value="js" />
|
289
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
290
|
+
</PATH_ELEMENT>
|
291
|
+
</PATH>
|
292
|
+
<PATH>
|
293
|
+
<PATH_ELEMENT>
|
294
|
+
<option name="myItemId" value="volt-gravatar" />
|
295
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
296
|
+
</PATH_ELEMENT>
|
297
|
+
<PATH_ELEMENT>
|
298
|
+
<option name="myItemId" value="volt-gravatar" />
|
299
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
300
|
+
</PATH_ELEMENT>
|
301
|
+
<PATH_ELEMENT>
|
302
|
+
<option name="myItemId" value="app" />
|
303
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
304
|
+
</PATH_ELEMENT>
|
305
|
+
<PATH_ELEMENT>
|
306
|
+
<option name="myItemId" value="gravatar" />
|
307
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
308
|
+
</PATH_ELEMENT>
|
309
|
+
<PATH_ELEMENT>
|
310
|
+
<option name="myItemId" value="assets" />
|
311
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
312
|
+
</PATH_ELEMENT>
|
313
|
+
</PATH>
|
314
|
+
</subPane>
|
315
|
+
</pane>
|
316
|
+
<pane id="Scope" />
|
317
|
+
</panes>
|
318
|
+
</component>
|
319
|
+
<component name="PropertiesComponent">
|
320
|
+
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
321
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
322
|
+
</component>
|
323
|
+
<component name="RunManager">
|
324
|
+
<configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
|
325
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
326
|
+
<module name="" />
|
327
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
328
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
329
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
330
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
331
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
332
|
+
<envs />
|
333
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
334
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
335
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
336
|
+
<COVERAGE_PATTERN ENABLED="true">
|
337
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
338
|
+
</COVERAGE_PATTERN>
|
339
|
+
</EXTENSION>
|
340
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
341
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
342
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
343
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
344
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
345
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
346
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
347
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
348
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
349
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
350
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
351
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
352
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
353
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
354
|
+
<method />
|
355
|
+
</configuration>
|
356
|
+
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
|
357
|
+
<method />
|
358
|
+
</configuration>
|
359
|
+
<configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
|
360
|
+
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
361
|
+
<module name="" />
|
362
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
363
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
364
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
365
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
366
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
367
|
+
<envs />
|
368
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
369
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
370
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
371
|
+
<COVERAGE_PATTERN ENABLED="true">
|
372
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
373
|
+
</COVERAGE_PATTERN>
|
374
|
+
</EXTENSION>
|
375
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
376
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
377
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
378
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
379
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
380
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
381
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
382
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
383
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
384
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
385
|
+
<method />
|
386
|
+
</configuration>
|
387
|
+
<configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
|
388
|
+
<method />
|
389
|
+
</configuration>
|
390
|
+
<list size="0" />
|
391
|
+
</component>
|
392
|
+
<component name="ShelveChangesManager" show_recycled="false" />
|
393
|
+
<component name="SvnConfiguration">
|
394
|
+
<configuration />
|
395
|
+
</component>
|
396
|
+
<component name="TaskManager">
|
397
|
+
<task active="true" id="Default" summary="Default task">
|
398
|
+
<changelist id="5ab31409-57f2-4161-b1e9-a138877891a4" name="Default" comment="" />
|
399
|
+
<created>1433224184364</created>
|
400
|
+
<option name="number" value="Default" />
|
401
|
+
<updated>1433224184364</updated>
|
402
|
+
</task>
|
403
|
+
<servers />
|
404
|
+
</component>
|
405
|
+
<component name="ToolWindowManager">
|
406
|
+
<frame x="0" y="23" width="1645" height="1027" extended-state="0" />
|
407
|
+
<editor active="true" />
|
408
|
+
<layout>
|
409
|
+
<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="-1" side_tool="false" content_ui="tabs" />
|
410
|
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
411
|
+
<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" />
|
412
|
+
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
413
|
+
<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" />
|
414
|
+
<window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
415
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.24984802" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
416
|
+
<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" />
|
417
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3292683" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
418
|
+
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
419
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
420
|
+
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
421
|
+
<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" />
|
422
|
+
<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" />
|
423
|
+
<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" />
|
424
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
425
|
+
<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" />
|
426
|
+
<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" />
|
427
|
+
<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" />
|
428
|
+
</layout>
|
429
|
+
</component>
|
430
|
+
<component name="Vcs.Log.UiProperties">
|
431
|
+
<option name="RECENTLY_FILTERED_USER_GROUPS">
|
432
|
+
<collection />
|
433
|
+
</option>
|
434
|
+
<option name="RECENTLY_FILTERED_BRANCH_GROUPS">
|
435
|
+
<collection />
|
436
|
+
</option>
|
437
|
+
</component>
|
438
|
+
<component name="VcsContentAnnotationSettings">
|
439
|
+
<option name="myLimit" value="2678400000" />
|
440
|
+
</component>
|
441
|
+
<component name="VcsManagerConfiguration">
|
442
|
+
<option name="myTodoPanelSettings">
|
443
|
+
<TodoPanelSettings />
|
444
|
+
</option>
|
445
|
+
</component>
|
446
|
+
<component name="XDebuggerManager">
|
447
|
+
<breakpoint-manager />
|
448
|
+
<watches-manager />
|
449
|
+
</component>
|
450
|
+
<component name="editorHistoryManager">
|
451
|
+
<entry file="file://$PROJECT_DIR$/../volt-gravatar_old/views/main/index.html">
|
452
|
+
<provider selected="true" editor-type-id="text-editor">
|
453
|
+
<state vertical-scroll-proportion="0.024671054" vertical-offset="0" max-vertical-offset="608">
|
454
|
+
<caret line="1" column="0" selection-start-line="1" selection-start-column="0" selection-end-line="1" selection-end-column="39" />
|
455
|
+
<folding />
|
456
|
+
</state>
|
457
|
+
</provider>
|
458
|
+
</entry>
|
459
|
+
<entry file="file://$PROJECT_DIR$/../volt-gravatar_old/controllers/main_controller.rb">
|
460
|
+
<provider selected="true" editor-type-id="text-editor">
|
461
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="630">
|
462
|
+
<caret line="35" column="5" selection-start-line="2" selection-start-column="0" selection-end-line="35" selection-end-column="5" />
|
463
|
+
<folding />
|
464
|
+
</state>
|
465
|
+
</provider>
|
466
|
+
</entry>
|
467
|
+
<entry file="file://$PROJECT_DIR$/app/gravatar/assets/js/md5.min.js">
|
468
|
+
<provider selected="true" editor-type-id="text-editor">
|
469
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="632">
|
470
|
+
<caret line="0" column="3779" selection-start-line="0" selection-start-column="3779" selection-end-line="0" selection-end-column="3779" />
|
471
|
+
<folding />
|
472
|
+
</state>
|
473
|
+
</provider>
|
474
|
+
</entry>
|
475
|
+
<entry file="file://$PROJECT_DIR$/app/gravatar/controllers/main_controller.rb">
|
476
|
+
<provider selected="true" editor-type-id="text-editor">
|
477
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="615">
|
478
|
+
<caret line="26" column="0" selection-start-line="26" selection-start-column="0" selection-end-line="26" selection-end-column="0" />
|
479
|
+
<folding />
|
480
|
+
</state>
|
481
|
+
</provider>
|
482
|
+
</entry>
|
483
|
+
<entry file="file://$PROJECT_DIR$/app/gravatar/views/main/index.html">
|
484
|
+
<provider selected="true" editor-type-id="text-editor">
|
485
|
+
<state vertical-scroll-proportion="-0.625" vertical-offset="0" max-vertical-offset="120">
|
486
|
+
<caret line="1" column="41" selection-start-line="1" selection-start-column="41" selection-end-line="1" selection-end-column="41" />
|
487
|
+
<folding />
|
488
|
+
</state>
|
489
|
+
</provider>
|
490
|
+
</entry>
|
491
|
+
<entry file="file://$PROJECT_DIR$/.gitignore">
|
492
|
+
<provider selected="true" editor-type-id="text-editor">
|
493
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="632">
|
494
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
495
|
+
<folding />
|
496
|
+
</state>
|
497
|
+
</provider>
|
498
|
+
</entry>
|
499
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
500
|
+
<provider selected="true" editor-type-id="text-editor">
|
501
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="150">
|
502
|
+
<caret line="4" column="0" selection-start-line="4" selection-start-column="0" selection-end-line="4" selection-end-column="0" />
|
503
|
+
<folding />
|
504
|
+
</state>
|
505
|
+
</provider>
|
506
|
+
</entry>
|
507
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
508
|
+
<provider selected="true" editor-type-id="text-editor">
|
509
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="15" max-vertical-offset="105">
|
510
|
+
<caret line="1" column="0" selection-start-line="1" selection-start-column="0" selection-end-line="1" selection-end-column="0" />
|
511
|
+
<folding />
|
512
|
+
</state>
|
513
|
+
</provider>
|
514
|
+
</entry>
|
515
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
516
|
+
<provider selected="true" editor-type-id="text-editor">
|
517
|
+
<state vertical-scroll-proportion="-1.2" vertical-offset="0" max-vertical-offset="525">
|
518
|
+
<caret line="2" column="115" selection-start-line="2" selection-start-column="115" selection-end-line="2" selection-end-column="115" />
|
519
|
+
<folding />
|
520
|
+
</state>
|
521
|
+
</provider>
|
522
|
+
</entry>
|
523
|
+
<entry file="file://$PROJECT_DIR$/volt-gravatar.gemspec">
|
524
|
+
<provider selected="true" editor-type-id="text-editor">
|
525
|
+
<state vertical-scroll-proportion="0.47468355" vertical-offset="0" max-vertical-offset="632">
|
526
|
+
<caret line="20" column="51" selection-start-line="20" selection-start-column="51" selection-end-line="20" selection-end-column="51" />
|
527
|
+
<folding />
|
528
|
+
</state>
|
529
|
+
</provider>
|
530
|
+
</entry>
|
531
|
+
</component>
|
532
|
+
</project>
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Volt::Gravatar
|
2
|
+
|
3
|
+
Returns a Gravatar image for the current user's email address and a default image if not assigned or not logged in.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'volt-gravatar'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install volt-gravatar
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
TODO: Write usage instructions here
|
22
|
+
|
23
|
+
## Contributing
|
24
|
+
|
25
|
+
1. Fork it ( http://github.com/[my-github-username]/volt-gravatar/fork )
|
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
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(a){"use strict";function b(a,b){var c=(65535&a)+(65535&b),d=(a>>16)+(b>>16)+(c>>16);return d<<16|65535&c}function c(a,b){return a<<b|a>>>32-b}function d(a,d,e,f,g,h){return b(c(b(b(d,a),b(f,h)),g),e)}function e(a,b,c,e,f,g,h){return d(b&c|~b&e,a,b,f,g,h)}function f(a,b,c,e,f,g,h){return d(b&e|c&~e,a,b,f,g,h)}function g(a,b,c,e,f,g,h){return d(b^c^e,a,b,f,g,h)}function h(a,b,c,e,f,g,h){return d(c^(b|~e),a,b,f,g,h)}function i(a,c){a[c>>5]|=128<<c%32,a[(c+64>>>9<<4)+14]=c;var d,i,j,k,l,m=1732584193,n=-271733879,o=-1732584194,p=271733878;for(d=0;d<a.length;d+=16)i=m,j=n,k=o,l=p,m=e(m,n,o,p,a[d],7,-680876936),p=e(p,m,n,o,a[d+1],12,-389564586),o=e(o,p,m,n,a[d+2],17,606105819),n=e(n,o,p,m,a[d+3],22,-1044525330),m=e(m,n,o,p,a[d+4],7,-176418897),p=e(p,m,n,o,a[d+5],12,1200080426),o=e(o,p,m,n,a[d+6],17,-1473231341),n=e(n,o,p,m,a[d+7],22,-45705983),m=e(m,n,o,p,a[d+8],7,1770035416),p=e(p,m,n,o,a[d+9],12,-1958414417),o=e(o,p,m,n,a[d+10],17,-42063),n=e(n,o,p,m,a[d+11],22,-1990404162),m=e(m,n,o,p,a[d+12],7,1804603682),p=e(p,m,n,o,a[d+13],12,-40341101),o=e(o,p,m,n,a[d+14],17,-1502002290),n=e(n,o,p,m,a[d+15],22,1236535329),m=f(m,n,o,p,a[d+1],5,-165796510),p=f(p,m,n,o,a[d+6],9,-1069501632),o=f(o,p,m,n,a[d+11],14,643717713),n=f(n,o,p,m,a[d],20,-373897302),m=f(m,n,o,p,a[d+5],5,-701558691),p=f(p,m,n,o,a[d+10],9,38016083),o=f(o,p,m,n,a[d+15],14,-660478335),n=f(n,o,p,m,a[d+4],20,-405537848),m=f(m,n,o,p,a[d+9],5,568446438),p=f(p,m,n,o,a[d+14],9,-1019803690),o=f(o,p,m,n,a[d+3],14,-187363961),n=f(n,o,p,m,a[d+8],20,1163531501),m=f(m,n,o,p,a[d+13],5,-1444681467),p=f(p,m,n,o,a[d+2],9,-51403784),o=f(o,p,m,n,a[d+7],14,1735328473),n=f(n,o,p,m,a[d+12],20,-1926607734),m=g(m,n,o,p,a[d+5],4,-378558),p=g(p,m,n,o,a[d+8],11,-2022574463),o=g(o,p,m,n,a[d+11],16,1839030562),n=g(n,o,p,m,a[d+14],23,-35309556),m=g(m,n,o,p,a[d+1],4,-1530992060),p=g(p,m,n,o,a[d+4],11,1272893353),o=g(o,p,m,n,a[d+7],16,-155497632),n=g(n,o,p,m,a[d+10],23,-1094730640),m=g(m,n,o,p,a[d+13],4,681279174),p=g(p,m,n,o,a[d],11,-358537222),o=g(o,p,m,n,a[d+3],16,-722521979),n=g(n,o,p,m,a[d+6],23,76029189),m=g(m,n,o,p,a[d+9],4,-640364487),p=g(p,m,n,o,a[d+12],11,-421815835),o=g(o,p,m,n,a[d+15],16,530742520),n=g(n,o,p,m,a[d+2],23,-995338651),m=h(m,n,o,p,a[d],6,-198630844),p=h(p,m,n,o,a[d+7],10,1126891415),o=h(o,p,m,n,a[d+14],15,-1416354905),n=h(n,o,p,m,a[d+5],21,-57434055),m=h(m,n,o,p,a[d+12],6,1700485571),p=h(p,m,n,o,a[d+3],10,-1894986606),o=h(o,p,m,n,a[d+10],15,-1051523),n=h(n,o,p,m,a[d+1],21,-2054922799),m=h(m,n,o,p,a[d+8],6,1873313359),p=h(p,m,n,o,a[d+15],10,-30611744),o=h(o,p,m,n,a[d+6],15,-1560198380),n=h(n,o,p,m,a[d+13],21,1309151649),m=h(m,n,o,p,a[d+4],6,-145523070),p=h(p,m,n,o,a[d+11],10,-1120210379),o=h(o,p,m,n,a[d+2],15,718787259),n=h(n,o,p,m,a[d+9],21,-343485551),m=b(m,i),n=b(n,j),o=b(o,k),p=b(p,l);return[m,n,o,p]}function j(a){var b,c="";for(b=0;b<32*a.length;b+=8)c+=String.fromCharCode(a[b>>5]>>>b%32&255);return c}function k(a){var b,c=[];for(c[(a.length>>2)-1]=void 0,b=0;b<c.length;b+=1)c[b]=0;for(b=0;b<8*a.length;b+=8)c[b>>5]|=(255&a.charCodeAt(b/8))<<b%32;return c}function l(a){return j(i(k(a),8*a.length))}function m(a,b){var c,d,e=k(a),f=[],g=[];for(f[15]=g[15]=void 0,e.length>16&&(e=i(e,8*a.length)),c=0;16>c;c+=1)f[c]=909522486^e[c],g[c]=1549556828^e[c];return d=i(f.concat(k(b)),512+8*b.length),j(i(g.concat(d),640))}function n(a){var b,c,d="0123456789abcdef",e="";for(c=0;c<a.length;c+=1)b=a.charCodeAt(c),e+=d.charAt(b>>>4&15)+d.charAt(15&b);return e}function o(a){return unescape(encodeURIComponent(a))}function p(a){return l(o(a))}function q(a){return n(p(a))}function r(a,b){return m(o(a),o(b))}function s(a,b){return n(r(a,b))}function t(a,b,c){return b?c?r(b,a):s(b,a):c?p(a):q(a)}"function"==typeof define&&define.amd?define(function(){return t}):a.md5=t}(this);
|
@@ -0,0 +1 @@
|
|
1
|
+
# Component dependencies
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Place any code you want to run when the component is included on the client
|
2
|
+
# or server.
|
3
|
+
|
4
|
+
# To include code only on the client use:
|
5
|
+
# if RUBY_PLATFORM == 'opal'
|
6
|
+
#
|
7
|
+
# To include code only on the server, use:
|
8
|
+
# unless RUBY_PLATFORM == 'opal'
|
9
|
+
# ^^ this will not send compile in code in the conditional to the client.
|
10
|
+
# ^^ this include code required in the conditional.
|
@@ -0,0 +1 @@
|
|
1
|
+
# Component routes
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module Gravatar
|
2
|
+
class MainController < Volt::ModelController
|
3
|
+
def default_image
|
4
|
+
attrs.default ? attrs.default.to_s : 'mm'
|
5
|
+
end
|
6
|
+
|
7
|
+
def image_size
|
8
|
+
attrs.size ? attrs.size.to_i : 80
|
9
|
+
end
|
10
|
+
|
11
|
+
def rating
|
12
|
+
attrs.rating ? attrs.rating : 'pg'
|
13
|
+
end
|
14
|
+
|
15
|
+
def gravatar_image_src
|
16
|
+
Volt.fetch_current_user.then do |user|
|
17
|
+
email_address = user.email.downcase
|
18
|
+
hash = `md5(email_address)`
|
19
|
+
"//www.gravatar.com/avatar/#{hash}.jpg?s=#{image_size.to_s}&d=#{default_image}&r=#{rating}"
|
20
|
+
end.fail do
|
21
|
+
"//www.gravatar.com/avatar/00000000000000000000000000000000.jpg?s=#{size.to_s}&d=#{default_image}&r=#{rating}"
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
|
26
|
+
private
|
27
|
+
|
28
|
+
# the main template contains a #template binding that shows another
|
29
|
+
# template. This is the path to that template. It may change based
|
30
|
+
# on the params._controller and params._action values.
|
31
|
+
def main_path
|
32
|
+
"#{params._component || 'main'}/#{params._controller || 'main'}/#{params._action || 'index'}"
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# If you need to require in code in the gem's app folder, keep in mind that
|
2
|
+
# the app is not on the load path when the gem is required. Use
|
3
|
+
# app/{gemname}/config/initializers/boot.rb to require in client or server
|
4
|
+
# code.
|
5
|
+
#
|
6
|
+
# Also, in volt apps, you typically use the lib folder in the
|
7
|
+
# app/{componentname} folder instead of this lib folder. This lib folder is
|
8
|
+
# for setting up gem code when Bundler.require is called. (or the gem is
|
9
|
+
# required.)
|
10
|
+
#
|
11
|
+
# If you need to configure volt in some way, you can add a Volt.configure block
|
12
|
+
# in this file.
|
13
|
+
|
14
|
+
module Volt
|
15
|
+
module Gravatar
|
16
|
+
# Your code goes here...
|
17
|
+
end
|
18
|
+
end
|
@@ -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 'volt/gravatar/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "volt-gravatar"
|
8
|
+
spec.version = Volt::Gravatar::VERSION
|
9
|
+
spec.authors = ["Bugfish Corp"]
|
10
|
+
spec.email = ["support@bugfish.io"]
|
11
|
+
spec.summary = %q{Gravatar support for Volt}
|
12
|
+
spec.description = %q{Shows a gravatar for the currently logged in user}
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
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 "volt", "~> 0.9.2.0"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
end
|
metadata
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: volt-gravatar
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Bugfish Corp
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-06-02 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: volt
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.9.2.0
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.9.2.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: Shows a gravatar for the currently logged in user
|
42
|
+
email:
|
43
|
+
- support@bugfish.io
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- ".gitignore"
|
49
|
+
- ".idea/scopes/scope_settings.xml"
|
50
|
+
- ".idea/workspace.xml"
|
51
|
+
- Gemfile
|
52
|
+
- README.md
|
53
|
+
- Rakefile
|
54
|
+
- app/gravatar/assets/js/md5.min.js
|
55
|
+
- app/gravatar/config/dependencies.rb
|
56
|
+
- app/gravatar/config/initializers/boot.rb
|
57
|
+
- app/gravatar/config/routes.rb
|
58
|
+
- app/gravatar/controllers/main_controller.rb
|
59
|
+
- app/gravatar/views/main/index.html
|
60
|
+
- lib/volt/gravatar.rb
|
61
|
+
- lib/volt/gravatar/version.rb
|
62
|
+
- volt-gravatar.gemspec
|
63
|
+
homepage: ''
|
64
|
+
licenses:
|
65
|
+
- MIT
|
66
|
+
metadata: {}
|
67
|
+
post_install_message:
|
68
|
+
rdoc_options: []
|
69
|
+
require_paths:
|
70
|
+
- lib
|
71
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
requirements: []
|
82
|
+
rubyforge_project:
|
83
|
+
rubygems_version: 2.4.7
|
84
|
+
signing_key:
|
85
|
+
specification_version: 4
|
86
|
+
summary: Gravatar support for Volt
|
87
|
+
test_files: []
|