sidekiq-scheduler-manager 0.1.9 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 088b9a9c3fdb07639499719835e0fa6b9323dac4
4
- data.tar.gz: bf65f2f7813feb63df81b1d542da0f21fad4ddb9
3
+ metadata.gz: ad9cc500821a93dd288e324f4939e38588ced20e
4
+ data.tar.gz: 6232caca519845c221d46961461fbcceef871a03
5
5
  SHA512:
6
- metadata.gz: 96ab0037c9a31871d78015b27065bea762c21af223b34f94043e40747b6a047ea250723213b47f6961ae64fdb7078f751d491071d7b1d8cc4c0abf3c6e77427e
7
- data.tar.gz: 60057f77cd373028fb24ab74e31fbe24a182454a6dae3852b235fda1401bcd892d90f1591dca8dffe2f283e0ae7cbaeabfbdf57632f29c20518b08bc24d1d343
6
+ metadata.gz: b40840c159f65c40a4eadcda5f09001218012a50b6a75df53b5ec088e415d1246ce71efccefc25f6d4be664c94ba673b6f55fbd669269c77d0cb1f4697082247
7
+ data.tar.gz: cad9660e199ca48e3867353a6001d2b3bdae11964470ec212e5e0a5c954547c4e9c3c582412d6eeb97f58a5860f1ddbcc1801458579d858171183599b95dcfb5
@@ -4,7 +4,7 @@
4
4
  <content url="file://$MODULE_DIR$" />
5
5
  <orderEntry type="inheritedJdk" />
6
6
  <orderEntry type="sourceFolder" forTests="false" />
7
- <orderEntry type="library" scope="PROVIDED" name="activesupport (v5.1.0, RVM: ruby-2.4.0) [gem]" level="application" />
7
+ <orderEntry type="library" scope="PROVIDED" name="activesupport (v5.1.1, RVM: ruby-2.4.0) [gem]" level="application" />
8
8
  <orderEntry type="library" scope="PROVIDED" name="bundler (v1.14.6, RVM: ruby-2.4.0) [gem]" level="application" />
9
9
  <orderEntry type="library" scope="PROVIDED" name="byebug (v9.0.6, RVM: ruby-2.4.0) [gem]" level="application" />
10
10
  <orderEntry type="library" scope="PROVIDED" name="concurrent-ruby (v1.0.5, RVM: ruby-2.4.0) [gem]" level="application" />
@@ -14,15 +14,16 @@
14
14
  <orderEntry type="library" scope="PROVIDED" name="docile (v1.1.5, RVM: ruby-2.4.0) [gem]" level="application" />
15
15
  <orderEntry type="library" scope="PROVIDED" name="globalid (v0.4.0, RVM: ruby-2.4.0) [gem]" level="application" />
16
16
  <orderEntry type="library" scope="PROVIDED" name="hashie (v3.5.5, RVM: ruby-2.4.0) [gem]" level="application" />
17
- <orderEntry type="library" scope="PROVIDED" name="i18n (v0.8.1, RVM: ruby-2.4.0) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="i18n (v0.8.4, RVM: ruby-2.4.0) [gem]" level="application" />
18
18
  <orderEntry type="library" scope="PROVIDED" name="json (v2.1.0, RVM: ruby-2.4.0) [gem]" level="application" />
19
19
  <orderEntry type="library" scope="PROVIDED" name="metaclass (v0.0.4, RVM: ruby-2.4.0) [gem]" level="application" />
20
- <orderEntry type="library" scope="PROVIDED" name="minitest (v5.10.1, RVM: ruby-2.4.0) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="minitest (v5.10.2, RVM: ruby-2.4.0) [gem]" level="application" />
21
21
  <orderEntry type="library" scope="PROVIDED" name="mocha (v0.14.0, RVM: ruby-2.4.0) [gem]" level="application" />
22
22
  <orderEntry type="library" scope="PROVIDED" name="mock_redis (v0.17.3, RVM: ruby-2.4.0) [gem]" level="application" />
23
23
  <orderEntry type="library" scope="PROVIDED" name="multi_json (v1.12.1, RVM: ruby-2.4.0) [gem]" level="application" />
