inputmap 0.1.0

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 349abb1b33d9986f335c5fa4606817425bc8d6eb
4
+ data.tar.gz: d59593973bc494e23d80524447db5a2b2ba91960
5
+ SHA512:
6
+ metadata.gz: 89a56cdcaeb0163b8f5d2f2044244049af08977fc7f2f37107219b92221737ec5b5d13a5bd3b3e19a19d8eb25da9b440d5fd0ae76187157b46e89320ccce2d52
7
+ data.tar.gz: 87e7470c01f1a8e0b568374ff1c33d696760852b03db318ef69fc1f0adf632134fef5bf0ec81bc023f01d1fa37b90ee7f0e6d4eb63a3a8995b62fd36d950e3f4
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
@@ -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 inputmap-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 inputmap-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install inputmap-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 inputmap-0.1.0.gem to TODO: Set to 'http://mygemserver.com'" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Run tests" fullCmd="test" taksId="test" /><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,3 @@
1
+ <component name="ProjectDictionaryState">
2
+ <dictionary name="werter" />
3
+ </component>
@@ -0,0 +1,18 @@
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="activesupport (v5.1.6, rbenv: 2.4.0) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="concurrent-ruby (v1.0.5, rbenv: 2.4.0) [gem]" level="application" />
12
+ <orderEntry type="library" scope="PROVIDED" name="i18n (v1.0.0, rbenv: 2.4.0) [gem]" level="application" />
13
+ <orderEntry type="library" scope="PROVIDED" name="minitest (v5.11.3, rbenv: 2.4.0) [gem]" level="application" />
14
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, rbenv: 2.4.0) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="thread_safe (v0.3.6, rbenv: 2.4.0) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="tzinfo (v1.2.5, rbenv: 2.4.0) [gem]" level="application" />
17
+ </component>
18
+ </module>
@@ -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="rbenv: 2.4.0" project-jdk-type="RUBY_SDK" />
4
+ </project>
@@ -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/inputmap.iml" filepath="$PROJECT_DIR$/.idea/inputmap.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -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,307 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="e42629c2-dd7d-4e77-bd27-39a3bba5f581" name="Default" comment="">
5
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.gitignore" />
6
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/dictionaries/werter.xml" />
7
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/inputmap.iml" />
8
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/misc.xml" />
9
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/modules.xml" />
10
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/vcs.xml" />
11
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
12
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.travis.yml" />
13
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/CODE_OF_CONDUCT.md" />
14
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Gemfile" />
15
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/LICENSE.txt" />
16
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Rakefile" />
17
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/bin/console" />
18
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/bin/setup" />
19
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/inputmap/version.rb" />
20
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/test/inputmap_test.rb" />
21
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/test/test_helper.rb" />
22
+ <change type="DELETED" beforePath="$PROJECT_DIR$/inputmap-0.1.0.gem" afterPath="" />
23
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/README.md" afterPath="$PROJECT_DIR$/README.md" />
24
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/inputmap.gemspec" afterPath="$PROJECT_DIR$/inputmap.gemspec" />
25
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/inputmap.rb" afterPath="$PROJECT_DIR$/lib/inputmap.rb" />
26
+ </list>
27
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
28
+ <option name="TRACKING_ENABLED" value="true" />
29
+ <option name="SHOW_DIALOG" value="false" />
30
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
31
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
32
+ <option name="LAST_RESOLUTION" value="IGNORE" />
33
+ </component>
34
+ <component name="FileEditorManager">
35
+ <leaf>
36
+ <file leaf-file-name="inputmap.rb" pinned="false" current-in-tab="false">
37
+ <entry file="file://$PROJECT_DIR$/lib/inputmap.rb">
38
+ <provider selected="true" editor-type-id="text-editor">
39
+ <state relative-caret-position="72">
40
+ <caret line="7" column="29" lean-forward="true" selection-start-line="7" selection-start-column="29" selection-end-line="7" selection-end-column="29" />
41
+ <folding />
42
+ </state>
43
+ </provider>
44
+ </entry>
45
+ </file>
46
+ <file leaf-file-name="Gemfile.lock" pinned="false" current-in-tab="false">
47
+ <entry file="file://$PROJECT_DIR$/Gemfile.lock">
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="Gemfile" pinned="false" current-in-tab="false">
57
+ <entry file="file://$PROJECT_DIR$/Gemfile">
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="inputmap.gemspec" pinned="false" current-in-tab="true">
67
+ <entry file="file://$PROJECT_DIR$/inputmap.gemspec">
68
+ <provider selected="true" editor-type-id="text-editor">
69
+ <state relative-caret-position="126">
70
+ <caret line="19" column="62" lean-forward="false" selection-start-line="19" selection-start-column="62" selection-end-line="19" selection-end-column="62" />
71
+ <folding />
72
+ </state>
73
+ </provider>
74
+ </entry>
75
+ </file>
76
+ <file leaf-file-name="README.md" pinned="false" current-in-tab="false">
77
+ <entry file="file://$PROJECT_DIR$/README.md">
78
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
79
+ <state split_layout="SECOND">
80
+ <first_editor relative-caret-position="144">
81
+ <caret line="8" column="7" lean-forward="true" selection-start-line="8" selection-start-column="7" selection-end-line="8" selection-end-column="7" />
82
+ <folding />
83
+ </first_editor>
84
+ <second_editor />
85
+ </state>
86
+ </provider>
87
+ </entry>
88
+ </file>
89
+ </leaf>
90
+ </component>
91
+ <component name="FindInProjectRecents">
92
+ <findStrings>
93
+ <find>&quot;</find>
94
+ <find>coordenates</find>
95
+ </findStrings>
96
+ <replaceStrings>
97
+ <replace>'</replace>
98
+ <replace>coordinates</replace>
99
+ </replaceStrings>
100
+ </component>
101
+ <component name="Git.Settings">
102
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
103
+ </component>
104
+ <component name="IdeDocumentHistory">
105
+ <option name="CHANGED_PATHS">
106
+ <list>
107
+ <option value="$PROJECT_DIR$/lib/inputmap.rb" />
108
+ <option value="$PROJECT_DIR$/README.md" />
109
+ <option value="$PROJECT_DIR$/inputmap.gemspec" />
110
+ </list>
111
+ </option>
112
+ </component>
113
+ <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
114
+ <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
115
+ <component name="JsFlowSettings">
116
+ <service-enabled>false</service-enabled>
117
+ <exe-path />
118
+ <annotation-enable>false</annotation-enable>
119
+ <other-services-enabled>false</other-services-enabled>
120
+ <auto-save>true</auto-save>
121
+ </component>
122
+ <component name="JsGulpfileManager">
123
+ <detection-done>true</detection-done>
124
+ <sorting>DEFINITION_ORDER</sorting>
125
+ </component>
126
+ <component name="ProjectFrameBounds" extendedState="6">
127
+ <option name="x" value="648" />
128
+ <option name="y" value="1104" />
129
+ <option name="width" value="1260" />
130
+ <option name="height" value="744" />
131
+ </component>
132
+ <component name="ProjectInspectionProfilesVisibleTreeState">
133
+ <entry key="Project Default">
134
+ <profile-state>
135
+ <expanded-state>
136
+ <State>
137
+ <id />
138
+ </State>
139
+ <State>
140
+ <id>Internationalization issues</id>
141
+ </State>
142
+ </expanded-state>
143
+ <selected-state>
144
+ <State>
145
+ <id>Action Cable</id>
146
+ </State>
147
+ </selected-state>
148
+ </profile-state>
149
+ </entry>
150
+ </component>
151
+ <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
152
+ <component name="ProjectView">
153
+ <navigator currentView="ProjectPane" proportions="" version="1">
154
+ <flattenPackages />
155
+ <showMembers />
156
+ <showModules />
157
+ <showLibraryContents />
158
+ <hideEmptyPackages />
159
+ <abbreviatePackageNames />
160
+ <autoscrollToSource />
161
+ <autoscrollFromSource />
162
+ <sortByType />
163
+ <manualOrder />
164
+ <foldersAlwaysOnTop value="true" />
165
+ </navigator>
166
+ <panes>
167
+ <pane id="ProjectPane">
168
+ <subPane>
169
+ <expand>
170
+ <path>
171
+ <item name="inputmap" type="b2602c69:ProjectViewProjectNode" />
172
+ <item name="inputmap" type="462c0819:PsiDirectoryNode" />
173
+ </path>
174
+ <path>
175
+ <item name="inputmap" type="b2602c69:ProjectViewProjectNode" />
176
+ <item name="inputmap" type="462c0819:PsiDirectoryNode" />
177
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
178
+ </path>
179
+ </expand>
180
+ <select />
181
+ </subPane>
182
+ </pane>
183
+ <pane id="Scope" />
184
+ <pane id="Scratches" />
185
+ </panes>
186
+ </component>
187
+ <component name="PropertiesComponent">
188
+ <property name="settings.editor.selected.configurable" value="sshConsole" />
189
+ <property name="WebServerToolWindowFactoryState" value="false" />
190
+ </component>
191
+ <component name="RunDashboard">
192
+ <option name="ruleStates">
193
+ <list>
194
+ <RuleState>
195
+ <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
196
+ </RuleState>
197
+ <RuleState>
198
+ <option name="name" value="StatusDashboardGroupingRule" />
199
+ </RuleState>
200
+ </list>
201
+ </option>
202
+ </component>
203
+ <component name="ShelveChangesManager" show_recycled="false">
204
+ <option name="remove_strategy" value="false" />
205
+ </component>
206
+ <component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" />
207
+ <component name="TaskManager">
208
+ <task active="true" id="Default" summary="Default task">
209
+ <changelist id="e42629c2-dd7d-4e77-bd27-39a3bba5f581" name="Default" comment="" />
210
+ <created>1523291275832</created>
211
+ <option name="number" value="Default" />
212
+ <option name="presentableId" value="Default" />
213
+ <updated>1523291275832</updated>
214
+ <workItem from="1523291277346" duration="10205000" />
215
+ </task>
216
+ <servers />
217
+ </component>
218
+ <component name="TimeTrackingManager">
219
+ <option name="totallyTimeSpent" value="10205000" />
220
+ </component>
221
+ <component name="ToolWindowManager">
222
+ <frame x="642" y="1074" width="1325" height="774" extended-state="6" />
223
+ <editor active="true" />
224
+ <layout>
225
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.24941361" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
226
+ <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" />
227
+ <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" />
228
+ <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" />
229
+ <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" />
230
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33035713" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
231
+ <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" />
232
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.31994048" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
233
+ <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" />
234
+ <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" />
235
+ <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" />
236
+ <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" />
237
+ <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" />
238
+ <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" />
239
+ <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" />
240
+ <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" />
241
+ <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" />
242
+ </layout>
243
+ </component>
244
+ <component name="TypeScriptGeneratedFilesManager">
245
+ <option name="version" value="1" />
246
+ </component>
247
+ <component name="VcsContentAnnotationSettings">
248
+ <option name="myLimit" value="2678400000" />
249
+ </component>
250
+ <component name="XDebuggerManager">
251
+ <breakpoint-manager />
252
+ <watches-manager />
253
+ </component>
254
+ <component name="editorHistoryManager">
255
+ <entry file="file://$PROJECT_DIR$/Gemfile">
256
+ <provider selected="true" editor-type-id="text-editor">
257
+ <state relative-caret-position="0">
258
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
259
+ <folding />
260
+ </state>
261
+ </provider>
262
+ </entry>
263
+ <entry file="file://$PROJECT_DIR$/Gemfile.lock">
264
+ <provider selected="true" editor-type-id="text-editor">
265
+ <state relative-caret-position="0">
266
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
267
+ <folding />
268
+ </state>
269
+ </provider>
270
+ </entry>
271
+ <entry file="file://$USER_HOME$/.rbenv/versions/2.4.0/lib/ruby/2.4.0/matrix.rb">
272
+ <provider selected="true" editor-type-id="text-editor">
273
+ <state relative-caret-position="-3">
274
+ <caret line="1341" column="32" lean-forward="false" selection-start-line="1341" selection-start-column="32" selection-end-line="1341" selection-end-column="32" />
275
+ <folding />
276
+ </state>
277
+ </provider>
278
+ </entry>
279
+ <entry file="file://$PROJECT_DIR$/lib/inputmap.rb">
280
+ <provider selected="true" editor-type-id="text-editor">
281
+ <state relative-caret-position="72">
282
+ <caret line="7" column="29" lean-forward="true" selection-start-line="7" selection-start-column="29" selection-end-line="7" selection-end-column="29" />
283
+ <folding />
284
+ </state>
285
+ </provider>
286
+ </entry>
287
+ <entry file="file://$PROJECT_DIR$/README.md">
288
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
289
+ <state split_layout="SECOND">
290
+ <first_editor relative-caret-position="144">
291
+ <caret line="8" column="7" lean-forward="true" selection-start-line="8" selection-start-column="7" selection-end-line="8" selection-end-column="7" />
292
+ <folding />
293
+ </first_editor>
294
+ <second_editor />
295
+ </state>
296
+ </provider>
297
+ </entry>
298
+ <entry file="file://$PROJECT_DIR$/inputmap.gemspec">
299
+ <provider selected="true" editor-type-id="text-editor">
300
+ <state relative-caret-position="126">
301
+ <caret line="19" column="62" lean-forward="false" selection-start-line="19" selection-start-column="62" selection-end-line="19" selection-end-column="62" />
302
+ <folding />
303
+ </state>
304
+ </provider>
305
+ </entry>
306
+ </component>
307
+ </project>
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.0
5
+ before_install: gem install bundler -v 1.16.0
@@ -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 wertermeira@hotmail.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,6 @@
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 inputmap.gemspec
6
+ gemspec
@@ -0,0 +1,34 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ inputmap (0.1.0)
5
+ activesupport
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activesupport (5.1.6)
11
+ concurrent-ruby (~> 1.0, >= 1.0.2)
12
+ i18n (>= 0.7, < 2)
13
+ minitest (~> 5.1)
14
+ tzinfo (~> 1.1)
15
+ concurrent-ruby (1.0.5)
16
+ i18n (1.0.0)
17
+ concurrent-ruby (~> 1.0)
18
+ minitest (5.11.3)
19
+ rake (10.5.0)
20
+ thread_safe (0.3.6)
21
+ tzinfo (1.2.5)
22
+ thread_safe (~> 0.1)
23
+
24
+ PLATFORMS
25
+ ruby
26
+
27
+ DEPENDENCIES
28
+ bundler (~> 1.16)
29
+ inputmap!
30
+ minitest (~> 5.0)
31
+ rake (~> 10.0)
32
+
33
+ BUNDLED WITH
34
+ 1.16.0
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Werter Meira
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.
@@ -0,0 +1,53 @@
1
+ # Inputmap
2
+
3
+ Gem for selecting geographical coordinates via Google maps.
4
+ ![alt text](example.gif)
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'inputmap'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install inputmap
20
+
21
+ ## Usage
22
+
23
+ ```ruby
24
+ # Sample configuration:
25
+ config = {
26
+ key: 'AIzaSyB70Hu6l9Ekf1hnbPKJy2sCgsxrYFfTTO4, #key google maps
27
+ input_id: "input_id", #id element input hidden
28
+ coordinates: "-11.303403, -41.855775", # coordinites default
29
+ element_id: "map", #id element map <div id='map' style='height: 300px; width: 100%'></div>
30
+ zoom: 15
31
+ }
32
+ inputmap = Inputmap::Client.new(config)
33
+
34
+ <%= inputmap.run() %>
35
+ ```
36
+
37
+ ## Development
38
+
39
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
40
+
41
+ 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).
42
+
43
+ ## Contributing
44
+
45
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/inputmap. 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.
46
+
47
+ ## License
48
+
49
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
50
+
51
+ ## Code of Conduct
52
+
53
+ Everyone interacting in the Inputmap project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/inputmap/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task :default => :test
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "inputmap"
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__)
@@ -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
Binary file
@@ -0,0 +1,38 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "inputmap/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "inputmap"
8
+ spec.version = Inputmap::VERSION
9
+ spec.authors = ["Werter Meira"]
10
+ spec.email = ["wertermeira@hotmail.com"]
11
+
12
+ spec.summary = "Selecting geographical coordinates via Google maps."
13
+ spec.description = "Selecting geographical coordinates via Google maps."
14
+ spec.homepage = "https://github.com/wertermeira/inputmap"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
21
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against " \
23
+ "public gem pushes."
24
+ end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
+ f.match(%r{^(test|spec|features)/})
28
+ end
29
+ spec.bindir = "exe"
30
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ["lib"]
32
+
33
+ spec.add_development_dependency "bundler", "~> 1.16"
34
+ spec.add_development_dependency "rake", "~> 10.0"
35
+ spec.add_development_dependency "minitest", "~> 5.0"
36
+
37
+ spec.add_dependency "activesupport"
38
+ end
@@ -0,0 +1,44 @@
1
+ require "inputmap/version"
2
+ require "active_support"
3
+
4
+ module Inputmap
5
+ class Client
6
+
7
+ def initialize(config = {})
8
+ @key = config[:key] || 'AIzaSyB70Hu6l9Ekf1hnbPKJy2sCgsxrYFfTTO4'
9
+ @coordinates = config[:coordinates].gsub(/[()]/,'') || '-23.583233, -46.634771'
10
+ @input_id = config[:input_id] || 'input_id'
11
+ @element_id = config[:element_id] = 'map'
12
+ @zoom = config[:zoom] || 15
13
+ end
14
+
15
+ def run
16
+ "<script src='https://maps.googleapis.com/maps/api/js?key=#{@key}'></script>
17
+ <script type='text/javascript'>
18
+ var map;
19
+ var marker;
20
+
21
+ function initialize() {
22
+ var my_position = new google.maps.LatLng(#{@coordinates});
23
+ var map = new google.maps.Map(document.getElementById('#{@element_id}'), {
24
+ center: my_position,
25
+ zoom: #{@zoom}
26
+ });
27
+ var marker = new google.maps.Marker({
28
+ position: my_position,
29
+ map: map
30
+ });
31
+ // double click event
32
+ google.maps.event.addListener(map, 'click', function(e) {
33
+ var positionDoubleclick = e.latLng;
34
+ marker.setPosition(positionDoubleclick);
35
+ var input = document.getElementById('#{@input_id}');
36
+ input.value = positionDoubleclick;
37
+ });
38
+ }
39
+ google.maps.event.addDomListener(window, 'load', initialize);
40
+
41
+ </script>".html_safe
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,3 @@
1
+ module Inputmap
2
+ VERSION = "0.1.0"
3
+ end
metadata ADDED
@@ -0,0 +1,122 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: inputmap
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Werter Meira
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-04-09 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'
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'
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: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: activesupport
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: Selecting geographical coordinates via Google maps.
70
+ email:
71
+ - wertermeira@hotmail.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - ".idea/.rakeTasks"
78
+ - ".idea/dictionaries/werter.xml"
79
+ - ".idea/inputmap.iml"
80
+ - ".idea/misc.xml"
81
+ - ".idea/modules.xml"
82
+ - ".idea/vcs.xml"
83
+ - ".idea/workspace.xml"
84
+ - ".travis.yml"
85
+ - CODE_OF_CONDUCT.md
86
+ - Gemfile
87
+ - Gemfile.lock
88
+ - LICENSE.txt
89
+ - README.md
90
+ - Rakefile
91
+ - bin/console
92
+ - bin/setup
93
+ - example.gif
94
+ - inputmap.gemspec
95
+ - lib/inputmap.rb
96
+ - lib/inputmap/version.rb
97
+ homepage: https://github.com/wertermeira/inputmap
98
+ licenses:
99
+ - MIT
100
+ metadata:
101
+ allowed_push_host: https://rubygems.org
102
+ post_install_message:
103
+ rdoc_options: []
104
+ require_paths:
105
+ - lib
106
+ required_ruby_version: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ required_rubygems_version: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
116
+ requirements: []
117
+ rubyforge_project:
118
+ rubygems_version: 2.6.8
119
+ signing_key:
120
+ specification_version: 4
121
+ summary: Selecting geographical coordinates via Google maps.
122
+ test_files: []