ssomg 0.1.1 → 0.1.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: 5c73a7366e9f5dae3c70fb5a95ba525d41850eea
4
- data.tar.gz: a631f6c89afe712bd099ad99dc89bb5ad6d50601
3
+ metadata.gz: 5eaa4afd4613165eb776921758b15a6623817cf3
4
+ data.tar.gz: a184b7e23ba418ee95061ece6495c4ce87f01d8b
5
5
  SHA512:
6
- metadata.gz: c98f9eb4cd0229a0d4ea1fc1f7bbd2a5ce5313d8a6b84c4b127210a0f5c1b8599876477c723004ed649f7e1ce8375f4b0278174a97fae2f334d557b6ae27d1a0
7
- data.tar.gz: 9162d3248aa9b11aa94aa39a63f998920b234049627dd21be81a8b0febada5e14fcb5c3d4bf2d15b2e5463fd8731e028140b817e494e7ed13452fec77b72c983
6
+ metadata.gz: 61323e180366cda1d00fb543b4c8e580e4a5c7185c677964d6017a2a01f73b1ada8a8f217b7e19524096596aac4457f74c022efac5bcaef2131fc174b585243e
7
+ data.tar.gz: 963e483fc281c83a72d55ae6e2f33debcd9d7fc2345f10e755da9929427cc0948ee888d57d4cbe50c83447da7b9f970b198ac58c0fa8dfbd3a739600927f5e38
data/README.md CHANGED
@@ -1,9 +1,12 @@
1
1
  # Ssomg
2
+
2
3
  This is the Ruby client for the SSOMG single sign on project, designed to work with Rails.
3
4
 
4
5
 
5
6
  ## Installation
6
7
 
8
+ You must be using Ruby 2.4 or higher and rails 4 or higher.
9
+
7
10
  Add this line to your application's Gemfile:
8
11
 
9
12
  ```ruby
@@ -68,7 +68,7 @@ module Ssomg
68
68
  require 'json'
69
69
  begin
70
70
  uri = URI(ENV["SSO_HOST"] + "/auth/sso")
71
- http = Net::HTTP.new(uri.host, uri.port)
71
+ http = Net::HTTP.new(uri.host, uri.port, :use_ssl => uri.scheme == 'https')
72
72
  req = Net::HTTP::Post.new(uri.path, {'Content-Type' =>'application/json'})
73
73
  req.body = { :token => token }.to_json
74
74
  res = http.request(req)
data/lib/ssomg/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ssomg
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ssomg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henry McIntosh