polarbear 0.0.2 → 0.0.3

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: 944b63987231e58ddb7d0633603c94e536466cc5
4
- data.tar.gz: fb7d16d234ce0536af69b8b25672036e6acf68c1
3
+ metadata.gz: 836c4e7b54fafbca443aaaa57269f3446599075d
4
+ data.tar.gz: 45315e7cf3b88b47f6f44c77c8263030ecca80eb
5
5
  SHA512:
6
- metadata.gz: d0d05ce5fa4b1ce587bb043ec3817f1ca2a8a4d047cb742cab1abe5a37d7ac060defe8a20c05d16cfaf35b9ce62ba99f0b04034aa38b77671e0486da08a9ae07
7
- data.tar.gz: 94724896e7dd9a953dd980e96ee9125eb71a28d0a3afd7d93bdadbb4a4432a326a8cc359a3f886daa186c3946ec405f3601c4e292c247fec44dbfa504bc64a94
6
+ metadata.gz: 12e36857b9554fab53cf80e499d1f1e32c88c056bc9156ab8d612e20967b8e4295bcab1fc8558bccc47be0ca38eaa01d8381bfd210e750c026413d8173d4650c
7
+ data.tar.gz: 8d0e40b122cdf0ebd06ac1349d0b83880a83b8f658416d2c3b3e6966bbd8a9da0ed6a6e763b45ec62d29fd2e3e4a5830f8684fb9e0616ce4acc69297148b5107
@@ -15,7 +15,7 @@
15
15
  <orderEntry type="sourceFolder" forTests="false" />
16
16
  <orderEntry type="library" scope="PROVIDED" name="addressable (v2.3.5, RVM: ruby-2.0.0-head) [gem]" level="application" />
17
17
  <orderEntry type="library" scope="PROVIDED" name="builder (v3.2.2, RVM: ruby-2.0.0-head) [gem]" level="application" />
18
- <orderEntry type="library" scope="PROVIDED" name="bundler (v1.3.5, RVM: ruby-2.0.0-head) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.5.3, RVM: ruby-2.0.0-head) [gem]" level="application" />
19
19
  <orderEntry type="library" scope="PROVIDED" name="celluloid (v0.15.2, RVM: ruby-2.0.0-head) [gem]" level="application" />
20
20
  <orderEntry type="library" scope="PROVIDED" name="cli-colorize (v2.0.0, RVM: ruby-2.0.0-head) [gem]" level="application" />
21
21
  <orderEntry type="library" scope="PROVIDED" name="coderay (v1.1.0, RVM: ruby-2.0.0-head) [gem]" level="application" />
@@ -2,7 +2,9 @@
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
4
  <list default="true" id="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" name="Default" comment="">
5
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/bin/poohbear-review-open" />
5
6
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/polarbear/version.rb" afterPath="$PROJECT_DIR$/lib/polarbear/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="polarbear.iws" />
8
10
  <ignored path=".idea/workspace.xml" />
@@ -10,17 +12,17 @@
10
12
  <file path="/poohbear" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1394052094572" ignored="false" />
11
13
  <file path="/polarbear.gemspec" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1394135029194" ignored="false" />
12
14
  <file path="/command_executor.rb" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1394130188799" ignored="false" />
13
- <file path="/executor.rb" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1393975404801" ignored="false" />
14
- <file path="/admin.rb" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1393969673330" ignored="false" />
15
+ <file path="/executor.rb" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1394206742035" ignored="false" />
16
+ <file path="/admin.rb" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1394145010700" ignored="false" />
15
17
  <file path="/codecollab.rb" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1394138928199" ignored="false" />
16
- <file path="/review.rb" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1393981772965" ignored="false" />
17
- <file path="/batch.rb" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1393979111043" ignored="false" />
18
- <file path="/polarbear.rb" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1393970943917" ignored="false" />
18
+ <file path="/review.rb" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1394206625493" ignored="false" />
19
+ <file path="/batch.rb" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1394145125433" ignored="false" />
20
+ <file path="/polarbear.rb" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1394145627219" ignored="false" />
19
21
  <file path="/configuration.rb" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1394056720873" ignored="false" />
20
- <file path="/report.rb" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1393973563168" ignored="false" />
22
+ <file path="/report.rb" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1394145087079" ignored="false" />
21
23
  <file path="/config.rb" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1394058296668" ignored="false" />
22
24
  <file path="/temp.rb" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1394130814640" ignored="false" />
23
- <file path="/admin_review.rb" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1393982287085" ignored="false" />
25
+ <file path="/admin_review.rb" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1394144662273" ignored="false" />
24
26
  <file path="/poohbear-login" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1394056872953" ignored="false" />
25
27
  <file path="/poohbear-review" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1394058885524" ignored="false" />
26
28
  <file path="/poohbear-logout" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1394124013778" ignored="false" />
@@ -52,6 +54,10 @@
52
54
  <file path="/spec_helper.rb" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1394130875954" ignored="false" />
53
55
  <file path="$PROJECT_DIR$/../gitit/Gemfile.lock" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1394136735068" ignored="false" />
54
56
  <file path="/poohbear-review-update" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1394138637562" ignored="false" />
57
+ <file path="/poohbear-review-delete" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1394145436194" ignored="false" />
58
+ <file path="/poohbear-review-cancel" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1394145744583" ignored="false" />
59
+ <file path="/poohbear-review-status" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1394145522406" ignored="false" />
60
+ <file path="/poohbear-review-open" changelist="1491b7e3-61dd-48f7-90b6-06a15ae47c1c" time="1394206662519" ignored="false" />
55
61
  <option name="TRACKING_ENABLED" value="true" />
56
62
  <option name="SHOW_DIALOG" value="false" />
57
63
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -83,19 +89,19 @@
83
89
  </provider>
84
90
  </entry>
85
91
  </file>
86
- <file leaf-file-name="version.rb" pinned="false" current="true" current-in-tab="true">
87
- <entry file="file://$PROJECT_DIR$/lib/polarbear/version.rb">
92
+ <file leaf-file-name="polarbear.rb" pinned="false" current="false" current-in-tab="false">
93
+ <entry file="file://$PROJECT_DIR$/lib/polarbear.rb">
88
94
  <provider selected="true" editor-type-id="text-editor">
