polarbear 0.0.5 → 0.0.6

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: 8865fe9b430a619923bb76f87e06e80e516d4a9e
4
- data.tar.gz: ef27b339fded321b1aa5517847916fb7c1380091
3
+ metadata.gz: dfd1732434c43977fe90a15f7f3ebbb065e70917
4
+ data.tar.gz: 6c974d4b8cd61915b6695ecb80dfc5161f926325
5
5
  SHA512:
6
- metadata.gz: afff3761ad0b197b300f943da65cf9909df1c6679fe179984e0f8288d6f104c6440d51417fc895a4bdb3fa577bb8f731a1f36611514e50f67749031e4b47037c
7
- data.tar.gz: 05ccbefeb35573117acbdaac8f3cb31199125a9962e39c5a71ae7202fec194f6d65548f3ea7685757ee18528dcab958c233abc0b005054329ebf0be68e2699e1
6
+ metadata.gz: 50c86d487506a02167bcaf264f0c6ccba4e1b37cfee9fc795eba269ad22f233ea3afbd98d46682c4b82432e43325bfb326cbe266988ffdadbf03980a90fc405f
7
+ data.tar.gz: 41d8df6b935fe05be32c0f1f4a69c1df31dc080c516a0ef83fec8b858fbdcf7a7ae61b871a30e2feb1767bb648c0b5af6c7f3e8d921d7232f4049d9b27c206fb
data/.idea/.rakeTasks CHANGED
@@ -4,4 +4,4 @@ You are allowed to:
4
4
  1. Remove rake task
5
5
  2. Add existing rake tasks
6
6
  To add existing rake tasks automatically delete this file and reload the project.
7
- --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build polarbear-0.0.3.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Open an irb session preloaded with this library" fullCmd="console" taksId="console" /><RakeTask description="Run RSpec code examples" fullCmd="coverage" taksId="coverage" /><RakeTask description="Build and install polarbear-0.0.3.gem into system gems" fullCmd="install" taksId="install" /><RakeTask description="Create tag v0.0.3 and build and push polarbear-0.0.3.gem to Rubygems" fullCmd="release" taksId="release" /><RakeTask description="Print the current version number (0.2.0)" fullCmd="version" taksId="version" /><RakeGroup description="" fullCmd="" taksId="version"><RakeTask description="Bump to 0.2.1" fullCmd="version:bump" taksId="bump" /><RakeGroup description="" fullCmd="" taksId="bump"><RakeTask description="Bump to 1.0.0" fullCmd="version:bump:major" taksId="major" /><RakeTask description="Bump to 0.3.0" fullCmd="version:bump:minor" taksId="minor" /><RakeTask description="Bump to 0.2.1a" fullCmd="version:bump:pre" taksId="pre" /><RakeGroup description="" fullCmd="" taksId="pre"><RakeTask description="Bump to 1.0.0a" fullCmd="version:bump:pre:major" taksId="major" /><RakeTask description="Bump to 0.3.0a" fullCmd="version:bump:pre:minor" taksId="minor" /><RakeTask description="Bump to 0.2.1a" fullCmd="version:bump:pre:revision" taksId="revision" /></RakeGroup><RakeTask description="Bump to 0.2.1" fullCmd="version:bump:revision" taksId="revision" /></RakeGroup><RakeTask description="Creates a version file with an optional VERSION parameter" fullCmd="version:create" taksId="create" /></RakeGroup><RakeTask description="" fullCmd="VERSION" taksId="VERSION" /><RakeTask description="" fullCmd="default" taksId="default" /></RakeGroup></Settings>
7
+ --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build polarbear-0.0.5.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Open an irb session preloaded with this library" fullCmd="console" taksId="console" /><RakeTask description="Run RSpec code examples" fullCmd="coverage" taksId="coverage" /><RakeTask description="Build and install polarbear-0.0.5.gem into system gems" fullCmd="install" taksId="install" /><RakeTask description="Create tag v0.0.5 and build and push polarbear-0.0.5.gem to Rubygems" fullCmd="release" taksId="release" /><RakeTask description="Print the current version number (0.2.0)" fullCmd="version" taksId="version" /><RakeGroup description="" fullCmd="" taksId="version"><RakeTask description="Bump to 0.2.1" fullCmd="version:bump" taksId="bump" /><RakeGroup description="" fullCmd="" taksId="bump"><RakeTask description="Bump to 1.0.0" fullCmd="version:bump:major" taksId="major" /><RakeTask description="Bump to 0.3.0" fullCmd="version:bump:minor" taksId="minor" /><RakeTask description="Bump to 0.2.1a" fullCmd="version:bump:pre" taksId="pre" /><RakeGroup description="" fullCmd="" taksId="pre"><RakeTask description="Bump to 1.0.0a" fullCmd="version:bump:pre:major" taksId="major" /><RakeTask description="Bump to 0.3.0a" fullCmd="version:bump:pre:minor" taksId="minor" /><RakeTask description="Bump to 0.2.1a" fullCmd="version:bump:pre:revision" taksId="revision" /></RakeGroup><RakeTask description="Bump to 0.2.1" fullCmd="version:bump:revision" taksId="revision" /></RakeGroup><RakeTask description="Creates a version file with an optional VERSION parameter" fullCmd="version:create" taksId="create" /></RakeGroup><RakeTask description="" fullCmd="VERSION" taksId="VERSION" /><RakeTask description="" fullCmd="default" taksId="default" /></RakeGroup></Settings>
@@ -0,0 +1,8 @@
1
+ <component name="ProjectDictionaryState">
2
+ <dictionary name="patricklaplante">
3
+ <words>
4
+ <w>diffargs</w>
5
+ <w>diffarguments</w>
6
+ </words>
7
+ </dictionary>
8
+ </component>
data/.idea/polarbear.iml CHANGED
@@ -13,7 +13,7 @@
13
13
  <configuration default="false" name="Unnamed" type="RubyRunConfigurationType" factoryName="Ruby">
