csv_uploader_widget 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: df08ad5ec1d82ee16995561b4e7c7e581a6a97aa
4
+ data.tar.gz: 086649dbf71dfdfe0efe01ece678d54016b97d63
5
+ SHA512:
6
+ metadata.gz: 079e51a09078d20c48b5541b9d44cef79d56a513970dbe2183319aa4cda1b46e4bcb2fef97c10f7e9e963a277d7d5fd185b5f3b0bf5c48e34390d87065786e85
7
+ data.tar.gz: b0f2704e74b01b0f6c012fc703c46bb7251a992a7df2673379237e1565a65d27bbe58d9badc67f655da1b601ad947f4be2159b91408667e9d683cdc8bf32b91d
data/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+ *.gem
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_widget-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_widget-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install csv_uploader_widget-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_widget-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,19 @@
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="bundler (v1.16.0.pre.2, RVM: ruby-2.3.1) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.3, RVM: ruby-2.3.1) [gem]" level="application" />
12
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, RVM: ruby-2.3.1) [gem]" level="application" />
13
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v3.6.0, RVM: ruby-2.3.1) [gem]" level="application" />
14
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.6.0, RVM: ruby-2.3.1) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.6.0, RVM: ruby-2.3.1) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.6.0, RVM: ruby-2.3.1) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.6.0, RVM: ruby-2.3.1) [gem]" level="application" />
18
+ </component>
19
+ </module>
@@ -0,0 +1,3 @@
1
+ <component name="MarkdownNavigator.ProfileManager">
2
+ <settings default="" pdf-export="" />
3
+ </component>
@@ -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
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.3.1" project-jdk-type="RUBY_SDK" />
4
+ </project>
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_widget.iml" filepath="$PROJECT_DIR$/.idea/csv_uploader_widget.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
data/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,274 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="0dfab18c-6fd8-4a2a-b67c-38a6e537ee34" name="Default" comment="">
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/csv_uploader_widget.gemspec" afterPath="$PROJECT_DIR$/csv_uploader_widget.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_widget.gemspec" pinned="false" current-in-tab="true">
17
+ <entry file="file://$PROJECT_DIR$/csv_uploader_widget.gemspec">
18
+ <provider selected="true" editor-type-id="text-editor">
19
+ <state relative-caret-position="285">
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="Gemfile" pinned="false" current-in-tab="false">
27
+ <entry file="file://$PROJECT_DIR$/Gemfile">
28
+ <provider selected="true" editor-type-id="text-editor">
29
+ <state relative-caret-position="133">
30
+ <caret line="7" column="0" lean-forward="false" selection-start-line="7" selection-start-column="0" selection-end-line="7" selection-end-column="0" />
31
+ <folding />
32
+ </state>
33
+ </provider>
34
+ </entry>
35
+ </file>
36
+ <file leaf-file-name="csv_uploader_widget.rb" pinned="false" current-in-tab="false">
37
+ <entry file="file://$PROJECT_DIR$/lib/csv_uploader_widget.rb">
38
+ <provider selected="true" editor-type-id="text-editor">
39
+ <state relative-caret-position="741">
40
+ <caret line="39" column="3" lean-forward="false" selection-start-line="39" selection-start-column="3" selection-end-line="39" selection-end-column="3" />
41
+ <folding />
42
+ </state>
43
+ </provider>
44
+ </entry>
45
+ </file>
46
+ <file leaf-file-name="csv_uploader_widget_spec.rb" pinned="false" current-in-tab="false">
47
+ <entry file="file://$PROJECT_DIR$/spec/csv_uploader_widget_spec.rb">
48
+ <provider selected="true" editor-type-id="text-editor">
49
+ <state relative-caret-position="0">
50
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
51
+ <folding />
52
+ </state>
53
+ </provider>
54
+ </entry>
55
+ </file>
56
+ <file leaf-file-name="spec_helper.rb" pinned="false" current-in-tab="false">
57
+ <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
58
+ <provider selected="true" editor-type-id="text-editor">
59
+ <state relative-caret-position="0">
60
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
61
+ <folding />
62
+ </state>
63
+ </provider>
64
+ </entry>
65
+ </file>
66
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
67
+ <entry file="file://$PROJECT_DIR$/lib/csv_uploader_widget/version.rb">
68
+ <provider selected="true" editor-type-id="text-editor">
69
+ <state relative-caret-position="0">
70
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
71
+ <folding />
72
+ </state>
73
+ </provider>
74
+ </entry>
75
+ </file>
76
+ </leaf>
77
+ </component>
78
+ <component name="Git.Settings">
79
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
80
+ </component>
81
+ <component name="IdeDocumentHistory">
82
+ <option name="CHANGED_PATHS">
83
+ <list>
84
+ <option value="$PROJECT_DIR$/.gitignore" />
85
+ <option value="$PROJECT_DIR$/Gemfile" />
86
+ <option value="$PROJECT_DIR$/lib/csv_uploader_widget.rb" />
87
+ <option value="$PROJECT_DIR$/csv_uploader_widget.gemspec" />
88
+ </list>
89
+ </option>
90
+ </component>
91
+ <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
92
+ <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
93
+ <component name="JsGulpfileManager">
94
+ <detection-done>true</detection-done>
95
+ <sorting>DEFINITION_ORDER</sorting>
96
+ </component>
97
+ <component name="ProjectFrameBounds" extendedState="6">
98
+ <option name="y" value="22" />
99
+ <option name="width" value="1680" />
100
+ <option name="height" value="1024" />
101
+ </component>
102
+ <component name="ProjectView">
103
+ <navigator currentView="ProjectPane" proportions="" version="1">
104
+ <flattenPackages />
105
+ <showMembers />
106
+ <showModules />
107
+ <showLibraryContents />
108
+ <hideEmptyPackages />
109
+ <abbreviatePackageNames />
110
+ <autoscrollToSource />
111
+ <autoscrollFromSource />
112
+ <sortByType />
113
+ <manualOrder />
114
+ <foldersAlwaysOnTop value="true" />
115
+ </navigator>
116
+ <panes>
117
+ <pane id="Scope" />
118
+ <pane id="Scratches" />
119
+ <pane id="ProjectPane">
120
+ <subPane>
121
+ <expand>
122
+ <path>
123
+ <item name="csv_uploader_widget" type="b2602c69:ProjectViewProjectNode" />
124
+ <item name="csv_uploader_widget" type="462c0819:PsiDirectoryNode" />
125
+ </path>
126
+ <path>
127
+ <item name="csv_uploader_widget" type="b2602c69:ProjectViewProjectNode" />
128
+ <item name="csv_uploader_widget" type="462c0819:PsiDirectoryNode" />
129
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
130
+ </path>
131
+ <path>
132
+ <item name="csv_uploader_widget" type="b2602c69:ProjectViewProjectNode" />
133
+ <item name="csv_uploader_widget" type="462c0819:PsiDirectoryNode" />
134
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
135
+ <item name="csv_uploader_widget" type="462c0819:PsiDirectoryNode" />
136
+ </path>
137
+ <path>
138
+ <item name="csv_uploader_widget" type="b2602c69:ProjectViewProjectNode" />
139
+ <item name="csv_uploader_widget" type="462c0819:PsiDirectoryNode" />
140
+ <item name="spec" type="462c0819:PsiDirectoryNode" />
141
+ </path>
142
+ </expand>
143
+ <select />
144
+ </subPane>
145
+ </pane>
146
+ </panes>
147
+ </component>
148
+ <component name="PropertiesComponent">
149
+ <property name="WebServerToolWindowFactoryState" value="false" />
150
+ <property name="last_opened_file_path" value="$PROJECT_DIR$" />
151
+ <property name="add_unversioned_files" value="true" />
152
+ </component>
153
+ <component name="RunDashboard">
154
+ <option name="ruleStates">
155
+ <list>
156
+ <RuleState>
157
+ <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
158
+ </RuleState>
159
+ <RuleState>
160
+ <option name="name" value="StatusDashboardGroupingRule" />
161
+ </RuleState>
162
+ </list>
163
+ </option>
164
+ </component>
165
+ <component name="ShelveChangesManager" show_recycled="false">
166
+ <option name="remove_strategy" value="false" />
167
+ </component>
168
+ <component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" />
169
+ <component name="TaskManager">
170
+ <task active="true" id="Default" summary="Default task">
171
+ <changelist id="0dfab18c-6fd8-4a2a-b67c-38a6e537ee34" name="Default" comment="" />
172
+ <created>1506549417682</created>
173
+ <option name="number" value="Default" />
174
+ <option name="presentableId" value="Default" />
175
+ <updated>1506549417682</updated>
176
+ <workItem from="1506549419089" duration="1549000" />
177
+ </task>
178
+ <servers />
179
+ </component>
180
+ <component name="TimeTrackingManager">
181
+ <option name="totallyTimeSpent" value="1549000" />
182
+ </component>
183
+ <component name="ToolWindowManager">
184
+ <frame x="0" y="22" width="1680" height="1024" extended-state="6" />
185
+ <editor active="true" />
186
+ <layout>
187
+ <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" />
188
+ <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" />
189
+ <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" />
190
+ <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" />
191
+ <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" />
192
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32947367" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
193
+ <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" />
194
+ <window_info id="Terminal" 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
+ <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" />
196
+ <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" />
197
+ <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" />
198
+ <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" />
199
+ <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" />
200
+ <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" />
201
+ <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" />
202
+ <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" />
203
+ <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" />
204
+ </layout>
205
+ </component>
206
+ <component name="TypeScriptGeneratedFilesManager">
207
+ <option name="version" value="1" />
208
+ </component>
209
+ <component name="VcsContentAnnotationSettings">
210
+ <option name="myLimit" value="2678400000" />
211
+ </component>
212
+ <component name="XDebuggerManager">
213
+ <breakpoint-manager />
214
+ <watches-manager />
215
+ </component>
216
+ <component name="editorHistoryManager">
217
+ <entry file="file://$PROJECT_DIR$/.gitignore">
218
+ <provider selected="true" editor-type-id="text-editor">
219
+ <state relative-caret-position="209">
220
+ <caret line="11" column="5" lean-forward="true" selection-start-line="11" selection-start-column="5" selection-end-line="11" selection-end-column="5" />
221
+ <folding />
222
+ </state>
223
+ </provider>
224
+ </entry>
225
+ <entry file="file://$PROJECT_DIR$/spec/csv_uploader_widget_spec.rb">
226
+ <provider selected="true" editor-type-id="text-editor">
227
+ <state relative-caret-position="0">
228
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
229
+ <folding />
230
+ </state>
231
+ </provider>
232
+ </entry>
233
+ <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
234
+ <provider selected="true" editor-type-id="text-editor">
235
+ <state relative-caret-position="0">
236
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
237
+ <folding />
238
+ </state>
239
+ </provider>
240
+ </entry>
241
+ <entry file="file://$PROJECT_DIR$/lib/csv_uploader_widget/version.rb">
242
+ <provider selected="true" editor-type-id="text-editor">
243
+ <state relative-caret-position="0">
244
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
245
+ <folding />
246
+ </state>
247
+ </provider>
248
+ </entry>
249
+ <entry file="file://$PROJECT_DIR$/lib/csv_uploader_widget.rb">
250
+ <provider selected="true" editor-type-id="text-editor">
251
+ <state relative-caret-position="741">
252
+ <caret line="39" column="3" lean-forward="false" selection-start-line="39" selection-start-column="3" selection-end-line="39" selection-end-column="3" />
253
+ <folding />
254
+ </state>
255
+ </provider>
256
+ </entry>
257
+ <entry file="file://$PROJECT_DIR$/Gemfile">
258
+ <provider selected="true" editor-type-id="text-editor">
259
+ <state relative-caret-position="133">
260
+ <caret line="7" column="0" lean-forward="false" selection-start-line="7" selection-start-column="0" selection-end-line="7" selection-end-column="0" />
261
+ <folding />
262
+ </state>
263
+ </provider>
264
+ </entry>
265
+ <entry file="file://$PROJECT_DIR$/csv_uploader_widget.gemspec">
266
+ <provider selected="true" editor-type-id="text-editor">
267
+ <state relative-caret-position="285">
268
+ <caret line="15" column="2" lean-forward="false" selection-start-line="15" selection-start-column="2" selection-end-line="15" selection-end-column="2" />
269
+ <folding />
270
+ </state>
271
+ </provider>
272
+ </entry>
273
+ </component>
274
+ </project>
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.1
5
+ before_install: gem install bundler -v 1.16.0.pre.2
@@ -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
@@ -0,0 +1,7 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in csv_uploader_widget.gemspec
6
+ gemspec
7
+
data/Gemfile.lock ADDED
@@ -0,0 +1,35 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ csv_uploader_widget (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ diff-lcs (1.3)
10
+ rake (10.5.0)
11
+ rspec (3.6.0)
12
+ rspec-core (~> 3.6.0)
13
+ rspec-expectations (~> 3.6.0)
14
+ rspec-mocks (~> 3.6.0)
15
+ rspec-core (3.6.0)
16
+ rspec-support (~> 3.6.0)
17
+ rspec-expectations (3.6.0)
18
+ diff-lcs (>= 1.2.0, < 2.0)
19
+ rspec-support (~> 3.6.0)
20
+ rspec-mocks (3.6.0)
21
+ diff-lcs (>= 1.2.0, < 2.0)
22
+ rspec-support (~> 3.6.0)
23
+ rspec-support (3.6.0)
24
+
25
+ PLATFORMS
26
+ ruby
27
+
28
+ DEPENDENCIES
29
+ bundler (~> 1.16.a)
30
+ csv_uploader_widget!
31
+ rake (~> 10.0)
32
+ rspec (~> 3.0)
33
+
34
+ BUNDLED WITH
35
+ 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
+ # CsvUploaderWidget
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_widget`. 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_widget'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install csv_uploader_widget
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_widget. 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 CsvUploaderWidget project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/csv_uploader_widget/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "csv_uploader_widget"
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,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -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_widget/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "csv_uploader_widget"
8
+ spec.version = CsvUploaderWidget::VERSION
9
+ spec.authors = ["Jakub41"]
10
+ spec.email = ["lemiszewski@gmx.com"]
11
+
12
+ spec.summary = %q{A simple widget to upload CSV files.}
13
+ spec.description = %q{This widget is a simple way to upload CSV files inside a directory.}
14
+ spec.homepage = "https://github.com/Jakub41/csv_uploader_widget"
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,3 @@
1
+ module CsvUploaderWidget
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,40 @@
1
+ require "csv_uploader_widget/version"
2
+
3
+ module CsvUploaderWidget
4
+
5
+ def initialize(params = {})
6
+ @file = params.delete(:file)
7
+ super
8
+ if @file
9
+ self.filename = sanitize_filename(@file.original_filename)
10
+ self.content_type = @file.content_type
11
+ self.file_contents = @file.read
12
+ end
13
+ end
14
+
15
+ def upload_local
16
+ path = "#{Rails.root}/public/uploads/csv"
17
+ FileUtils.mkdir_p(path) unless File.exists?(path)
18
+ FileUtils.copy(@file.tempfile, path)
19
+ end
20
+
21
+ private
22
+
23
+ def sanitize_filename(filename)
24
+ return File.basename(filename)
25
+ end
26
+
27
+ def csv_file_format
28
+ if self.content_type != "text/csv"
29
+ errors.add(:file, 'File format should be only CSV.')
30
+ end
31
+ end
32
+
33
+ NUM_BYTES_IN_MEGABYTE = 1048576
34
+ def file_size_under_one_mb
35
+ if (@file.size.to_f / NUM_BYTES_IN_MEGABYTE) > 1
36
+ errors.add(:file, 'File size cannot be over one megabyte.')
37
+ end
38
+ end
39
+
40
+ end
metadata ADDED
@@ -0,0 +1,108 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: csv_uploader_widget
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-27 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 widget is a simple way to upload CSV files inside a directory.
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_widget.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_widget.gemspec
82
+ - lib/csv_uploader_widget.rb
83
+ - lib/csv_uploader_widget/version.rb
84
+ homepage: https://github.com/Jakub41/csv_uploader_widget
85
+ licenses:
86
+ - MIT
87
+ metadata: {}
88
+ post_install_message:
89
+ rdoc_options: []
90
+ require_paths:
91
+ - lib
92
+ required_ruby_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ required_rubygems_version: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ requirements: []
103
+ rubyforge_project:
104
+ rubygems_version: 2.6.13
105
+ signing_key:
106
+ specification_version: 4
107
+ summary: A simple widget to upload CSV files.
108
+ test_files: []