89
- <state line="1" column="18" selection-start="35" selection-end="35" vertical-scroll-proportion="0.017214397">
95
+ <state line="6" column="33" selection-start="170" selection-end="170" vertical-scroll-proportion="0.0">
90
96
  <folding />
91
97
  </state>
92
98
  </provider>
93
99
  </entry>
94
100
  </file>
95
- <file leaf-file-name="report.rb" pinned="false" current="false" current-in-tab="false">
96
- <entry file="file://$PROJECT_DIR$/lib/polarbear/command/report.rb">
101
+ <file leaf-file-name="review.rb" pinned="false" current="false" current-in-tab="false">
102
+ <entry file="file://$PROJECT_DIR$/lib/polarbear/model/review.rb">
97
103
  <provider selected="true" editor-type-id="text-editor">
98
- <state line="48" column="35" selection-start="1392" selection-end="1417" vertical-scroll-proportion="0.0">
104
+ <state line="41" column="14" selection-start="717" selection-end="717" vertical-scroll-proportion="0.0">
99
105
  <folding />
100
106
  </state>
101
107
  </provider>
@@ -110,55 +116,55 @@
110
116
  </provider>
111
117
  </entry>
112
118
  </file>
113
- <file leaf-file-name="poohbear-review" pinned="false" current="false" current-in-tab="false">
114
- <entry file="file://$PROJECT_DIR$/bin/poohbear-review">
119
+ <file leaf-file-name="poohbear-review-cancel" pinned="false" current="false" current-in-tab="false">
120
+ <entry file="file://$PROJECT_DIR$/bin/poohbear-review-cancel">
115
121
  <provider selected="true" editor-type-id="text-editor">
116
- <state line="4" column="0" selection-start="50" selection-end="105" vertical-scroll-proportion="0.0">
122
+ <state line="90" column="58" selection-start="2882" selection-end="2882" vertical-scroll-proportion="0.0">
117
123
  <folding />
118
124
  </state>
119
125
  </provider>
120
126
  </entry>
121
127
  </file>
122
- <file leaf-file-name="poohbear-review-create" pinned="false" current="false" current-in-tab="false">
123
- <entry file="file://$PROJECT_DIR$/bin/poohbear-review-create">
128
+ <file leaf-file-name="poohbear-review-open" pinned="false" current="false" current-in-tab="false">
129
+ <entry file="file://$PROJECT_DIR$/bin/poohbear-review-open">
124
130
  <provider selected="true" editor-type-id="text-editor">
125
- <state line="116" column="0" selection-start="0" selection-end="4971" vertical-scroll-proportion="0.0">
131
+ <state line="111" column="31" selection-start="3365" selection-end="3365" vertical-scroll-proportion="0.0">
126
132
  <folding />
127
133
  </state>
128
134
  </provider>
129
135
  </entry>
130
136
  </file>
131
- <file leaf-file-name="poohbear-review-delete" pinned="false" current="false" current-in-tab="false">
132
- <entry file="file://$PROJECT_DIR$/bin/poohbear-review-delete">
137
+ <file leaf-file-name="version.rb" pinned="false" current="true" current-in-tab="true">
138
+ <entry file="file://$PROJECT_DIR$/lib/polarbear/version.rb">
133
139
  <provider selected="true" editor-type-id="text-editor">
134
- <state line="30" column="76" selection-start="1071" selection-end="1071" vertical-scroll-proportion="0.0">
140
+ <state line="1" column="18" selection-start="35" selection-end="35" vertical-scroll-proportion="0.017214397">
135
141
  <folding />
136
142
  </state>
137
143
  </provider>
138
144
  </entry>
139
145
  </file>
140
- <file leaf-file-name="poohbear-review-update" pinned="false" current="false" current-in-tab="false">
141
- <entry file="file://$PROJECT_DIR$/bin/poohbear-review-update">
146
+ <file leaf-file-name="poohbear-review-status" pinned="false" current="false" current-in-tab="false">
147
+ <entry file="file://$PROJECT_DIR$/bin/poohbear-review-status">
142
148
  <provider selected="true" editor-type-id="text-editor">
143
- <state line="112" column="44" selection-start="3758" selection-end="3776" vertical-scroll-proportion="0.0">
149
+ <state line="104" column="43" selection-start="3340" selection-end="3340" vertical-scroll-proportion="0.0">
144
150
  <folding />
145
151
  </state>
146
152
  </provider>
147
153
  </entry>
148
154
  </file>
149
- <file leaf-file-name="polarbear.gemspec" pinned="false" current="false" current-in-tab="false">
150
- <entry file="file://$PROJECT_DIR$/polarbear.gemspec">
155
+ <file leaf-file-name="admin_review.rb" pinned="false" current="false" current-in-tab="false">
156
+ <entry file="file://$PROJECT_DIR$/lib/polarbear/command/admin_review.rb">
151
157
  <provider selected="true" editor-type-id="text-editor">
152
- <state line="14" column="67" selection-start="453" selection-end="453" vertical-scroll-proportion="0.0">
158
+ <state line="7" column="21" selection-start="243" selection-end="254" vertical-scroll-proportion="0.0">
153
159
  <folding />
154
160
  </state>
155
161
  </provider>
156
162
  </entry>
157
163
  </file>
158
- <file leaf-file-name="batch.rb" pinned="false" current="false" current-in-tab="false">
159
- <entry file="file://$PROJECT_DIR$/lib/polarbear/command/batch.rb">
164
+ <file leaf-file-name="poohbear-review-delete" pinned="false" current="false" current-in-tab="false">
165
+ <entry file="file://$PROJECT_DIR$/bin/poohbear-review-delete">
160
166
  <provider selected="true" editor-type-id="text-editor">
161
- <state line="45" column="0" selection-start="1022" selection-end="1022" vertical-scroll-proportion="0.0">
167
+ <state line="104" column="20" selection-start="3317" selection-end="3317" vertical-scroll-proportion="0.0">
162
168
  <folding />
163
169
  </state>
164
170
  </provider>
@@ -183,21 +189,21 @@
183
189
  <component name="IdeDocumentHistory">
184
190
  <option name="changedFiles">
185
191
  <list>