14
14
  <module name="polarbear" />
15
15
  <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
16
- <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/../../../pharos/PharosPrint" />
16
+ <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/../../../../pharos/PharosPrint" />
17
17
  <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
18
18
  <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
19
19
  <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
@@ -29,7 +29,7 @@
29
29
  </EXTENSION>
30
30
  <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
31
31
  <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/bin/poohbear" />
32
- <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="review create" />
32
+ <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="review create --diffargs b85f749d80630f3e118376506d6660db0048d9a1..29983e1c741df2920184250159a52b8d65b57a0f" />
33
33
  <RunnerSettings RunnerId="RubyCover" />
34
34
  <RunnerSettings RunnerId="RubyDebugRunner" />
35
35
  <RunnerSettings RunnerId="RubyRunner" />
@@ -44,53 +44,49 @@
44
44
  <orderEntry type="inheritedJdk" />
45
45
  <orderEntry type="sourceFolder" forTests="false" />
46
46
  <orderEntry type="module-library">
47
- <library name="polarbear (v0.0.4, /Users/pat/Projects/covenofchaos/ruby/polarbear) [path][gem]">
47
+ <library name="polarbear (v0.0.5, /Users/patricklaplante/Projects/covenofchaos/ruby/polarbear/polarbear) [path][gem]">
48
48
  <CLASSES>
49
49
  <root url="file://$MODULE_DIR$/bin" />
50
50
  <root url="file://$MODULE_DIR$/lib" />
51
- <root url="file://$MODULE_DIR$/pkg" />
52
51
  <root url="file://$MODULE_DIR$/.idea" />
53
52
  </CLASSES>
54
53
  <SOURCES>
55
54
  <root url="file://$MODULE_DIR$/bin" />
56
55
  <root url="file://$MODULE_DIR$/lib" />
57
- <root url="file://$MODULE_DIR$/pkg" />
58
56
  <root url="file://$MODULE_DIR$/.idea" />
59
57
  </SOURCES>
60
58
  </library>
61
59
  </orderEntry>
62
60
  <orderEntry type="library" scope="PROVIDED" name="addressable (v2.3.6, RVM: ruby-2.1-head) [gem]" level="application" />
63
61
  <orderEntry type="library" scope="PROVIDED" name="builder (v3.2.2, RVM: ruby-2.1-head) [gem]" level="application" />
64
- <orderEntry type="library" scope="PROVIDED" name="bundler (v1.6.2, RVM: ruby-2.1-head) [gem]" level="application" />
62
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.6.3, RVM: ruby-2.1-head) [gem]" level="application" />
65
63
  <orderEntry type="library" scope="PROVIDED" name="celluloid (v0.15.2, RVM: ruby-2.1-head) [gem]" level="application" />
66
- <orderEntry type="library" scope="PROVIDED" name="celluloid-io (v0.15.0, RVM: ruby-2.1-head) [gem]" level="application" />
67
64
  <orderEntry type="library" scope="PROVIDED" name="cli-colorize (v2.0.0, RVM: ruby-2.1-head) [gem]" level="application" />
68
65
  <orderEntry type="library" scope="PROVIDED" name="coderay (v1.1.0, RVM: ruby-2.1-head) [gem]" level="application" />
69
66
  <orderEntry type="library" scope="PROVIDED" name="command-dispatcher (v0.1.0, RVM: ruby-2.1-head) [gem]" level="application" />
70
67
  <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.5, RVM: ruby-2.1-head) [gem]" level="application" />
71
- <orderEntry type="library" scope="PROVIDED" name="docile (v1.1.3, RVM: ruby-2.1-head) [gem]" level="application" />
68
+ <orderEntry type="library" scope="PROVIDED" name="docile (v1.1.5, RVM: ruby-2.1-head) [gem]" level="application" />
72
69
  <orderEntry type="library" scope="PROVIDED" name="ffi (v1.9.3, RVM: ruby-2.1-head) [gem]" level="application" />
73
70
  <orderEntry type="library" scope="PROVIDED" name="file-find (v0.3.8, RVM: ruby-2.1-head) [gem]" level="application" />
74
- <orderEntry type="library" scope="PROVIDED" name="formatador (v0.2.4, RVM: ruby-2.1-head) [gem]" level="application" />
71
+ <orderEntry type="library" scope="PROVIDED" name="formatador (v0.2.5, RVM: ruby-2.1-head) [gem]" level="application" />
75
72
  <orderEntry type="library" scope="PROVIDED" name="gitit (v1.1.0, RVM: ruby-2.1-head) [gem]" level="application" />
76
73
  <orderEntry type="library" scope="PROVIDED" name="growl_notify (v0.0.3, RVM: ruby-2.1-head) [gem]" level="application" />
77
- <orderEntry type="library" scope="PROVIDED" name="guard (v2.6.0, RVM: ruby-2.1-head) [gem]" level="application" />
74
+ <orderEntry type="library" scope="PROVIDED" name="guard (v2.6.1, RVM: ruby-2.1-head) [gem]" level="application" />
78
75
  <orderEntry type="library" scope="PROVIDED" name="guard-rspec (v4.2.8, RVM: ruby-2.1-head) [gem]" level="application" />
