maestrano 0.12.4 → 0.12.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/.travis.yml +8 -0
- data/DEVELOPER.md +1 -1
- data/README.md +4 -3
- data/lib/maestrano/open_struct.rb +2 -4
- data/lib/maestrano/version.rb +1 -1
- data/test/maestrano/open_struct_test.rb +2 -2
- data/test/maestrano/saml/response_test.rb +8 -8
- metadata +79 -79
- data/Gemfile.lock +0 -65
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 961e494a7726abfc328ae5d7a0379572c5355c6d
|
4
|
+
data.tar.gz: 3ccc05ce90bc87e36bf61298a0e9f47fd84ae3b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29b8000e2a2951f5bd9824b3bce178df1381d945a548fc41913b7f7d025f2472320490175a4d2088c64588b3d8c28e65ecc94019688ff1a2ca2bfc3246544fa0
|
7
|
+
data.tar.gz: 816de5a1357044877518907d00430be0b9dc50be6e975c0c8a598f9811c980f0d3a80e334584e94282e253ff6fa35f324384e38a45d446142398123ddfa3077f
|
data/.gitignore
CHANGED
data/.travis.yml
ADDED
data/DEVELOPER.md
CHANGED
data/README.md
CHANGED
@@ -5,9 +5,10 @@
|
|
5
5
|
</p>
|
6
6
|
|
7
7
|
Maestrano Cloud Integration is currently in closed beta. Want to know more? Send us an email to <contact@maestrano.com>.
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
|
9
|
+
[![Build Status](https://travis-ci.org/maestrano/maestrano-ruby.svg)](https://travis-ci.org/maestrano/maestrano-ruby)
|
10
|
+
[![Gem Version](https://badge.fury.io/rb/maestrano.svg)](https://rubygems.org/gems/maestrano)
|
11
|
+
|
11
12
|
- - -
|
12
13
|
|
13
14
|
1. [Getting Setup](#getting-setup)
|
@@ -1,11 +1,9 @@
|
|
1
1
|
module Maestrano
|
2
|
-
|
3
|
-
# Extebd OpenStruct to include a 'attributes'
|
4
|
-
# method
|
2
|
+
# Extend OpenStruct to include a 'attributes' method
|
5
3
|
class OpenStruct < ::OpenStruct
|
6
4
|
# Return all object defined attributes
|
7
5
|
def attributes
|
8
6
|
(self.methods - self.class.new.methods).reject {|method| method =~ /=$/ }
|
9
7
|
end
|
10
8
|
end
|
11
|
-
end
|
9
|
+
end
|
data/lib/maestrano/version.rb
CHANGED
@@ -4,7 +4,7 @@ module Maestrano
|
|
4
4
|
class MaestranoOpenStructTest < Test::Unit::TestCase
|
5
5
|
should "return the right attributes" do
|
6
6
|
o = Maestrano::OpenStruct.new(bla: 'hello', ha: 'yo')
|
7
|
-
assert_equal [:bla
|
7
|
+
assert_equal [:bla, :ha], o.attributes
|
8
8
|
end
|
9
9
|
end
|
10
|
-
end
|
10
|
+
end
|
@@ -4,7 +4,7 @@ module Maestrano
|
|
4
4
|
module Saml
|
5
5
|
class SamlTest < Test::Unit::TestCase
|
6
6
|
include SamlTestHelper
|
7
|
-
|
7
|
+
|
8
8
|
context "Response" do
|
9
9
|
should "raise an exception when response is initialized with nil" do
|
10
10
|
assert_raises(ArgumentError) { Maestrano::Saml::Response.new(nil) }
|
@@ -164,7 +164,7 @@ module Maestrano
|
|
164
164
|
@config = {
|
165
165
|
'environment' => 'production',
|
166
166
|
'app.host' => 'http://mysuperapp.com',
|
167
|
-
|
167
|
+
|
168
168
|
'sso.enabled' => false,
|
169
169
|
'sso.slo_enabled' => false,
|
170
170
|
'sso.init_path' => '/mno/sso/init',
|
@@ -190,7 +190,7 @@ module Maestrano
|
|
190
190
|
Maestrano.configure do |config|
|
191
191
|
config.environment = @config['environment']
|
192
192
|
config.app.host = @config['app.host']
|
193
|
-
|
193
|
+
|
194
194
|
config.sso.enabled = @config['sso.enabled']
|
195
195
|
config.sso.slo_enabled = @config['sso.slo_enabled']
|
196
196
|
config.sso.idm = @config['sso.idm']
|
@@ -198,11 +198,11 @@ module Maestrano
|
|
198
198
|
config.sso.consume_path = @config['sso.consume_path']
|
199
199
|
config.sso.creation_mode = @config['sso.creation_mode']
|
200
200
|
end
|
201
|
-
|
201
|
+
|
202
202
|
Maestrano[@preset].configure do |config|
|
203
203
|
config.environment = @preset_config['environment']
|
204
204
|
config.app.host = @preset_config['app.host']
|
205
|
-
|
205
|
+
|
206
206
|
config.sso.enabled = @preset_config['sso.enabled']
|
207
207
|
config.sso.slo_enabled = @preset_config['sso.slo_enabled']
|
208
208
|
config.sso.idm = @preset_config['sso.idm']
|
@@ -276,11 +276,11 @@ module Maestrano
|
|
276
276
|
|
277
277
|
should "optionally allow for clock drift" do
|
278
278
|
# The NotBefore condition in the document is 2011-06-14T18:21:01.516Z
|
279
|
-
Time.
|
279
|
+
time = Time.parse("2011-06-14T18:21:01Z")
|
280
|
+
Time.stubs(:now).returns(time)
|
280
281
|
response = Maestrano::Saml::Response.new(response_document_5, :allowed_clock_drift => 0.515)
|
281
282
|
assert !response.send(:validate_conditions, true)
|
282
283
|
|
283
|
-
Time.stubs(:now).returns(Time.parse("2011-06-14T18:21:01Z"))
|
284
284
|
response = Maestrano::Saml::Response.new(response_document_5, :allowed_clock_drift => 0.516)
|
285
285
|
assert response.send(:validate_conditions, true)
|
286
286
|
end
|
@@ -373,4 +373,4 @@ module Maestrano
|
|
373
373
|
end
|
374
374
|
end
|
375
375
|
end
|
376
|
-
end
|
376
|
+
end
|
metadata
CHANGED
@@ -1,170 +1,171 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maestrano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arnaud Lachaume
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
15
|
-
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.4'
|
20
|
-
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
21
23
|
requirements:
|
22
|
-
- - ~>
|
24
|
+
- - "~>"
|
23
25
|
- !ruby/object:Gem::Version
|
24
26
|
version: '1.4'
|
25
|
-
prerelease: false
|
26
|
-
type: :runtime
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mime-types
|
29
|
-
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.25'
|
34
|
-
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
35
37
|
requirements:
|
36
|
-
- - ~>
|
38
|
+
- - "~>"
|
37
39
|
- !ruby/object:Gem::Version
|
38
40
|
version: '1.25'
|
39
|
-
prerelease: false
|
40
|
-
type: :runtime
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: json
|
43
|
-
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '1.8'
|
48
|
-
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
49
51
|
requirements:
|
50
|
-
- - ~>
|
52
|
+
- - "~>"
|
51
53
|
- !ruby/object:Gem::Version
|
52
54
|
version: '1.8'
|
53
|
-
prerelease: false
|
54
|
-
type: :runtime
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: httparty
|
57
|
-
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0.13'
|
62
|
-
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
63
65
|
requirements:
|
64
|
-
- - ~>
|
66
|
+
- - "~>"
|
65
67
|
- !ruby/object:Gem::Version
|
66
68
|
version: '0.13'
|
67
|
-
prerelease: false
|
68
|
-
type: :runtime
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: test-unit
|
71
|
-
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - ~>
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '2'
|
76
|
-
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
77
79
|
requirements:
|
78
|
-
- - ~>
|
80
|
+
- - "~>"
|
79
81
|
- !ruby/object:Gem::Version
|
80
82
|
version: '2'
|
81
|
-
prerelease: false
|
82
|
-
type: :development
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: mocha
|
85
|
-
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0.13'
|
90
|
-
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
91
93
|
requirements:
|
92
|
-
- - ~>
|
94
|
+
- - "~>"
|
93
95
|
- !ruby/object:Gem::Version
|
94
96
|
version: '0.13'
|
95
|
-
prerelease: false
|
96
|
-
type: :development
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: shoulda
|
99
|
-
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - ~>
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '2.11'
|
104
|
-
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
107
|
requirements:
|
106
|
-
- - ~>
|
108
|
+
- - "~>"
|
107
109
|
- !ruby/object:Gem::Version
|
108
110
|
version: '2.11'
|
109
|
-
prerelease: false
|
110
|
-
type: :development
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: timecop
|
113
|
-
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - <=
|
115
|
+
- - "<="
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: 0.6.0
|
118
|
-
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
119
121
|
requirements:
|
120
|
-
- - <=
|
122
|
+
- - "<="
|
121
123
|
- !ruby/object:Gem::Version
|
122
124
|
version: 0.6.0
|
123
|
-
prerelease: false
|
124
|
-
type: :development
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rake
|
127
|
-
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - ~>
|
129
|
+
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '10'
|
132
|
-
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
133
135
|
requirements:
|
134
|
-
- - ~>
|
136
|
+
- - "~>"
|
135
137
|
- !ruby/object:Gem::Version
|
136
138
|
version: '10'
|
137
|
-
prerelease: false
|
138
|
-
type: :development
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: uuid
|
141
|
-
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - ~>
|
143
|
+
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '2.3'
|
146
|
-
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
147
149
|
requirements:
|
148
|
-
- - ~>
|
150
|
+
- - "~>"
|
149
151
|
- !ruby/object:Gem::Version
|
150
152
|
version: '2.3'
|
151
|
-
prerelease: false
|
152
|
-
type: :runtime
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: nokogiri
|
155
|
-
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- -
|
157
|
+
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: 1.5.0
|
160
|
-
|
160
|
+
type: :runtime
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
161
163
|
requirements:
|
162
|
-
- -
|
164
|
+
- - ">="
|
163
165
|
- !ruby/object:Gem::Version
|
164
166
|
version: 1.5.0
|
165
|
-
|
166
|
-
|
167
|
-
description: Maestrano is the next generation marketplace for SME applications. See https://maestrano.com for details.
|
167
|
+
description: Maestrano is the next generation marketplace for SME applications. See
|
168
|
+
https://maestrano.com for details.
|
168
169
|
email:
|
169
170
|
- arnaud.lachaume@maestrano.com
|
170
171
|
executables:
|
@@ -172,10 +173,10 @@ executables:
|
|
172
173
|
extensions: []
|
173
174
|
extra_rdoc_files: []
|
174
175
|
files:
|
175
|
-
- .gitignore
|
176
|
+
- ".gitignore"
|
177
|
+
- ".travis.yml"
|
176
178
|
- DEVELOPER.md
|
177
179
|
- Gemfile
|
178
|
-
- Gemfile.lock
|
179
180
|
- LICENSE
|
180
181
|
- README.md
|
181
182
|
- Rakefile
|
@@ -271,24 +272,24 @@ homepage: https://maestrano.com
|
|
271
272
|
licenses:
|
272
273
|
- MIT
|
273
274
|
metadata: {}
|
274
|
-
post_install_message:
|
275
|
+
post_install_message:
|
275
276
|
rdoc_options: []
|
276
277
|
require_paths:
|
277
278
|
- lib
|
278
279
|
required_ruby_version: !ruby/object:Gem::Requirement
|
279
280
|
requirements:
|
280
|
-
- -
|
281
|
+
- - ">="
|
281
282
|
- !ruby/object:Gem::Version
|
282
283
|
version: '0'
|
283
284
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
284
285
|
requirements:
|
285
|
-
- -
|
286
|
+
- - ">="
|
286
287
|
- !ruby/object:Gem::Version
|
287
288
|
version: '0'
|
288
289
|
requirements: []
|
289
|
-
rubyforge_project:
|
290
|
-
rubygems_version: 2.
|
291
|
-
signing_key:
|
290
|
+
rubyforge_project:
|
291
|
+
rubygems_version: 2.5.1
|
292
|
+
signing_key:
|
292
293
|
specification_version: 4
|
293
294
|
summary: Ruby bindings for the Maestrano API
|
294
295
|
test_files:
|
@@ -337,4 +338,3 @@ test_files:
|
|
337
338
|
- test/support/saml/responses/starfield_response.xml.base64
|
338
339
|
- test/support/saml/responses/wrapped_response_2.xml.base64
|
339
340
|
- test/test_helper.rb
|
340
|
-
has_rdoc:
|
data/Gemfile.lock
DELETED
@@ -1,65 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
maestrano (0.12.3)
|
5
|
-
httparty (~> 0.13)
|
6
|
-
json (~> 1.8)
|
7
|
-
mime-types (~> 1.25)
|
8
|
-
nokogiri (>= 1.5.0)
|
9
|
-
rest-client (~> 1.4)
|
10
|
-
uuid (~> 2.3)
|
11
|
-
|
12
|
-
GEM
|
13
|
-
remote: http://rubygems.org/
|
14
|
-
specs:
|
15
|
-
domain_name (0.5.20160310)
|
16
|
-
unf (>= 0.0.5, < 1.0.0)
|
17
|
-
http-cookie (1.0.2)
|
18
|
-
domain_name (~> 0.5)
|
19
|
-
httparty (0.13.7)
|
20
|
-
json (~> 1.8)
|
21
|
-
multi_xml (>= 0.5.2)
|
22
|
-
json (1.8.3)
|
23
|
-
json (1.8.3-java)
|
24
|
-
macaddr (1.7.1)
|
25
|
-
systemu (~> 2.6.2)
|
26
|
-
metaclass (0.0.4)
|
27
|
-
mime-types (1.25.1)
|
28
|
-
mini_portile2 (2.0.0)
|
29
|
-
mocha (0.14.0)
|
30
|
-
metaclass (~> 0.0.1)
|
31
|
-
multi_xml (0.5.5)
|
32
|
-
netrc (0.11.0)
|
33
|
-
nokogiri (1.6.7.2)
|
34
|
-
mini_portile2 (~> 2.0.0.rc2)
|
35
|
-
nokogiri (1.6.7.2-java)
|
36
|
-
rake (10.5.0)
|
37
|
-
rest-client (1.8.0)
|
38
|
-
http-cookie (>= 1.0.2, < 2.0)
|
39
|
-
mime-types (>= 1.16, < 3.0)
|
40
|
-
netrc (~> 0.7)
|
41
|
-
shoulda (2.11.3)
|
42
|
-
systemu (2.6.5)
|
43
|
-
test-unit (2.5.5)
|
44
|
-
timecop (0.6.0)
|
45
|
-
unf (0.1.4)
|
46
|
-
unf_ext
|
47
|
-
unf (0.1.4-java)
|
48
|
-
unf_ext (0.0.7.2)
|
49
|
-
uuid (2.3.8)
|
50
|
-
macaddr (~> 1.0)
|
51
|
-
|
52
|
-
PLATFORMS
|
53
|
-
java
|
54
|
-
ruby
|
55
|
-
|
56
|
-
DEPENDENCIES
|
57
|
-
maestrano!
|
58
|
-
mocha (~> 0.13)
|
59
|
-
rake (~> 10)
|
60
|
-
shoulda (~> 2.11)
|
61
|
-
test-unit (~> 2)
|
62
|
-
timecop (<= 0.6.0)
|
63
|
-
|
64
|
-
BUNDLED WITH
|
65
|
-
1.10.6
|