24
- <orderEntry type="library" scope="PROVIDED" name="rack (v1.6.5, RVM: ruby-2.4.0) [gem]" level="application" />
25
- <orderEntry type="library" scope="PROVIDED" name="rack-protection (v1.5.3, RVM: ruby-2.4.0) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="mustermann (v1.0.0, RVM: ruby-2.4.0) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="rack (v2.0.3, RVM: ruby-2.4.0) [gem]" level="application" />
26
+ <orderEntry type="library" scope="PROVIDED" name="rack-protection (v2.0.0, RVM: ruby-2.4.0) [gem]" level="application" />
26
27
  <orderEntry type="library" scope="PROVIDED" name="rack-test (v0.6.3, RVM: ruby-2.4.0) [gem]" level="application" />
27
28
  <orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, RVM: ruby-2.4.0) [gem]" level="application" />
28
29
  <orderEntry type="library" scope="PROVIDED" name="redis (v3.3.3, RVM: ruby-2.4.0) [gem]" level="application" />
@@ -32,17 +33,17 @@
32
33
  <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.6.0, RVM: ruby-2.4.0) [gem]" level="application" />
33
34
  <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.6.0, RVM: ruby-2.4.0) [gem]" level="application" />
34
35
  <orderEntry type="library" scope="PROVIDED" name="rufus-scheduler (v3.1.10, RVM: ruby-2.4.0) [gem]" level="application" />
35
- <orderEntry type="library" scope="PROVIDED" name="sidekiq (v5.0.0, RVM: ruby-2.4.0) [gem]" level="application" />
36
+ <orderEntry type="library" scope="PROVIDED" name="sidekiq (v5.0.2, RVM: ruby-2.4.0) [gem]" level="application" />
36
37
  <orderEntry type="library" scope="PROVIDED" name="sidekiq-scheduler (v2.0.8, RVM: ruby-2.4.0) [gem]" level="application" />
37
38
  <orderEntry type="library" scope="PROVIDED" name="simplecov (v0.14.1, RVM: ruby-2.4.0) [gem]" level="application" />
38
- <orderEntry type="library" scope="PROVIDED" name="simplecov-html (v0.10.0, RVM: ruby-2.4.0) [gem]" level="application" />
39
- <orderEntry type="library" scope="PROVIDED" name="sinatra (v1.4.8, RVM: ruby-2.4.0) [gem]" level="application" />
39
+ <orderEntry type="library" scope="PROVIDED" name="simplecov-html (v0.10.1, RVM: ruby-2.4.0) [gem]" level="application" />
40
+ <orderEntry type="library" scope="PROVIDED" name="sinatra (v2.0.0, RVM: ruby-2.4.0) [gem]" level="application" />
40
41
  <orderEntry type="library" scope="PROVIDED" name="term-ansicolor (v1.6.0, RVM: ruby-2.4.0) [gem]" level="application" />
41
42
  <orderEntry type="library" scope="PROVIDED" name="thor (v0.19.4, RVM: ruby-2.4.0) [gem]" level="application" />
42
43
  <orderEntry type="library" scope="PROVIDED" name="thread_safe (v0.3.6, RVM: ruby-2.4.0) [gem]" level="application" />
43
44
  <orderEntry type="library" scope="PROVIDED" name="tilt (v2.0.7, RVM: ruby-2.4.0) [gem]" level="application" />
44
45
  <orderEntry type="library" scope="PROVIDED" name="timecop (v0.8.1, RVM: ruby-2.4.0) [gem]" level="application" />
45
- <orderEntry type="library" scope="PROVIDED" name="tins (v1.13.2, RVM: ruby-2.4.0) [gem]" level="application" />
46
+ <orderEntry type="library" scope="PROVIDED" name="tins (v1.14.0, RVM: ruby-2.4.0) [gem]" level="application" />
46
47
  <orderEntry type="library" scope="PROVIDED" name="tzinfo (v1.2.3, RVM: ruby-2.4.0) [gem]" level="application" />
47
48
  </component>
48
49
  </module>