79
76
  <orderEntry type="library" scope="PROVIDED" name="highline (v1.6.21, RVM: ruby-2.1-head) [gem]" level="application" />
80
- <orderEntry type="library" scope="PROVIDED" name="listen (v2.7.3, RVM: ruby-2.1-head) [gem]" level="application" />
81
- <orderEntry type="library" scope="PROVIDED" name="lumberjack (v1.0.5, RVM: ruby-2.1-head) [gem]" level="application" />
77
+ <orderEntry type="library" scope="PROVIDED" name="listen (v2.7.9, RVM: ruby-2.1-head) [gem]" level="application" />
78
+ <orderEntry type="library" scope="PROVIDED" name="lumberjack (v1.0.9, RVM: ruby-2.1-head) [gem]" level="application" />
82
79
  <orderEntry type="library" scope="PROVIDED" name="method_source (v0.8.2, RVM: ruby-2.1-head) [gem]" level="application" />
83
80
  <orderEntry type="library" scope="PROVIDED" name="mini_portile (v0.5.3, RVM: ruby-2.1-head) [gem]" level="application" />
84
- <orderEntry type="library" scope="PROVIDED" name="multi_json (v1.9.3, RVM: ruby-2.1-head) [gem]" level="application" />
85
- <orderEntry type="library" scope="PROVIDED" name="nio4r (v1.0.0, RVM: ruby-2.1-head) [gem]" level="application" />
81
+ <orderEntry type="library" scope="PROVIDED" name="multi_json (v1.10.1, RVM: ruby-2.1-head) [gem]" level="application" />
86
82
  <orderEntry type="library" scope="PROVIDED" name="nokogiri (v1.6.1, RVM: ruby-2.1-head) [gem]" level="application" />
87
83
  <orderEntry type="library" scope="PROVIDED" name="nori (v2.4.0, RVM: ruby-2.1-head) [gem]" level="application" />
88
84
  <orderEntry type="library" scope="PROVIDED" name="os (v0.9.6, RVM: ruby-2.1-head) [gem]" level="application" />
89
- <orderEntry type="library" scope="PROVIDED" name="pry (v0.9.12.6, RVM: ruby-2.1-head) [gem]" level="application" />
85
+ <orderEntry type="library" scope="PROVIDED" name="pry (v0.10.0, RVM: ruby-2.1-head) [gem]" level="application" />
90
86
  <orderEntry type="library" scope="PROVIDED" name="rake (v10.3.1, RVM: ruby-2.1-head) [gem]" level="application" />
91
87
  <orderEntry type="library" scope="PROVIDED" name="rb-appscript (v0.6.1, RVM: ruby-2.1-head) [gem]" level="application" />
92
88
  <orderEntry type="library" scope="PROVIDED" name="rb-fsevent (v0.9.4, RVM: ruby-2.1-head) [gem]" level="application" />
93
- <orderEntry type="library" scope="PROVIDED" name="rb-inotify (v0.9.4, RVM: ruby-2.1-head) [gem]" level="application" />
89
+ <orderEntry type="library" scope="PROVIDED" name="rb-inotify (v0.9.5, RVM: ruby-2.1-head) [gem]" level="application" />
94
90
  <orderEntry type="library" scope="PROVIDED" name="rspec (v2.14.1, RVM: ruby-2.1-head) [gem]" level="application" />
95
91
  <orderEntry type="library" scope="PROVIDED" name="rspec-core (v2.14.8, RVM: ruby-2.1-head) [gem]" level="application" />
96
92
  <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v2.14.5, RVM: ruby-2.1-head) [gem]" level="application" />
@@ -2,7 +2,7 @@
2
2
  <configuration default="false" name="Unnamed" type="RubyRunConfigurationType" factoryName="Ruby">
3
3
  <module name="polarbear" />
4
4
  <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
5
- <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/../../../pharos/PharosPrint" />
5
+ <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/../../../../pharos/PharosPrint" />
6
6
  <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
7
7
  <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
8
8
  <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
@@ -18,7 +18,7 @@
18
18
  </EXTENSION>
19
19
  <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
20
20
  <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/bin/poohbear" />
21
- <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="review create" />
21
+ <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="review create --diffargs b85f749d80630f3e118376506d6660db0048d9a1..29983e1c741df2920184250159a52b8d65b57a0f" />
22
22
  <RunnerSettings RunnerId="RubyCover" />
23
23
  <RunnerSettings RunnerId="RubyDebugRunner" />
24
24
  <RunnerSettings RunnerId="RubyRunner" />
data/.idea/workspace.xml CHANGED
@@ -2,7 +2,12 @@
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="MODIFICATION" beforePath="$PROJECT_DIR$/lib/polarbear/version.rb" afterPath="$PROJECT_DIR$/lib/polarbear/version.rb" />
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/runConfigurations/Unnamed.xml" afterPath="$PROJECT_DIR$/.idea/runConfigurations/Unnamed.xml" />
6
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/polarbear/codecollab.rb" afterPath="$PROJECT_DIR$/lib/polarbear/codecollab.rb" />
7
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/polarbear/utils/executor.rb" afterPath="$PROJECT_DIR$/lib/polarbear/utils/executor.rb" />
8
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/polarbear.iml" afterPath="$PROJECT_DIR$/.idea/polarbear.iml" />
9
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/bin/poohbear-review-create" afterPath="$PROJECT_DIR$/bin/poohbear-review-create" />
10
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
6
11
  </list>
