coverband-service-client 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
  SHA256:
3
- metadata.gz: 3dbdc19e84ba014734e6f18402b93afdaf359cfc7ec12dfacaa2b75efb25a065
4
- data.tar.gz: 8508b2e57f76111b3e28e837a5d1b92caba99c5689cebc1a8d82ba20f0dc4248
3
+ metadata.gz: 373190932f2c83d572f8d425fc31b69b370c1e10ade822afbbc5f4f08f9419f5
4
+ data.tar.gz: d4739b9a741aa7295c132239363e3474bc0d23a4b2c39ee88b8bc53f5978fe0c
5
5
  SHA512:
6
- metadata.gz: e35c82037d2f3800332a6722f7a233087830609b52ef6d1314f317147bdbaac23cf64c693e5da357c3c8e842ca4d34558c834323e7ae55dfb4b7898298113500
7
- data.tar.gz: 8c9802133869b005e0f61082be34c18528e5c1a512babe88ce073fab2a55e0c793fa5ec5eaae60a481c873195931bf5dc3f3c32405c4d071fa768ebdfc2c15d8
6
+ metadata.gz: 455f17da5ba92d4be63f2cd332157283b8c000c1b0d7f4e4fd8b1009a09f69e8685661db9aaae8fb2560292b91cc22435fadc4618ae671534cda30e5b41cb4b3
7
+ data.tar.gz: c8990a5ad84ea9051a15879125117ccb64fca8e7e520e68ee566e039ba27fc4fd071c9a92124eb71d426fd3b51e5f2a6cfaaaf03a257acc1f9a9a55f207f743f
data/Gemfile.lock ADDED
@@ -0,0 +1,26 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ coverband-service-client (0.0.2)
5
+ coverband (~> 4.2.4)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ coverband (4.2.4)
11
+ redis
12
+ minitest (5.14.0)
13
+ rake (10.5.0)
14
+ redis (4.1.3)
15
+
16
+ PLATFORMS
17
+ ruby
18
+
19
+ DEPENDENCIES
20
+ bundler (~> 2.0)
21
+ coverband-service-client!
22
+ minitest (~> 5.0)
23
+ rake (~> 10.0)
24
+
25
+ BUNDLED WITH
26
+ 2.0.2
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "coverband/service/client/version"
3
+ require 'coverband/service/client/version'
4
4
  require 'securerandom'
5
5
 
6
6
  module Coverband
@@ -40,7 +40,7 @@ module Coverband
40
40
  def coverage(local_type = nil, opts = {})
41
41
  local_type ||= opts.key?(:override_type) ? opts[:override_type] : type
42
42
  uri = URI("#{coverband_url}/api/coverage/#{coverband_id}?type=#{local_type}")
43
- req = Net::HTTP::Get.new(uri, 'Content-Type' => 'application/json', 'Coverband-Token' => 'abcd')
43
+ req = Net::HTTP::Get.new(uri, 'Content-Type' => 'application/json', 'Coverband-Token' => ENV['COVERBAND_API_KEY'])
44
44
  res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
45
45
  http.request(req)
46
46
  end
@@ -99,3 +99,13 @@ module Coverband
99
99
  end
100
100
  end
101
101
  end
102
+
103
+ Coverband.configure do |config|
104
+ # toggle store type
105
+ redis_url = ENV['REDIS_URL']
106
+ # Normal Coverband Setup
107
+ # config.store = Coverband::Adapters::HashRedisStore.new(Redis.new(url: redis_url))
108
+ # Use The Test Service Adapter
109
+ coverband_service_url = ENV['COVERBAND_URL'] || 'http://127.0.0.1:3456'
110
+ config.store = Coverband::Adapters::Service.new(coverband_service_url)
111
+ end
@@ -1,7 +1,7 @@
1
1
  module Coverband
2
2
  module Service
3
3
  module Client
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coverband-service-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Mayer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-01-17 00:00:00.000000000 Z
12
+ date: 2020-01-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -78,6 +78,7 @@ files:
78
78
  - ".travis.yml"
79
79
  - CODE_OF_CONDUCT.md
80
80
  - Gemfile
81
+ - Gemfile.lock
81
82
  - LICENSE.txt
82
83
  - README.md
83
84
  - Rakefile
@@ -85,7 +86,7 @@ files:
85
86
  - bin/setup
86
87
  - changelog.md
87
88
  - coverband-service-client.gemspec
88
- - lib/coverband/service/client.rb
89
+ - lib/coverband-service-client.rb
89
90
  - lib/coverband/service/client/version.rb
90
91
  homepage: https://github.com/coverband-service/coverband-service-client
91
92
  licenses: