upload_documents_tool 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f9e5a78462024a7dcaa1da6dad4c08dc1398d3bc
4
- data.tar.gz: 995a237af7316a62d3ff3624ca6c6cf6d30e8810
3
+ metadata.gz: d8b8d0e214fa11e9271e57aa9fe216f7c0c12dda
4
+ data.tar.gz: 4b6893c3b060bfecb955ab8d7154550002952cd4
5
5
  SHA512:
6
- metadata.gz: 1b849b13b5a988a9f6120adc6cfd6a3896143e51e775bcd69c56351ba8c3071b491cdd16c733b90b408010771f78303102c93aec650e15a0db02f328371e2548
7
- data.tar.gz: 41df7997537be087266ba02f7614352ffc44b0f16ca14bc30d3f94cb37b185f229f155866e1a7d88505b0000ac52afc3a85a41a76f93961abee8bef75471812e
6
+ metadata.gz: c77e02e3e3d770eca6822568e5a2c0571eaf18a073d8eeb13b7151ffdc4b0f84e3b51931fcc5c231f06e7bc469d62de61f4936fad3f6fd59b3e47b290e5677bc
7
+ data.tar.gz: 907aea3805312e8a9f3de2598328c13f46d9b156da6ae73c442d0f601a2e9f64b9a3c1d7a7496dfcf999cfd8d46eabb16bee9a29dbd299307bb0aaddc50fb96c
data/.idea/workspace.xml CHANGED
@@ -2,7 +2,8 @@
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
4
  <list default="true" id="df46d33f-74ef-431f-8aed-cd7454e07a46" name="Default" comment="">
5
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/upload_documents_tool.gemspec" afterPath="$PROJECT_DIR$/upload_documents_tool.gemspec" />
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/upload_documents_tool.rb" afterPath="$PROJECT_DIR$/lib/upload_documents_tool.rb" />
6
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/upload_documents_tool/version.rb" afterPath="$PROJECT_DIR$/lib/upload_documents_tool/version.rb" />
6
7
  </list>
7
8
  <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
8
9
  <option name="TRACKING_ENABLED" value="true" />
@@ -23,7 +24,7 @@
23
24
  </provider>
24
25
  </entry>
25
26
  </file>
26
- <file leaf-file-name="upload_documents_tool.gemspec" pinned="false" current-in-tab="true">
27
+ <file leaf-file-name="upload_documents_tool.gemspec" pinned="false" current-in-tab="false">
27
28
  <entry file="file://$PROJECT_DIR$/upload_documents_tool.gemspec">
28
29
  <provider selected="true" editor-type-id="text-editor">
29
30
  <state relative-caret-position="261">
@@ -33,6 +34,36 @@
33
34
  </provider>
34
35
  </entry>
35
36
  </file>
37
+ <file leaf-file-name="upload_documents_tool_spec.rb" pinned="false" current-in-tab="false">
38
+ <entry file="file://$PROJECT_DIR$/spec/upload_documents_tool_spec.rb">
39
+ <provider selected="true" editor-type-id="text-editor">
40
+ <state relative-caret-position="0">
41
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
42
+ <folding />
43
+ </state>
44
+ </provider>
45
+ </entry>
46
+ </file>
47
+ <file leaf-file-name="upload_documents_tool.rb" pinned="false" current-in-tab="false">
48
+ <entry file="file://$PROJECT_DIR$/lib/upload_documents_tool.rb">
49
+ <provider selected="true" editor-type-id="text-editor">
50
+ <state relative-caret-position="165">
51
+ <caret line="18" column="50" lean-forward="false" selection-start-line="18" selection-start-column="50" selection-end-line="18" selection-end-column="50" />
52
+ <folding />
53
+ </state>
54
+ </provider>
55
+ </entry>
56
+ </file>
57
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="true">
58
+ <entry file="file://$PROJECT_DIR$/lib/upload_documents_tool/version.rb">
59
+ <provider selected="true" editor-type-id="text-editor">
60
+ <state relative-caret-position="19">
61
+ <caret line="1" column="18" lean-forward="false" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
62
+ <folding />
63
+ </state>
64
+ </provider>
65
+ </entry>
66
+ </file>
36
67
  <file leaf-file-name="_documents.html.erb" pinned="false" current-in-tab="false">
37
68
  <entry file="file://$PROJECT_DIR$/app/views/upload_documents_tool/_documents.html.erb">
38
69
  <provider selected="true" editor-type-id="text-editor">
@@ -84,7 +115,6 @@
84
115
  <list>
85
116
  <option value="$PROJECT_DIR$/.gitignore" />
86
117
  <option value="$PROJECT_DIR$/app/assets/stylesheets/upload_document_tool.scss" />
87
- <option value="$PROJECT_DIR$/lib/upload_documents_tool.rb" />
88
118
  <option value="$PROJECT_DIR$/lib/upload_documents_tool/validators/attachment_content_type_validator.rb" />
89
119
  <option value="$PROJECT_DIR$/lib/upload_documents_tool/validators.rb" />
90
120
  <option value="$PROJECT_DIR$/app/assets/javascripts/documents.coffee" />
@@ -95,6 +125,8 @@
95
125
  <option value="$PROJECT_DIR$/app/views/upload_documents_tool/_form_error.html.erb" />
96
126
  <option value="$PROJECT_DIR$/app/helpers/upload_document_tool_helper.rb" />
97
127
  <option value="$PROJECT_DIR$/upload_documents_tool.gemspec" />