7
12
  <ignored path="polarbear.iws" />
8
13
  <ignored path=".idea/workspace.xml" />
@@ -14,7 +19,7 @@
14
19
  </component>
15
20
  <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
16
21
  <component name="CoverageDataManager">
17
- <SUITE FILE_PATH="coverage/polarbear@Unnamed.coverage" NAME="Unnamed Coverage Results" MODIFIED="1400188324402" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/../../../pharos/PharosPrint" MODULE_NAME="polarbear" />
22
+ <SUITE FILE_PATH="coverage/polarbear@Unnamed.coverage" NAME="Unnamed Coverage Results" MODIFIED="1405358710251" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/../../../../pharos/PharosPrint" MODULE_NAME="polarbear" />
18
23
  </component>
19
24
  <component name="CreatePatchCommitExecutor">
20
25
  <option name="PATCH_PATH" value="" />
@@ -31,8 +36,28 @@
31
36
  <file leaf-file-name="review.rb" pinned="false" current="false" current-in-tab="false">
32
37
  <entry file="file://$PROJECT_DIR$/lib/polarbear/model/review.rb">
33
38
  <provider selected="true" editor-type-id="text-editor">
34
- <state vertical-scroll-proportion="0.0" vertical-offset="860" max-vertical-offset="1815">
35
- <caret line="62" column="46" selection-start-line="62" selection-start-column="46" selection-end-line="62" selection-end-column="46" />
39
+ <state vertical-scroll-proportion="0.0" vertical-offset="691" max-vertical-offset="1890">
40
+ <caret line="52" column="116" selection-start-line="52" selection-start-column="116" selection-end-line="52" selection-end-column="116" />
41
+ <folding />
42
+ </state>
43
+ </provider>
44
+ </entry>
45
+ </file>
46
+ <file leaf-file-name="configuration.rb" pinned="false" current="false" current-in-tab="false">
47
+ <entry file="file://$PROJECT_DIR$/lib/polarbear/model/configuration.rb">
48
+ <provider selected="true" editor-type-id="text-editor">
49
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="390">
50
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
51
+ <folding />
52
+ </state>
53
+ </provider>
54
+ </entry>
55
+ </file>
56
+ <file leaf-file-name="ccollab_locator.rb" pinned="false" current="false" current-in-tab="false">
57
+ <entry file="file://$PROJECT_DIR$/lib/polarbear/utils/ccollab_locator.rb">
58
+ <provider selected="true" editor-type-id="text-editor">
59
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="570">
60
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
36
61
  <folding />
37
62
  </state>
38
63
  </provider>
@@ -51,18 +76,48 @@
51
76
  <file leaf-file-name="executor.rb" pinned="false" current="false" current-in-tab="false">
52
77
  <entry file="file://$PROJECT_DIR$/lib/polarbear/utils/executor.rb">
53
78
  <provider selected="true" editor-type-id="text-editor">
54
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="690">
55
- <caret line="8" column="152" selection-start-line="8" selection-start-column="35" selection-end-line="8" selection-end-column="35" />
79
+ <state vertical-scroll-proportion="0.0" vertical-offset="198" max-vertical-offset="690">
80
+ <caret line="22" column="0" selection-start-line="22" selection-start-column="0" selection-end-line="22" selection-end-column="0" />
56
81
  <folding />
57
82
  </state>
58
83
  </provider>
59
84
  </entry>
60
85
  </file>
61
- <file leaf-file-name="version.rb" pinned="false" current="true" current-in-tab="true">
86
+ <file leaf-file-name="version.rb" pinned="false" current="false" current-in-tab="false">
62
87
  <entry file="file://$PROJECT_DIR$/lib/polarbear/version.rb">
63
88
  <provider selected="true" editor-type-id="text-editor">
64
- <state vertical-scroll-proportion="0.01734104" vertical-offset="0" max-vertical-offset="865">
65
- <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
89
+ <state vertical-scroll-proportion="0.0" vertical-offset="45" max-vertical-offset="135">
90
+ <caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
91
+ <folding />
92
+ </state>
93
+ </provider>
94
+ </entry>
95
+ </file>
96
+ <file leaf-file-name="polarbear.rb" pinned="false" current="false" current-in-tab="false">
97
+ <entry file="file://$PROJECT_DIR$/lib/polarbear.rb">
98
+ <provider selected="true" editor-type-id="text-editor">
99
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="330">
100
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
101
+ <folding />
102
+ </state>
103
+ </provider>
104
+ </entry>
105
+ </file>
106
+ <file leaf-file-name="codecollab.rb" pinned="false" current="false" current-in-tab="false">
107
+ <entry file="file://$PROJECT_DIR$/lib/polarbear/codecollab.rb">
108
+ <provider selected="true" editor-type-id="text-editor">
109
+ <state vertical-scroll-proportion="0.0" vertical-offset="344" max-vertical-offset="1860">
110
+ <caret line="43" column="46" selection-start-line="43" selection-start-column="46" selection-end-line="43" selection-end-column="46" />
111
+ <folding />
112
+ </state>
113
+ </provider>
114
+ </entry>
115
+ </file>
116
+ <file leaf-file-name="poohbear-review-create" pinned="false" current="true" current-in-tab="true">
117
+ <entry file="file://$PROJECT_DIR$/bin/poohbear-review-create">
118
+ <provider selected="true" editor-type-id="text-editor">
119
+ <state vertical-scroll-proportion="0.4817073" vertical-offset="1953" max-vertical-offset="2445">
120
+ <caret line="146" column="12" selection-start-line="146" selection-start-column="12" selection-end-line="146" selection-end-column="12" />
66
121
  <folding />