186
- <option value="$PROJECT_DIR$/lib/polarbear/command/admin.rb" />
187
- <option value="$PROJECT_DIR$/lib/polarbear/command/admin_review.rb" />
188
- <option value="$PROJECT_DIR$/lib/polarbear.rb" />
189
- <option value="$PROJECT_DIR$/bin/poohbear" />
190
- <option value="$PROJECT_DIR$/lib/polarbear/model/configuration.rb" />
191
- <option value="$PROJECT_DIR$/lib/polarbear/command/config.rb" />
192
- <option value="$PROJECT_DIR$/bin/poohbear-login" />
193
- <option value="$PROJECT_DIR$/bin/poohbear-review" />
194
- <option value="$PROJECT_DIR$/bin/poohbear-logout" />
195
192
  <option value="$PROJECT_DIR$/polarbear.gemspec" />
196
- <option value="$PROJECT_DIR$/lib/polarbear/utils/executor.rb" />
197
- <option value="$PROJECT_DIR$/lib/polarbear/command/batch.rb" />
198
193
  <option value="$PROJECT_DIR$/bin/poohbear-review-create" />
199
194
  <option value="$PROJECT_DIR$/bin/poohbear-review-update" />
200
195
  <option value="$PROJECT_DIR$/lib/polarbear/codecollab.rb" />
196
+ <option value="$PROJECT_DIR$/lib/polarbear/command/admin_review.rb" />
197
+ <option value="$PROJECT_DIR$/lib/polarbear/command/admin.rb" />
198
+ <option value="$PROJECT_DIR$/lib/polarbear/command/report.rb" />
199
+ <option value="$PROJECT_DIR$/lib/polarbear/command/batch.rb" />
200
+ <option value="$PROJECT_DIR$/bin/poohbear-review-status" />
201
+ <option value="$PROJECT_DIR$/lib/polarbear.rb" />
202
+ <option value="$PROJECT_DIR$/bin/poohbear-review-delete" />
203
+ <option value="$PROJECT_DIR$/bin/poohbear-review-cancel" />
204
+ <option value="$PROJECT_DIR$/bin/poohbear-review-open" />
205
+ <option value="$PROJECT_DIR$/lib/polarbear/model/review.rb" />
206
+ <option value="$PROJECT_DIR$/lib/polarbear/utils/executor.rb" />
201
207
  <option value="$PROJECT_DIR$/lib/polarbear/version.rb" />
202
208
  </list>
203
209
  </option>
@@ -701,107 +707,107 @@
701
707
  </breakpoint-manager>
702
708
  </component>
703
709
  <component name="editorHistoryManager">
704
- <entry file="file://$PROJECT_DIR$/lib/polarbear.rb">
710
+ <entry file="file://$PROJECT_DIR$/polarbear.gemspec">
705
711
  <provider selected="true" editor-type-id="text-editor">
706
- <state line="5" column="0" selection-start="103" selection-end="103" vertical-scroll-proportion="0.0">
712
+ <state line="14" column="67" selection-start="453" selection-end="453" vertical-scroll-proportion="0.0">
707
713
  <folding />
708
714
  </state>
709
715
  </provider>
710
716
  </entry>
711
- <entry file="file://$PROJECT_DIR$/lib/polarbear/model/configuration.rb">
717
+ <entry file="file://$PROJECT_DIR$/bin/poohbear-review-create">
712
718
  <provider selected="true" editor-type-id="text-editor">
713
- <state line="14" column="0" selection-start="181" selection-end="181" vertical-scroll-proportion="0.0">
719
+ <state line="116" column="0" selection-start="0" selection-end="4971" vertical-scroll-proportion="0.0">
714
720
  <folding />
715
721
  </state>
716
722
  </provider>
717
723
  </entry>
718
- <entry file="file://$PROJECT_DIR$/bin/poohbear-login">
724
+ <entry file="file://$PROJECT_DIR$/lib/polarbear/command/report.rb">
719
725
  <provider selected="true" editor-type-id="text-editor">
720
- <state line="85" column="40" selection-start="2612" selection-end="2612" vertical-scroll-proportion="0.0">
726
+ <state line="66" column="24" selection-start="1922" selection-end="1932" vertical-scroll-proportion="0.0">
721
727
  <folding />
722
728
  </state>
723
729
  </provider>
724
730
  </entry>
725
- <entry file="file://$PROJECT_DIR$/bin/poohbear-logout">
731
+ <entry file="file://$PROJECT_DIR$/lib/polarbear/command/batch.rb">
726
732
  <provider selected="true" editor-type-id="text-editor">
727
- <state line="9" column="35" selection-start="288" selection-end="288" vertical-scroll-proportion="0.0">
733
+ <state line="46" column="0" selection-start="1075" selection-end="1075" vertical-scroll-proportion="0.0">
728
734
  <folding />
729
735
  </state>
730
736
  </provider>
731
737
  </entry>
732
- <entry file="file://$PROJECT_DIR$/bin/poohbear">
738
+ <entry file="file://$PROJECT_DIR$/bin/poohbear-review-update">
733
739
  <provider selected="true" editor-type-id="text-editor">
734
- <state line="104" column="0" selection-start="3180" selection-end="3464" vertical-scroll-proportion="0.0">
740
+ <state line="112" column="44" selection-start="0" selection-end="4048" vertical-scroll-proportion="0.0">
735
741
  <folding />
736
742
  </state>
737
743
  </provider>
738
744
  </entry>
739
- <entry file="file://$PROJECT_DIR$/lib/polarbear/command/config.rb">
745
+ <entry file="file://$PROJECT_DIR$/lib/polarbear/command/admin.rb">
740
746
  <provider selected="true" editor-type-id="text-editor">
741
- <state line="25" column="0" selection-start="711" selection-end="711" vertical-scroll-proportion="0.0">
747
+ <state line="17" column="23" selection-start="687" selection-end="700" vertical-scroll-proportion="0.0">
742
748
  <folding />
743
749
  </state>
744
750
  </provider>
745
751
  </entry>
746
- <entry file="file://$PROJECT_DIR$/bin/poohbear-review">
752
+ <entry file="file://$PROJECT_DIR$/lib/polarbear/command/admin_review.rb">
747
753
  <provider selected="true" editor-type-id="text-editor">