data/.idea/workspace.xml CHANGED
@@ -1,10 +1,10 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
- <list default="true" id="7071bd6b-9d26-4e0d-acf0-9b67bbee72e7" name="Default" comment="">
4
+ <list default="true" id="7071bd6b-9d26-4e0d-acf0-9b67bbee72e7" name="Default" comment="refactor">
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/sidekiq-scheduler-manager.iml" afterPath="$PROJECT_DIR$/.idea/sidekiq-scheduler-manager.iml" />
5
6
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
6
7
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/sidekiq-scheduler-manager/version.rb" afterPath="$PROJECT_DIR$/lib/sidekiq-scheduler-manager/version.rb" />
7
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/sidekiq-scheduler-manager/web.rb" afterPath="$PROJECT_DIR$/lib/sidekiq-scheduler-manager/web.rb" />
8
8
  </list>
9
9
  <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
10
10
  <option name="TRACKING_ENABLED" value="true" />
@@ -18,21 +18,11 @@
18
18
  </component>
19
19
  <component name="FileEditorManager">
20
20
  <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
21
- <file leaf-file-name="web.rb" pinned="false" current-in-tab="true">
21
+ <file leaf-file-name="web.rb" pinned="false" current-in-tab="false">
22
22
  <entry file="file://$PROJECT_DIR$/lib/sidekiq-scheduler-manager/web.rb">
23
23
  <provider selected="true" editor-type-id="text-editor">
24
- <state relative-caret-position="624">
25
- <caret line="92" column="51" lean-forward="false" selection-start-line="92" selection-start-column="51" selection-end-line="92" selection-end-column="51" />
26
- <folding />
27
- </state>
28
- </provider>
29
- </entry>
30
- </file>
31
- <file leaf-file-name="scheduler.rb" pinned="false" current-in-tab="false">
32
- <entry file="file://$USER_HOME$/.rvm/gems/ruby-2.4.0/gems/sidekiq-scheduler-2.0.8/lib/sidekiq/scheduler.rb">
33
- <provider selected="true" editor-type-id="text-editor">
34
- <state relative-caret-position="3810">
35
- <caret line="254" column="13" lean-forward="false" selection-start-line="254" selection-start-column="13" selection-end-line="254" selection-end-column="13" />
24
+ <state relative-caret-position="690">
25
+ <caret line="165" column="9" lean-forward="false" selection-start-line="165" selection-start-column="9" selection-end-line="165" selection-end-column="9" />
36
26
  <folding />
37
27
  </state>
38
28
  </provider>
@@ -41,18 +31,18 @@
41
31
  <file leaf-file-name="sidekiq-scheduler-manager.gemspec" pinned="false" current-in-tab="false">
42
32
  <entry file="file://$PROJECT_DIR$/sidekiq-scheduler-manager.gemspec">
43
33
  <provider selected="true" editor-type-id="text-editor">
44
- <state relative-caret-position="150">
34
+ <state relative-caret-position="-105">
45
35
  <caret line="10" column="0" lean-forward="false" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" />
46
36
  <folding />
47
37
  </state>
48
38
  </provider>
49
39
  </entry>
50
40
  </file>
51
- <file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
41
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="true">
52
42
  <entry file="file://$PROJECT_DIR$/lib/sidekiq-scheduler-manager/version.rb">
53
43
  <provider selected="true" editor-type-id="text-editor">
54
- <state relative-caret-position="45">
55
- <caret line="3" column="0" lean-forward="true" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
44
+ <state relative-caret-position="15">
45
+ <caret line="1" column="18" lean-forward="false" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
56
46
  <folding />
57
47
  </state>
58
48
  </provider>
@@ -61,8 +51,8 @@
61
51
  <file leaf-file-name="scheduler_edit.html.erb" pinned="false" current-in-tab="false">
62
52
  <entry file="file://$PROJECT_DIR$/web/views/scheduler_edit.html.erb">
63
53
  <provider selected="true" editor-type-id="text-editor">
64
- <state relative-caret-position="360">
65
- <caret line="24" column="10" lean-forward="false" selection-start-line="24" selection-start-column="10" selection-end-line="24" selection-end-column="10" />
54
+ <state relative-caret-position="276">
55
+ <caret line="44" column="193" lean-forward="false" selection-start-line="44" selection-start-column="193" selection-end-line="44" selection-end-column="193" />
66
56
  <folding />
67
57
  </state>
68
58
  </provider>
@@ -81,9 +71,12 @@
81
71
  <file leaf-file-name="scheduler.html.erb" pinned="false" current-in-tab="false">
82
72
  <entry file="file://$PROJECT_DIR$/web/views/scheduler.html.erb">
83
73
  <provider selected="true" editor-type-id="text-editor">
84
- <state relative-caret-position="315">
85
- <caret line="21" column="11" lean-forward="false" selection-start-line="21" selection-start-column="11" selection-end-line="21" selection-end-column="11" />
86
- <folding />
74
+ <state relative-caret-position="165">
75
+ <caret line="11" column="16" lean-forward="false" selection-start-line="11" selection-start-column="16" selection-end-line="11" selection-end-column="16" />
76
+ <folding>
77
+ <element signature="e#262#268#0#HTML" expanded="true" />
78
+ <element signature="e#369#375#0#HTML" expanded="true" />
79
+ </folding>
87
80
  </state>
88
81
  </provider>
89
82
  </entry>
@@ -126,12 +119,12 @@
126
119
  <option value="$PROJECT_DIR$/.gitignore" />
127
120
  <option value="$PROJECT_DIR$/README.md" />
128
121
  <option value="$PROJECT_DIR$/web/views/scheduler_new.html.erb" />
129
- <option value="$PROJECT_DIR$/web/views/scheduler.html.erb" />
130
122
  <option value="$PROJECT_DIR$/sidekiq-scheduler-manager.gemspec" />
131
123
  <option value="$PROJECT_DIR$/lib/sidekiq-scheduler-manager.rb" />
124
+ <option value="$PROJECT_DIR$/lib/sidekiq-scheduler-manager/web.rb" />
125
+ <option value="$PROJECT_DIR$/web/views/scheduler.html.erb" />
132
126
  <option value="$PROJECT_DIR$/web/views/scheduler_edit.html.erb" />
133
127
  <option value="$PROJECT_DIR$/lib/sidekiq-scheduler-manager/version.rb" />
134
- <option value="$PROJECT_DIR$/lib/sidekiq-scheduler-manager/web.rb" />
135
128
  </list>
136
129
  </option>
137
130
  </component>
@@ -161,6 +154,7 @@
161
154
  </navigator>
162
155
  <panes>
163
156
  <pane id="Scratches" />
157
+ <pane id="Scope" />
164
158
  <pane id="ProjectPane">
165
159
  <subPane>
166
160
  <PATH>
@@ -275,7 +269,6 @@
275
269
  </PATH>
276
270
  </subPane>
277
271
  </pane>
278
- <pane id="Scope" />
279
272
  </panes>
280
273
  </component>
281
274
  <component name="PropertiesComponent">
@@ -443,7 +436,7 @@
443
436
  <option name="presentableId" value="Default" />
444
437
  <updated>1493825343490</updated>
445
438
  <workItem from="1493825345924" duration="3966000" />
446
- <workItem from="1494577333919" duration="791000" />
439
+ <workItem from="1497513458454" duration="1492000" />
447
440
  </task>
448
441
  <task id="LOCAL-00001" summary="refactor">
449
442
  <created>1493826717828</created>
@@ -578,29 +571,29 @@
578
571
  <option name="project" value="LOCAL" />
579
572
  <updated>1493972618097</updated>
580
573
  </task>
581
- <task id="LOCAL-00020" summary="fix arround bug">
582
- <created>1493983287545</created>
574
+ <task id="LOCAL-00020" summary="refactor">
575
+ <created>1497515379405</created>
583
576
  <option name="number" value="00020" />
584
577
  <option name="presentableId" value="LOCAL-00020" />
585
578
  <option name="project" value="LOCAL" />
586
- <updated>1493983287545</updated>
579
+ <updated>1497515379406</updated>
587
580
  </task>
588
- <task id="LOCAL-00021" summary="fix arround bug">
589
- <created>1494577400013</created>
581
+ <task id="LOCAL-00021" summary="refactor">
582
+ <created>1497515599929</created>
590
583
  <option name="number" value="00021" />
591
584
  <option name="presentableId" value="LOCAL-00021" />
592
585
  <option name="project" value="LOCAL" />
593
- <updated>1494577400013</updated>
586
+ <updated>1497515599929</updated>
594
587
  </task>
595
588
  <option name="localTasksCounter" value="22" />
596
589
  <servers />
597
590
  </component>
598
591
  <component name="TimeTrackingManager">
599
- <option name="totallyTimeSpent" value="22361000" />
592
+ <option name="totallyTimeSpent" value="21635000" />
600
593
  </component>
601
594
  <component name="ToolWindowManager">
602
595
  <frame x="0" y="0" width="1920" height="1080" extended-state="0" />
603
- <editor active="true" />
596
+ <editor active="false" />
604
597
  <layout>
605
598
  <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.17305644" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
606
599
  <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3291506" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
@@ -609,7 +602,7 @@
609
602
  <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.17277992" sideWeight="0.49361023" order="8" side_tool="false" content_ui="tabs" />
610
603
  <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3262548" sideWeight="0.4978701" order="2" side_tool="false" content_ui="tabs" />
611
604
  <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" />
612
- <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3127413" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
605
+ <window_info id="Terminal" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.27799228" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
613
606
  <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" />
614
607
  <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.51984125" sideWeight="0.49574015" order="5" side_tool="false" content_ui="tabs" />
615
608
  <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="3" side_tool="false" content_ui="tabs" />
@@ -631,8 +624,7 @@
631
624
  <component name="VcsManagerConfiguration">
632
625
  <option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="false" />
633
626
  <MESSAGE value="refactor" />
634
- <MESSAGE value="fix arround bug" />
635
- <option name="LAST_COMMIT_MESSAGE" value="fix arround bug" />
627
+ <option name="LAST_COMMIT_MESSAGE" value="refactor" />
636
628
  </component>
637
629
  <component name="XDebuggerManager">
638
630
  <breakpoint-manager />
@@ -641,8 +633,8 @@
641
633
  <component name="editorHistoryManager">
642
634
  <entry file="file://$PROJECT_DIR$/lib/sidekiq-scheduler-manager/version.rb">
643
635
  <provider selected="true" editor-type-id="text-editor">
644
- <state relative-caret-position="45">
645
- <caret line="3" column="0" lean-forward="true" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
636
+ <state relative-caret-position="15">
637
+ <caret line="1" column="18" lean-forward="false" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
646
638
  <folding />
647
639
  </state>
648
640
  </provider>
@@ -667,7 +659,10 @@
667
659
  <provider selected="true" editor-type-id="text-editor">
668
660
  <state relative-caret-position="315">
669
661
  <caret line="21" column="11" lean-forward="false" selection-start-line="21" selection-start-column="11" selection-end-line="21" selection-end-column="11" />
670
- <folding />
662
+ <folding>
663
+ <element signature="e#262#268#0#HTML" expanded="true" />
664
+ <element signature="e#369#375#0#HTML" expanded="true" />
665
+ </folding>
671
666
  </state>
672
667
  </provider>
673
668
  </entry>
@@ -861,6 +856,14 @@
861
856
  </state>
862
857
  </provider>
863
858
  </entry>
859
+ <entry file="file://$USER_HOME$/.rvm/gems/ruby-2.4.0/gems/sidekiq-scheduler-2.0.8/lib/sidekiq/scheduler.rb">
860
+ <provider selected="true" editor-type-id="text-editor">
861
+ <state relative-caret-position="3480">
862
+ <caret line="232" column="42" lean-forward="false" selection-start-line="232" selection-start-column="42" selection-end-line="232" selection-end-column="42" />
863
+ <folding />
864
+ </state>
865
+ </provider>
866
+ </entry>
864
867
  <entry file="file://$PROJECT_DIR$/Gemfile">
865
868
  <provider selected="true" editor-type-id="text-editor">
866
869
  <state relative-caret-position="0">
@@ -873,13 +876,6 @@
873
876
  <provider selected="true" editor-type-id="text-editor">
874
877
  <state relative-caret-position="60">
875
878
  <caret line="4" column="20" lean-forward="false" selection-start-line="4" selection-start-column="20" selection-end-line="4" selection-end-column="20" />
876
- </state>
877
- </provider>
878
- </entry>
879
- <entry file="file://$PROJECT_DIR$/web/views/scheduler.html.erb">
880
- <provider selected="true" editor-type-id="text-editor">
881
- <state relative-caret-position="315">
882
- <caret line="21" column="11" lean-forward="false" selection-start-line="21" selection-start-column="11" selection-end-line="21" selection-end-column="11" />
883
879
  <folding />
884
880
  </state>
885
881
  </provider>
@@ -888,6 +884,7 @@
888
884
  <provider selected="true" editor-type-id="text-editor">
889
885
  <state relative-caret-position="60">
890
886
  <caret line="4" column="19" lean-forward="false" selection-start-line="4" selection-start-column="19" selection-end-line="4" selection-end-column="19" />
887
+ <folding />
891
888
  </state>
892
889
  </provider>
893
890
  </entry>
@@ -898,50 +895,53 @@
898
895
  </state>
899
896
  </provider>
900
897
  </entry>
901
- <entry file="file://$PROJECT_DIR$/lib/sidekiq-scheduler-manager.rb">
898
+ <entry file="file://$PROJECT_DIR$/sidekiq-scheduler-manager.gemspec">
902
899
  <provider selected="true" editor-type-id="text-editor">
903
- <state relative-caret-position="90">
904
- <caret line="6" column="35" lean-forward="false" selection-start-line="6" selection-start-column="35" selection-end-line="6" selection-end-column="35" />
900
+ <state relative-caret-position="-105">
901
+ <caret line="10" column="0" lean-forward="false" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" />
905
902
  <folding />
906
903
  </state>
907
904
  </provider>
908
905
  </entry>
909
- <entry file="file://$PROJECT_DIR$/web/views/scheduler_edit.html.erb">
906
+ <entry file="file://$PROJECT_DIR$/lib/sidekiq-scheduler-manager.rb">
910
907
  <provider selected="true" editor-type-id="text-editor">
911
- <state relative-caret-position="360">
912
- <caret line="24" column="10" lean-forward="false" selection-start-line="24" selection-start-column="10" selection-end-line="24" selection-end-column="10" />
908
+ <state relative-caret-position="90">
909
+ <caret line="6" column="35" lean-forward="false" selection-start-line="6" selection-start-column="35" selection-end-line="6" selection-end-column="35" />
913
910
  <folding />
914
911
  </state>
915
912
  </provider>
916
913
  </entry>
917
- <entry file="file://$USER_HOME$/.rvm/gems/ruby-2.4.0/gems/sidekiq-scheduler-2.0.8/lib/sidekiq/scheduler.rb">
914
+ <entry file="file://$PROJECT_DIR$/lib/sidekiq-scheduler-manager/web.rb">
918
915
  <provider selected="true" editor-type-id="text-editor">
919
- <state relative-caret-position="3810">
920
- <caret line="254" column="13" lean-forward="false" selection-start-line="254" selection-start-column="13" selection-end-line="254" selection-end-column="13" />
916
+ <state relative-caret-position="690">
917
+ <caret line="165" column="9" lean-forward="false" selection-start-line="165" selection-start-column="9" selection-end-line="165" selection-end-column="9" />
921
918
  <folding />
922
919
  </state>
923
920
  </provider>
924
921
  </entry>
925
- <entry file="file://$PROJECT_DIR$/sidekiq-scheduler-manager.gemspec">
922
+ <entry file="file://$PROJECT_DIR$/web/views/scheduler.html.erb">
926
923
  <provider selected="true" editor-type-id="text-editor">
927
- <state relative-caret-position="150">
928
- <caret line="10" column="0" lean-forward="false" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" />
929
- <folding />
924
+ <state relative-caret-position="165">
925
+ <caret line="11" column="16" lean-forward="false" selection-start-line="11" selection-start-column="16" selection-end-line="11" selection-end-column="16" />
926
+ <folding>
927
+ <element signature="e#262#268#0#HTML" expanded="true" />
928
+ <element signature="e#369#375#0#HTML" expanded="true" />
929
+ </folding>
930
930
  </state>
931
931
  </provider>
932
932
  </entry>
933
- <entry file="file://$PROJECT_DIR$/lib/sidekiq-scheduler-manager/version.rb">
933
+ <entry file="file://$PROJECT_DIR$/web/views/scheduler_edit.html.erb">
934
934
  <provider selected="true" editor-type-id="text-editor">
935
- <state relative-caret-position="45">
936
- <caret line="3" column="0" lean-forward="true" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
935
+ <state relative-caret-position="276">
936
+ <caret line="44" column="193" lean-forward="false" selection-start-line="44" selection-start-column="193" selection-end-line="44" selection-end-column="193" />
937
937
  <folding />
938
938
  </state>
939
939
  </provider>
940
940
  </entry>
941
- <entry file="file://$PROJECT_DIR$/lib/sidekiq-scheduler-manager/web.rb">
941
+ <entry file="file://$PROJECT_DIR$/lib/sidekiq-scheduler-manager/version.rb">
942
942
  <provider selected="true" editor-type-id="text-editor">
943
- <state relative-caret-position="624">
944
- <caret line="92" column="51" lean-forward="false" selection-start-line="92" selection-start-column="51" selection-end-line="92" selection-end-column="51" />
943
+ <state relative-caret-position="15">
944
+ <caret line="1" column="18" lean-forward="false" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
945
945
  <folding />
946
946
  </state>
947
947
  </provider>
@@ -1,3 +1,3 @@
1
1
  module SidekiqSchedulerManager
2
- VERSION = "0.1.9"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -140,6 +140,31 @@ module SidekiqSchedulerManager
140
140
  redirect "#{root_path}schedulers"
141
141
  end
142
142
 
143
+ app.get '/schedulers/export' do
144
+ schedulers = Sidekiq.get_all_schedules
145
+ hash={}
146
+ schedulers.each do |key, value|
147
+ hash[key] = value
148
+ end
149
+ File.open("scheduler_backup.json", "wb") { |file| file.puts JSON.pretty_generate(hash) }
150
+
151
+ # send_data JSON.pretty_generate(hash), filename: "schedule.json", disposition: "attachment", :content_type => 'application/json'
152
+ redirect "#{root_path}schedulers"
153
+ end
154
+
155
+ app.get '/schedulers/import' do
156
+ file = File.read('scheduler_backup.json')
157
+ data_hash = JSON.parse(file)
158
+
159
+ data_hash.each do |job_name, data|
160
+ unless job_name.to_s.strip.empty?
161
+ Sidekiq.set_schedule(job_name, data)
162
+ end
163
+ end
164
+
165
+ redirect "#{root_path}schedulers"
166
+ end
167
+
143
168
  end
144
169
  end
145
170
  end
@@ -3,10 +3,17 @@
3
3
  <div class="table_container">
4
4
  <table class="table table-hover table-bordered table-striped table-white">
5
5
  <thead>
6
-
7
- <a class="btn btn-warn btn-xs" href="schedulers/new">
8
- <%= t('Create') %>
9
- </a>
6
+ <tr>
7
+ <a class="btn btn-warn btn-xs" href="schedulers/new">
8
+ <%= t('Create') %>
9
+ </a>&nbsp;
10
+ <a class="btn btn-warn btn-xs" href="schedulers/export">
11
+ <%= t('Export') %>
12
+ </a>&nbsp;
13
+ <a class="btn btn-warn btn-xs" href="schedulers/import">
14
+ <%= t('Import') %>
15
+ </a>
16
+ </tr>
10
17
  <tr>
11
18
  <th><%= t('name') %></th>
12
19
  <th><%= t('description') %></th>
@@ -42,7 +42,7 @@
42
42
  <div class="form-group">
43
43
  <label class="col-lg-3 control-label" for="name">args</label>
44
44
  <div class="col-lg-7">
45
- <input class="form-control required" placeholder="args" name="scheduler[args]" type="text" value="<%= @scheduler['args'] %>">
45
+ <input class="form-control required" placeholder="args" name="scheduler[args]" type="text" value='<%= @scheduler['args'].is_a?(Array) ? JSON.unparse(@scheduler['args']) : @scheduler['args'] %>'>
46
46
  </div>
47
47
  </div>
48
48
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-scheduler-manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - vudn-job
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-15 00:00:00.000000000 Z
11
+ date: 2017-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler