maestrano-connector-rails 2.0.2.pre.RC1 → 2.0.2.pre.RC2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe9b69ee7aafe9ac46d755de03dc7781929f6e36
|
4
|
+
data.tar.gz: 4f52bc12c68ac6c471490d6958856da416f15fdb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55ede4aed50e33f8cdab471d6a62e69cc41f80a9539f09de072671aeb81d82862e1b426ab387fcbc9384a32a0fc42394a401882d2e68a0b629d76bd146b76fd9
|
7
|
+
data.tar.gz: ec8a3be889554f9e7bea0b6afd244d176d14a5db35acca1bbd17d5c8612ba7cd729e7e8e972ec0929bf07397e36b460c91fa237c4b7fbf55cdc424e554297d50
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.2.pre.
|
1
|
+
2.0.2.pre.RC2
|
@@ -27,7 +27,7 @@ class Maestrano::SynchronizationsController < Maestrano::Rails::WebHookControlle
|
|
27
27
|
render_organization_sync(organization, status, 201)
|
28
28
|
end
|
29
29
|
|
30
|
-
def update_metadata
|
30
|
+
def update_metadata
|
31
31
|
tenant = params[:tenant]
|
32
32
|
uid = params[:group_id]
|
33
33
|
organization = Maestrano::Connector::Rails::Organization.find_by(uid: uid, tenant: tenant)
|
@@ -139,8 +139,8 @@ module Maestrano::Connector::Rails
|
|
139
139
|
end
|
140
140
|
|
141
141
|
def set_instance_metadata
|
142
|
-
auth = {:
|
143
|
-
res = HTTParty.get("#{
|
142
|
+
auth = {username: Maestrano[tenant].param('api.id'), password: Maestrano[tenant].param('api.key')}
|
143
|
+
res = HTTParty.get("#{Maestrano[tenant].param('api.host')}/api/v1/account/groups/#{uid}", basic_auth: auth)
|
144
144
|
|
145
145
|
self.push_disabled = res.dig('data', 'metadata', 'push_disabled')
|
146
146
|
self.pull_disabled = res.dig('data', 'metadata', 'pull_disabled')
|
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: maestrano-connector-rails 2.0.2.pre.
|
5
|
+
# stub: maestrano-connector-rails 2.0.2.pre.RC2 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "maestrano-connector-rails".freeze
|
9
|
-
s.version = "2.0.2.pre.
|
9
|
+
s.version = "2.0.2.pre.RC2"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|