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 +4 -4
- data/Gemfile.lock +22 -22
- data/lib/maremma.rb +3 -0
- data/lib/maremma/version.rb +1 -1
- data/spec/maremma_spec.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e82d176ef0ad595adb54b010b369d97ce43bcc2b
|
|
4
|
+
data.tar.gz: 6221f3df0fda35b927ec4af01be67081df4980dd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 26ffa5dd38d8206e1f50ed7d612b29b516fa6bf44b16f72d2c3602cdd285180e377f119e92fdd06693e2450597b1392ce45639aa086787e8f6950f9e010990d5
|
|
7
|
+
data.tar.gz: 49655572b15b2d039be1d31a9f1049bfb467b18b8cee3c0a0530ef1d4bb763345883c2d8b058d949af37307682af912ce754411aa34edbad18218328043a15e0
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
maremma (3.5.
|
|
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.
|
|
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.
|
|
42
|
-
i18n (0.8.
|
|
43
|
-
json (2.0
|
|
44
|
-
mini_portile2 (2.
|
|
45
|
-
minitest (5.10.
|
|
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.
|
|
49
|
-
mini_portile2 (~> 2.
|
|
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.
|
|
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.
|
|
57
|
-
rspec-core (~> 3.
|
|
58
|
-
rspec-expectations (~> 3.
|
|
59
|
-
rspec-mocks (~> 3.
|
|
60
|
-
rspec-core (3.
|
|
61
|
-
rspec-support (~> 3.
|
|
62
|
-
rspec-expectations (3.
|
|
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.
|
|
65
|
-
rspec-mocks (3.
|
|
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.
|
|
68
|
-
rspec-support (3.
|
|
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.
|
|
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)
|
data/lib/maremma.rb
CHANGED
|
@@ -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}"
|
data/lib/maremma/version.rb
CHANGED
data/spec/maremma_spec.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
11
|
+
date: 2017-06-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|