sleet 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/sleet/circle_ci.rb +4 -10
- data/lib/sleet/circle_ci_branch.rb +2 -2
- data/lib/sleet/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77a064e289fbdf35220f9b3550f9d0ccb5fcadf3a9a3b80d81ed762f410fb670
|
4
|
+
data.tar.gz: '059896c40d6fd25fc9ef974e26ef4dc9434fdb068a950b8dd0164d673108ce53'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f0dfee4fec0188fc030c469df95b7cde0b9bf0f534ea60594567f8463e1fde2dbef789991b72ee45042e78dffedc771098ef1f8cc389ab82539cdbb3c37607b
|
7
|
+
data.tar.gz: ea07726ffb56e19cfcae30d3a5cfc7012e61b9903de40612f797b5b16632e4e1c3a911cf323ea4302f4a29a893f7f85c0a77147f82190e321d7a64e60e76cdcc
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [v0.3.6](https://github.com/coreyja/sleet/tree/v0.3.6) (2018-01-17)
|
4
|
+
[Full Changelog](https://github.com/coreyja/sleet/compare/v0.3.5...v0.3.6)
|
5
|
+
|
6
|
+
**Merged pull requests:**
|
7
|
+
|
8
|
+
- Fix Auth By Going Back to Query Params [\#13](https://github.com/coreyja/sleet/pull/13) ([coreyja](https://github.com/coreyja))
|
9
|
+
|
10
|
+
## [v0.3.5](https://github.com/coreyja/sleet/tree/v0.3.5) (2018-01-17)
|
11
|
+
[Full Changelog](https://github.com/coreyja/sleet/compare/v0.3.4...v0.3.5)
|
12
|
+
|
3
13
|
## [v0.3.4](https://github.com/coreyja/sleet/tree/v0.3.4) (2018-01-17)
|
4
14
|
[Full Changelog](https://github.com/coreyja/sleet/compare/v0.3.3...v0.3.4)
|
5
15
|
|
data/lib/sleet/circle_ci.rb
CHANGED
@@ -10,18 +10,12 @@ module Sleet
|
|
10
10
|
@_token ||= File.read("#{Dir.home}/.circleci.token").strip
|
11
11
|
end
|
12
12
|
|
13
|
-
def get(
|
14
|
-
|
13
|
+
def get(url)
|
14
|
+
Faraday.get(url, circleci_token: token)
|
15
15
|
end
|
16
16
|
|
17
|
-
def self.get(
|
18
|
-
instance.get(
|
19
|
-
end
|
20
|
-
|
21
|
-
private
|
22
|
-
|
23
|
-
def connection
|
24
|
-
@_connection ||= Faraday.new.tap { |c| c.basic_auth(token, '') }
|
17
|
+
def self.get(url)
|
18
|
+
instance.get(url)
|
25
19
|
end
|
26
20
|
end
|
27
21
|
end
|
@@ -9,7 +9,7 @@ module Sleet
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def builds
|
12
|
-
@_builds ||= JSON.parse(Sleet::CircleCi.get(url
|
12
|
+
@_builds ||= JSON.parse(Sleet::CircleCi.get(url).body)
|
13
13
|
end
|
14
14
|
|
15
15
|
def builds_with_artificats
|
@@ -21,7 +21,7 @@ module Sleet
|
|
21
21
|
attr_reader :github_user, :github_repo, :branch
|
22
22
|
|
23
23
|
def url
|
24
|
-
"https://circleci.com/api/v1.1/project/github/#{github_user}/#{github_repo}/tree/#{branch}"
|
24
|
+
"https://circleci.com/api/v1.1/project/github/#{github_user}/#{github_repo}/tree/#{branch}?filter=completed"
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
data/lib/sleet/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sleet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Corey Alexander
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|