748
- <state line="4" column="0" selection-start="50" selection-end="105" vertical-scroll-proportion="0.0">
754
+ <state line="7" column="21" selection-start="243" selection-end="254" vertical-scroll-proportion="0.0">
749
755
  <folding />
750
756
  </state>
751
757
  </provider>
752
758
  </entry>
753
- <entry file="file://$PROJECT_DIR$/polarbear.gemspec">
759
+ <entry file="file://$PROJECT_DIR$/lib/polarbear/codecollab.rb">
754
760
  <provider selected="true" editor-type-id="text-editor">
755
- <state line="14" column="67" selection-start="453" selection-end="453" vertical-scroll-proportion="0.0">
761
+ <state line="65" column="69" selection-start="2233" selection-end="2233" vertical-scroll-proportion="0.0">
756
762
  <folding />
757
763
  </state>
758
764
  </provider>
759
765
  </entry>
760
- <entry file="file://$PROJECT_DIR$/lib/polarbear/utils/executor.rb">
766
+ <entry file="file://$PROJECT_DIR$/lib/polarbear.rb">
761
767
  <provider selected="true" editor-type-id="text-editor">
762
- <state line="22" column="0" selection-start="532" selection-end="532" vertical-scroll-proportion="0.0">
768
+ <state line="6" column="33" selection-start="170" selection-end="170" vertical-scroll-proportion="0.0">
763
769
  <folding />
764
770
  </state>
765
771
  </provider>
766
772
  </entry>
767
- <entry file="file://$PROJECT_DIR$/lib/polarbear/command/batch.rb">
773
+ <entry file="file://$PROJECT_DIR$/bin/poohbear-review-status">
768
774
  <provider selected="true" editor-type-id="text-editor">
769
- <state line="45" column="0" selection-start="1022" selection-end="1022" vertical-scroll-proportion="0.0">
775
+ <state line="104" column="43" selection-start="3340" selection-end="3340" vertical-scroll-proportion="0.0">
770
776
  <folding />
771
777
  </state>
772
778
  </provider>
773
779
  </entry>
774
- <entry file="file://$PROJECT_DIR$/bin/poohbear-review-create">
780
+ <entry file="file://$PROJECT_DIR$/bin/poohbear-review-delete">
775
781
  <provider selected="true" editor-type-id="text-editor">
776
- <state line="116" column="0" selection-start="0" selection-end="4971" vertical-scroll-proportion="0.0">
782
+ <state line="104" column="20" selection-start="3317" selection-end="3317" vertical-scroll-proportion="0.0">
777
783
  <folding />
778
784
  </state>
779
785
  </provider>
780
786
  </entry>
781
- <entry file="file://$PROJECT_DIR$/bin/poohbear-review-delete">
787
+ <entry file="file://$PROJECT_DIR$/bin/poohbear-review-cancel">
782
788
  <provider selected="true" editor-type-id="text-editor">
783
- <state line="30" column="76" selection-start="1071" selection-end="1071" vertical-scroll-proportion="0.0">
789
+ <state line="90" column="58" selection-start="2882" selection-end="2882" vertical-scroll-proportion="0.0">
784
790
  <folding />
785
791
  </state>
786
792
  </provider>
787
793
  </entry>
788
- <entry file="file://$PROJECT_DIR$/lib/polarbear/command/report.rb">
794
+ <entry file="file://$PROJECT_DIR$/lib/polarbear/model/review.rb">
789
795
  <provider selected="true" editor-type-id="text-editor">
790
- <state line="48" column="35" selection-start="1392" selection-end="1417" vertical-scroll-proportion="0.0">
796
+ <state line="41" column="14" selection-start="717" selection-end="717" vertical-scroll-proportion="0.0">
791
797
  <folding />
792
798
  </state>
793
799
  </provider>
794
800
  </entry>
795
- <entry file="file://$PROJECT_DIR$/bin/poohbear-review-update">
801
+ <entry file="file://$PROJECT_DIR$/lib/polarbear/utils/executor.rb">
796
802
  <provider selected="true" editor-type-id="text-editor">
797
- <state line="112" column="44" selection-start="3758" selection-end="3776" vertical-scroll-proportion="0.0">
803
+ <state line="22" column="0" selection-start="532" selection-end="532" vertical-scroll-proportion="0.0">
798
804
  <folding />
799
805
  </state>
800
806
  </provider>
801
807
  </entry>
802
- <entry file="file://$PROJECT_DIR$/lib/polarbear/codecollab.rb">
808
+ <entry file="file://$PROJECT_DIR$/bin/poohbear-review-open">
803
809
  <provider selected="true" editor-type-id="text-editor">
804
- <state line="65" column="69" selection-start="2233" selection-end="2233" vertical-scroll-proportion="0.0">
810
+ <state line="111" column="31" selection-start="3365" selection-end="3365" vertical-scroll-proportion="0.0">
805
811
  <folding />
806
812
  </state>
807
813
  </provider>
@@ -3,11 +3,12 @@
3
3
  require 'highline/import'
4
4
  require 'base64'
5
5
  require 'polarbear'
6
+ require 'gitit'
6
7
 
7
8
  #-----------------------------------------------------------------------------
8
9
  #-----------------------------------------------------------------------------
9
10
  def usage
10
- puts 'Commands for login in your code collaborator server.'
11
+ puts 'Commands for updating an existing review.'
11
12
  exit 0
12
13
  end
13
14
 
@@ -16,37 +17,23 @@ end
16
17
  #-----------------------------------------------------------------------------
17
18
 
18
19
  #-----------------------------------------------------------------------------
19
- # This hash will hold all of the options parsed from the command-line by
20
- # OptionParser.
21
- # login/logout
22
- # creating a new review (reviewer/observers, title)
23
- # adding diff to an existing review
24
- # cancelling review
25
- # finishing a review
26
- # deleting a review
27
- # open a review in the browser
28
- # get review info such as state by id or by title
20
+ # Will try to infer the source control mechanism if possible and call.
29
21
  #-----------------------------------------------------------------------------
30
22
  options = {}
31
23
 
32
24
  optparse = OptionParser.new do |opts|
33
25
  # Set a banner, displayed at the top of the help screen.
34
- opts.banner = 'Usage: poohbear [options] oldbranch newbranch ...'
26
+ opts.banner = 'Usage: poohbear update [options]'
35
27
 
36
28
  # Define the options, and what they do
37
- options[:username] = nil
38
- opts.on('-n', '--username username', 'username') do |l|
39
- options[:username] = l
29
+ options[:title] = nil
30
+ opts.on('-t', '--title title', 'review title') do |title|
31
+ options[:title] = title
40
32
  end
41
33
 
42
- options[:password] = nil
43
- opts.on('-p', '--password PASSWORD', 'password') do |l|
44
- options[:password] = l
45
- end
46
-
47
- options[:url] = nil
48
- opts.on('-s', '--url URL', 'url') do |l|
49
- options[:url] = l
34
+ options[:id] = nil
35
+ opts.on('-i', '--id reviewid', 'review id') do |reviewid|
36
+ options[:id] = reviewid
50
37
  end
51
38
 
52
39
  options[:usage] = nil
@@ -54,6 +41,11 @@ optparse = OptionParser.new do |opts|
54
41
  options[:usage] = true
55
42
  end
56
43
 
44
+ options[:auto_answer] = nil
45
+ opts.on( '-y', '--auto_answer', 'Won\'t prompt the user for anything and rely on args and defaults' ) do
46
+ options[:auto_answer] = true
47
+ end
48
+
57
49
  opts.on( '-v', '--verbose', 'Verbose ') do
58
50
  options[:loglevel] = :info
59
51
  end
@@ -81,13 +73,41 @@ end
81
73
 
82
74
  usage if options[:usage]
83
75
 
84
- _codecollab = PolarBear::CodeCollab.new
76
+ # Do some validation
77
+ #-----------------------------------------------------------------------------
78
+ _gitit = Gitit::Git.new(Dir.pwd)
79
+ unless _gitit.repo.valid?
80
+ p 'poohbear must be run from a folder that is a valid git repo'
81
+ exit 1
82
+ end
83
+
84
+ _current_branch = _gitit.branches.get_current_branch
85
85
 
86
- options[:url] = _codecollab.configuration.url if options[:url].nil?
87
- options[:username] = _codecollab.configuration.username if options[:username].nil?
86
+ # Ask user if we have to.
87
+ #-----------------------------------------------------------------------------
88
+ if options[:auto_answer]
89
+ options[:title] = _current_branch if options[:title].nil?
90
+ else
91
+ options[:title] = ask('title: ') { |q| q.default = _current_branch } if options[:title].nil?
92
+ end
88
93
 
89
- options[:url] = ask('URL: ') if options[:url].nil? || options[:url].empty?
90
- options[:username] = ask('Username: ') if options[:username].nil? || options[:username].empty?
91
- options[:password] = ask('Password: ') { |q| q.echo = '*' } if options[:password].nil?
94
+ # Do the operation
95
+ #-----------------------------------------------------------------------------
96
+ begin
97
+ _codecollab = PolarBear::CodeCollab.new
98
+ if options[:id].nil?
99
+ _review = _codecollab.get_review_with_title(options[:title])
100
+ else
101
+ _review = _codecollab.get_review_with_id(options[:id])
102
+ end
103
+ raise "can't find review with title #{title}" if _review.empty?
104
+
105
+ _review[0].cancel!
106
+ p 'Review successfully canceled. '
107
+
108
+ exit 0
109
+ rescue => ex
110
+ p ex.to_s
111
+ exit 1
112
+ end
92
113
 
93
- _codecollab.login("#{options[:url]}", "#{options[:username]}", "\"#{options[:password]}\"")
@@ -3,11 +3,12 @@
3
3
  require 'highline/import'
4
4
  require 'base64'
5
5
  require 'polarbear'
6
+ require 'gitit'
6
7
 
7
8
  #-----------------------------------------------------------------------------
8
9
  #-----------------------------------------------------------------------------
9
10
  def usage
10
- puts 'Commands for login in your code collaborator server.'
11
+ puts 'Commands for updating an existing review.'
11
12
  exit 0
12
13
  end
13
14
 
@@ -16,37 +17,23 @@ end
16
17
  #-----------------------------------------------------------------------------
17
18
 
18
19
  #-----------------------------------------------------------------------------
19
- # This hash will hold all of the options parsed from the command-line by
20
- # OptionParser.
21
- # login/logout
22
- # creating a new review (reviewer/observers, title)
23
- # adding diff to an existing review
24
- # cancelling review
25
- # finishing a review
26
- # deleting a review
27
- # open a review in the browser
28
- # get review info such as state by id or by title
20
+ # Will try to infer the source control mechanism if possible and call.
29
21
  #-----------------------------------------------------------------------------
30
22
  options = {}
31
23
 
32
24
  optparse = OptionParser.new do |opts|
33
25
  # Set a banner, displayed at the top of the help screen.
34
- opts.banner = 'Usage: poohbear [options] oldbranch newbranch ...'
26
+ opts.banner = 'Usage: poohbear update [options]'
35
27
 
36
28
  # Define the options, and what they do
37
- options[:username] = nil
38
- opts.on('-n', '--username username', 'username') do |l|
39
- options[:username] = l
29
+ options[:title] = nil
30
+ opts.on('-t', '--title title', 'review title') do |title|
31
+ options[:title] = title
40
32
  end
41
33
 
42
- options[:password] = nil
43
- opts.on('-p', '--password PASSWORD', 'password') do |l|
44
- options[:password] = l
45
- end
46
-
47
- options[:url] = nil
48
- opts.on('-s', '--url URL', 'url') do |l|
49
- options[:url] = l
34
+ options[:id] = nil
35
+ opts.on('-i', '--id reviewid', 'review id') do |reviewid|
36
+ options[:id] = reviewid
50
37
  end
51
38
 
52
39
  options[:usage] = nil
@@ -54,6 +41,11 @@ optparse = OptionParser.new do |opts|
54
41
  options[:usage] = true
55
42
  end
56
43
 
44
+ options[:auto_answer] = nil
45
+ opts.on( '-y', '--auto_answer', 'Won\'t prompt the user for anything and rely on args and defaults' ) do
46
+ options[:auto_answer] = true
47
+ end
48
+
57
49
  opts.on( '-v', '--verbose', 'Verbose ') do