128
+ <option value="$PROJECT_DIR$/lib/upload_documents_tool.rb" />
129
+ <option value="$PROJECT_DIR$/lib/upload_documents_tool/version.rb" />
98
130
  </list>
99
131
  </option>
100
132
  </component>
@@ -135,7 +167,13 @@
135
167
  <path>
136
168
  <item name="upload_documents_tool" type="b2602c69:ProjectViewProjectNode" />
137
169
  <item name="upload_documents_tool" type="462c0819:PsiDirectoryNode" />
138
- <item name="spec" type="462c0819:PsiDirectoryNode" />
170
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
171
+ </path>
172
+ <path>
173
+ <item name="upload_documents_tool" type="b2602c69:ProjectViewProjectNode" />
174
+ <item name="upload_documents_tool" type="462c0819:PsiDirectoryNode" />
175
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
176
+ <item name="upload_documents_tool" type="462c0819:PsiDirectoryNode" />
139
177
  </path>
140
178
  </expand>
141
179
  <select />
@@ -177,15 +215,16 @@
177
215
  <option name="number" value="Default" />
178
216
  <option name="presentableId" value="Default" />
179
217
  <updated>1507017759027</updated>
180
- <workItem from="1507017760194" duration="6682000" />
218
+ <workItem from="1507017760194" duration="6915000" />
181
219
  </task>
182
220
  <servers />
183
221
  </component>
184
222
  <component name="TimeTrackingManager">
185
- <option name="totallyTimeSpent" value="6682000" />
223
+ <option name="totallyTimeSpent" value="6915000" />
186
224
  </component>
187
225
  <component name="ToolWindowManager">
188
226
  <frame x="1" y="22" width="1920" height="1054" extended-state="0" />
227
+ <editor active="true" />
189
228
  <layout>
190
229
  <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.2414347" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
191
230
  <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
@@ -194,7 +233,7 @@
194
233
  <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
195
234
  <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
196
235
  <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
197
- <window_info id="Terminal" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.22040816" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
236
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.22040816" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
198
237
  <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
199
238
  <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
200
239
  <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
@@ -262,14 +301,6 @@
262
301
  </state>
263
302
  </provider>
264
303
  </entry>
265
- <entry file="file://$PROJECT_DIR$/lib/upload_documents_tool.rb">
266
- <provider selected="true" editor-type-id="text-editor">
267
- <state relative-caret-position="874">
268
- <caret line="46" column="0" lean-forward="true" selection-start-line="46" selection-start-column="0" selection-end-line="46" selection-end-column="0" />
269
- <folding />
270
- </state>
271
- </provider>
272
- </entry>
273
304
  <entry file="file://$PROJECT_DIR$/app/assets/javascripts/documents.coffee">
274
305
  <provider selected="true" editor-type-id="text-editor">
275
306
  <state relative-caret-position="608">
@@ -296,14 +327,6 @@
296
327
  </state>
297
328
  </provider>
298
329
  </entry>
299
- <entry file="file://$PROJECT_DIR$/spec/upload_documents_tool_spec.rb">
300
- <provider selected="true" editor-type-id="text-editor">
301
- <state relative-caret-position="0">
302
- <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
303
- <folding />
304
- </state>
305
- </provider>
306
- </entry>
307
330
  <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
308
331
  <provider selected="true" editor-type-id="text-editor">
309
332
  <state relative-caret-position="0">
@@ -352,5 +375,29 @@
352
375
  </state>
353
376
  </provider>
354
377
  </entry>
378
+ <entry file="file://$PROJECT_DIR$/spec/upload_documents_tool_spec.rb">
379
+ <provider selected="true" editor-type-id="text-editor">
380
+ <state relative-caret-position="0">
381
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
382
+ <folding />
383
+ </state>
384
+ </provider>
385
+ </entry>
386
+ <entry file="file://$PROJECT_DIR$/lib/upload_documents_tool.rb">
387
+ <provider selected="true" editor-type-id="text-editor">
388
+ <state relative-caret-position="165">
389
+ <caret line="18" column="50" lean-forward="false" selection-start-line="18" selection-start-column="50" selection-end-line="18" selection-end-column="50" />
390
+ <folding />
391
+ </state>
392
+ </provider>
393
+ </entry>
394
+ <entry file="file://$PROJECT_DIR$/lib/upload_documents_tool/version.rb">
395
+ <provider selected="true" editor-type-id="text-editor">
396
+ <state relative-caret-position="19">
397
+ <caret line="1" column="18" lean-forward="false" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
398
+ <folding />
399
+ </state>
400
+ </provider>
401
+ </entry>
355
402
  </component>
356
403
  </project>
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- upload_documents_tool (0.1.0)
4
+ upload_documents_tool (0.1.1)
5
5
  bootstrap-kaminari-views (~> 0.0.5)
6
6
  bootstrap-sass
7
7
  font-awesome-sass
@@ -1,3 +1,3 @@
1
1
  module UploadDocumentsTool
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -16,7 +16,7 @@ module UploadDocumentsTool
16
16
  end
17
17
 
18
18
  def upload_local
19
- path = "#{Rails.root}/public/uploads/document"
19
+ path = "#{Rails.root}/public/uploads/documents"
20
20
  FileUtils.mkdir_p(path) unless File.exists?(path)
21
21
  FileUtils.copy(@file.tempfile, path)
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: upload_documents_tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jakub41