hexlet 0.3.3 → 0.3.4

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: 3274ee106665e58461c5b533f9ae4a56b10d5932
4
- data.tar.gz: 1dc4d25ce21eda12f198441647c1be0f6c68b023
3
+ metadata.gz: 7059abd5d11bc2ff94e6c7713a61ecb386af244e
4
+ data.tar.gz: a2ec7f4d024ab654e47fc8cd4b7b4d01806e55d4
5
5
  SHA512:
6
- metadata.gz: 425b0568413f0f1fabb08c265fcc06d923ce0451925283287128dce65ba1270bfc5342032ab3590d5001294decc90bba6502290c1a2e91a7f94f54e69d0ddbc4
7
- data.tar.gz: bc6d4c1dd24a556e692880e8c89c67095ee3a493c3abfa1c610667674dc0240627df4147bfabff63791f735eca69d760438f0dc461434ca2cfc4042640de9431
6
+ metadata.gz: 50aa928de62cab71fad6010b4583b3ab56f2f2386e0e59d4692b20f724642f064fa96901445c9f03b0a265beb0e0e1c67b650e595269126066218e5bb81717d7
7
+ data.tar.gz: c68543c0acde90205aa52b6b23930cf53edec581d1d0a91c5ff7d66fbbc6da27396d28caab7c4fe6f209c8d0eeb4039c27a7a9c45e9e5c7a40207f5e4d7442a7
@@ -70,7 +70,7 @@ module Hexlet
70
70
  private
71
71
 
72
72
  def build_client(key = config["hexlet_api_key"])
73
- Hexlet::MemberClient.new options[:key], logger: logger, host: options["host"]
73
+ Hexlet::MemberClient.new key, logger: logger, host: options["host"]
74
74
  end
75
75
  end
76
76
  end
@@ -1,3 +1,3 @@
1
1
  module Hexlet
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
@@ -10,6 +10,7 @@ class Hexlet::MemberCLITest < MiniTest::Test
10
10
  config_file = File.join(Dir.home, ".hexlet", "credentials")
11
11
 
12
12
  stub = stub_request(:get, @router.api_member_user_check_url).
13
+ with(:headers => {'X-Hexlet-Api-Key'=>api_key}).
13
14
  to_return(:status => 200)
14
15
 
15
16
  FakeFS do
@@ -13,7 +13,9 @@ class Hexlet::TeacherCLITest < MiniTest::Test
13
13
  end
14
14
 
15
15
  def test_submit
16
+ # api_key = "api_key"
16
17
  stub = stub_request(:post, @router.api_teacher_lessons_url).
18
+ # with(:headers => {'X-Hexlet-Api-Key' => api_key}).
17
19
  to_return(:status => 201)
18
20
 
19
21
  FakeFS do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hexlet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kirill Mokevnin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-07 00:00:00.000000000 Z
11
+ date: 2014-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler