maestrano 0.8.1 → 0.8.2

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: 6692f5f10bcdd3443671b03950c6092418155b20
4
- data.tar.gz: ba475f1a7f201896df8612a6a3d40a9e9ea56724
3
+ metadata.gz: 008d806d03f95afa292f5908e336872999c87860
4
+ data.tar.gz: 8ec54c6aedc38dc25dcb2472725aebb912562328
5
5
  SHA512:
6
- metadata.gz: 24a09cc1e234d3df5f33494b2d4673a8086df38f679059e57aa2801097fac6fcdd2d9d09834b92526c2f837a4d6b9d008b1307079da15ccb35c1a1bfea2587d7
7
- data.tar.gz: 31d9840712b665b53879775b48b7a624cc09bd42ef8b73dddebcd9415cb9235d8dce6abf61db51e3f3717411fe1742f047aa447419fdee564cdddf4aeddb9d1a
6
+ metadata.gz: 45adb8af2b1b3e5868dbb2d407e12e14e01ec4c319130f4df5a1caa680791aea92ed4b50115625a8a7b064e8dda54673f2ba0cbd1e52230b948deb0d711a3d3b
7
+ data.tar.gz: 85a2f8e40ef318361c173125e4e346cb45a5c65e43ec166b97f69b21304e3985b3ca31773117cac704b0340aed8c84724ebbf7110dd71d201d65d0f61929a816
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- maestrano (0.8.0)
4
+ maestrano (0.8.1)
5
5
  json (~> 1.8)
6
6
  mime-types (~> 1.25)
7
7
  nokogiri (>= 1.5.0)
@@ -19,11 +19,13 @@ GEM
19
19
  mini_portile (0.6.0)
20
20
  mocha (0.13.3)
21
21
  metaclass (~> 0.0.1)
22
+ netrc (0.7.7)
22
23
  nokogiri (1.6.2.1)
23
24
  mini_portile (= 0.6.0)
24
25
  rake (10.3.2)
25
- rest-client (1.6.7)
26
- mime-types (>= 1.16)
26
+ rest-client (1.7.2)
27
+ mime-types (>= 1.16, < 3.0)
28
+ netrc (~> 0.7)
27
29
  shoulda (2.11.3)
28
30
  systemu (2.6.4)
29
31
  test-unit (2.5.5)
data/lib/maestrano.rb CHANGED
@@ -169,7 +169,7 @@ module Maestrano
169
169
  @sso = OpenStruct.new({
170
170
  enabled: true,
171
171
  slo_enabled: true,
172
- creation_mode: 'virtual',
172
+ creation_mode: 'real',
173
173
  init_path: '/maestrano/auth/saml/init',
174
174
  consume_path: '/maestrano/auth/saml/consume',
175
175
  idm: nil
@@ -1,3 +1,3 @@
1
1
  module Maestrano
2
- VERSION = '0.8.1'
2
+ VERSION = '0.8.2'
3
3
  end
@@ -46,6 +46,12 @@ class MaestranoTest < Test::Unit::TestCase
46
46
  end
47
47
  end
48
48
 
49
+ should "set the sso.creation_mode to 'real' by default" do
50
+ Maestrano.config = Maestrano::Configuration.new
51
+ Maestrano.configure { |config| config.app.host = "https://someapp.com" }
52
+ assert_equal 'real', Maestrano.param('sso.creation_mode')
53
+ end
54
+
49
55
  should "build the api_token based on the app_id and api_key" do
50
56
  Maestrano.configure { |config| config.app_id = "bla"; config.api_key = "blo" }
51
57
  assert_equal "bla:blo", Maestrano.param('api.token')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maestrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud Lachaume