58
50
  options[:loglevel] = :info
59
51
  end
@@ -81,13 +73,41 @@ end
81
73
 
82
74
  usage if options[:usage]
83
75
 
84
- _codecollab = PolarBear::CodeCollab.new
76
+ # Do some validation
77
+ #-----------------------------------------------------------------------------
78
+ _gitit = Gitit::Git.new(Dir.pwd)
79
+ unless _gitit.repo.valid?
80
+ p 'poohbear must be run from a folder that is a valid git repo'
81
+ exit 1
82
+ end
83
+
84
+ _current_branch = _gitit.branches.get_current_branch
85
85
 
86
- options[:url] = _codecollab.configuration.url if options[:url].nil?
87
- options[:username] = _codecollab.configuration.username if options[:username].nil?
86
+ # Ask user if we have to.
87
+ #-----------------------------------------------------------------------------
88
+ if options[:auto_answer]
89
+ options[:title] = _current_branch if options[:title].nil?
90
+ else
91
+ options[:title] = ask('title: ') { |q| q.default = _current_branch } if options[:title].nil?
92
+ end
88
93
 
89
- options[:url] = ask('URL: ') if options[:url].nil? || options[:url].empty?
90
- options[:username] = ask('Username: ') if options[:username].nil? || options[:username].empty?
91
- options[:password] = ask('Password: ') { |q| q.echo = '*' } if options[:password].nil?
94
+ # Do the operation
95
+ #-----------------------------------------------------------------------------
96
+ begin
97
+ _codecollab = PolarBear::CodeCollab.new
98
+ if options[:id].nil?
99
+ _review = _codecollab.get_review_with_title(options[:title])
100
+ else
101
+ _review = _codecollab.get_review_with_id(options[:id])
102
+ end
103
+ raise "can't find review with title #{title}" if _review.empty?
104
+
105
+ _review[0].delete!
106
+ p 'Review successfully deleted. '
107
+
108
+ exit 0
109
+ rescue => ex
110
+ p ex.to_s
111
+ exit 1
112
+ end
92
113
 
93
- _codecollab.login("#{options[:url]}", "#{options[:username]}", "\"#{options[:password]}\"")
@@ -0,0 +1,111 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'highline/import'
4
+ require 'base64'
5
+ require 'polarbear'
6
+ require 'gitit'
7
+
8
+ #-----------------------------------------------------------------------------
9
+ #-----------------------------------------------------------------------------
10
+ def usage
11
+ puts 'Commands for updating an existing review.'
12
+ exit 0
13
+ end
14
+
15
+ #-----------------------------------------------------------------------------
16
+ # ................ A R G U M E N T S .. P R O C E S S I N G .................
17
+ #-----------------------------------------------------------------------------
18
+
19
+ #-----------------------------------------------------------------------------
20
+ # Will try to infer the source control mechanism if possible and call.
21
+ #-----------------------------------------------------------------------------
22
+ options = {}
23
+
24
+ optparse = OptionParser.new do |opts|
25
+ # Set a banner, displayed at the top of the help screen.
26
+ opts.banner = 'Usage: poohbear update [options]'
27
+
28
+ # Define the options, and what they do
29
+ options[:title] = nil
30
+ opts.on('-t', '--title title', 'review title') do |title|
31
+ options[:title] = title
32
+ end
33
+
34
+ options[:id] = nil
35
+ opts.on('-i', '--id reviewid', 'review id') do |reviewid|
36
+ options[:id] = reviewid
37
+ end
38
+
39
+ options[:usage] = nil
40
+ opts.on( '-u', '--usage', 'Print one liner about this script' ) do
41
+ options[:usage] = true
42
+ end
43
+
44
+ options[:auto_answer] = nil
45
+ opts.on( '-y', '--auto_answer', 'Won\'t prompt the user for anything and rely on args and defaults' ) do
46
+ options[:auto_answer] = true
47
+ end
48
+
49
+ opts.on( '-v', '--verbose', 'Verbose ') do
50
+ options[:loglevel] = :info
51
+ end
52
+
53
+ # This displays the help screen, all programs are assumed to have this
54
+ # option.
55
+ opts.on( '-h', '--help', 'Display this screen' ) do
56
+ puts opts
57
+ exit
58
+ end
59
+ end
60
+
61
+ #-----------------------------------------------------------------------------
62
+ # Parse the command-line. Remember there are two forms of the parse method.
63
+ # The 'parse' method simply parses ARGV, while the 'parse!' method parses
64
+ # ARGV and removes any options found there, as well as any parameters for the
65
+ # the options. What's left is the list of files to resize.
66
+ #-----------------------------------------------------------------------------
67
+ begin
68
+ optparse.parse!
69
+ rescue => ex
70
+ puts ex.to_s
71
+ exit 1
72
+ end
73
+
74
+ usage if options[:usage]
75
+
76
+ # Do some validation
77
+ #-----------------------------------------------------------------------------
78
+ _gitit = Gitit::Git.new(Dir.pwd)
79
+ unless _gitit.repo.valid?
80
+ p 'poohbear must be run from a folder that is a valid git repo'
81
+ exit 1
82
+ end
83
+
84
+ _current_branch = _gitit.branches.get_current_branch
85
+
86
+ # Ask user if we have to.
87
+ #-----------------------------------------------------------------------------
88
+ if options[:auto_answer]
89
+ options[:title] = _current_branch if options[:title].nil?
90
+ else
91
+ options[:title] = ask('title: ') { |q| q.default = _current_branch } if options[:title].nil?
92
+ end
93
+
94
+ # Do the operation
95
+ #-----------------------------------------------------------------------------
96
+ begin
97
+ _codecollab = PolarBear::CodeCollab.new
98
+ if options[:id].nil?
99
+ _review = _codecollab.get_review_with_title(options[:title])
100
+ else
101
+ _review = _codecollab.get_review_with_id(options[:id])
102
+ end
103
+ raise "can't find review with title #{title}" if _review.empty?
104
+
105
+ _review[0].browse
106
+ exit 0
107
+ rescue => ex
108
+ p ex.to_s
109
+ exit 1
110
+ end
111
+
@@ -3,11 +3,12 @@
3
3
  require 'highline/import'
4
4
  require 'base64'
5
5
  require 'polarbear'
6
+ require 'gitit'
6
7
 
7
8
  #-----------------------------------------------------------------------------
8
9
  #-----------------------------------------------------------------------------
9
10
  def usage
10
- puts 'Commands for login in your code collaborator server.'
11
+ puts 'Commands for updating an existing review.'
11
12
  exit 0
12
13
  end
13
14
 
@@ -16,37 +17,23 @@ end
16
17
  #-----------------------------------------------------------------------------
17
18
 
18
19
  #-----------------------------------------------------------------------------
19
- # This hash will hold all of the options parsed from the command-line by
20
- # OptionParser.
21
- # login/logout
22
- # creating a new review (reviewer/observers, title)
23
- # adding diff to an existing review
24
- # cancelling review
25
- # finishing a review
26
- # deleting a review
27
- # open a review in the browser
28
- # get review info such as state by id or by title
20
+ # Will try to infer the source control mechanism if possible and call.
29
21
  #-----------------------------------------------------------------------------
30
22
  options = {}
31
23
 
32
24
  optparse = OptionParser.new do |opts|
33
25
  # Set a banner, displayed at the top of the help screen.
34
- opts.banner = 'Usage: poohbear [options] oldbranch newbranch ...'
26
+ opts.banner = 'Usage: poohbear update [options]'
35
27
 
36
28
  # Define the options, and what they do
37
- options[:username] = nil
38
- opts.on('-n', '--username username', 'username') do |l|
39
- options[:username] = l
29
+ options[:title] = nil
30
+ opts.on('-t', '--title title', 'review title') do |title|
31
+ options[:title] = title
40
32
  end
41
33
 
42
- options[:password] = nil
43
- opts.on('-p', '--password PASSWORD', 'password') do |l|
44
- options[:password] = l
45
- end
46
-
47
- options[:url] = nil
48
- opts.on('-s', '--url URL', 'url') do |l|
49
- options[:url] = l
34
+ options[:id] = nil
35
+ opts.on('-i', '--id reviewid', 'review id') do |reviewid|
36
+ options[:id] = reviewid
50
37
  end
51
38
 
52
39
  options[:usage] = nil
@@ -54,6 +41,11 @@ optparse = OptionParser.new do |opts|
54
41
  options[:usage] = true
55
42
  end
56
43
 
44
+ options[:auto_answer] = nil
45
+ opts.on( '-y', '--auto_answer', 'Won\'t prompt the user for anything and rely on args and defaults' ) do
46
+ options[:auto_answer] = true
47
+ end
48
+
57
49
  opts.on( '-v', '--verbose', 'Verbose ') do
58
50
  options[:loglevel] = :info
59
51
  end
@@ -81,13 +73,40 @@ end
81
73
 
82
74
  usage if options[:usage]
83
75
 
84
- _codecollab = PolarBear::CodeCollab.new
76
+ # Do some validation
77
+ #-----------------------------------------------------------------------------
78
+ _gitit = Gitit::Git.new(Dir.pwd)
79
+ unless _gitit.repo.valid?
80
+ p 'poohbear must be run from a folder that is a valid git repo'
81
+ exit 1
82
+ end
83
+
84
+ _current_branch = _gitit.branches.get_current_branch
85
85
 
86
- options[:url] = _codecollab.configuration.url if options[:url].nil?
87
- options[:username] = _codecollab.configuration.username if options[:username].nil?
86
+ # Ask user if we have to.
87
+ #-----------------------------------------------------------------------------
88
+ if options[:auto_answer]
89
+ options[:title] = _current_branch if options[:title].nil?
90
+ else
91
+ options[:title] = ask('title: ') { |q| q.default = _current_branch } if options[:title].nil?
92
+ end
88
93
 
89
- options[:url] = ask('URL: ') if options[:url].nil? || options[:url].empty?
90
- options[:username] = ask('Username: ') if options[:username].nil? || options[:username].empty?
91
- options[:password] = ask('Password: ') { |q| q.echo = '*' } if options[:password].nil?
94
+ # Do the operation
95
+ #-----------------------------------------------------------------------------
96
+ begin
97
+ _codecollab = PolarBear::CodeCollab.new
98
+ if options[:id].nil?
99
+ _review = _codecollab.get_review_with_title(options[:title])
100
+ else
101
+ _review = _codecollab.get_review_with_id(options[:id])
102
+ end
103
+ raise "can't find review with title #{title}" if _review.empty?
104
+
105
+ p "Review status is: #{_review[0].phase}"
106
+
107
+ exit 0
108
+ rescue => ex
109
+ p ex.to_s
110
+ exit 1
111
+ end
92
112
 
93
- _codecollab.login("#{options[:url]}", "#{options[:username]}", "\"#{options[:password]}\"")
@@ -4,6 +4,7 @@ require 'polarbear/codecollab'
4
4
  require 'polarbear/utils/ccollab_locator'
5
5
 
6
6
  require 'polarbear/command/admin'
7
+ require 'polarbear/command/admin_review'
7
8
  require 'polarbear/command/report'
8
9
  require 'polarbear/command/config'
9
10
 
@@ -9,53 +9,26 @@ module PolarBear
9
9
 
10
10
  # ------------------------------------------------------------------------
11
11
  # ------------------------------------------------------------------------
12
- def initialize
13
- end
14
-
15
- # ------------------------------------------------------------------------
16
- # ------------------------------------------------------------------------
17
- # @param [Object] version
18
12
  def get_review_xml_info(version)
19
- execute_command("admin review-xml #{version}")
13
+ execute_admin_command('review-xml', version)
20
14
  end
21
15
 
22
16
  # ------------------------------------------------------------------------
23
17
  # ------------------------------------------------------------------------
24
- # @param [int] reviewid
25
- def cancel_review(reviewid)
26
- execute_admin_command('cancel', "#{reviewid}")
18
+ def execute_batch(input)
19
+ execute_admin_command('batch - ', '', input)
27
20
  end
28
21
 
29
22
  # ------------------------------------------------------------------------
30
23
  # ------------------------------------------------------------------------
31
- # @param [int] reviewid
32
- def delete_review(reviewid)
33
- execute_admin_command('delete', "#{reviewid}")
24
+ def fetch_report(query)
25
+ execute_admin_command('wget', "\"/go?#{query}\"")
34
26
  end
35
27
 
36
28
  # ------------------------------------------------------------------------
37
29
  # ------------------------------------------------------------------------
38
- # @param [int] reviewid
39
- def move_to_next_phase(reviewid)
40
- execute_admin_command('finish', "#{reviewid}")
41
- end
42
-
43
- # ------------------------------------------------------------------------
44
- # ------------------------------------------------------------------------
45
- def finish_review(reviewid)
46
- execute_admin_command('finish', "#{reviewid}")
47
- end
48
-
49
- # ------------------------------------------------------------------------
50
- # ------------------------------------------------------------------------
51
- #def add_participants(reviewers, observers)
52
- #end
53
-
54
- # @param [Object] command
55
- # @param [Object] args
56
- # @return [Object]
57
- def execute_admin_command(command, args)
58
- execute_command("--no-browser --quiet admin review #{command} #{args}")
30
+ def execute_admin_command(command, args, input = nil)
31
+ Utils::Executor.instance.execute_command("--no-browser --quiet admin #{command} #{args}", input)
59
32
  end
60
33
 
61
34
  end
@@ -7,75 +7,30 @@ module PolarBear
7
7
  # --------------------------------------------------------------------------
8
8
  class AdminReview
9
9
 
10
- # Create a new Review
11
- def create
12
-
13
- end
14
-
15
- # Edit an existing Review
16
- def edit
17
-
18
- end
19
-
20
10
  # Delete an existing Review
21
- def delete
22
-
11
+ def delete(id)
12
+ execute_admin_review_command('delete', id)
23
13
  end
24
14
 
25
15
  # Cancel an in-progress Review
26
- def cancel
27
-
16
+ def cancel(id)
17
+ execute_admin_review_command('cancel', id)
28
18
  end
29
19
 
30
20
  # Reject an in-progress Review
31
- def reject
32
-
33
- end
34
-
35
- # Wait for a response in a Review
36
- def wait
37
-
21
+ def reject(id)
22
+ execute_admin_review_command('reject', id)
38
23
  end
39
24
 
40
25
  # Finish current phase of a Review
41
- def finish
42
-
26
+ def finish(id)
27
+ execute_admin_review_command('finish', id)
43
28
  end
44
29
 
45
- # Move a review from Planning to Annotating
46
- def annotate
47
-
30
+ def execute_admin_review_command(command, args)
31
+ Utils::Executor.instance.execute_command("--no-browser --quiet admin review #{command} #{args}")
48
32
  end
49
33
 
50
- # Copy Participants from one Review to another
51
- def copy_participants
52
-
53
- end
54
-
55
- # Set Participants for a Review
56
- def set_participants
57
-
58
- end
59
-
60
- # Administer Review Participants
61
- def participant
62
-
63
- end
64
-
65
- # Administer Review Comments
66
- def comment
67
-
68
- end
69
-
70
- # Administer Review Defects
71
- def defect
72
-
73
- end
74
-
75
- # Administer Review Conversations
76
- def conversation
77
-
78
- end
79
34
  end # class Admin Review
80
35
 
81
36
  end # module Command
@@ -43,7 +43,7 @@ module PolarBear
43
43
  end
44
44
 
45
45
  def execute
46
- Utils::Executor.instance.execute_command('--quiet admin batch - ', Gyoku.xml(@command))
46
+ Admin.new.execute_batch(Gyoku.xml(@command))
47
47
  end
48
48
  end
49
49
 
@@ -64,7 +64,7 @@ module PolarBear
64
64
 
65
65
  def execute_report_request(args)
66
66
  query_string = args.to_a.map { |x| "#{x[0].gsub(/:/,'')}=#{x[1]}" }.join('&')
67
- review_report = Utils::Executor.instance.execute_command("--quiet admin wget \"/go?#{query_string}\"")
67
+ review_report = Admin.new.fetch_report(query_string)
68
68
 
69
69
  review_report = review_report.gsub(/'/,' ')
70
70
  review_report = review_report.gsub(/"/,' ')
@@ -1,4 +1,5 @@
1
1
  require 'polarbear/command/batch'
2
+ require 'polarbear/command/admin_review'
2
3
  require 'nori'
3
4
 
4
5
 
@@ -15,6 +16,7 @@ module PolarBear
15
16
 
16
17
  def initialize(hash)
17
18
  load_data(hash)
19
+ @admin_review = Command::AdminReview.new
18
20
  end
19
21
 
20
22
  def active?
@@ -26,11 +28,19 @@ module PolarBear
26
28
  end
27
29
 
28
30
  def cancel!
29
-
31
+ @admin_review.cancel(@id)
30
32
  end
31
33
 
32
34
  def delete!
35
+ @admin_review.delete(@id)
36
+ end
37
+
38
+ def next_phase!
39
+ @admin_review.finish(@id)
40
+ end
33
41
 
42
+ def browse
43
+ Utils::Executor.instance.execute_command("browse --review #{@id}")
34
44
  end
35
45
 
36
46
  def add_git_diff(branch_a, branch_b)
@@ -20,7 +20,6 @@ module PolarBear
20
20
  last_command_output = ''
21
21
 
22
22
  bearcommand = [@codecollab_execpath, @codecollab_globaloptions, command].join(' ')
23
-
24
23
  IO.popen(bearcommand, 'r+') { |pipe|
25
24
 
26
25
  if input != nil
@@ -1,3 +1,3 @@
1
1
  module Polarbear
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polarbear
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bone Crusher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-06 00:00:00.000000000 Z
11
+ date: 2014-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -259,6 +259,7 @@ executables:
259
259
  - poohbear-review-cancel
260
260
  - poohbear-review-create
261
261
  - poohbear-review-delete
262
+ - poohbear-review-open
262
263
  - poohbear-review-status
263
264
  - poohbear-review-update
264
265
  extensions: []
@@ -289,6 +290,7 @@ files:
289
290
  - bin/poohbear-review-cancel
290
291
  - bin/poohbear-review-create
291
292
  - bin/poohbear-review-delete
293
+ - bin/poohbear-review-open
292
294
  - bin/poohbear-review-status
293
295
  - bin/poohbear-review-update
294
296
  - lib/polarbear.rb