67
122
  </state>
68
123
  </provider>
@@ -87,30 +142,30 @@
87
142
  <component name="IdeDocumentHistory">
88
143
  <option name="changedFiles">
89
144
  <list>
90
- <option value="$PROJECT_DIR$/lib/polarbear/codecollab.rb" />
91
145
  <option value="$PROJECT_DIR$/lib/polarbear/command/admin_review.rb" />
92
146
  <option value="$PROJECT_DIR$/bin/poohbear-review-status" />
93
147
  <option value="$PROJECT_DIR$/lib/polarbear.rb" />
94
148
  <option value="$PROJECT_DIR$/bin/poohbear-review-delete" />
95
149
  <option value="$PROJECT_DIR$/bin/poohbear-review-cancel" />
96
150
  <option value="$PROJECT_DIR$/bin/poohbear-review-open" />
97
- <option value="$PROJECT_DIR$/bin/poohbear-review-create" />
98
151
  <option value="$PROJECT_DIR$/lib/polarbear/command/report.rb" />
99
152
  <option value="$USER_HOME$/.rvm/gems/ruby-2.1-head/gems/version-1.0.0/lib/version/ext/hash.rb" />
100
153
  <option value="$PROJECT_DIR$/lib/polarbear/command/admin.rb" />
101
154
  <option value="$PROJECT_DIR$/lib/polarbear/command/batch.rb" />
102
155
  <option value="$PROJECT_DIR$/polarbear.gemspec" />
103
- <option value="$PROJECT_DIR$/lib/polarbear/model/review.rb" />
104
- <option value="$PROJECT_DIR$/lib/polarbear/utils/executor.rb" />
105
156
  <option value="$PROJECT_DIR$/lib/polarbear/version.rb" />
157
+ <option value="$PROJECT_DIR$/lib/polarbear/codecollab.rb" />
158
+ <option value="$PROJECT_DIR$/lib/polarbear/utils/executor.rb" />
159
+ <option value="$PROJECT_DIR$/bin/poohbear-review-create" />
160
+ <option value="$PROJECT_DIR$/lib/polarbear/model/review.rb" />
106
161
  </list>
107
162
  </option>
108
163
  </component>
109
164
  <component name="ProjectFrameBounds">
110
- <option name="x" value="864" />
111
- <option name="y" value="100" />
112
- <option name="width" value="1579" />
113
- <option name="height" value="1318" />
165
+ <option name="x" value="26" />
166
+ <option name="y" value="328" />
167
+ <option name="width" value="1449" />
168
+ <option name="height" value="800" />
114
169
  </component>
115
170
  <component name="ProjectInspectionProfilesVisibleTreeState">
116
171
  <entry key="Project Default">
@@ -511,7 +566,7 @@
511
566
  </todo-panel>
512
567
  </component>
513
568
  <component name="ToolWindowManager">
514
- <frame x="864" y="100" width="1579" height="1318" extended-state="0" />
569
+ <frame x="26" y="328" width="1449" height="800" extended-state="0" />
515
570
  <editor active="true" />
516
571
  <layout>
517
572
  <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32954547" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
@@ -519,20 +574,20 @@
519
574
  <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32954547" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
520
575
  <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" />
521
576
  <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.24965326" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
522
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.23749208" sideWeight="0.73117036" order="0" side_tool="false" content_ui="combo" />
523
- <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.28330657" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
577
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.1884058" sideWeight="0.73117036" order="0" side_tool="false" content_ui="combo" />
578
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.28269485" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
524
579
  <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" />
525
580
  <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" />
526
- <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.26882967" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
581
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.2681638" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
527
582
  <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" />
528
583
  <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" />
529
584
  <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" />
530
- <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" />
531
585
  <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3267671" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
586
+ <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" />
532
587
  <window_info id="Coverage" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.0" sideWeight="0.6708428" order="3" side_tool="true" content_ui="tabs" />
533
588
  <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
534
- <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" />
535
589
  <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" />
590
+ <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" />
536
591
  </layout>
537
592
  </component>
538
593
  <component name="Vcs.Log.UiProperties">
@@ -553,7 +608,7 @@
553
608
  </component>
554
609
  <component name="XDebuggerManager">
555
610
  <breakpoint-manager>
556
- <option name="time" value="32" />
611
+ <option name="time" value="37" />
557
612
  </breakpoint-manager>
558
613
  </component>
559
614
  <component name="editorHistoryManager">
@@ -561,7 +616,6 @@
561
616
  <provider selected="true" editor-type-id="text-editor">
562
617
  <state vertical-scroll-proportion="0.0" vertical-offset="183" max-vertical-offset="690">
563
618
  <caret line="27" column="48" selection-start-line="27" selection-start-column="48" selection-end-line="27" selection-end-column="48" />
564
- <folding />
565
619
  </state>
566
620
  </provider>
567
621
  </entry>
@@ -617,7 +671,6 @@
617
671
  <provider selected="true" editor-type-id="text-editor">
618
672
  <state vertical-scroll-proportion="0.0" vertical-offset="1065" max-vertical-offset="1245">
619
673
  <caret line="71" column="73" selection-start-line="71" selection-start-column="73" selection-end-line="71" selection-end-column="73" />
620
- <folding />
621
674
  </state>
622
675
  </provider>
623
676
  </entry>
