maestrano-connector-rails 2.0.2.pre.RC1 → 2.0.2.pre.RC2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 74dbb8e9c430a2e596fdd639adffb4c5ffe72b00
4
- data.tar.gz: 2d7d7e742c74765d315728913e846bc31268bb2b
3
+ metadata.gz: fe9b69ee7aafe9ac46d755de03dc7781929f6e36
4
+ data.tar.gz: 4f52bc12c68ac6c471490d6958856da416f15fdb
5
5
  SHA512:
6
- metadata.gz: fc6c45a3e8b39444508ec0430fe001907135ff52591d44c4914a74aeb763e8a3ff3f905eb4438063a3d1bd5201e90c6962b82d570e045698514d394c71006b80
7
- data.tar.gz: 72cfe2b906911c29480de3420934921e66a07495db4d89e5195883ecd8c6e33de95b50cbfdbe8a683961d51ab1b45fb133a1e08ac6a730d14b85b8269262e71f
6
+ metadata.gz: 55ede4aed50e33f8cdab471d6a62e69cc41f80a9539f09de072671aeb81d82862e1b426ab387fcbc9384a32a0fc42394a401882d2e68a0b629d76bd146b76fd9
7
+ data.tar.gz: ec8a3be889554f9e7bea0b6afd244d176d14a5db35acca1bbd17d5c8612ba7cd729e7e8e972ec0929bf07397e36b460c91fa237c4b7fbf55cdc424e554297d50
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.2.pre.RC1
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 = {:username => Maestrano[tenant].param('api.id'), :password => Maestrano[tenant].param('api.key')}
143
- res = HTTParty.get("#{ENV['HUB_HOST']}/api/v1/account/groups/#{uid}", :basic_auth => auth)
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.RC1 ruby lib
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.RC1"
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]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maestrano-connector-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2.pre.RC1
4
+ version: 2.0.2.pre.RC2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maestrano