pg_dump 0.4.0 → 0.5.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 12c4e15a0e4801f59440436adc25bff968309345
4
- data.tar.gz: 933715eb853f2cfb5181f944a33b4b9e40601c61
3
+ metadata.gz: e402f85aa22f8e4afbf483bef888649a2dcf025d
4
+ data.tar.gz: fde5fda326fe862b7a75fa530982b5204cdd4fab
5
5
  SHA512:
6
- metadata.gz: 900cbd6a87d0324854c06942cf4251b1fe151094dd3419350a2978702bc6b1da20f6d0fec5488528a9a0ef4b31dffdb7b57ee8714c69e0486e95e49126c26cb8
7
- data.tar.gz: 2f381be610867d677a66866de1174dbe7edd6a3cdfb99f212c6f7ec0740a3ad2d238e4615ee05918bca98abdd273f9a74e1ed4c9817f0b4cb86115ccec12016d
6
+ metadata.gz: 7eb3ed764d1af98fe828366f105492658981bc53e599fd906201c31d36657f69b90229a200692dd4952d2feef87e1988aa62278f07949731b3a1ded34bd93fa9
7
+ data.tar.gz: f750d6ffe04a6dd6d82b2bd4e4cad291e41fc8ce9294cfc16be8f6585008d85e92fcfe6976c49475afbc87828fc8c4e77dbe3885c9b1b53e90abe4b38ec52a8f
@@ -1,7 +1,9 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
- <list default="true" id="2a5f92f1-6f38-4ecb-9e09-5441a5b214b0" name="Default" comment="" />
4
+ <list default="true" id="2a5f92f1-6f38-4ecb-9e09-5441a5b214b0" name="Default" comment="">
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
6
+ </list>
5
7
  <ignored path="pg_dump.iws" />
6
8
  <ignored path=".idea/workspace.xml" />
7
9
  <ignored path=".idea/dataSources.local.xml" />
@@ -21,39 +23,30 @@
21
23
  </component>
22
24
  <component name="FileEditorManager">
23
25
  <leaf>
24
- <file leaf-file-name="pg_dump.gemspec" pinned="false" current-in-tab="true">
25
- <entry file="file://$PROJECT_DIR$/pg_dump.gemspec">
26
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="true">
27
+ <entry file="file://$PROJECT_DIR$/lib/pg_dump/version.rb">
26
28
  <provider selected="true" editor-type-id="text-editor">
27
- <state relative-caret-position="270">
28
- <caret line="18" column="62" selection-start-line="18" selection-start-column="62" selection-end-line="18" selection-end-column="62" />
29
+ <state relative-caret-position="45">
30
+ <caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
29
31
  <folding />
30
32
  </state>
31
33
  </provider>
32
34
  </entry>
33
35
  </file>
34
- <file leaf-file-name="README.md" pinned="false" current-in-tab="false">
35
- <entry file="file://$PROJECT_DIR$/README.md">
36
- <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
37
- <state split_layout="SPLIT">
38
- <first_editor relative-caret-position="165">
39
- <caret line="11" column="13" selection-start-line="11" selection-start-column="13" selection-end-line="11" selection-end-column="13" />
40
- <folding />
41
- </first_editor>
42
- <second_editor />
43
- </state>
44
- </provider>
45
- </entry>
46
- </file>
47
36
  </leaf>
48
37
  </component>
38
+ <component name="Git.Settings">
39
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
40
+ </component>
49
41
  <component name="IdeDocumentHistory">
50
42
  <option name="CHANGED_PATHS">
51
43
  <list>
52
44
  <option value="$PROJECT_DIR$/../pg_sync/pg_sync.gemspec" />
53
45
  <option value="$PROJECT_DIR$/bin/console" />
54
46
  <option value="$PROJECT_DIR$/lib/pg_dump.rb" />
55
- <option value="$PROJECT_DIR$/lib/pg_dump/version.rb" />
56
47
  <option value="$PROJECT_DIR$/pg_dump.gemspec" />
48
+ <option value="$PROJECT_DIR$/README.md" />
49
+ <option value="$PROJECT_DIR$/lib/pg_dump/version.rb" />
57
50
  </list>
58
51
  </option>
59
52
  </component>
@@ -64,10 +57,10 @@
64
57
  <sorting>DEFINITION_ORDER</sorting>
65
58
  </component>
66
59
  <component name="ProjectFrameBounds">
67
- <option name="x" value="3" />
60
+ <option name="x" value="43" />
68
61
  <option name="y" value="23" />
69
62
  <option name="width" value="1343" />
70
- <option name="height" value="807" />
63
+ <option name="height" value="803" />
71
64
  </component>
72
65
  <component name="ProjectLevelVcsManager" settingsEditedManually="false">
73
66
  <OptionsSetting value="true" id="Add" />
@@ -94,7 +87,6 @@
94
87
  <foldersAlwaysOnTop value="true" />
95
88
  </navigator>
96
89
  <panes>
97
- <pane id="Scratches" />
98
90
  <pane id="ProjectPane">
99
91
  <subPane>
100
92
  <PATH>
@@ -161,6 +153,7 @@
161
153
  </PATH>
162
154
  </subPane>
163
155
  </pane>
156
+ <pane id="Scratches" />
164
157
  <pane id="Scope" />
165
158
  </panes>
166
159
  </component>
@@ -255,6 +248,12 @@
255
248
  <method />
256
249
  </configuration>
257
250
  <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
251
+ <node-interpreter>project</node-interpreter>
252
+ <node-options />
253
+ <gulpfile />
254
+ <tasks />
255
+ <arguments />
256
+ <envs />
258
257
  <method />
259
258
  </configuration>
260
259
  <configuration default="true" type="js.build_tools.npm" factoryName="npm">
@@ -275,34 +274,36 @@
275
274
  <option name="number" value="Default" />
276
275
  <option name="presentableId" value="Default" />
277
276
  <updated>1478592937991</updated>
278
- <workItem from="1478592939190" duration="613000" />
277
+ <workItem from="1478592939190" duration="1598000" />
278
+ <workItem from="1478596055234" duration="228000" />
279
+ <workItem from="1478605067575" duration="66000" />
279
280
  </task>
280
281
  <servers />
281
282
  </component>
282
283
  <component name="TimeTrackingManager">
283
- <option name="totallyTimeSpent" value="613000" />
284
+ <option name="totallyTimeSpent" value="1892000" />
284
285
  </component>
285
286
  <component name="ToolWindowManager">
286
- <frame x="3" y="23" width="1343" height="807" extended-state="0" />
287
+ <frame x="43" y="23" width="1343" height="803" extended-state="0" />
287
288
  <editor active="true" />
288
289
  <layout>
289
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.24980783" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
290
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.17063797" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
290
291
  <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" />
291
- <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" />
292
- <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" />
293
- <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32946298" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
294
- <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" />
295
- <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.33091438" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
292
+ <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="7" side_tool="true" content_ui="tabs" />
293
+ <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="3" side_tool="false" content_ui="tabs" />
294
+ <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="7" side_tool="false" content_ui="tabs" />
296
295
  <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" />
297
- <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" />
298
- <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" />
299
- <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" />
296
+ <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="7" side_tool="false" content_ui="tabs" />
297
+ <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="2" side_tool="true" content_ui="tabs" />
300
298
  <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" />
301
- <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" />
302
299
  <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" />
303
300
  <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" />
304
301
  <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" />
302
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33091438" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
303
+ <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" />
304
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32946298" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
305
305
  <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" />
306
+ <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" />
306
307
  </layout>
307
308
  </component>
308
309
  <component name="Vcs.Log.UiProperties">
@@ -321,69 +322,65 @@
321
322
  <watches-manager />
322
323
  </component>
323
324
  <component name="editorHistoryManager">
324
- <entry file="file://$PROJECT_DIR$/../pg_sync/pg_sync.gemspec">
325
- <provider selected="true" editor-type-id="text-editor">
326
- <state relative-caret-position="285">
327
- <caret line="19" column="6" selection-start-line="19" selection-start-column="6" selection-end-line="19" selection-end-column="6" />
328
- <folding />
325
+ <entry file="file://$PROJECT_DIR$/README.md">
326
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
327
+ <state split_layout="SPLIT">
328
+ <first_editor relative-caret-position="0">
329
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
330
+ <folding />
331
+ </first_editor>
332
+ <second_editor />
329
333
  </state>
330
334
  </provider>
331
335
  </entry>
332
- <entry file="file://$PROJECT_DIR$/../pg_sync/lib/pg_sync.rb">
336
+ <entry file="file://$PROJECT_DIR$/../pg_sync/pg_sync.gemspec" />
337
+ <entry file="file://$PROJECT_DIR$/../pg_sync/lib/pg_sync.rb" />
338
+ <entry file="file://$PROJECT_DIR$/bin/setup">
333
339
  <provider selected="true" editor-type-id="text-editor">
334
- <state relative-caret-position="343">
335
- <caret line="39" column="3" selection-start-line="2" selection-start-column="0" selection-end-line="39" selection-end-column="3" />
336
- <folding />
340
+ <state relative-caret-position="120">
341
+ <caret line="8" column="0" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="0" />
337
342
  </state>
338
343
  </provider>
339
344
  </entry>
340
345
  <entry file="file://$PROJECT_DIR$/lib/pg_dump.rb">
341
346
  <provider selected="true" editor-type-id="text-editor">
342
- <state relative-caret-position="45">
343
- <caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
347
+ <state relative-caret-position="210">
348
+ <caret line="14" column="0" selection-start-line="14" selection-start-column="0" selection-end-line="14" selection-end-column="0" />
344
349
  <folding />
345
350
  </state>
346
351
  </provider>
347
352
  </entry>
348
- <entry file="file://$PROJECT_DIR$/bin/console">
349
- <provider selected="true" editor-type-id="text-editor">
350
- <state relative-caret-position="195">
351
- <caret line="13" column="9" selection-start-line="13" selection-start-column="9" selection-end-line="13" selection-end-column="9" />
352
- <folding />
353
+ <entry file="file://$PROJECT_DIR$/README.md">
354
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
355
+ <state split_layout="SPLIT">
356
+ <first_editor relative-caret-position="180">
357
+ <caret line="12" column="43" selection-start-line="12" selection-start-column="43" selection-end-line="12" selection-end-column="43" />
358
+ <folding />
359
+ </first_editor>
360
+ <second_editor />
353
361
  </state>
354
362
  </provider>
355
363
  </entry>
356
- <entry file="file://$PROJECT_DIR$/bin/setup">
364
+ <entry file="file://$PROJECT_DIR$/pg_dump.gemspec">
357
365
  <provider selected="true" editor-type-id="text-editor">
358
- <state relative-caret-position="120">
359
- <caret line="8" column="0" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="0" />
366
+ <state relative-caret-position="195">
367
+ <caret line="13" column="67" selection-start-line="13" selection-start-column="67" selection-end-line="13" selection-end-column="67" />
360
368
  <folding />
361
369
  </state>
362
370
  </provider>
363
371
  </entry>
364
- <entry file="file://$PROJECT_DIR$/lib/pg_dump/version.rb">
372
+ <entry file="file://$PROJECT_DIR$/bin/console">
365
373
  <provider selected="true" editor-type-id="text-editor">
366
- <state relative-caret-position="15">
367
- <caret line="1" column="16" selection-start-line="1" selection-start-column="16" selection-end-line="1" selection-end-column="16" />
374
+ <state relative-caret-position="195">
375
+ <caret line="13" column="9" selection-start-line="13" selection-start-column="9" selection-end-line="13" selection-end-column="9" />
368
376
  <folding />
369
377
  </state>
370
378
  </provider>
371
379
  </entry>
372
- <entry file="file://$PROJECT_DIR$/README.md">
373
- <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
374
- <state split_layout="SPLIT">
375
- <first_editor relative-caret-position="165">
376
- <caret line="11" column="13" selection-start-line="11" selection-start-column="13" selection-end-line="11" selection-end-column="13" />
377
- <folding />
378
- </first_editor>
379
- <second_editor />
380
- </state>
381
- </provider>
382
- </entry>
383
- <entry file="file://$PROJECT_DIR$/pg_dump.gemspec">
380
+ <entry file="file://$PROJECT_DIR$/lib/pg_dump/version.rb">
384
381
  <provider selected="true" editor-type-id="text-editor">
385
- <state relative-caret-position="270">
386
- <caret line="18" column="62" selection-start-line="18" selection-start-column="62" selection-end-line="18" selection-end-column="62" />
382
+ <state relative-caret-position="45">
383
+ <caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
387
384
  <folding />
388
385
  </state>
389
386
  </provider>
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # PgDump
2
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/pg_dump`. 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
3
+ a tool to dump data and restore data by pg_dump and pg_restore in rails.
6
4
 
7
5
  ## Installation
8
6
 
@@ -11,6 +9,9 @@ Add this line to your application's Gemfile:
11
9
  ```ruby
12
10
  gem 'pg_dump'
13
11
  ```
12
+ ```ruby
13
+ gem 'pg_dump', github: 'ziyouchutuwenwu/pg_dump', branch: 'master'
14
+ ```
14
15
 
15
16
  And then execute:
16
17
 
@@ -22,15 +23,14 @@ Or install it yourself as:
22
23
 
23
24
  ## Usage
24
25
 
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. 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]/pg_dump.
26
+ ```
27
+ rake pg:dump
28
+ rake pg:restore
29
+ ```
36
30
 
31
+ ## Tips
32
+ if rails complains error info, just comment
33
+ ```
34
+ gem 'spring'
35
+ gem 'spring-watcher-listen', '~> 2.0.0'
36
+ ```
@@ -1,3 +1,3 @@
1
1
  module PgDump
2
- VERSION = "0.4.0"
3
- end
2
+ VERSION = "0.5.0"
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_dump
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ziyouchutuwenwu