@@ -633,7 +686,6 @@
633
686
  <provider selected="true" editor-type-id="text-editor">
634
687
  <state vertical-scroll-proportion="0.0" vertical-offset="183" max-vertical-offset="690">
635
688
  <caret line="27" column="48" selection-start-line="27" selection-start-column="48" selection-end-line="27" selection-end-column="48" />
636
- <folding />
637
689
  </state>
638
690
  </provider>
639
691
  </entry>
@@ -689,7 +741,6 @@
689
741
  <provider selected="true" editor-type-id="text-editor">
690
742
  <state vertical-scroll-proportion="0.0" vertical-offset="1065" max-vertical-offset="1245">
691
743
  <caret line="71" column="73" selection-start-line="71" selection-start-column="73" selection-end-line="71" selection-end-column="73" />
692
- <folding />
693
744
  </state>
694
745
  </provider>
695
746
  </entry>
@@ -705,7 +756,6 @@
705
756
  <provider selected="true" editor-type-id="text-editor">
706
757
  <state vertical-scroll-proportion="0.0" vertical-offset="600" max-vertical-offset="690">
707
758
  <caret line="40" column="71" selection-start-line="40" selection-start-column="0" selection-end-line="40" selection-end-column="0" />
708
- <folding />
709
759
  </state>
710
760
  </provider>
711
761
  </entry>
@@ -761,7 +811,6 @@
761
811
  <provider selected="true" editor-type-id="text-editor">
762
812
  <state vertical-scroll-proportion="0.0" vertical-offset="1065" max-vertical-offset="1245">
763
813
  <caret line="71" column="73" selection-start-line="71" selection-start-column="73" selection-end-line="71" selection-end-column="73" />
764
- <folding />
765
814
  </state>
766
815
  </provider>
767
816
  </entry>
@@ -777,7 +826,6 @@
777
826
  <provider selected="true" editor-type-id="text-editor">
778
827
  <state vertical-scroll-proportion="0.0" vertical-offset="585" max-vertical-offset="690">
779
828
  <caret line="39" column="117" selection-start-line="39" selection-start-column="3" selection-end-line="39" selection-end-column="3" />
780
- <folding />
781
829
  </state>
782
830
  </provider>
783
831
  </entry>
@@ -828,27 +876,6 @@
828
876
  </state>
829
877
  </provider>
830
878
  </entry>
831
- <entry file="file://$USER_HOME$/.rvm/gems/ruby-2.1-head/gems/version-1.0.0/lib/version/ext/hash.rb">
832
- <provider selected="true" editor-type-id="text-editor">
833
- <state vertical-scroll-proportion="0.20689656" vertical-offset="0" max-vertical-offset="0">
834
- <caret line="8" column="5" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
835
- </state>
836
- </provider>
837
- </entry>
838
- <entry file="file://$PROJECT_DIR$/lib/polarbear/utils/ccollab_locator.rb">
839
- <provider selected="true" editor-type-id="text-editor">
840
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="0">
841
- <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
842
- </state>
843
- </provider>
844
- </entry>
845
- <entry file="file://$PROJECT_DIR$/lib/polarbear/codecollab.rb">
846
- <provider selected="true" editor-type-id="text-editor">
847
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="0">
848
- <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
849
- </state>
850
- </provider>
851
- </entry>
852
879
  <entry file="file://$PROJECT_DIR$/lib/polarbear/command/config.rb">
853
880
  <provider selected="true" editor-type-id="text-editor">
854
881
  <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="0">
@@ -860,15 +887,6 @@
860
887
  <provider selected="true" editor-type-id="text-editor">
861
888
  <state vertical-scroll-proportion="0.0" vertical-offset="1065" max-vertical-offset="1245">
862
889
  <caret line="71" column="73" selection-start-line="71" selection-start-column="73" selection-end-line="71" selection-end-column="73" />
863
- <folding />
864
- </state>
865
- </provider>
866
- </entry>
867
- <entry file="file://$PROJECT_DIR$/lib/polarbear/model/configuration.rb">
868
- <provider selected="true" editor-type-id="text-editor">
869
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="0">
870
- <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
871
- <folding />
872
890
  </state>
873
891
  </provider>
874
892
  </entry>
@@ -879,14 +897,6 @@
879
897
  </state>
880
898
  </provider>
881
899
  </entry>
882
- <entry file="file://$PROJECT_DIR$/lib/polarbear/command/admin_review.rb">
883
- <provider selected="true" editor-type-id="text-editor">
884
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="0">
885
- <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
886
- <folding />
887
- </state>
888
- </provider>
889
- </entry>
890
900
  <entry file="file://$PROJECT_DIR$/lib/polarbear/command/admin.rb">
891
901
  <provider selected="true" editor-type-id="text-editor">
892
902
  <state vertical-scroll-proportion="0.22543353" vertical-offset="0" max-vertical-offset="865">
@@ -899,7 +909,6 @@
899
909
  <provider selected="true" editor-type-id="text-editor">
900
910
  <state vertical-scroll-proportion="0.22543353" vertical-offset="0" max-vertical-offset="1230">
901
911
  <caret line="13" column="0" selection-start-line="13" selection-start-column="0" selection-end-line="13" selection-end-column="0" />
902
- <folding />
903
912
  </state>
904
913
  </provider>
905
914
  </entry>
@@ -907,7 +916,6 @@
907
916
  <provider selected="true" editor-type-id="text-editor">
908
917
  <state vertical-scroll-proportion="0.3236994" vertical-offset="35" max-vertical-offset="1125">
