csv_uploader_tool 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 +12 -0
- data/.idea/.rakeTasks +7 -0
- data/.idea/csv_uploader_tool.iml +46 -0
- data/.idea/markdown-navigator/profiles_settings.xml +3 -0
- data/.idea/markdown-navigator.xml +72 -0
- data/.idea/misc.xml +4 -0
- data/.idea/modules.xml +8 -0
- data/.idea/vcs.xml +6 -0
- data/.idea/workspace.xml +331 -0
- data/.rspec +3 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +98 -0
- data/LICENSE.txt +21 -0
- data/README.md +43 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/csv_uploader_tool.gemspec +28 -0
- data/lib/csv_uploader_tool/csv_maker.rb +19 -0
- data/lib/csv_uploader_tool/csv_stream.rb +28 -0
- data/lib/csv_uploader_tool/csv_uploader.rb +37 -0
- data/lib/csv_uploader_tool/version.rb +3 -0
- data/lib/csv_uploader_tool.rb +6 -0
- metadata +111 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7a68f75a17c856794c824e558aa3f7134948ed29
|
4
|
+
data.tar.gz: 57e227b2ab56cf3b69d9331a02175f50bb9f3c0b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5ddaa8c6043bb7a54001145558c00e3a4ac685154aa378689de3caa5083498435d15291b4cf90c8c8ec4068a9465db091c00e8719d6f768f9cf828cfe4c46426
|
7
|
+
data.tar.gz: e60abba2f3f58ca8a42560b93b3b3af4637796566056df7db2b65110d9963b631803af2a03fa17c4176c7017c3409fc56914aba8373dbc8bb259dd144a6c73ae
|
data/.gitignore
ADDED
data/.idea/.rakeTasks
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Settings><!--This file was automatically generated by Ruby plugin.
|
3
|
+
You are allowed to:
|
4
|
+
1. Remove rake task
|
5
|
+
2. Add existing rake tasks
|
6
|
+
To add existing rake tasks automatically delete this file and reload the project.
|
7
|
+
--><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build csv_uploader_tool-0.1.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated files" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install csv_uploader_tool-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install csv_uploader_tool-0.1.0.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v0.1.0 and build and push csv_uploader_tool-0.1.0.gem to TODO: Set to 'http://mygemserver.com'" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
|
@@ -0,0 +1,46 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="ModuleRunConfigurationManager">
|
4
|
+
<shared />
|
5
|
+
</component>
|
6
|
+
<component name="NewModuleRootManager">
|
7
|
+
<content url="file://$MODULE_DIR$" />
|
8
|
+
<orderEntry type="inheritedJdk" />
|
9
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
10
|
+
<orderEntry type="library" scope="PROVIDED" name="actionpack (v5.1.4, RVM: ruby-2.3.1) [gem]" level="application" />
|
11
|
+
<orderEntry type="library" scope="PROVIDED" name="actionview (v5.1.4, RVM: ruby-2.3.1) [gem]" level="application" />
|
12
|
+
<orderEntry type="library" scope="PROVIDED" name="activesupport (v5.1.4, RVM: ruby-2.3.1) [gem]" level="application" />
|
13
|
+
<orderEntry type="library" scope="PROVIDED" name="builder (v3.2.3, RVM: ruby-2.3.1) [gem]" level="application" />
|
14
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.16.0.pre.2, RVM: ruby-2.3.1) [gem]" level="application" />
|
15
|
+
<orderEntry type="library" scope="PROVIDED" name="concurrent-ruby (v1.0.5, RVM: ruby-2.3.1) [gem]" level="application" />
|
16
|
+
<orderEntry type="library" scope="PROVIDED" name="crass (v1.0.2, RVM: ruby-2.3.1) [gem]" level="application" />
|
17
|
+
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.3, RVM: ruby-2.3.1) [gem]" level="application" />
|
18
|
+
<orderEntry type="library" scope="PROVIDED" name="erubi (v1.6.1, RVM: ruby-2.3.1) [gem]" level="application" />
|
19
|
+
<orderEntry type="library" scope="PROVIDED" name="ffi (v1.9.18, RVM: ruby-2.3.1) [gem]" level="application" />
|
20
|
+
<orderEntry type="library" scope="PROVIDED" name="i18n (v0.8.6, RVM: ruby-2.3.1) [gem]" level="application" />
|
21
|
+
<orderEntry type="library" scope="PROVIDED" name="jquery-fileupload-rails (v0.4.7, RVM: ruby-2.3.1) [gem]" level="application" />
|
22
|
+
<orderEntry type="library" scope="PROVIDED" name="loofah (v2.1.1, RVM: ruby-2.3.1) [gem]" level="application" />
|
23
|
+
<orderEntry type="library" scope="PROVIDED" name="method_source (v0.9.0, RVM: ruby-2.3.1) [gem]" level="application" />
|
24
|
+
<orderEntry type="library" scope="PROVIDED" name="mini_portile2 (v2.3.0, RVM: ruby-2.3.1) [gem]" level="application" />
|
25
|
+
<orderEntry type="library" scope="PROVIDED" name="minitest (v5.10.3, RVM: ruby-2.3.1) [gem]" level="application" />
|
26
|
+
<orderEntry type="library" scope="PROVIDED" name="nokogiri (v1.8.1, RVM: ruby-2.3.1) [gem]" level="application" />
|
27
|
+
<orderEntry type="library" scope="PROVIDED" name="rack (v2.0.3, RVM: ruby-2.3.1) [gem]" level="application" />
|
28
|
+
<orderEntry type="library" scope="PROVIDED" name="rack-test (v0.7.0, RVM: ruby-2.3.1) [gem]" level="application" />
|
29
|
+
<orderEntry type="library" scope="PROVIDED" name="rails-dom-testing (v2.0.3, RVM: ruby-2.3.1) [gem]" level="application" />
|
30
|
+
<orderEntry type="library" scope="PROVIDED" name="rails-html-sanitizer (v1.0.3, RVM: ruby-2.3.1) [gem]" level="application" />
|
31
|
+
<orderEntry type="library" scope="PROVIDED" name="railties (v5.1.4, RVM: ruby-2.3.1) [gem]" level="application" />
|
32
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, RVM: ruby-2.3.1) [gem]" level="application" />
|
33
|
+
<orderEntry type="library" scope="PROVIDED" name="rb-fsevent (v0.10.2, RVM: ruby-2.3.1) [gem]" level="application" />
|
34
|
+
<orderEntry type="library" scope="PROVIDED" name="rb-inotify (v0.9.10, RVM: ruby-2.3.1) [gem]" level="application" />
|
35
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.6.0, RVM: ruby-2.3.1) [gem]" level="application" />
|
36
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.6.0, RVM: ruby-2.3.1) [gem]" level="application" />
|
37
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.6.0, RVM: ruby-2.3.1) [gem]" level="application" />
|
38
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.6.0, RVM: ruby-2.3.1) [gem]" level="application" />
|
39
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.6.0, RVM: ruby-2.3.1) [gem]" level="application" />
|
40
|
+
<orderEntry type="library" scope="PROVIDED" name="sass (v3.5.1, RVM: ruby-2.3.1) [gem]" level="application" />
|
41
|
+
<orderEntry type="library" scope="PROVIDED" name="sass-listen (v4.0.0, RVM: ruby-2.3.1) [gem]" level="application" />
|
42
|
+
<orderEntry type="library" scope="PROVIDED" name="thor (v0.20.0, RVM: ruby-2.3.1) [gem]" level="application" />
|
43
|
+
<orderEntry type="library" scope="PROVIDED" name="thread_safe (v0.3.6, RVM: ruby-2.3.1) [gem]" level="application" />
|
44
|
+
<orderEntry type="library" scope="PROVIDED" name="tzinfo (v1.2.3, RVM: ruby-2.3.1) [gem]" level="application" />
|
45
|
+
</component>
|
46
|
+
</module>
|
@@ -0,0 +1,72 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="MarkdownProjectSettings">
|
4
|
+
<PreviewSettings splitEditorLayout="SPLIT" splitEditorPreview="PREVIEW" useGrayscaleRendering="false" zoomFactor="1.25" maxImageWidth="0" showGitHubPageIfSynced="false" allowBrowsingInPreview="false" synchronizePreviewPosition="true" highlightPreviewType="NONE" highlightFadeOut="5" highlightOnTyping="true" synchronizeSourcePosition="true" verticallyAlignSourceAndPreviewSyncPosition="true" showSearchHighlightsInPreview="false" showSelectionInPreview="true">
|
5
|
+
<PanelProvider>
|
6
|
+
<provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.panel" providerName="Default - Swing" />
|
7
|
+
</PanelProvider>
|
8
|
+
</PreviewSettings>
|
9
|
+
<ParserSettings gitHubSyntaxChange="false">
|
10
|
+
<PegdownExtensions>
|
11
|
+
<option name="ABBREVIATIONS" value="false" />
|
12
|
+
<option name="ANCHORLINKS" value="true" />
|
13
|
+
<option name="ASIDE" value="false" />
|
14
|
+
<option name="ATXHEADERSPACE" value="true" />
|
15
|
+
<option name="AUTOLINKS" value="true" />
|
16
|
+
<option name="DEFINITIONS" value="false" />
|
17
|
+
<option name="DEFINITION_BREAK_DOUBLE_BLANK_LINE" value="false" />
|
18
|
+
<option name="FENCED_CODE_BLOCKS" value="true" />
|
19
|
+
<option name="FOOTNOTES" value="false" />
|
20
|
+
<option name="HARDWRAPS" value="false" />
|
21
|
+
<option name="HTML_DEEP_PARSER" value="false" />
|
22
|
+
<option name="INSERTED" value="false" />
|
23
|
+
<option name="QUOTES" value="false" />
|
24
|
+
<option name="RELAXEDHRULES" value="true" />
|
25
|
+
<option name="SMARTS" value="false" />
|
26
|
+
<option name="STRIKETHROUGH" value="true" />
|
27
|
+
<option name="SUBSCRIPT" value="false" />
|
28
|
+
<option name="SUPERSCRIPT" value="false" />
|
29
|
+
<option name="SUPPRESS_HTML_BLOCKS" value="false" />
|
30
|
+
<option name="SUPPRESS_INLINE_HTML" value="false" />
|
31
|
+
<option name="TABLES" value="true" />
|
32
|
+
<option name="TASKLISTITEMS" value="true" />
|
33
|
+
<option name="TOC" value="false" />
|
34
|
+
<option name="WIKILINKS" value="true" />
|
35
|
+
</PegdownExtensions>
|
36
|
+
<ParserOptions>
|
37
|
+
<option name="COMMONMARK_LISTS" value="true" />
|
38
|
+
<option name="DUMMY" value="false" />
|
39
|
+
<option name="EMOJI_SHORTCUTS" value="true" />
|
40
|
+
<option name="FLEXMARK_FRONT_MATTER" value="false" />
|
41
|
+
<option name="GFM_LOOSE_BLANK_LINE_AFTER_ITEM_PARA" value="false" />
|
42
|
+
<option name="GFM_TABLE_RENDERING" value="true" />
|
43
|
+
<option name="GITBOOK_URL_ENCODING" value="false" />
|
44
|
+
<option name="GITHUB_EMOJI_URL" value="false" />
|
45
|
+
<option name="GITHUB_LISTS" value="false" />
|
46
|
+
<option name="GITHUB_WIKI_LINKS" value="true" />
|
47
|
+
<option name="JEKYLL_FRONT_MATTER" value="false" />
|
48
|
+
<option name="SIM_TOC_BLANK_LINE_SPACER" value="true" />
|
49
|
+
</ParserOptions>
|
50
|
+
</ParserSettings>
|
51
|
+
<HtmlSettings headerTopEnabled="false" headerBottomEnabled="false" bodyTopEnabled="false" bodyBottomEnabled="false" embedUrlContent="false" addPageHeader="true">
|
52
|
+
<GeneratorProvider>
|
53
|
+
<provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.generator" providerName="Default Swing HTML Generator" />
|
54
|
+
</GeneratorProvider>
|
55
|
+
<headerTop />
|
56
|
+
<headerBottom />
|
57
|
+
<bodyTop />
|
58
|
+
<bodyBottom />
|
59
|
+
</HtmlSettings>
|
60
|
+
<CssSettings previewScheme="UI_SCHEME" cssUri="" isCssUriEnabled="false" isCssTextEnabled="false" isDynamicPageWidth="true">
|
61
|
+
<StylesheetProvider>
|
62
|
+
<provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.css" providerName="Default Swing Stylesheet" />
|
63
|
+
</StylesheetProvider>
|
64
|
+
<ScriptProviders />
|
65
|
+
<cssText />
|
66
|
+
</CssSettings>
|
67
|
+
<HtmlExportSettings updateOnSave="false" parentDir="$ProjectFileDir$" targetDir="$ProjectFileDir$" cssDir="" scriptDir="" plainHtml="false" imageDir="" copyLinkedImages="false" imageUniquifyType="0" targetExt="" useTargetExt="false" noCssNoScripts="false" linkToExportedHtml="true" exportOnSettingsChange="true" regenerateOnProjectOpen="false" />
|
68
|
+
<LinkMapSettings>
|
69
|
+
<textMaps />
|
70
|
+
</LinkMapSettings>
|
71
|
+
</component>
|
72
|
+
</project>
|
data/.idea/misc.xml
ADDED
data/.idea/modules.xml
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ProjectModuleManager">
|
4
|
+
<modules>
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/csv_uploader_tool.iml" filepath="$PROJECT_DIR$/.idea/csv_uploader_tool.iml" />
|
6
|
+
</modules>
|
7
|
+
</component>
|
8
|
+
</project>
|
data/.idea/vcs.xml
ADDED
data/.idea/workspace.xml
ADDED
@@ -0,0 +1,331 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ChangeListManager">
|
4
|
+
<list default="true" id="1fc21d97-f2e1-4849-9a6b-9f11815647c2" name="Default" comment="">
|
5
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/csv_uploader_tool.gemspec" afterPath="$PROJECT_DIR$/csv_uploader_tool.gemspec" />
|
6
|
+
</list>
|
7
|
+
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
8
|
+
<option name="TRACKING_ENABLED" value="true" />
|
9
|
+
<option name="SHOW_DIALOG" value="false" />
|
10
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
11
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
12
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
13
|
+
</component>
|
14
|
+
<component name="FileEditorManager">
|
15
|
+
<leaf>
|
16
|
+
<file leaf-file-name="csv_uploader_tool.gemspec" pinned="false" current-in-tab="true">
|
17
|
+
<entry file="file://$PROJECT_DIR$/csv_uploader_tool.gemspec">
|
18
|
+
<provider selected="true" editor-type-id="text-editor">
|
19
|
+
<state relative-caret-position="269">
|
20
|
+
<caret line="15" column="2" lean-forward="false" selection-start-line="15" selection-start-column="2" selection-end-line="15" selection-end-column="2" />
|
21
|
+
<folding />
|
22
|
+
</state>
|
23
|
+
</provider>
|
24
|
+
</entry>
|
25
|
+
</file>
|
26
|
+
<file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
|
27
|
+
<entry file="file://$PROJECT_DIR$/lib/csv_uploader_tool/version.rb">
|
28
|
+
<provider selected="true" editor-type-id="text-editor">
|
29
|
+
<state relative-caret-position="0">
|
30
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
31
|
+
<folding />
|
32
|
+
</state>
|
33
|
+
</provider>
|
34
|
+
</entry>
|
35
|
+
</file>
|
36
|
+
<file leaf-file-name="csv_maker.rb" pinned="false" current-in-tab="false">
|
37
|
+
<entry file="file://$PROJECT_DIR$/lib/csv_uploader_tool/csv_maker.rb">
|
38
|
+
<provider selected="true" editor-type-id="text-editor">
|
39
|
+
<state relative-caret-position="342">
|
40
|
+
<caret line="18" column="3" lean-forward="false" selection-start-line="18" selection-start-column="3" selection-end-line="18" selection-end-column="3" />
|
41
|
+
<folding />
|
42
|
+
</state>
|
43
|
+
</provider>
|
44
|
+
</entry>
|
45
|
+
</file>
|
46
|
+
<file leaf-file-name="csv_stream.rb" pinned="false" current-in-tab="false">
|
47
|
+
<entry file="file://$PROJECT_DIR$/lib/csv_uploader_tool/csv_stream.rb">
|
48
|
+
<provider selected="true" editor-type-id="text-editor">
|
49
|
+
<state relative-caret-position="532">
|
50
|
+
<caret line="28" column="0" lean-forward="false" selection-start-line="28" selection-start-column="0" selection-end-line="28" selection-end-column="0" />
|
51
|
+
<folding />
|
52
|
+
</state>
|
53
|
+
</provider>
|
54
|
+
</entry>
|
55
|
+
</file>
|
56
|
+
<file leaf-file-name="csv_uploader.rb" pinned="false" current-in-tab="false">
|
57
|
+
<entry file="file://$PROJECT_DIR$/lib/csv_uploader_tool/csv_uploader.rb">
|
58
|
+
<provider selected="true" editor-type-id="text-editor">
|
59
|
+
<state relative-caret-position="380">
|
60
|
+
<caret line="20" column="30" lean-forward="false" selection-start-line="20" selection-start-column="30" selection-end-line="20" selection-end-column="30" />
|
61
|
+
<folding />
|
62
|
+
</state>
|
63
|
+
</provider>
|
64
|
+
</entry>
|
65
|
+
</file>
|
66
|
+
<file leaf-file-name="csv_uploader_tool.rb" pinned="false" current-in-tab="false">
|
67
|
+
<entry file="file://$PROJECT_DIR$/lib/csv_uploader_tool.rb">
|
68
|
+
<provider selected="true" editor-type-id="text-editor">
|
69
|
+
<state relative-caret-position="76">
|
70
|
+
<caret line="4" column="66" lean-forward="false" selection-start-line="4" selection-start-column="66" selection-end-line="4" selection-end-column="66" />
|
71
|
+
<folding />
|
72
|
+
</state>
|
73
|
+
</provider>
|
74
|
+
</entry>
|
75
|
+
</file>
|
76
|
+
<file leaf-file-name="csv_uploader_tool_spec.rb" pinned="false" current-in-tab="false">
|
77
|
+
<entry file="file://$PROJECT_DIR$/spec/csv_uploader_tool_spec.rb">
|
78
|
+
<provider selected="true" editor-type-id="text-editor">
|
79
|
+
<state relative-caret-position="285">
|
80
|
+
<caret line="15" column="3" lean-forward="false" selection-start-line="15" selection-start-column="3" selection-end-line="15" selection-end-column="3" />
|
81
|
+
<folding />
|
82
|
+
</state>
|
83
|
+
</provider>
|
84
|
+
</entry>
|
85
|
+
</file>
|
86
|
+
<file leaf-file-name="Gemfile" pinned="false" current-in-tab="false">
|
87
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
88
|
+
<provider selected="true" editor-type-id="text-editor">
|
89
|
+
<state relative-caret-position="133">
|
90
|
+
<caret line="7" column="29" lean-forward="false" selection-start-line="7" selection-start-column="29" selection-end-line="7" selection-end-column="29" />
|
91
|
+
<folding />
|
92
|
+
</state>
|
93
|
+
</provider>
|
94
|
+
</entry>
|
95
|
+
</file>
|
96
|
+
<file leaf-file-name=".gitignore" pinned="false" current-in-tab="false">
|
97
|
+
<entry file="file://$PROJECT_DIR$/.gitignore">
|
98
|
+
<provider selected="true" editor-type-id="text-editor">
|
99
|
+
<state relative-caret-position="209">
|
100
|
+
<caret line="11" column="5" lean-forward="false" selection-start-line="11" selection-start-column="5" selection-end-line="11" selection-end-column="5" />
|
101
|
+
<folding />
|
102
|
+
</state>
|
103
|
+
</provider>
|
104
|
+
</entry>
|
105
|
+
</file>
|
106
|
+
</leaf>
|
107
|
+
</component>
|
108
|
+
<component name="FileTemplateManagerImpl">
|
109
|
+
<option name="RECENT_TEMPLATES">
|
110
|
+
<list>
|
111
|
+
<option value="Ruby Empty" />
|
112
|
+
</list>
|
113
|
+
</option>
|
114
|
+
</component>
|
115
|
+
<component name="Git.Settings">
|
116
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
117
|
+
</component>
|
118
|
+
<component name="IdeDocumentHistory">
|
119
|
+
<option name="CHANGED_PATHS">
|
120
|
+
<list>
|
121
|
+
<option value="$PROJECT_DIR$/.gitignore" />
|
122
|
+
<option value="$PROJECT_DIR$/lib/csv_uploader_tool/csv_maker.rb" />
|
123
|
+
<option value="$PROJECT_DIR$/lib/csv_uploader_tool/csv_stream.rb" />
|
124
|
+
<option value="$PROJECT_DIR$/lib/csv_uploader_tool/csv_uploader.rb" />
|
125
|
+
<option value="$PROJECT_DIR$/lib/csv_uploader_tool.rb" />
|
126
|
+
<option value="$PROJECT_DIR$/spec/csv_uploader_tool_spec.rb" />
|
127
|
+
<option value="$PROJECT_DIR$/Gemfile" />
|
128
|
+
<option value="$PROJECT_DIR$/csv_uploader_tool.gemspec" />
|
129
|
+
</list>
|
130
|
+
</option>
|
131
|
+
</component>
|
132
|
+
<component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
|
133
|
+
<component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
|
134
|
+
<component name="JsGulpfileManager">
|
135
|
+
<detection-done>true</detection-done>
|
136
|
+
<sorting>DEFINITION_ORDER</sorting>
|
137
|
+
</component>
|
138
|
+
<component name="ProjectFrameBounds" fullScreen="true">
|
139
|
+
<option name="y" value="22" />
|
140
|
+
<option name="width" value="1680" />
|
141
|
+
<option name="height" value="1024" />
|
142
|
+
</component>
|
143
|
+
<component name="ProjectView">
|
144
|
+
<navigator currentView="ProjectPane" proportions="" version="1">
|
145
|
+
<flattenPackages />
|
146
|
+
<showMembers />
|
147
|
+
<showModules />
|
148
|
+
<showLibraryContents />
|
149
|
+
<hideEmptyPackages />
|
150
|
+
<abbreviatePackageNames />
|
151
|
+
<autoscrollToSource />
|
152
|
+
<autoscrollFromSource />
|
153
|
+
<sortByType />
|
154
|
+
<manualOrder />
|
155
|
+
<foldersAlwaysOnTop value="true" />
|
156
|
+
</navigator>
|
157
|
+
<panes>
|
158
|
+
<pane id="Scratches" />
|
159
|
+
<pane id="ProjectPane">
|
160
|
+
<subPane>
|
161
|
+
<expand>
|
162
|
+
<path>
|
163
|
+
<item name="csv_uploader_tool" type="b2602c69:ProjectViewProjectNode" />
|
164
|
+
<item name="csv_uploader_tool" type="462c0819:PsiDirectoryNode" />
|
165
|
+
</path>
|
166
|
+
<path>
|
167
|
+
<item name="csv_uploader_tool" type="b2602c69:ProjectViewProjectNode" />
|
168
|
+
<item name="csv_uploader_tool" type="462c0819:PsiDirectoryNode" />
|
169
|
+
<item name="lib" type="462c0819:PsiDirectoryNode" />
|
170
|
+
</path>
|
171
|
+
<path>
|
172
|
+
<item name="csv_uploader_tool" type="b2602c69:ProjectViewProjectNode" />
|
173
|
+
<item name="csv_uploader_tool" type="462c0819:PsiDirectoryNode" />
|
174
|
+
<item name="lib" type="462c0819:PsiDirectoryNode" />
|
175
|
+
<item name="csv_uploader_tool" type="462c0819:PsiDirectoryNode" />
|
176
|
+
</path>
|
177
|
+
<path>
|
178
|
+
<item name="csv_uploader_tool" type="b2602c69:ProjectViewProjectNode" />
|
179
|
+
<item name="csv_uploader_tool" type="462c0819:PsiDirectoryNode" />
|
180
|
+
<item name="spec" type="462c0819:PsiDirectoryNode" />
|
181
|
+
</path>
|
182
|
+
</expand>
|
183
|
+
<select />
|
184
|
+
</subPane>
|
185
|
+
</pane>
|
186
|
+
<pane id="Scope" />
|
187
|
+
</panes>
|
188
|
+
</component>
|
189
|
+
<component name="PropertiesComponent">
|
190
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
191
|
+
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
192
|
+
<property name="add_unversioned_files" value="true" />
|
193
|
+
</component>
|
194
|
+
<component name="RunDashboard">
|
195
|
+
<option name="ruleStates">
|
196
|
+
<list>
|
197
|
+
<RuleState>
|
198
|
+
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
|
199
|
+
</RuleState>
|
200
|
+
<RuleState>
|
201
|
+
<option name="name" value="StatusDashboardGroupingRule" />
|
202
|
+
</RuleState>
|
203
|
+
</list>
|
204
|
+
</option>
|
205
|
+
</component>
|
206
|
+
<component name="ShelveChangesManager" show_recycled="false">
|
207
|
+
<option name="remove_strategy" value="false" />
|
208
|
+
</component>
|
209
|
+
<component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" />
|
210
|
+
<component name="TaskManager">
|
211
|
+
<task active="true" id="Default" summary="Default task">
|
212
|
+
<changelist id="1fc21d97-f2e1-4849-9a6b-9f11815647c2" name="Default" comment="" />
|
213
|
+
<created>1506574866246</created>
|
214
|
+
<option name="number" value="Default" />
|
215
|
+
<option name="presentableId" value="Default" />
|
216
|
+
<updated>1506574866246</updated>
|
217
|
+
<workItem from="1506574867552" duration="1134000" />
|
218
|
+
</task>
|
219
|
+
<servers />
|
220
|
+
</component>
|
221
|
+
<component name="TimeTrackingManager">
|
222
|
+
<option name="totallyTimeSpent" value="1134000" />
|
223
|
+
</component>
|
224
|
+
<component name="ToolWindowManager">
|
225
|
+
<frame x="0" y="0" width="1680" height="1050" extended-state="0" />
|
226
|
+
<editor active="true" />
|
227
|
+
<layout>
|
228
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
229
|
+
<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" />
|
230
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
231
|
+
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
232
|
+
<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" />
|
233
|
+
<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" />
|
234
|
+
<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" />
|
235
|
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.31362724" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
236
|
+
<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" />
|
237
|
+
<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" />
|
238
|
+
<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" />
|
239
|
+
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
240
|
+
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
241
|
+
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
242
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
243
|
+
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
244
|
+
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
245
|
+
</layout>
|
246
|
+
</component>
|
247
|
+
<component name="TypeScriptGeneratedFilesManager">
|
248
|
+
<option name="version" value="1" />
|
249
|
+
</component>
|
250
|
+
<component name="VcsContentAnnotationSettings">
|
251
|
+
<option name="myLimit" value="2678400000" />
|
252
|
+
</component>
|
253
|
+
<component name="XDebuggerManager">
|
254
|
+
<breakpoint-manager />
|
255
|
+
<watches-manager />
|
256
|
+
</component>
|
257
|
+
<component name="editorHistoryManager">
|
258
|
+
<entry file="file://$PROJECT_DIR$/.gitignore">
|
259
|
+
<provider selected="true" editor-type-id="text-editor">
|
260
|
+
<state relative-caret-position="209">
|
261
|
+
<caret line="11" column="5" lean-forward="false" selection-start-line="11" selection-start-column="5" selection-end-line="11" selection-end-column="5" />
|
262
|
+
<folding />
|
263
|
+
</state>
|
264
|
+
</provider>
|
265
|
+
</entry>
|
266
|
+
<entry file="file://$PROJECT_DIR$/lib/csv_uploader_tool/version.rb">
|
267
|
+
<provider selected="true" editor-type-id="text-editor">
|
268
|
+
<state relative-caret-position="0">
|
269
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
270
|
+
<folding />
|
271
|
+
</state>
|
272
|
+
</provider>
|
273
|
+
</entry>
|
274
|
+
<entry file="file://$PROJECT_DIR$/lib/csv_uploader_tool/csv_maker.rb">
|
275
|
+
<provider selected="true" editor-type-id="text-editor">
|
276
|
+
<state relative-caret-position="342">
|
277
|
+
<caret line="18" column="3" lean-forward="false" selection-start-line="18" selection-start-column="3" selection-end-line="18" selection-end-column="3" />
|
278
|
+
<folding />
|
279
|
+
</state>
|
280
|
+
</provider>
|
281
|
+
</entry>
|
282
|
+
<entry file="file://$PROJECT_DIR$/lib/csv_uploader_tool/csv_stream.rb">
|
283
|
+
<provider selected="true" editor-type-id="text-editor">
|
284
|
+
<state relative-caret-position="532">
|
285
|
+
<caret line="28" column="0" lean-forward="false" selection-start-line="28" selection-start-column="0" selection-end-line="28" selection-end-column="0" />
|
286
|
+
<folding />
|
287
|
+
</state>
|
288
|
+
</provider>
|
289
|
+
</entry>
|
290
|
+
<entry file="file://$PROJECT_DIR$/lib/csv_uploader_tool/csv_uploader.rb">
|
291
|
+
<provider selected="true" editor-type-id="text-editor">
|
292
|
+
<state relative-caret-position="380">
|
293
|
+
<caret line="20" column="30" lean-forward="false" selection-start-line="20" selection-start-column="30" selection-end-line="20" selection-end-column="30" />
|
294
|
+
<folding />
|
295
|
+
</state>
|
296
|
+
</provider>
|
297
|
+
</entry>
|
298
|
+
<entry file="file://$PROJECT_DIR$/lib/csv_uploader_tool.rb">
|
299
|
+
<provider selected="true" editor-type-id="text-editor">
|
300
|
+
<state relative-caret-position="76">
|
301
|
+
<caret line="4" column="66" lean-forward="false" selection-start-line="4" selection-start-column="66" selection-end-line="4" selection-end-column="66" />
|
302
|
+
<folding />
|
303
|
+
</state>
|
304
|
+
</provider>
|
305
|
+
</entry>
|
306
|
+
<entry file="file://$PROJECT_DIR$/spec/csv_uploader_tool_spec.rb">
|
307
|
+
<provider selected="true" editor-type-id="text-editor">
|
308
|
+
<state relative-caret-position="285">
|
309
|
+
<caret line="15" column="3" lean-forward="false" selection-start-line="15" selection-start-column="3" selection-end-line="15" selection-end-column="3" />
|
310
|
+
<folding />
|
311
|
+
</state>
|
312
|
+
</provider>
|
313
|
+
</entry>
|
314
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
315
|
+
<provider selected="true" editor-type-id="text-editor">
|
316
|
+
<state relative-caret-position="133">
|
317
|
+
<caret line="7" column="29" lean-forward="false" selection-start-line="7" selection-start-column="29" selection-end-line="7" selection-end-column="29" />
|
318
|
+
<folding />
|
319
|
+
</state>
|
320
|
+
</provider>
|
321
|
+
</entry>
|
322
|
+
<entry file="file://$PROJECT_DIR$/csv_uploader_tool.gemspec">
|
323
|
+
<provider selected="true" editor-type-id="text-editor">
|
324
|
+
<state relative-caret-position="269">
|
325
|
+
<caret line="15" column="2" lean-forward="false" selection-start-line="15" selection-start-column="2" selection-end-line="15" selection-end-column="2" />
|
326
|
+
<folding />
|
327
|
+
</state>
|
328
|
+
</provider>
|
329
|
+
</entry>
|
330
|
+
</component>
|
331
|
+
</project>
|
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at lemiszewski@gmx.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,98 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
csv_uploader_tool (0.1.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
actionpack (5.1.4)
|
10
|
+
actionview (= 5.1.4)
|
11
|
+
activesupport (= 5.1.4)
|
12
|
+
rack (~> 2.0)
|
13
|
+
rack-test (>= 0.6.3)
|
14
|
+
rails-dom-testing (~> 2.0)
|
15
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
16
|
+
actionview (5.1.4)
|
17
|
+
activesupport (= 5.1.4)
|
18
|
+
builder (~> 3.1)
|
19
|
+
erubi (~> 1.4)
|
20
|
+
rails-dom-testing (~> 2.0)
|
21
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
22
|
+
activesupport (5.1.4)
|
23
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
24
|
+
i18n (~> 0.7)
|
25
|
+
minitest (~> 5.1)
|
26
|
+
tzinfo (~> 1.1)
|
27
|
+
builder (3.2.3)
|
28
|
+
concurrent-ruby (1.0.5)
|
29
|
+
crass (1.0.2)
|
30
|
+
diff-lcs (1.3)
|
31
|
+
erubi (1.6.1)
|
32
|
+
ffi (1.9.18)
|
33
|
+
i18n (0.8.6)
|
34
|
+
jquery-fileupload-rails (0.4.7)
|
35
|
+
actionpack (>= 3.1)
|
36
|
+
railties (>= 3.1)
|
37
|
+
sass (>= 3.2)
|
38
|
+
loofah (2.1.1)
|
39
|
+
crass (~> 1.0.2)
|
40
|
+
nokogiri (>= 1.5.9)
|
41
|
+
method_source (0.9.0)
|
42
|
+
mini_portile2 (2.3.0)
|
43
|
+
minitest (5.10.3)
|
44
|
+
nokogiri (1.8.1)
|
45
|
+
mini_portile2 (~> 2.3.0)
|
46
|
+
rack (2.0.3)
|
47
|
+
rack-test (0.7.0)
|
48
|
+
rack (>= 1.0, < 3)
|
49
|
+
rails-dom-testing (2.0.3)
|
50
|
+
activesupport (>= 4.2.0)
|
51
|
+
nokogiri (>= 1.6)
|
52
|
+
rails-html-sanitizer (1.0.3)
|
53
|
+
loofah (~> 2.0)
|
54
|
+
railties (5.1.4)
|
55
|
+
actionpack (= 5.1.4)
|
56
|
+
activesupport (= 5.1.4)
|
57
|
+
method_source
|
58
|
+
rake (>= 0.8.7)
|
59
|
+
thor (>= 0.18.1, < 2.0)
|
60
|
+
rake (10.5.0)
|
61
|
+
rb-fsevent (0.10.2)
|
62
|
+
rb-inotify (0.9.10)
|
63
|
+
ffi (>= 0.5.0, < 2)
|
64
|
+
rspec (3.6.0)
|
65
|
+
rspec-core (~> 3.6.0)
|
66
|
+
rspec-expectations (~> 3.6.0)
|
67
|
+
rspec-mocks (~> 3.6.0)
|
68
|
+
rspec-core (3.6.0)
|
69
|
+
rspec-support (~> 3.6.0)
|
70
|
+
rspec-expectations (3.6.0)
|
71
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
72
|
+
rspec-support (~> 3.6.0)
|
73
|
+
rspec-mocks (3.6.0)
|
74
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
75
|
+
rspec-support (~> 3.6.0)
|
76
|
+
rspec-support (3.6.0)
|
77
|
+
sass (3.5.1)
|
78
|
+
sass-listen (~> 4.0.0)
|
79
|
+
sass-listen (4.0.0)
|
80
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
81
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
82
|
+
thor (0.20.0)
|
83
|
+
thread_safe (0.3.6)
|
84
|
+
tzinfo (1.2.3)
|
85
|
+
thread_safe (~> 0.1)
|
86
|
+
|
87
|
+
PLATFORMS
|
88
|
+
ruby
|
89
|
+
|
90
|
+
DEPENDENCIES
|
91
|
+
bundler (~> 1.16.a)
|
92
|
+
csv_uploader_tool!
|
93
|
+
jquery-fileupload-rails
|
94
|
+
rake (~> 10.0)
|
95
|
+
rspec (~> 3.0)
|
96
|
+
|
97
|
+
BUNDLED WITH
|
98
|
+
1.16.0.pre.2
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Jakub41
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# CsvUploaderTool
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/csv_uploader_tool`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'csv_uploader_tool'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install csv_uploader_tool
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/csv_uploader_tool. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
|
+
|
37
|
+
## License
|
38
|
+
|
39
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
40
|
+
|
41
|
+
## Code of Conduct
|
42
|
+
|
43
|
+
Everyone interacting in the CsvUploaderTool project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/csv_uploader_tool/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "csv_uploader_tool"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "csv_uploader_tool/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "csv_uploader_tool"
|
8
|
+
spec.version = CsvUploaderTool::VERSION
|
9
|
+
spec.authors = ["Jakub41"]
|
10
|
+
spec.email = ["lemiszewski@gmx.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{A tool for upload CSV files.}
|
13
|
+
spec.description = %q{This tool is for upload CSV files.}
|
14
|
+
spec.homepage = "https://github.com/Jakub41/csv_uploader_tool"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
|
18
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
19
|
+
f.match(%r{^(test|spec|features)/})
|
20
|
+
end
|
21
|
+
spec.bindir = "exe"
|
22
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
|
+
spec.require_paths = ["lib"]
|
24
|
+
|
25
|
+
spec.add_development_dependency "bundler", "~> 1.16.a"
|
26
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
27
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
28
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module CsvMaker
|
2
|
+
CHARACTERS_SET = [('a'..'z'), ('A'..'Z')].map{|i| i.to_a}.flatten
|
3
|
+
|
4
|
+
def self.create_file(dir, original_filename)
|
5
|
+
filename = rnd_prefix << sanitize_filename(original_filename)
|
6
|
+
path = File.join(dir, filename)
|
7
|
+
|
8
|
+
File.new(path, 'wb')
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.sanitize_filename(filename)
|
12
|
+
just_filename = File.basename(filename)
|
13
|
+
just_filename.gsub(/[^\w\.\-]/,'_')
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.rnd_prefix
|
17
|
+
(0..5).map { CHARACTERS_SET[rand(CHARACTERS_SET.length)] }.join << '_'
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
class CsvStream
|
2
|
+
|
3
|
+
BUFFER_SIZE = 1024
|
4
|
+
|
5
|
+
def initialize(file)
|
6
|
+
@file = file
|
7
|
+
end
|
8
|
+
|
9
|
+
class << self
|
10
|
+
def write(stream, dir, filename)
|
11
|
+
file = CsvMaker.create_file(dir, filename)
|
12
|
+
file_stream = CsvStream.new(file)
|
13
|
+
file_stream.write stream
|
14
|
+
file_stream.close
|
15
|
+
file.path
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
def write(stream)
|
20
|
+
while(bytes = stream.read(BUFFER_SIZE))
|
21
|
+
@file.write bytes
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def close
|
26
|
+
@file.close unless @file.closed?
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
class CsvUploader
|
2
|
+
|
3
|
+
attr_reader :dir
|
4
|
+
|
5
|
+
def initialize(dir)
|
6
|
+
self.class.mkdir dir
|
7
|
+
@dir = dir
|
8
|
+
end
|
9
|
+
|
10
|
+
class << self
|
11
|
+
def create(dir = 'public/upload')
|
12
|
+
CsvUploader.new dir
|
13
|
+
end
|
14
|
+
|
15
|
+
def mkdir(dir)
|
16
|
+
FileUtils.mkpath dir unless File.directory?(dir)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def save(stream)
|
21
|
+
file = save_stream(stream)
|
22
|
+
yield file if block_given?
|
23
|
+
end
|
24
|
+
|
25
|
+
protected
|
26
|
+
def save_stream(stream)
|
27
|
+
if stream.is_a? Hash
|
28
|
+
return write_stream(stream[:tempfile], stream[:filename])
|
29
|
+
end
|
30
|
+
write_stream(stream, stream.original_filename) if stream.respond_to? :original_filename
|
31
|
+
end
|
32
|
+
|
33
|
+
def write_stream(stream, filename)
|
34
|
+
CsvStream.write(stream, @dir, filename)
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
metadata
ADDED
@@ -0,0 +1,111 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: csv_uploader_tool
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jakub41
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-09-28 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.16.a
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.16.a
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
description: This tool is for upload CSV files.
|
56
|
+
email:
|
57
|
+
- lemiszewski@gmx.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- ".gitignore"
|
63
|
+
- ".idea/.rakeTasks"
|
64
|
+
- ".idea/csv_uploader_tool.iml"
|
65
|
+
- ".idea/markdown-navigator.xml"
|
66
|
+
- ".idea/markdown-navigator/profiles_settings.xml"
|
67
|
+
- ".idea/misc.xml"
|
68
|
+
- ".idea/modules.xml"
|
69
|
+
- ".idea/vcs.xml"
|
70
|
+
- ".idea/workspace.xml"
|
71
|
+
- ".rspec"
|
72
|
+
- ".travis.yml"
|
73
|
+
- CODE_OF_CONDUCT.md
|
74
|
+
- Gemfile
|
75
|
+
- Gemfile.lock
|
76
|
+
- LICENSE.txt
|
77
|
+
- README.md
|
78
|
+
- Rakefile
|
79
|
+
- bin/console
|
80
|
+
- bin/setup
|
81
|
+
- csv_uploader_tool.gemspec
|
82
|
+
- lib/csv_uploader_tool.rb
|
83
|
+
- lib/csv_uploader_tool/csv_maker.rb
|
84
|
+
- lib/csv_uploader_tool/csv_stream.rb
|
85
|
+
- lib/csv_uploader_tool/csv_uploader.rb
|
86
|
+
- lib/csv_uploader_tool/version.rb
|
87
|
+
homepage: https://github.com/Jakub41/csv_uploader_tool
|
88
|
+
licenses:
|
89
|
+
- MIT
|
90
|
+
metadata: {}
|
91
|
+
post_install_message:
|
92
|
+
rdoc_options: []
|
93
|
+
require_paths:
|
94
|
+
- lib
|
95
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0'
|
100
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
requirements: []
|
106
|
+
rubyforge_project:
|
107
|
+
rubygems_version: 2.6.13
|
108
|
+
signing_key:
|
109
|
+
specification_version: 4
|
110
|
+
summary: A tool for upload CSV files.
|
111
|
+
test_files: []
|