microclimate 0.0.1 → 0.0.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e0de1768bee072ce732eb28fae3b04fb8ff7d83
|
4
|
+
data.tar.gz: 268d9016f167a3556edf177f6d1b848d20b9fe13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d618813c2af2521081ccd0d61b66264c354891ef43a39bffe7d67572eb413db5baaeeceefbbbb4e9a62afded30ec0af89e073e55761946f7cc4c915cb308068
|
7
|
+
data.tar.gz: 2631080a51f263209ca65dfd3de02aaed49ba32c9acb8d916619cd6c81ae3906770cd841f180fe02023ff04a97f4c5778b0364475917c5e756c305178f281756
|
data/lib/microclimate/branch.rb
CHANGED
data/lib/microclimate/version.rb
CHANGED
@@ -33,6 +33,13 @@ describe Microclimate::Branch do
|
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
|
+
describe "#www_url" do
|
37
|
+
it "returns the branch compare view" do
|
38
|
+
url = "https://codeclimate.com/repos/#{repo_id}/compare/#{name}"
|
39
|
+
expect(subject.www_url).to eq url
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
36
43
|
describe "#refresh!" do
|
37
44
|
let(:url) { "#{base_url}/refresh" }
|
38
45
|
|
@@ -72,6 +72,13 @@ describe Microclimate::Repository do
|
|
72
72
|
end
|
73
73
|
end
|
74
74
|
|
75
|
+
describe "#www_url" do
|
76
|
+
it "returns the Code Climate HTML report" do
|
77
|
+
url = "https://codeclimate.com/repos/#{repo_id}"
|
78
|
+
expect(subject.www_url).to eq url
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
75
82
|
describe "#id" do
|
76
83
|
before :each do
|
77
84
|
stub_request(:get, url).with(:api_token => api_token).to_return(:body => json_response.to_json)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: microclimate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Hao
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|