909
918
  <caret line="21" column="0" selection-start-line="21" selection-start-column="0" selection-end-line="21" selection-end-column="0" />
910
- <folding />
911
919
  </state>
912
920
  </provider>
913
921
  </entry>
@@ -923,38 +931,77 @@
923
931
  <provider selected="true" editor-type-id="text-editor">
924
932
  <state vertical-scroll-proportion="0.4682081" vertical-offset="0" max-vertical-offset="865">
925
933
  <caret line="27" column="48" selection-start-line="27" selection-start-column="48" selection-end-line="27" selection-end-column="48" />
934
+ </state>
935
+ </provider>
936
+ </entry>
937
+ <entry file="file://$PROJECT_DIR$/lib/polarbear/version.rb">
938
+ <provider selected="true" editor-type-id="text-editor">
939
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="135">
940
+ <caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
926
941
  <folding />
927
942
  </state>
928
943
  </provider>
929
944
  </entry>
930
- <entry file="file://$PROJECT_DIR$/bin/poohbear-review-create">
945
+ <entry file="file://$PROJECT_DIR$/lib/polarbear.rb">
931
946
  <provider selected="true" editor-type-id="text-editor">
932
- <state vertical-scroll-proportion="0.67052025" vertical-offset="1415" max-vertical-offset="2280">
933
- <caret line="133" column="0" selection-start-line="133" selection-start-column="0" selection-end-line="133" selection-end-column="0" />
947
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="526">
948
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
934
949
  <folding />
935
950
  </state>
936
951
  </provider>
937
952
  </entry>
938
- <entry file="file://$PROJECT_DIR$/lib/polarbear/model/review.rb">
953
+ <entry file="file://$PROJECT_DIR$/lib/polarbear/model/configuration.rb">
939
954
  <provider selected="true" editor-type-id="text-editor">
940
- <state vertical-scroll-proportion="0.0" vertical-offset="860" max-vertical-offset="1815">
941
- <caret line="62" column="46" selection-start-line="62" selection-start-column="46" selection-end-line="62" selection-end-column="46" />
955
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="0">
956
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
957
+ <folding />
958
+ </state>
959
+ </provider>
960
+ </entry>
961
+ <entry file="file://$PROJECT_DIR$/lib/polarbear/utils/ccollab_locator.rb">
962
+ <provider selected="true" editor-type-id="text-editor">
963
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="570">
964
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
965
+ <folding />
966
+ </state>
967
+ </provider>
968
+ </entry>
969
+ <entry file="file://$PROJECT_DIR$/lib/polarbear/codecollab.rb">
970
+ <provider selected="true" editor-type-id="text-editor">
971
+ <state vertical-scroll-proportion="0.0" vertical-offset="344" max-vertical-offset="1860">
972
+ <caret line="43" column="46" selection-start-line="43" selection-start-column="46" selection-end-line="43" selection-end-column="46" />
973
+ <folding />
974
+ </state>
975
+ </provider>
976
+ </entry>
977
+ <entry file="file://$PROJECT_DIR$/lib/polarbear/command/admin_review.rb">
978
+ <provider selected="true" editor-type-id="text-editor">
979
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="0">
980
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
942
981
  <folding />
943
982
  </state>
944
983
  </provider>
945
984
  </entry>
946
985
  <entry file="file://$PROJECT_DIR$/lib/polarbear/utils/executor.rb">
947
986
  <provider selected="true" editor-type-id="text-editor">
948
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="690">
949
- <caret line="8" column="152" selection-start-line="8" selection-start-column="35" selection-end-line="8" selection-end-column="35" />
987
+ <state vertical-scroll-proportion="0.0" vertical-offset="198" max-vertical-offset="690">
988
+ <caret line="22" column="0" selection-start-line="22" selection-start-column="0" selection-end-line="22" selection-end-column="0" />
950
989
  <folding />
951
990
  </state>
952
991
  </provider>
953
992
  </entry>
954
- <entry file="file://$PROJECT_DIR$/lib/polarbear/version.rb">
993
+ <entry file="file://$PROJECT_DIR$/lib/polarbear/model/review.rb">
955
994
  <provider selected="true" editor-type-id="text-editor">
956
- <state vertical-scroll-proportion="0.01734104" vertical-offset="0" max-vertical-offset="865">
957
- <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
995
+ <state vertical-scroll-proportion="0.0" vertical-offset="691" max-vertical-offset="1890">
996
+ <caret line="52" column="116" selection-start-line="52" selection-start-column="116" selection-end-line="52" selection-end-column="116" />
997
+ <folding />
998
+ </state>
999
+ </provider>
1000
+ </entry>
1001
+ <entry file="file://$PROJECT_DIR$/bin/poohbear-review-create">
1002
+ <provider selected="true" editor-type-id="text-editor">
1003
+ <state vertical-scroll-proportion="0.4817073" vertical-offset="1953" max-vertical-offset="2445">
1004
+ <caret line="146" column="12" selection-start-line="146" selection-start-column="12" selection-end-line="146" selection-end-column="12" />
958
1005
  <folding />
959
1006
  </state>
960
1007
  </provider>
@@ -56,6 +56,11 @@ optparse = OptionParser.new do |opts|
56
56
  options[:usage] = true
57
57
  end
58
58
 
59
+ options[:diffargs] = nil
60
+ opts.on( '', '--diffargs ARGS', String, 'Instead of diffing 2 branches, diff using whatever is passed in [GIT DIFF ARGS]') do |diffarguments|
61
+ options[:diffargs] = diffarguments || ''
62
+ end
63
+
59
64
  options[:auto_answer] = nil
