octopolo 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.soyuz.yml +1 -1
- data/.travis.yml +2 -0
- data/CHANGELOG.markdown +5 -0
- data/lib/octopolo/github.rb +3 -0
- data/lib/octopolo/version.rb +1 -1
- data/spec/octopolo/github_spec.rb +22 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0cde0a4142059cc9f1fe442b113e56f5dc379bcb
|
4
|
+
data.tar.gz: 2873020336f920929c1e802fde64ff8cd491a3f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32e1de6b5f8ab37c2c7f3eb5c04cce1ce52034b5be8dfca4dac26535457f6540ca0ab621bfb2609596b95fdfd82370839b58c3f6f589d1ab1b1b06357b9f7fe5
|
7
|
+
data.tar.gz: 392d484fc5923145a640fc35f18a131b275209d46ff9953a3438e14e90e3242ca11870eb91ede051947280369c46eee2a678ee4f973dd7f77af26a0ca67dd362
|
data/.soyuz.yml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
defaults:
|
2
2
|
deploy_cmd: gem push *.gem
|
3
3
|
before_deploy_cmds:
|
4
|
-
|
4
|
+
#- /usr/local/bin/op tag-release
|
5
5
|
- sed -i "" -e "s/\".*/\"$(git tag | sed s/v// | sort -n -t. -k1,1 -k2,2 -k3,3 | tail -1)\"/" lib/octopolo/version.rb
|
6
6
|
- git add lib/octopolo/version.rb
|
7
7
|
- git commit -m "Version Bump" && git push
|
data/.travis.yml
CHANGED
data/CHANGELOG.markdown
CHANGED
data/lib/octopolo/github.rb
CHANGED
data/lib/octopolo/version.rb
CHANGED
@@ -179,6 +179,28 @@ module Octopolo
|
|
179
179
|
end
|
180
180
|
end
|
181
181
|
end
|
182
|
+
|
183
|
+
context ".team_member? team" do
|
184
|
+
let(:valid_team) { 2396228 }
|
185
|
+
let(:invalid_team) { 2396227 }
|
186
|
+
let(:user_config) { stub(:user_config, github_user: "foo", github_token: "bar") }
|
187
|
+
|
188
|
+
before { GitHub.stub(user_config: user_config) }
|
189
|
+
|
190
|
+
context "when valid team member" do
|
191
|
+
it "returns true" do
|
192
|
+
client.should_receive(:team_member?).with(valid_team, user_config.github_user) { true }
|
193
|
+
GitHub.team_member?(valid_team).should == true
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
context "when not a valid team member" do
|
198
|
+
it "returns false" do
|
199
|
+
client.should_receive(:team_member?).with(invalid_team, user_config.github_user) { false }
|
200
|
+
GitHub.team_member?(invalid_team).should == false
|
201
|
+
end
|
202
|
+
end
|
203
|
+
end
|
182
204
|
end
|
183
205
|
end
|
184
206
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octopolo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick Byrne
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2017-08-01 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: gli
|