ehsso 0.1.4 → 0.1.5

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: 4b6da55c26b5ec93c3da11b51a5a188927a7955a
4
- data.tar.gz: cb7001f5f1d7b12f03f6b8a033ae784c3c7da050
3
+ metadata.gz: 4896560d07fef66527b707db0dabb37e201f6deb
4
+ data.tar.gz: 4c397c30d0b7645d5ef2d2f0e1995a905712893f
5
5
  SHA512:
6
- metadata.gz: 2d7b49fb01af3be6f832ae94c03340b289ea80f7ea7740a1a57ca03a005ac76850dff00466e5ebbb8fb9a4319fc6097ee961c8463efcd854cbe8e7179640ca7b
7
- data.tar.gz: dbe427dd2be892e99b21f88396248cf808281cbe42000e84971ee47a8ada0c04976619cd105259757ef42f7514547f6e2f5ce25d789e58ebd8f16b8856e7be05
6
+ metadata.gz: 75b4721a65b4695d7cd3659ae0b15841e04b6623fb0937ad1bc922adf6b8c1666c63d618f810aa02adbca43648e1d069ef5308f6467ddc9f9f59a3ceaad3bb81
7
+ data.tar.gz: b94b65cd5eae342a090221f77a7d15b25138c59b83497aa29f8d5929f94cd2d5b551500a061669717de4f7540978ea912b83affb7460b2d713f737635f2030ed
data/ehsso.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  end
21
21
  spec.bindir = "exe"
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
- spec.require_paths = ["lib", "app"]
23
+ spec.require_paths = ["lib"]
24
24
 
25
25
  spec.add_development_dependency "bundler", "~> 1.14"
26
26
  spec.add_development_dependency "rake", "~> 12.0"
data/lib/ehsso/engine.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'rails/engine'
2
2
  require 'typhoeus'
3
3
 
4
- module Cmssso
4
+ module Ehsso
5
5
  class Engine < ::Rails::Engine
6
6
  end
7
7
  end
@@ -77,10 +77,10 @@ module Ehsso
77
77
  action: args[:action] || 'people.modules.roles',
78
78
  request: [
79
79
  {
80
- reference: self.reference,
81
- first_name: self.first_name,
82
- last_name: self.last_name,
83
- email: self.email,
80
+ reference: @reference,
81
+ first_name: @first_name,
82
+ last_name: @last_name,
83
+ email: @email,
84
84
  modules: [
85
85
  {
86
86
  reference: args[:module_key] || Ehsso.configuration.module_key
@@ -98,7 +98,7 @@ module Ehsso
98
98
  # allows to mock class for rspec
99
99
  service_class = args[:service_class] || Typhoeus
100
100
 
101
- response = service_class.post(url, body: payload(action: args[:action]), userpwd: userpwd)
101
+ response = service_class.post(url, body: JSON.generate(payload(action: args[:action])), userpwd: userpwd, ssl_verifypeer: false)
102
102
  handle_response(response)
103
103
  end
104
104
 
data/lib/ehsso/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ehsso
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
data/lib/ehsso.rb CHANGED
@@ -1,6 +1,9 @@
1
- require "ehsso/version"
2
- require "ehsso/configuration"
3
- require "ehsso/engine"
1
+ require 'json'
2
+
3
+ require 'ehsso/version'
4
+ require 'ehsso/configuration'
5
+ require 'ehsso/engine'
6
+ require 'ehsso/person'
4
7
 
5
8
  module Ehsso
6
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ehsso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Steiner
@@ -92,11 +92,11 @@ files:
92
92
  - Gemfile
93
93
  - README.md
94
94
  - Rakefile
95
- - app/models/person.rb
96
95
  - ehsso.gemspec
97
96
  - lib/ehsso.rb
98
97
  - lib/ehsso/configuration.rb
99
98
  - lib/ehsso/engine.rb
99
+ - lib/ehsso/person.rb
100
100
  - lib/ehsso/version.rb
101
101
  homepage: http://github.com/thomis/ehsso
102
102
  licenses:
@@ -106,7 +106,6 @@ post_install_message:
106
106
  rdoc_options: []
107
107
  require_paths:
108
108
  - lib
109
- - app
110
109
  required_ruby_version: !ruby/object:Gem::Requirement
111
110
  requirements:
112
111
  - - ">="