60
65
  opts.on( '-y', '--auto_answer', 'Won\'t prompt the user for anything and rely on args and defaults' ) do
61
66
  options[:auto_answer] = true
@@ -118,21 +123,27 @@ else
118
123
  options[:title] = ask('title: ') { |q| q.default = _current_branch } if options[:title].nil?
119
124
  options[:reviewers] = ask('reviewers (coma separated): ') { |q| q.default = _reviewers } if options[:reviewers].empty?
120
125
  options[:observers] = ask('observers: ') { |q| q.default = _observers } if options[:observers].empty?
121
- options[:base_branch] = ask('base branch diffing against: ') { |q| q.default = _base_branch } if options[:base_branch].nil?
122
- options[:current_branch] = ask('current branch diffed against base_branch: ') { |q| q.default = _current_branch } if options[:current_branch].nil?
126
+ if options[:diffargs].nil?
127
+ options[:base_branch] = ask('base branch diffing against: ') { |q| q.default = _base_branch } if options[:base_branch].nil?
128
+ options[:current_branch] = ask('current branch diffed against base_branch: ') { |q| q.default = _current_branch } if options[:current_branch].nil?
129
+ end
123
130
  end
124
131
 
125
132
  # Create the review
126
133
  begin
127
134
  _codecollab = PolarBear::CodeCollab.new
128
- new_review = PolarBear::Review.new(
135
+ new_review = _codecollab.create_review(
129
136
  :title => options[:title],
130
137
  :author => _codecollab.configuration.username,
131
138
  :reviewers => options[:reviewers].split(','),
132
139
  :observers => options[:observers].split(',')
133
140
  )
134
- new_review.create_it!
135
- new_review.add_git_diff(options[:base_branch], options[:current_branch])
141
+
142
+ if options[:diffargs].nil?
143
+ new_review.add_git_diff(options[:base_branch], options[:current_branch])
144
+ else
145
+ new_review.add_git_diff_with_args(options[:diffargs])
146
+ end
136
147
  rescue => ex
137
148
  p ex.to_s
138
149
  exit 1
@@ -36,7 +36,7 @@ module PolarBear
36
36
  end
37
37
  raise "Can't find code collab executable on your system" if @polarbear_options[:ccollab_execpath].nil?
38
38
 
39
- Utils::Executor.instance.set_codecollab_exec_path(@polarbear_options[:ccollab_execpath])
39
+ Utils::Executor.instance.set_codecollab_exec_path("#{@polarbear_options[:ccollab_execpath]}")
40
40
 
41
41
  @commands = {}
42
42
  @commands[:admin] = Command::Admin.new
@@ -74,13 +74,19 @@ module PolarBear
74
74
  Review.new(review_hash[:reviews][:review][:general])
75
75
  end
76
76
 
77
+ def create_review(settings)
78
+ review = PolarBear::Review.new(settings)
79
+ review.create_it!
80
+ review
81
+ end
82
+
77
83
  def delete_reviews(reviews)
78
- options = PolarBear::Command::GlobalOptions.new()
84
+ options = PolarBear::Command::GlobalOptions.new
79
85
  batch = PolarBear::Command::Batch.new(options)
80
86
 
81
87
  reviews.each do |review|
82
88
  puts review.inspect
83
- batch.add_command('admin_review_cancel', {':review' => "#{review.id}"})
89
+ batch.add_command('admin_review_cancel', {:review => "#{review.id}"})
84
90
  end
85
91
 
86
92
  batch.execute
@@ -48,6 +48,11 @@ module PolarBear
48
48
  Utils::Executor.instance.execute_command("--no-browser --quiet addgitdiffs #{@review_content[:id]} #{branch_a} #{branch_b}")
49
49
  end
50
50
 
51
+ def add_git_diff_with_args(diffargs)
52
+ raise 'must be a valid review' if @review_content[:id].nil?
53
+ Utils::Executor.instance.execute_command("--no-browser --quiet addgitdiffs #{@review_content[:id]} #{diffargs}")
54
+ end
55
+
51
56
  def create_it!
52
57
  can_create?
53
58
 
@@ -20,7 +20,7 @@ module PolarBear
20
20
 
21
21
  last_command_output = ''
22
22
 
23
- bearcommand = [@codecollab_execpath, @codecollab_globaloptions, command].join(' ')
23
+ bearcommand = ["'#{@codecollab_execpath}'", @codecollab_globaloptions, command].join(' ')
24
24
  IO.popen(bearcommand, 'r+') { |pipe|
25
25
 
26
26
  if input != nil
@@ -1,3 +1,3 @@
1
1
  module Polarbear
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
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.5
4
+ version: 0.0.6
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-05-16 00:00:00.000000000 Z
11
+ date: 2014-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -269,6 +269,7 @@ files:
269
269
  - ".idea/.name"
270
270
  - ".idea/.rakeTasks"
271
271
  - ".idea/dictionaries/pat.xml"
272
+ - ".idea/dictionaries/patricklaplante.xml"
272
273
  - ".idea/encodings.xml"
273
274
  - ".idea/misc.xml"
274
275
  - ".idea/modules.xml"
@@ -328,7 +329,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
328
329
  version: '0'
329
330
  requirements: []
330
331
  rubyforge_project:
331
- rubygems_version: 2.2.2
332
+ rubygems_version: 2.3.0
332
333
  signing_key:
333
334
  specification_version: 4
334
335
  summary: this is a work in progress