jkeeper 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: ca4317cb04328a66736785a1fbcbedeb89d930d8
4
+ data.tar.gz: d681e6e6471eee66dcb83cade846261f0f4a2c46
5
+ SHA512:
6
+ metadata.gz: 731e28fa6fdafd088235e319a97ad46191abb7bead84b1000f20e0a12d11b19aaa1444030378f836786473ec904a79171fbbe088f36e05c3cb23489a41e2bb59
7
+ data.tar.gz: 33e935085e7fb101370379316a4a3fec567cb6b3223e12ec62fbd991fdddcd0e98ea98ade6591f1cdbc1416abec6c92b3fc279d08e6b2a8b76f92045915ff5da
@@ -0,0 +1,11 @@
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
@@ -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 rson-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 rson-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install rson-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 rson-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,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="Rubocop" enabled="false" level="WARNING" enabled_by_default="false" />
5
+ </profile>
6
+ </component>
@@ -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.1" 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$/../jkeeper/.idea/rson.iml" filepath="$PROJECT_DIR$/../jkeeper/.idea/rson.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,28 @@
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="jdk" jdkName="RVM: ruby-2.4.0" jdkType="RUBY_SDK" />
9
+ <orderEntry type="sourceFolder" forTests="false" />
10
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.16.0.pre.3, RVM: ruby-2.4.0) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.3, RVM: ruby-2.4.0) [gem]" level="application" />
12
+ <orderEntry type="library" scope="PROVIDED" name="domain_name (v0.5.20170404, RVM: ruby-2.4.0) [gem]" level="application" />
13
+ <orderEntry type="library" scope="PROVIDED" name="http-cookie (v1.0.3, RVM: ruby-2.4.0) [gem]" level="application" />
14
+ <orderEntry type="library" scope="PROVIDED" name="json (v2.1.0, RVM: ruby-2.4.0) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="mime-types (v3.1, RVM: ruby-2.4.0) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="mime-types-data (v3.2016.0521, RVM: ruby-2.4.0) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="netrc (v0.11.0, RVM: ruby-2.4.0) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, RVM: ruby-2.4.0) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="rest-client (v2.0.2, RVM: ruby-2.4.0) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v3.6.0, RVM: ruby-2.4.0) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.6.0, RVM: ruby-2.4.0) [gem]" level="application" />
22
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.6.0, RVM: ruby-2.4.0) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.6.0, RVM: ruby-2.4.0) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.6.0, RVM: ruby-2.4.0) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="unf (v0.1.4, RVM: ruby-2.4.0) [gem]" level="application" />
26
+ <orderEntry type="library" scope="PROVIDED" name="unf_ext (v0.0.7.4, RVM: ruby-2.4.0) [gem]" level="application" />
27
+ </component>
28
+ </module>
@@ -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,449 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="47125554-bd7e-4b97-8c86-b03f58856778" name="Default" comment="">
5
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.gitignore" />
6
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/misc.xml" />
7
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/modules.xml" />
8
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/rson.iml" />
9
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
10
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.rspec" />
11
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.travis.yml" />
12
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/CODE_OF_CONDUCT.md" />
13
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Gemfile" />
14
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/LICENSE.txt" />
15
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/README.md" />
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/rson.rb" />
20
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/rson/version.rb" />
21
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/rson.gemspec" />
22
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/spec/rson_spec.rb" />
23
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/spec/spec_helper.rb" />
24
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/spec/test/data.json" />
25
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/spec/test/one_data.json" />
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="jkeeper.gemspec" pinned="false" current-in-tab="true">
37
+ <entry file="file://$PROJECT_DIR$/../jkeeper/jkeeper.gemspec">
38
+ <provider selected="true" editor-type-id="text-editor">
39
+ <state relative-caret-position="120">
40
+ <caret line="8" column="39" lean-forward="true" selection-start-line="8" selection-start-column="39" selection-end-line="8" selection-end-column="39" />
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$/../jkeeper/Gemfile.lock">
48
+ <provider selected="true" editor-type-id="text-editor">
49
+ <state relative-caret-position="-33">
50
+ <caret line="27" column="22" lean-forward="true" selection-start-line="27" selection-start-column="22" selection-end-line="27" selection-end-column="22" />
51
+ <folding />
52
+ </state>
53
+ </provider>
54
+ </entry>
55
+ </file>
56
+ <file leaf-file-name="jkeeper.rb" pinned="false" current-in-tab="false">
57
+ <entry file="file://$PROJECT_DIR$/../jkeeper/lib/jkeeper.rb">
58
+ <provider selected="true" editor-type-id="text-editor">
59
+ <state relative-caret-position="-400">
60
+ <caret line="8" column="0" lean-forward="true" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="0" />
61
+ <folding />
62
+ </state>
63
+ </provider>
64
+ </entry>
65
+ </file>
66
+ </leaf>
67
+ </component>
68
+ <component name="FindInProjectRecents">
69
+ <findStrings>
70
+ <find>rson</find>
71
+ </findStrings>
72
+ </component>
73
+ <component name="Git.Settings">
74
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
75
+ </component>
76
+ <component name="IdeDocumentHistory">
77
+ <option name="CHANGED_PATHS">
78
+ <list>
79
+ <option value="$PROJECT_DIR$/spec/test/data.json" />
80
+ <option value="$PROJECT_DIR$/spec/test/mydata.json" />
81
+ <option value="$PROJECT_DIR$/spec/test/one_data.json" />
82
+ <option value="$PROJECT_DIR$/rson.gemspec" />
83
+ <option value="$PROJECT_DIR$/lib/rson.rb" />
84
+ <option value="$PROJECT_DIR$/README.md" />
85
+ <option value="$PROJECT_DIR$/spec/rson_spec.rb" />
86
+ <option value="$PROJECT_DIR$/../jkeeper/lib/jkeeper/version.rb" />
87
+ <option value="$PROJECT_DIR$/../jkeeper/lib/jkeeper.rb" />
88
+ <option value="$PROJECT_DIR$/../jkeeper/.rspec_status" />
89
+ <option value="$PROJECT_DIR$/../jkeeper/Gemfile" />
90
+ <option value="$PROJECT_DIR$/../jkeeper/Gemfile.lock" />
91
+ <option value="$PROJECT_DIR$/../jkeeper/LICENSE.txt" />
92
+ <option value="$PROJECT_DIR$/../jkeeper/bin/console" />
93
+ </list>
94
+ </option>
95
+ </component>
96
+ <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
97
+ <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
98
+ <component name="JsGulpfileManager">
99
+ <detection-done>true</detection-done>
100
+ <sorting>DEFINITION_ORDER</sorting>
101
+ </component>
102
+ <component name="ProjectFrameBounds" fullScreen="true">
103
+ <option name="width" value="1440" />
104
+ <option name="height" value="900" />
105
+ </component>
106
+ <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
107
+ <component name="ProjectView">
108
+ <navigator currentView="ProjectPane" proportions="" version="1">
109
+ <flattenPackages />
110
+ <showMembers />
111
+ <showModules />
112
+ <showLibraryContents />
113
+ <hideEmptyPackages />
114
+ <abbreviatePackageNames />
115
+ <autoscrollToSource />
116
+ <autoscrollFromSource />
117
+ <sortByType />
118
+ <manualOrder />
119
+ <foldersAlwaysOnTop value="true" />
120
+ </navigator>
121
+ <panes>
122
+ <pane id="ProjectPane">
123
+ <subPane>
124
+ <expand>
125
+ <path>
126
+ <item name="rson" type="b2602c69:ProjectViewProjectNode" />
127
+ <item name="jkeeper" type="462c0819:PsiDirectoryNode" />
128
+ </path>
129
+ <path>
130
+ <item name="rson" type="b2602c69:ProjectViewProjectNode" />
131
+ <item name="jkeeper" type="462c0819:PsiDirectoryNode" />
132
+ <item name="bin" type="462c0819:PsiDirectoryNode" />
133
+ </path>
134
+ <path>
135
+ <item name="rson" type="b2602c69:ProjectViewProjectNode" />
136
+ <item name="jkeeper" type="462c0819:PsiDirectoryNode" />
137
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
138
+ </path>
139
+ <path>
140
+ <item name="rson" type="b2602c69:ProjectViewProjectNode" />
141
+ <item name="jkeeper" type="462c0819:PsiDirectoryNode" />
142
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
143
+ <item name="jkeeper" type="462c0819:PsiDirectoryNode" />
144
+ </path>
145
+ <path>
146
+ <item name="rson" type="b2602c69:ProjectViewProjectNode" />
147
+ <item name="jkeeper" type="462c0819:PsiDirectoryNode" />
148
+ <item name="spec" type="462c0819:PsiDirectoryNode" />
149
+ </path>
150
+ <path>
151
+ <item name="rson" type="b2602c69:ProjectViewProjectNode" />
152
+ <item name="jkeeper" type="462c0819:PsiDirectoryNode" />
153
+ <item name="spec" type="462c0819:PsiDirectoryNode" />
154
+ <item name="test" type="462c0819:PsiDirectoryNode" />
155
+ </path>
156
+ </expand>
157
+ <select />
158
+ </subPane>
159
+ </pane>
160
+ <pane id="Scratches" />
161
+ <pane id="Scope" />
162
+ </panes>
163
+ </component>
164
+ <component name="PropertiesComponent">
165
+ <property name="WebServerToolWindowFactoryState" value="false" />
166
+ </component>
167
+ <component name="RunDashboard">
168
+ <option name="ruleStates">
169
+ <list>
170
+ <RuleState>
171
+ <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
172
+ </RuleState>
173
+ <RuleState>
174
+ <option name="name" value="StatusDashboardGroupingRule" />
175
+ </RuleState>
176
+ </list>
177
+ </option>
178
+ </component>
179
+ <component name="ShelveChangesManager" show_recycled="false">
180
+ <option name="remove_strategy" value="false" />
181
+ </component>
182
+ <component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" />
183
+ <component name="TaskManager">
184
+ <task active="true" id="Default" summary="Default task">
185
+ <changelist id="47125554-bd7e-4b97-8c86-b03f58856778" name="Default" comment="" />
186
+ <created>1507748581754</created>
187
+ <option name="number" value="Default" />
188
+ <option name="presentableId" value="Default" />
189
+ <updated>1507748581754</updated>
190
+ <workItem from="1507748583527" duration="15356000" />
191
+ </task>
192
+ <servers />
193
+ </component>
194
+ <component name="TimeTrackingManager">
195
+ <option name="totallyTimeSpent" value="15356000" />
196
+ </component>
197
+ <component name="ToolWindowManager">
198
+ <frame x="0" y="0" width="1440" height="900" extended-state="0" />
199
+ <editor active="true" />
200
+ <layout>
201
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.24964234" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
202
+ <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" />
203
+ <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" />
204
+ <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" />
205
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.29088786" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
206
+ <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" />
207
+ <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" />
208
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.44859812" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
209
+ <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" />
210
+ <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" />
211
+ <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" />
212
+ <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" />
213
+ <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" />
214
+ <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" />
215
+ <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" />
216
+ <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" />
217
+ <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" />
218
+ </layout>
219
+ <layout-to-restore>
220
+ <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="9" side_tool="false" content_ui="tabs" />
221
+ <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="7" side_tool="false" content_ui="tabs" />
222
+ <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="3" side_tool="false" content_ui="tabs" />
223
+ <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="1" side_tool="false" content_ui="tabs" />
224
+ <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="0" side_tool="true" content_ui="tabs" />
225
+ <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="8" side_tool="false" content_ui="tabs" />
226
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.29088786" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
227
+ <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" />
228
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.65654206" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
229
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.24964234" sideWeight="0.5" order="1" side_tool="false" content_ui="combo" />
230
+ <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="3" side_tool="false" content_ui="combo" />
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="0" side_tool="false" content_ui="tabs" />
232
+ <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="4" side_tool="false" content_ui="tabs" />
233
+ <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="2" side_tool="false" content_ui="tabs" />
234
+ <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="2" side_tool="false" content_ui="tabs" />
235
+ <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="6" 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="0" side_tool="true" content_ui="tabs" />
237
+ </layout-to-restore>
238
+ </component>
239
+ <component name="TypeScriptGeneratedFilesManager">
240
+ <option name="version" value="1" />
241
+ </component>
242
+ <component name="VcsContentAnnotationSettings">
243
+ <option name="myLimit" value="2678400000" />
244
+ </component>
245
+ <component name="XDebuggerManager">
246
+ <breakpoint-manager />
247
+ <watches-manager />
248
+ </component>
249
+ <component name="editorHistoryManager">
250
+ <entry file="file://$PROJECT_DIR$/spec/test/mydata2017-10-12-050507.json">
251
+ <provider selected="true" editor-type-id="text-editor">
252
+ <state relative-caret-position="105">
253
+ <caret line="0" column="363" lean-forward="true" selection-start-line="0" selection-start-column="363" selection-end-line="0" selection-end-column="363" />
254
+ <folding />
255
+ </state>
256
+ </provider>
257
+ </entry>
258
+ <entry file="file://$PROJECT_DIR$/spec/test/mydata2017-10-12-051440.json">
259
+ <provider selected="true" editor-type-id="text-editor">
260
+ <state relative-caret-position="195">
261
+ <caret line="13" column="19" lean-forward="true" selection-start-line="13" selection-start-column="19" selection-end-line="13" selection-end-column="19" />
262
+ <folding />
263
+ </state>
264
+ </provider>
265
+ </entry>
266
+ <entry file="file://$PROJECT_DIR$/spec/test/mydata.json">
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$/../jkeeper/spec/test/one_data.json">
275
+ <provider selected="true" editor-type-id="text-editor">
276
+ <state relative-caret-position="675">
277
+ <caret line="45" column="1" lean-forward="false" selection-start-line="45" selection-start-column="1" selection-end-line="45" selection-end-column="1" />
278
+ <folding />
279
+ </state>
280
+ </provider>
281
+ </entry>
282
+ <entry file="file://$PROJECT_DIR$/../jkeeper/spec/test/data.json">
283
+ <provider selected="true" editor-type-id="text-editor">
284
+ <state relative-caret-position="246">
285
+ <caret line="18" column="41" lean-forward="false" selection-start-line="18" selection-start-column="41" selection-end-line="18" selection-end-column="41" />
286
+ <folding />
287
+ </state>
288
+ </provider>
289
+ </entry>
290
+ <entry file="file://$PROJECT_DIR$/spec/test/j.json">
291
+ <provider selected="true" editor-type-id="text-editor">
292
+ <state relative-caret-position="30">
293
+ <caret line="2" column="1" lean-forward="false" selection-start-line="2" selection-start-column="1" selection-end-line="2" selection-end-column="1" />
294
+ <folding />
295
+ </state>
296
+ </provider>
297
+ </entry>
298
+ <entry file="file://$PROJECT_DIR$/spec/test/a.json">
299
+ <provider selected="true" editor-type-id="text-editor">
300
+ <state relative-caret-position="150">
301
+ <caret line="10" column="1" lean-forward="true" selection-start-line="10" selection-start-column="1" selection-end-line="10" selection-end-column="1" />
302
+ <folding />
303
+ </state>
304
+ </provider>
305
+ </entry>
306
+ <entry file="file://$PROJECT_DIR$/.json">
307
+ <provider selected="true" editor-type-id="text-editor">
308
+ <state relative-caret-position="345">
309
+ <caret line="23" column="1" lean-forward="true" selection-start-line="23" selection-start-column="1" selection-end-line="23" selection-end-column="1" />
310
+ <folding />
311
+ </state>
312
+ </provider>
313
+ </entry>
314
+ <entry file="file://$PROJECT_DIR$/../jkeeper/README.md">
315
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
316
+ <state split_layout="SPLIT">
317
+ <first_editor relative-caret-position="30">
318
+ <caret line="2" column="52" lean-forward="true" selection-start-line="2" selection-start-column="52" selection-end-line="2" selection-end-column="52" />
319
+ <folding />
320
+ </first_editor>
321
+ <second_editor />
322
+ </state>
323
+ </provider>
324
+ </entry>
325
+ <entry file="file://$PROJECT_DIR$/../jkeeper/.travis.yml">
326
+ <provider selected="true" editor-type-id="text-editor">
327
+ <state relative-caret-position="0">
328
+ <caret line="0" column="11" lean-forward="true" selection-start-line="0" selection-start-column="11" selection-end-line="0" selection-end-column="11" />
329
+ <folding />
330
+ </state>
331
+ </provider>
332
+ </entry>
333
+ <entry file="file://$PROJECT_DIR$/../jkeeper/CODE_OF_CONDUCT.md">
334
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
335
+ <state split_layout="SPLIT">
336
+ <first_editor relative-caret-position="153">
337
+ <caret line="26" column="53" lean-forward="false" selection-start-line="26" selection-start-column="49" selection-end-line="26" selection-end-column="53" />
338
+ <folding />
339
+ </first_editor>
340
+ <second_editor />
341
+ </state>
342
+ </provider>
343
+ </entry>
344
+ <entry file="file://$PROJECT_DIR$/../jkeeper/Gemfile">
345
+ <provider selected="true" editor-type-id="text-editor">
346
+ <state relative-caret-position="75">
347
+ <caret line="5" column="7" lean-forward="true" selection-start-line="5" selection-start-column="7" selection-end-line="5" selection-end-column="7" />
348
+ <folding />
349
+ </state>
350
+ </provider>
351
+ </entry>
352
+ <entry file="file://$PROJECT_DIR$/../jkeeper/LICENSE.txt">
353
+ <provider selected="true" editor-type-id="text-editor">
354
+ <state relative-caret-position="120">
355
+ <caret line="8" column="44" lean-forward="false" selection-start-line="8" selection-start-column="40" selection-end-line="8" selection-end-column="44" />
356
+ <folding />
357
+ </state>
358
+ </provider>
359
+ </entry>
360
+ <entry file="file://$PROJECT_DIR$/../jkeeper/bin/console">
361
+ <provider selected="true" editor-type-id="text-editor">
362
+ <state relative-caret-position="150">
363
+ <caret line="10" column="11" lean-forward="true" selection-start-line="10" selection-start-column="11" selection-end-line="10" selection-end-column="11" />
364
+ <folding />
365
+ </state>
366
+ </provider>
367
+ </entry>
368
+ <entry file="file://$PROJECT_DIR$/../jkeeper/bin/setup">
369
+ <provider selected="true" editor-type-id="text-editor">
370
+ <state relative-caret-position="0">
371
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
372
+ <folding />
373
+ </state>
374
+ </provider>
375
+ </entry>
376
+ <entry file="file://$PROJECT_DIR$/../jkeeper/Gemfile.lock">
377
+ <provider selected="true" editor-type-id="text-editor">
378
+ <state relative-caret-position="-33">
379
+ <caret line="27" column="22" lean-forward="true" selection-start-line="27" selection-start-column="22" selection-end-line="27" selection-end-column="22" />
380
+ <folding />
381
+ </state>
382
+ </provider>
383
+ </entry>
384
+ <entry file="file://$PROJECT_DIR$/../jkeeper/.gitignore">
385
+ <provider selected="true" editor-type-id="text-editor">
386
+ <state relative-caret-position="165">
387
+ <caret line="11" column="0" lean-forward="true" selection-start-line="11" selection-start-column="0" selection-end-line="11" selection-end-column="0" />
388
+ <folding />
389
+ </state>
390
+ </provider>
391
+ </entry>
392
+ <entry file="file://$PROJECT_DIR$/../jkeeper/spec/jkeeper_spec.rb">
393
+ <provider selected="true" editor-type-id="text-editor">
394
+ <state relative-caret-position="135">
395
+ <caret line="9" column="36" lean-forward="true" selection-start-line="9" selection-start-column="36" selection-end-line="9" selection-end-column="36" />
396
+ <folding />
397
+ </state>
398
+ </provider>
399
+ </entry>
400
+ <entry file="file://$PROJECT_DIR$/../jkeeper/.rspec">
401
+ <provider selected="true" editor-type-id="text-editor">
402
+ <state relative-caret-position="45">
403
+ <caret line="3" column="0" lean-forward="true" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
404
+ <folding />
405
+ </state>
406
+ </provider>
407
+ </entry>
408
+ <entry file="file://$PROJECT_DIR$/../jkeeper/.rspec_status">
409
+ <provider selected="true" editor-type-id="text-editor">
410
+ <state relative-caret-position="120">
411
+ <caret line="8" column="0" lean-forward="true" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="0" />
412
+ <folding />
413
+ </state>
414
+ </provider>
415
+ </entry>
416
+ <entry file="file://$PROJECT_DIR$/../jkeeper/Rakefile">
417
+ <provider selected="true" editor-type-id="text-editor">
418
+ <state relative-caret-position="90">
419
+ <caret line="6" column="0" lean-forward="true" selection-start-line="6" selection-start-column="0" selection-end-line="6" selection-end-column="0" />
420
+ <folding />
421
+ </state>
422
+ </provider>
423
+ </entry>
424
+ <entry file="file://$PROJECT_DIR$/../jkeeper/lib/jkeeper.rb">
425
+ <provider selected="true" editor-type-id="text-editor">
426
+ <state relative-caret-position="-400">
427
+ <caret line="8" column="0" lean-forward="true" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="0" />
428
+ <folding />
429
+ </state>
430
+ </provider>
431
+ </entry>
432
+ <entry file="file://$PROJECT_DIR$/../jkeeper/lib/jkeeper/version.rb">
433
+ <provider selected="true" editor-type-id="text-editor">
434
+ <state relative-caret-position="15">
435
+ <caret line="1" column="2" lean-forward="false" selection-start-line="1" selection-start-column="2" selection-end-line="1" selection-end-column="2" />
436
+ <folding />
437
+ </state>
438
+ </provider>
439
+ </entry>
440
+ <entry file="file://$PROJECT_DIR$/../jkeeper/jkeeper.gemspec">
441
+ <provider selected="true" editor-type-id="text-editor">
442
+ <state relative-caret-position="120">
443
+ <caret line="8" column="39" lean-forward="true" selection-start-line="8" selection-start-column="39" selection-end-line="8" selection-end-column="39" />
444
+ <folding />
445
+ </state>
446
+ </provider>
447
+ </entry>
448
+ </component>
449
+ </project>
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -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.pre.3
@@ -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 yhk1038@hanmail.net. 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 jkeeper.gemspec
6
+ gemspec
@@ -0,0 +1,53 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ jkeeper (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ diff-lcs (1.3)
10
+ domain_name (0.5.20170404)
11
+ unf (>= 0.0.5, < 1.0.0)
12
+ http-cookie (1.0.3)
13
+ domain_name (~> 0.5)
14
+ json (2.0.2)
15
+ mime-types (3.1)
16
+ mime-types-data (~> 3.2015)
17
+ mime-types-data (3.2016.0521)
18
+ netrc (0.11.0)
19
+ rake (10.5.0)
20
+ rest-client (2.0.2)
21
+ http-cookie (>= 1.0.2, < 2.0)
22
+ mime-types (>= 1.16, < 4.0)
23
+ netrc (~> 0.8)
24
+ rspec (3.6.0)
25
+ rspec-core (~> 3.6.0)
26
+ rspec-expectations (~> 3.6.0)
27
+ rspec-mocks (~> 3.6.0)
28
+ rspec-core (3.6.0)
29
+ rspec-support (~> 3.6.0)
30
+ rspec-expectations (3.6.0)
31
+ diff-lcs (>= 1.2.0, < 2.0)
32
+ rspec-support (~> 3.6.0)
33
+ rspec-mocks (3.6.0)
34
+ diff-lcs (>= 1.2.0, < 2.0)
35
+ rspec-support (~> 3.6.0)
36
+ rspec-support (3.6.0)
37
+ unf (0.1.4)
38
+ unf_ext
39
+ unf_ext (0.0.7.4)
40
+
41
+ PLATFORMS
42
+ ruby
43
+
44
+ DEPENDENCIES
45
+ bundler (~> 1.16.a)
46
+ jkeeper!
47
+ json (~> 2.0, >= 2.0.2)
48
+ rake (~> 10.0)
49
+ rest-client (~> 2.0, >= 2.0.2)
50
+ rspec (~> 3.0)
51
+
52
+ BUNDLED WITH
53
+ 1.16.0.pre.3
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Freddy Kim
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,65 @@
1
+ # Jkeeper
2
+
3
+ **Save** *Hash or Array Data* to local **json file**
4
+
5
+ **Read** local *json file* to **Hash or Array**
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'jkeeper'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install jkeeper
22
+
23
+ ## Usage
24
+ - More information are in [Here](http://www.rubydoc.info/gems/jkeeper/0.1.0/jkeeper).
25
+
26
+ ### Jkeeper::Filer
27
+ #### **module for file manager**
28
+
29
+ - To save file
30
+ - method: **.save_json(data, \*arg)**
31
+ - usage: `Jkeeper::Filer.save_json(your_data)`
32
+ - [more options](http://www.rubydoc.info/gems/jkeeper/0.1.0/jkeeper) (eg. path etc.)
33
+
34
+ - To read file
35
+ - method: **.read(path)**
36
+ - usage: `Jkeeper::Filer.read(your_data_file_path)`
37
+
38
+
39
+ ### Jkeeper::Api
40
+ #### **module for API manager (REST)**
41
+
42
+ - To get
43
+ - method: **.get(url, \*arg)**
44
+ - usage: `Jkeeper::Api.get('api_request_url')`
45
+
46
+
47
+ ## Development
48
+
49
+ 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.
50
+
51
+ 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).
52
+
53
+ ## Contributing
54
+
55
+ Bug reports and pull requests are welcome on GitHub at [Jkeeper Repo](https://github.com/yhk1038/jkeeper). 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.
56
+
57
+ 버그 리포트와 풀리퀘스트를 언제든지 환영합니다. Issue를 남겨주세요! 테스트 작성, 기능 제안 및 수정 또는 확장, 코드 리펙토링 등 모든 주제에 대해 언제든지 Issue 를 통해 논의할 수 있습니다.
58
+
59
+ ## License
60
+
61
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
62
+
63
+ ## Code of Conduct
64
+
65
+ Everyone interacting in the Jkeeper project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/yhk1038/jkeeper/blob/master/CODE_OF_CONDUCT.md).
@@ -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
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "jkeeper"
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
@@ -0,0 +1,38 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "jkeeper/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "jkeeper"
8
+ spec.version = Jkeeper::VERSION
9
+ spec.authors = ["Freddy Kim"]
10
+ spec.email = ["yhkks1038@gmail.com"]
11
+
12
+ spec.summary = %q{Easy to link ruby-json with sys-file and api}
13
+ spec.description = %q{Save hash to local json file, load .json to hash}
14
+ spec.homepage = "https://rubygems.org"
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.a"
34
+ spec.add_development_dependency "rake", "~> 10.0"
35
+ spec.add_development_dependency "rspec", "~> 3.0"
36
+ spec.add_development_dependency "json", '~> 2.0', '>= 2.0.2'
37
+ spec.add_development_dependency "rest-client", '~> 2.0', '>= 2.0.2'
38
+ end
@@ -0,0 +1,57 @@
1
+ require 'json'
2
+ require 'rest-client'
3
+ require "jkeeper/version"
4
+
5
+ module Jkeeper
6
+
7
+ module Filer
8
+ def self.save_json(data, fileconf={time: false, filename: nil, filepath: './', already_json: false})
9
+
10
+ time = ''
11
+ time += Time.new.strftime('%F-%H%M%S') if fileconf[:time] || fileconf[:filename].nil?
12
+
13
+ filename = time + '.json'
14
+ filename = fileconf[:filename].gsub('.json','') + time + '.json' if fileconf[:filename]
15
+
16
+ if fileconf[:filepath]
17
+ filepath = fileconf[:filepath]
18
+ else
19
+ filepath = './keep_set'
20
+ end
21
+
22
+ json = fileconf[:already_json] ? data : JSON.pretty_generate(data)
23
+ path = filepath+filename
24
+ File.write(path, json)
25
+
26
+ puts "file saved in #{File.dirname(path)}"
27
+ path
28
+ end
29
+
30
+ def self.read path
31
+ file = File.read(path)
32
+ JSON.parse(file, symbolize_names: true)
33
+ end
34
+ end
35
+
36
+ module Api
37
+
38
+ # Usage
39
+ #
40
+ # Jkeeper::Api.get('https://openapi.naver.com/v1/map/geocode',
41
+ # {
42
+ # key: ['X-Naver-Client-Id', 'YOUR_APP_KEY'],
43
+ # secret: ['X-Naver-Client-Secret', 'YOUR_APP_SECRET']
44
+ # },
45
+ # '서울시 중구 필동')
46
+ def self.get(url, meta={key: ['',''], secret: ['','']}, *params)
47
+ key_label, key_content = meta[:key][0], meta[:key][1]
48
+ sec_label, sec_content = meta[:secret][0], meta[:secret][1]
49
+
50
+ json = RestClient.get(url, params: { query: params.join(',') },
51
+ "#{key_label}": key_content,
52
+ "#{sec_label}": sec_content)
53
+ JSON.parse(json, symbolize_names: true)
54
+ end
55
+
56
+ end
57
+ end
@@ -0,0 +1,3 @@
1
+ module Jkeeper
2
+ VERSION = "0.1.0"
3
+ end
metadata ADDED
@@ -0,0 +1,148 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jkeeper
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Freddy Kim
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-10-11 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
+ - !ruby/object:Gem::Dependency
56
+ name: json
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2.0'
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: 2.0.2
65
+ type: :development
66
+ prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - "~>"
70
+ - !ruby/object:Gem::Version
71
+ version: '2.0'
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: 2.0.2
75
+ - !ruby/object:Gem::Dependency
76
+ name: rest-client
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '2.0'
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: 2.0.2
85
+ type: :development
86
+ prerelease: false
87
+ version_requirements: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - "~>"
90
+ - !ruby/object:Gem::Version
91
+ version: '2.0'
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: 2.0.2
95
+ description: Save hash to local json file, load .json to hash
96
+ email:
97
+ - yhkks1038@gmail.com
98
+ executables: []
99
+ extensions: []
100
+ extra_rdoc_files: []
101
+ files:
102
+ - ".gitignore"
103
+ - ".idea/.rakeTasks"
104
+ - ".idea/inspectionProfiles/Project_Default.xml"
105
+ - ".idea/misc.xml"
106
+ - ".idea/modules.xml"
107
+ - ".idea/rson.iml"
108
+ - ".idea/vcs.xml"
109
+ - ".idea/workspace.xml"
110
+ - ".rspec"
111
+ - ".travis.yml"
112
+ - CODE_OF_CONDUCT.md
113
+ - Gemfile
114
+ - Gemfile.lock
115
+ - LICENSE.txt
116
+ - README.md
117
+ - Rakefile
118
+ - bin/console
119
+ - bin/setup
120
+ - jkeeper.gemspec
121
+ - lib/jkeeper.rb
122
+ - lib/jkeeper/version.rb
123
+ homepage: https://rubygems.org
124
+ licenses:
125
+ - MIT
126
+ metadata:
127
+ allowed_push_host: https://rubygems.org
128
+ post_install_message:
129
+ rdoc_options: []
130
+ require_paths:
131
+ - lib
132
+ required_ruby_version: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: '0'
137
+ required_rubygems_version: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - ">="
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ requirements: []
143
+ rubyforge_project:
144
+ rubygems_version: 2.6.14
145
+ signing_key:
146
+ specification_version: 4
147
+ summary: Easy to link ruby-json with sys-file and api
148
+ test_files: []