maremma 3.5.7 → 3.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 139244896bb3592f1eade50f3cad609a7d8654b8
4
- data.tar.gz: 1ea3c523fced8b0b4449675679274bfa1edb3df2
3
+ metadata.gz: e82d176ef0ad595adb54b010b369d97ce43bcc2b
4
+ data.tar.gz: 6221f3df0fda35b927ec4af01be67081df4980dd
5
5
  SHA512:
6
- metadata.gz: a42fde435f4ae2e386a257ed61fb833b545b7ec94b0a57d0e4d351a58a448030c6fae3db712ee9a87d04499439eb8d91bdf5fde03a39945a082d6895df864caa
7
- data.tar.gz: 6ce0e1eb96d7125ee1896bb035c45306d736eb44ab976b15f9c5d8f80bc42def88d86a51a6b0a81c1e81b61f6717cf119e2dfdbcd82dcaab399566ce72bd81c9
6
+ metadata.gz: 26ffa5dd38d8206e1f50ed7d612b29b516fa6bf44b16f72d2c3602cdd285180e377f119e92fdd06693e2450597b1392ce45639aa086787e8f6950f9e010990d5
7
+ data.tar.gz: 49655572b15b2d039be1d31a9f1049bfb467b18b8cee3c0a0530ef1d4bb763345883c2d8b058d949af37307682af912ce754411aa34edbad18218328043a15e0
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- maremma (3.5.7)
4
+ maremma (3.5.8)
5
5
  activesupport (>= 4.2.5)
6
6
  addressable (>= 2.3.6)
7
7
  builder (~> 3.2, >= 3.2.2)
@@ -16,7 +16,7 @@ PATH
16
16
  GEM
17
17
  remote: https://rubygems.org/
18
18
  specs:
19
- activesupport (5.0.2)
19
+ activesupport (5.1.1)
20
20
  concurrent-ruby (~> 1.0, >= 1.0.2)
21
21
  i18n (~> 0.7)
22
22
  minitest (~> 5.1)
@@ -38,40 +38,40 @@ GEM
38
38
  faraday
39
39
  faraday_middleware (0.10.1)
40
40
  faraday (>= 0.7.4, < 1.0)
41
- hashdiff (0.3.2)
42
- i18n (0.8.1)
43
- json (2.0.4)
44
- mini_portile2 (2.1.0)
45
- minitest (5.10.1)
41
+ hashdiff (0.3.4)
42
+ i18n (0.8.4)
43
+ json (2.1.0)
44
+ mini_portile2 (2.2.0)
45
+ minitest (5.10.2)
46
46
  multi_json (1.12.1)
47
47
  multipart-post (2.0.0)
48
- nokogiri (1.7.1)
49
- mini_portile2 (~> 2.1.0)
48
+ nokogiri (1.8.0)
49
+ mini_portile2 (~> 2.2.0)
50
50
  oj (2.18.5)
51
51
  public_suffix (2.0.5)
52
- rack (2.0.1)
52
+ rack (2.0.3)
53
53
  rack-test (0.6.3)
54
54
  rack (>= 1.0)
55
55
  rake (12.0.0)
56
- rspec (3.5.0)
57
- rspec-core (~> 3.5.0)
58
- rspec-expectations (~> 3.5.0)
59
- rspec-mocks (~> 3.5.0)
60
- rspec-core (3.5.4)
61
- rspec-support (~> 3.5.0)
62
- rspec-expectations (3.5.0)
56
+ rspec (3.6.0)
57
+ rspec-core (~> 3.6.0)
58
+ rspec-expectations (~> 3.6.0)
59
+ rspec-mocks (~> 3.6.0)
60
+ rspec-core (3.6.0)
61
+ rspec-support (~> 3.6.0)
62
+ rspec-expectations (3.6.0)
63
63
  diff-lcs (>= 1.2.0, < 2.0)
64
- rspec-support (~> 3.5.0)
65
- rspec-mocks (3.5.0)
64
+ rspec-support (~> 3.6.0)
65
+ rspec-mocks (3.6.0)
66
66
  diff-lcs (>= 1.2.0, < 2.0)
67
- rspec-support (~> 3.5.0)
68
- rspec-support (3.5.0)
67
+ rspec-support (~> 3.6.0)
68
+ rspec-support (3.6.0)
69
69
  safe_yaml (1.0.4)
70
70
  simplecov (0.13.0)
71
71
  docile (~> 1.1.0)
72
72
  json (>= 1.8, < 3)
73
73
  simplecov-html (~> 0.10.0)
74
- simplecov-html (0.10.0)
74
+ simplecov-html (0.10.1)
75
75
  thread_safe (0.3.6)
76
76
  tzinfo (1.2.3)
77
77
  thread_safe (~> 0.1)
@@ -129,6 +129,9 @@ module Maremma
129
129
  headers['Authorization'] = "Bearer #{options[:bearer]}"
130
130
  elsif options[:token].present?
131
131
  headers["Authorization"] = "Token token=#{options[:token]}"
132
+ elsif options[:github_token].present?
133
+ # GitHub uses different format for token authentication
134
+ headers["Authorization"] = "Token #{options[:github_token]}"
132
135
  elsif options[:username].present?
133
136
  basic = Base64.encode64("#{options[:username]}:#{options[:password]}").rstrip
134
137
  headers["Authorization"] = "Basic #{basic}"
@@ -1,3 +1,3 @@
1
1
  module Maremma
2
- VERSION = "3.5.7"
2
+ VERSION = "3.5.8"
3
3
  end
@@ -523,6 +523,11 @@ describe Maremma do
523
523
  expect(subject.set_request_headers(url, options)["Authorization"]).to eq("Token token=12345")
524
524
  end
525
525
 
526
+ it 'github_token' do
527
+ options = { github_token: '12345' }
528
+ expect(subject.set_request_headers(url, options)["Authorization"]).to eq("Token 12345")
529
+ end
530
+
526
531
  it 'basic' do
527
532
  options = { username: 'foo', password: '12345' }
528
533
  basic = Base64.encode64("foo:12345").rstrip
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maremma
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.7
4
+ version: 3.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-16 00:00:00.000000000 Z
11
+ date: 2017-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday