dynamodb_framework 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/workspace.xml +126 -59
- data/lib/dynamodb_framework/dynamodb_migration_manager.rb +14 -0
- data/lib/dynamodb_framework/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 712192c49ed23792e4a8871734ae362b29fc3815
|
4
|
+
data.tar.gz: cf7bc42e690de80f4699f31a0908a475cfbe3912
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb3a258ca4461d1e62fcd88515aafedcca042909883871b3cb7fe727f73e13b98a35150f8359d0c4b0183612a172744fd3d90abd2a18aff279b4935d7bf3d2f7
|
7
|
+
data.tar.gz: 433f1e6c9ff9d2e091131081c95655aab630d916412e7365c160d332451cbe2062ba90573038a20a60df6e121ed3100ae4b9a933bfc3684ce5284c7a464d1ef7
|
data/.idea/workspace.xml
CHANGED
@@ -2,7 +2,9 @@
|
|
2
2
|
<project version="4">
|
3
3
|
<component name="ChangeListManager">
|
4
4
|
<list default="true" id="e6e52ba6-fb1e-45c4-b31f-2a2931ecfa44" name="Default" comment="">
|
5
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/dynamodb_framework/dynamodb_migration_manager.rb" afterPath="$PROJECT_DIR$/lib/dynamodb_framework/dynamodb_migration_manager.rb" />
|
5
6
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/dynamodb_framework/version.rb" afterPath="$PROJECT_DIR$/lib/dynamodb_framework/version.rb" />
|
7
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
6
8
|
</list>
|
7
9
|
<ignored path="dynamodb_framework.iws" />
|
8
10
|
<ignored path=".idea/workspace.xml" />
|
@@ -32,12 +34,31 @@
|
|
32
34
|
<element signature="e#530#888#0" expanded="false" />
|
33
35
|
<element signature="e#892#1149#0" expanded="false" />
|
34
36
|
<element signature="e#1153#2133#0" expanded="false" />
|
35
|
-
<element signature="e#2137#3853#0" expanded="false" />
|
36
37
|
</folding>
|
37
38
|
</state>
|
38
39
|
</provider>
|
39
40
|
</entry>
|
40
41
|
</file>
|
42
|
+
<file leaf-file-name="dynamodb_table_manager.rb" pinned="false" current-in-tab="false">
|
43
|
+
<entry file="file://$PROJECT_DIR$/lib/dynamodb_framework/dynamodb_table_manager.rb">
|
44
|
+
<provider selected="true" editor-type-id="text-editor">
|
45
|
+
<state vertical-scroll-proportion="0.0">
|
46
|
+
<caret line="2" column="23" selection-start-line="2" selection-start-column="15" selection-end-line="2" selection-end-column="23" />
|
47
|
+
<folding />
|
48
|
+
</state>
|
49
|
+
</provider>
|
50
|
+
</entry>
|
51
|
+
</file>
|
52
|
+
<file leaf-file-name="dynamodb_migration_manager.rb" pinned="false" current-in-tab="false">
|
53
|
+
<entry file="file://$PROJECT_DIR$/lib/dynamodb_framework/dynamodb_migration_manager.rb">
|
54
|
+
<provider selected="true" editor-type-id="text-editor">
|
55
|
+
<state vertical-scroll-proportion="0.0">
|
56
|
+
<caret line="85" column="0" selection-start-line="85" selection-start-column="0" selection-end-line="85" selection-end-column="0" />
|
57
|
+
<folding />
|
58
|
+
</state>
|
59
|
+
</provider>
|
60
|
+
</entry>
|
61
|
+
</file>
|
41
62
|
<file leaf-file-name="dynamodb_repository_spec.rb" pinned="false" current-in-tab="false">
|
42
63
|
<entry file="file://$PROJECT_DIR$/spec/dynamodb_repository_spec.rb">
|
43
64
|
<provider selected="true" editor-type-id="text-editor">
|
@@ -51,7 +72,7 @@
|
|
51
72
|
<file leaf-file-name="README.md" pinned="false" current-in-tab="false">
|
52
73
|
<entry file="file://$PROJECT_DIR$/README.md">
|
53
74
|
<provider selected="true" editor-type-id="text-editor">
|
54
|
-
<state vertical-scroll-proportion="
|
75
|
+
<state vertical-scroll-proportion="0.0">
|
55
76
|
<caret line="367" column="77" selection-start-line="367" selection-start-column="77" selection-end-line="367" selection-end-column="77" />
|
56
77
|
<folding />
|
57
78
|
</state>
|
@@ -68,6 +89,16 @@
|
|
68
89
|
</provider>
|
69
90
|
</entry>
|
70
91
|
</file>
|
92
|
+
<file leaf-file-name="dynamodb_table_manager_spec.rb" pinned="false" current-in-tab="false">
|
93
|
+
<entry file="file://$PROJECT_DIR$/spec/dynamodb_table_manager_spec.rb">
|
94
|
+
<provider selected="true" editor-type-id="text-editor">
|
95
|
+
<state vertical-scroll-proportion="0.0">
|
96
|
+
<caret line="0" column="9" selection-start-line="0" selection-start-column="9" selection-end-line="0" selection-end-column="9" />
|
97
|
+
<folding />
|
98
|
+
</state>
|
99
|
+
</provider>
|
100
|
+
</entry>
|
101
|
+
</file>
|
71
102
|
</leaf>
|
72
103
|
</component>
|
73
104
|
<component name="Git.Settings">
|
@@ -78,7 +109,6 @@
|
|
78
109
|
<list>
|
79
110
|
<option value="$PROJECT_DIR$/.gitignore" />
|
80
111
|
<option value="$PROJECT_DIR$/lib/dynamodb_framework/dynamodb_attributes_builder.rb" />
|
81
|
-
<option value="$PROJECT_DIR$/lib/dynamodb_framework/dynamodb_migration_manager.rb" />
|
82
112
|
<option value="$PROJECT_DIR$/lib/dynamodb_framework/dynamodb_store.rb" />
|
83
113
|
<option value="$PROJECT_DIR$/lib/dynamodb_framework/dynamodb_table_manager.rb" />
|
84
114
|
<option value="$PROJECT_DIR$/lib/dynamodb_framework/dynamodb_migration_script.rb" />
|
@@ -95,6 +125,7 @@
|
|
95
125
|
<option value="$PROJECT_DIR$/dynamodb_framework.gemspec" />
|
96
126
|
<option value="$PROJECT_DIR$/lib/dynamodb_framework/dynamodb_repository.rb" />
|
97
127
|
<option value="$PROJECT_DIR$/README.md" />
|
128
|
+
<option value="$PROJECT_DIR$/lib/dynamodb_framework/dynamodb_migration_manager.rb" />
|
98
129
|
<option value="$PROJECT_DIR$/lib/dynamodb_framework/version.rb" />
|
99
130
|
</list>
|
100
131
|
</option>
|
@@ -135,7 +166,7 @@
|
|
135
166
|
<sortByType />
|
136
167
|
</navigator>
|
137
168
|
<panes>
|
138
|
-
<pane id="
|
169
|
+
<pane id="Scratches" />
|
139
170
|
<pane id="ProjectPane">
|
140
171
|
<subPane>
|
141
172
|
<PATH>
|
@@ -200,9 +231,23 @@
|
|
200
231
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
201
232
|
</PATH_ELEMENT>
|
202
233
|
</PATH>
|
234
|
+
<PATH>
|
235
|
+
<PATH_ELEMENT>
|
236
|
+
<option name="myItemId" value="dynamodb_framework" />
|
237
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
238
|
+
</PATH_ELEMENT>
|
239
|
+
<PATH_ELEMENT>
|
240
|
+
<option name="myItemId" value="dynamodb_framework" />
|
241
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
242
|
+
</PATH_ELEMENT>
|
243
|
+
<PATH_ELEMENT>
|
244
|
+
<option name="myItemId" value="bin" />
|
245
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
246
|
+
</PATH_ELEMENT>
|
247
|
+
</PATH>
|
203
248
|
</subPane>
|
204
249
|
</pane>
|
205
|
-
<pane id="
|
250
|
+
<pane id="Scope" />
|
206
251
|
</panes>
|
207
252
|
</component>
|
208
253
|
<component name="PropertiesComponent">
|
@@ -210,6 +255,7 @@
|
|
210
255
|
<property name="settings.editor.splitter.proportion" value="0.2" />
|
211
256
|
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
212
257
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
258
|
+
<property name="FullScreen" value="false" />
|
213
259
|
</component>
|
214
260
|
<component name="RunManager">
|
215
261
|
<configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
|
@@ -331,6 +377,12 @@
|
|
331
377
|
<method />
|
332
378
|
</configuration>
|
333
379
|
<configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
|
380
|
+
<node-options />
|
381
|
+
<gulpfile />
|
382
|
+
<tasks />
|
383
|
+
<arguments />
|
384
|
+
<pass-parent-envs>true</pass-parent-envs>
|
385
|
+
<envs />
|
334
386
|
<method />
|
335
387
|
</configuration>
|
336
388
|
</component>
|
@@ -348,26 +400,34 @@
|
|
348
400
|
<frame x="1953" y="23" width="2497" height="1345" extended-state="0" />
|
349
401
|
<editor active="true" />
|
350
402
|
<layout>
|
351
|
-
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="
|
403
|
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
352
404
|
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
353
|
-
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="
|
405
|
+
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
354
406
|
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
355
|
-
<window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="
|
356
|
-
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.
|
357
|
-
<window_info id="
|
358
|
-
<window_info id="
|
359
|
-
<window_info id="
|
360
|
-
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
361
|
-
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
407
|
+
<window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
408
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25376782" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
409
|
+
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
410
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
|
411
|
+
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
362
412
|
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
363
413
|
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
364
414
|
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
365
415
|
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
416
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
366
417
|
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
367
418
|
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
368
419
|
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
420
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
369
421
|
</layout>
|
370
422
|
</component>
|
423
|
+
<component name="Vcs.Log.UiProperties">
|
424
|
+
<option name="RECENTLY_FILTERED_USER_GROUPS">
|
425
|
+
<collection />
|
426
|
+
</option>
|
427
|
+
<option name="RECENTLY_FILTERED_BRANCH_GROUPS">
|
428
|
+
<collection />
|
429
|
+
</option>
|
430
|
+
</component>
|
371
431
|
<component name="VcsContentAnnotationSettings">
|
372
432
|
<option name="myLimit" value="2678400000" />
|
373
433
|
</component>
|
@@ -376,11 +436,46 @@
|
|
376
436
|
<watches-manager />
|
377
437
|
</component>
|
378
438
|
<component name="editorHistoryManager">
|
439
|
+
<entry file="file://$PROJECT_DIR$/lib/dynamodb_framework/dynamodb_repository.rb">
|
440
|
+
<provider selected="true" editor-type-id="text-editor">
|
441
|
+
<state vertical-scroll-proportion="0.0">
|
442
|
+
<caret line="119" column="186" selection-start-line="119" selection-start-column="186" selection-end-line="119" selection-end-column="186" />
|
443
|
+
<folding>
|
444
|
+
<element signature="e#530#888#0" expanded="false" />
|
445
|
+
<element signature="e#892#1149#0" expanded="false" />
|
446
|
+
<element signature="e#1153#2133#0" expanded="false" />
|
447
|
+
</folding>
|
448
|
+
</state>
|
449
|
+
</provider>
|
450
|
+
</entry>
|
451
|
+
<entry file="file://$PROJECT_DIR$/spec/dynamodb_repository_spec.rb">
|
452
|
+
<provider selected="true" editor-type-id="text-editor">
|
453
|
+
<state vertical-scroll-proportion="0.0">
|
454
|
+
<caret line="192" column="133" selection-start-line="192" selection-start-column="6" selection-end-line="192" selection-end-column="133" />
|
455
|
+
<folding />
|
456
|
+
</state>
|
457
|
+
</provider>
|
458
|
+
</entry>
|
459
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
460
|
+
<provider selected="true" editor-type-id="text-editor">
|
461
|
+
<state vertical-scroll-proportion="0.0">
|
462
|
+
<caret line="367" column="77" selection-start-line="367" selection-start-column="77" selection-end-line="367" selection-end-column="77" />
|
463
|
+
<folding />
|
464
|
+
</state>
|
465
|
+
</provider>
|
466
|
+
</entry>
|
467
|
+
<entry file="file://$PROJECT_DIR$/lib/dynamodb_framework/version.rb">
|
468
|
+
<provider selected="true" editor-type-id="text-editor">
|
469
|
+
<state vertical-scroll-proportion="0.0">
|
470
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
471
|
+
<folding />
|
472
|
+
</state>
|
473
|
+
</provider>
|
474
|
+
</entry>
|
379
475
|
<entry file="file://$PROJECT_DIR$/.gitignore">
|
380
476
|
<provider selected="true" editor-type-id="text-editor">
|
381
477
|
<state vertical-scroll-proportion="-5.0">
|
382
478
|
<caret line="9" column="10" selection-start-line="9" selection-start-column="10" selection-end-line="9" selection-end-column="10" />
|
383
|
-
<folding />
|
384
479
|
</state>
|
385
480
|
</provider>
|
386
481
|
</entry>
|
@@ -388,7 +483,6 @@
|
|
388
483
|
<provider selected="true" editor-type-id="text-editor">
|
389
484
|
<state vertical-scroll-proportion="0.0">
|
390
485
|
<caret line="19" column="3" selection-start-line="19" selection-start-column="3" selection-end-line="19" selection-end-column="3" />
|
391
|
-
<folding />
|
392
486
|
</state>
|
393
487
|
</provider>
|
394
488
|
</entry>
|
@@ -396,7 +490,6 @@
|
|
396
490
|
<provider selected="true" editor-type-id="text-editor">
|
397
491
|
<state vertical-scroll-proportion="0.0">
|
398
492
|
<caret line="15" column="3" selection-start-line="15" selection-start-column="3" selection-end-line="15" selection-end-column="3" />
|
399
|
-
<folding />
|
400
493
|
</state>
|
401
494
|
</provider>
|
402
495
|
</entry>
|
@@ -404,7 +497,6 @@
|
|
404
497
|
<provider selected="true" editor-type-id="text-editor">
|
405
498
|
<state vertical-scroll-proportion="0.0">
|
406
499
|
<caret line="2" column="12" selection-start-line="2" selection-start-column="12" selection-end-line="2" selection-end-column="12" />
|
407
|
-
<folding />
|
408
500
|
</state>
|
409
501
|
</provider>
|
410
502
|
</entry>
|
@@ -412,7 +504,6 @@
|
|
412
504
|
<provider selected="true" editor-type-id="text-editor">
|
413
505
|
<state vertical-scroll-proportion="0.0">
|
414
506
|
<caret line="6" column="53" selection-start-line="6" selection-start-column="53" selection-end-line="6" selection-end-column="53" />
|
415
|
-
<folding />
|
416
507
|
</state>
|
417
508
|
</provider>
|
418
509
|
</entry>
|
@@ -420,7 +511,6 @@
|
|
420
511
|
<provider selected="true" editor-type-id="text-editor">
|
421
512
|
<state vertical-scroll-proportion="0.0">
|
422
513
|
<caret line="22" column="3" selection-start-line="22" selection-start-column="3" selection-end-line="22" selection-end-column="3" />
|
423
|
-
<folding />
|
424
514
|
</state>
|
425
515
|
</provider>
|
426
516
|
</entry>
|
@@ -428,7 +518,6 @@
|
|
428
518
|
<provider selected="true" editor-type-id="text-editor">
|
429
519
|
<state vertical-scroll-proportion="0.0">
|
430
520
|
<caret line="5" column="3" selection-start-line="5" selection-start-column="3" selection-end-line="5" selection-end-column="3" />
|
431
|
-
<folding />
|
432
521
|
</state>
|
433
522
|
</provider>
|
434
523
|
</entry>
|
@@ -436,7 +525,6 @@
|
|
436
525
|
<provider selected="true" editor-type-id="text-editor">
|
437
526
|
<state vertical-scroll-proportion="0.0">
|
438
527
|
<caret line="8" column="28" selection-start-line="8" selection-start-column="28" selection-end-line="8" selection-end-column="28" />
|
439
|
-
<folding />
|
440
528
|
</state>
|
441
529
|
</provider>
|
442
530
|
</entry>
|
@@ -444,7 +532,6 @@
|
|
444
532
|
<provider selected="true" editor-type-id="text-editor">
|
445
533
|
<state vertical-scroll-proportion="0.0">
|
446
534
|
<caret line="4" column="0" selection-start-line="4" selection-start-column="0" selection-end-line="4" selection-end-column="0" />
|
447
|
-
<folding />
|
448
535
|
</state>
|
449
536
|
</provider>
|
450
537
|
</entry>
|
@@ -452,7 +539,6 @@
|
|
452
539
|
<provider selected="true" editor-type-id="text-editor">
|
453
540
|
<state vertical-scroll-proportion="0.0">
|
454
541
|
<caret line="13" column="80" selection-start-line="13" selection-start-column="80" selection-end-line="13" selection-end-column="80" />
|
455
|
-
<folding />
|
456
542
|
</state>
|
457
543
|
</provider>
|
458
544
|
</entry>
|
@@ -460,61 +546,43 @@
|
|
460
546
|
<provider selected="true" editor-type-id="text-editor">
|
461
547
|
<state vertical-scroll-proportion="0.0">
|
462
548
|
<caret line="14" column="0" selection-start-line="14" selection-start-column="0" selection-end-line="14" selection-end-column="0" />
|
463
|
-
<folding />
|
464
549
|
</state>
|
465
550
|
</provider>
|
466
551
|
</entry>
|
467
|
-
<entry file="file://$PROJECT_DIR$/spec/
|
552
|
+
<entry file="file://$PROJECT_DIR$/spec/test_migration_script1.rb">
|
468
553
|
<provider selected="true" editor-type-id="text-editor">
|
469
554
|
<state vertical-scroll-proportion="0.0">
|
470
|
-
<caret line="
|
471
|
-
<folding />
|
555
|
+
<caret line="22" column="3" selection-start-line="22" selection-start-column="3" selection-end-line="22" selection-end-column="3" />
|
472
556
|
</state>
|
473
557
|
</provider>
|
474
558
|
</entry>
|
475
|
-
<entry file="file://$PROJECT_DIR$/spec/
|
559
|
+
<entry file="file://$PROJECT_DIR$/spec/dynamodb_migration_manager_spec.rb">
|
476
560
|
<provider selected="true" editor-type-id="text-editor">
|
477
561
|
<state vertical-scroll-proportion="0.0">
|
478
|
-
<caret line="
|
479
|
-
<folding />
|
562
|
+
<caret line="1" column="0" selection-start-line="1" selection-start-column="0" selection-end-line="1" selection-end-column="0" />
|
480
563
|
</state>
|
481
564
|
</provider>
|
482
565
|
</entry>
|
483
|
-
<entry file="file://$PROJECT_DIR$/spec/
|
566
|
+
<entry file="file://$PROJECT_DIR$/spec/dynamodb_repository_spec.rb">
|
484
567
|
<provider selected="true" editor-type-id="text-editor">
|
485
568
|
<state vertical-scroll-proportion="0.0">
|
486
|
-
<caret line="
|
569
|
+
<caret line="192" column="133" selection-start-line="192" selection-start-column="6" selection-end-line="192" selection-end-column="133" />
|
487
570
|
<folding />
|
488
571
|
</state>
|
489
572
|
</provider>
|
490
573
|
</entry>
|
491
|
-
<entry file="file://$PROJECT_DIR$/
|
574
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
492
575
|
<provider selected="true" editor-type-id="text-editor">
|
493
576
|
<state vertical-scroll-proportion="0.0">
|
494
|
-
<caret line="
|
495
|
-
<folding
|
496
|
-
<element signature="e#113#345#0" expanded="false" />
|
497
|
-
<element signature="e#349#862#0" expanded="false" />
|
498
|
-
<element signature="e#866#1449#0" expanded="false" />
|
499
|
-
<element signature="e#1453#2109#0" expanded="false" />
|
500
|
-
<element signature="e#2113#2858#0" expanded="false" />
|
501
|
-
<element signature="e#2862#3321#0" expanded="false" />
|
502
|
-
<element signature="e#3325#3467#0" expanded="false" />
|
503
|
-
<element signature="e#3471#3855#0" expanded="false" />
|
504
|
-
<element signature="e#3859#4181#0" expanded="false" />
|
505
|
-
<element signature="e#4185#4565#0" expanded="false" />
|
506
|
-
<element signature="e#4569#4942#0" expanded="false" />
|
507
|
-
<element signature="e#4946#6146#0" expanded="false" />
|
508
|
-
<element signature="e#6150#6794#0" expanded="false" />
|
509
|
-
<element signature="e#6798#7026#0" expanded="false" />
|
510
|
-
</folding>
|
577
|
+
<caret line="367" column="77" selection-start-line="367" selection-start-column="77" selection-end-line="367" selection-end-column="77" />
|
578
|
+
<folding />
|
511
579
|
</state>
|
512
580
|
</provider>
|
513
581
|
</entry>
|
514
|
-
<entry file="file://$PROJECT_DIR$/
|
582
|
+
<entry file="file://$PROJECT_DIR$/spec/dynamodb_table_manager_spec.rb">
|
515
583
|
<provider selected="true" editor-type-id="text-editor">
|
516
584
|
<state vertical-scroll-proportion="0.0">
|
517
|
-
<caret line="
|
585
|
+
<caret line="0" column="9" selection-start-line="0" selection-start-column="9" selection-end-line="0" selection-end-column="9" />
|
518
586
|
<folding />
|
519
587
|
</state>
|
520
588
|
</provider>
|
@@ -527,23 +595,22 @@
|
|
527
595
|
<element signature="e#530#888#0" expanded="false" />
|
528
596
|
<element signature="e#892#1149#0" expanded="false" />
|
529
597
|
<element signature="e#1153#2133#0" expanded="false" />
|
530
|
-
<element signature="e#2137#3853#0" expanded="false" />
|
531
598
|
</folding>
|
532
599
|
</state>
|
533
600
|
</provider>
|
534
601
|
</entry>
|
535
|
-
<entry file="file://$PROJECT_DIR$/
|
602
|
+
<entry file="file://$PROJECT_DIR$/lib/dynamodb_framework/dynamodb_table_manager.rb">
|
536
603
|
<provider selected="true" editor-type-id="text-editor">
|
537
604
|
<state vertical-scroll-proportion="0.0">
|
538
|
-
<caret line="
|
605
|
+
<caret line="2" column="23" selection-start-line="2" selection-start-column="15" selection-end-line="2" selection-end-column="23" />
|
539
606
|
<folding />
|
540
607
|
</state>
|
541
608
|
</provider>
|
542
609
|
</entry>
|
543
|
-
<entry file="file://$PROJECT_DIR$/
|
610
|
+
<entry file="file://$PROJECT_DIR$/lib/dynamodb_framework/dynamodb_migration_manager.rb">
|
544
611
|
<provider selected="true" editor-type-id="text-editor">
|
545
|
-
<state vertical-scroll-proportion="
|
546
|
-
<caret line="
|
612
|
+
<state vertical-scroll-proportion="0.0">
|
613
|
+
<caret line="85" column="0" selection-start-line="85" selection-start-column="0" selection-end-line="85" selection-end-column="0" />
|
547
614
|
<folding />
|
548
615
|
</state>
|
549
616
|
</provider>
|
@@ -10,6 +10,8 @@ class DynamoDbMigrationManager
|
|
10
10
|
|
11
11
|
def connect
|
12
12
|
|
13
|
+
puts 'Connecting to DynamoDb instance.....'
|
14
|
+
|
13
15
|
migration_table_name = 'dynamodb_migrations'
|
14
16
|
|
15
17
|
#check if migration table exists
|
@@ -23,6 +25,8 @@ class DynamoDbMigrationManager
|
|
23
25
|
#set the table name for the repository
|
24
26
|
@dynamodb_repository.table_name = migration_table_name
|
25
27
|
|
28
|
+
puts 'Connected.'
|
29
|
+
|
26
30
|
end
|
27
31
|
|
28
32
|
def get_last_executed_script
|
@@ -36,6 +40,8 @@ class DynamoDbMigrationManager
|
|
36
40
|
|
37
41
|
def apply
|
38
42
|
|
43
|
+
puts 'Applying migration scripts.....'
|
44
|
+
|
39
45
|
last_executed_script = get_last_executed_script()
|
40
46
|
|
41
47
|
scripts = []
|
@@ -46,15 +52,20 @@ class DynamoDbMigrationManager
|
|
46
52
|
|
47
53
|
scripts.sort { |a,b| a.timestamp <=> b.timestamp }.each do |script|
|
48
54
|
if last_executed_script == nil || script.timestamp > last_executed_script
|
55
|
+
puts 'Applying script: ' + script.timestamp + '.....'
|
49
56
|
script.apply
|
50
57
|
@dynamodb_repository.put({ :timestamp => script.timestamp })
|
51
58
|
end
|
52
59
|
end
|
53
60
|
|
61
|
+
puts 'Migration scripts applied.'
|
62
|
+
|
54
63
|
end
|
55
64
|
|
56
65
|
def rollback
|
57
66
|
|
67
|
+
puts 'Rolling back last migration script.....'
|
68
|
+
|
58
69
|
last_executed_script = get_last_executed_script()
|
59
70
|
|
60
71
|
scripts = []
|
@@ -70,6 +81,9 @@ class DynamoDbMigrationManager
|
|
70
81
|
return
|
71
82
|
end
|
72
83
|
end
|
84
|
+
|
85
|
+
puts 'Completed.'
|
86
|
+
|
73
87
|
end
|
74
88
|
|
75
89
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynamodb_framework
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vaughanbrittonsage
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|