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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f15762b97137ae9555e3d37bb7b912d9632ee39ebb8962bd6a74939a994ce1f
4
- data.tar.gz: 6885a79299051d91434ce94ec25ec64a8420bc05fc1a8bb2e98642f0cbaf1e96
3
+ metadata.gz: 77a064e289fbdf35220f9b3550f9d0ccb5fcadf3a9a3b80d81ed762f410fb670
4
+ data.tar.gz: '059896c40d6fd25fc9ef974e26ef4dc9434fdb068a950b8dd0164d673108ce53'
5
5
  SHA512:
6
- metadata.gz: 33c8c102db750d50634ea051ed3bca2017dabff8a7231f2553ab8cf03f4372c19ac1393fff22ca029df799de9338273682f40732542b8c21977c69ba9f76cd8d
7
- data.tar.gz: b6b7c6b6c08bf8e6a21ac579c7f674960b9dea59766e44ec37f8a2007538a4dd1f192d526071669a9353779f50480c1a1f68cce4e764b22837d2c3007fde4791
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
 
@@ -10,18 +10,12 @@ module Sleet
10
10
  @_token ||= File.read("#{Dir.home}/.circleci.token").strip
11
11
  end
12
12
 
13
- def get(*args, &block)
14
- connection.get(*args, &block)
13
+ def get(url)
14
+ Faraday.get(url, circleci_token: token)
15
15
  end
16
16
 
17
- def self.get(*args, &block)
18
- instance.get(*args, &block)
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, filter: :completed).body)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sleet
4
- VERSION = '0.3.5'
4
+ VERSION = '0.3.6'
5
5
  end
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.5
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-17 00:00:00.000000000 Z
11
+ date: 2018-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize