samanage 1.7.8 → 1.7.9

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: ca9b644cdc574bb64fab2d30b08a659d63150d25
4
- data.tar.gz: 5d8395a684b2fd83d584d7fa3001e245ce50b74d
3
+ metadata.gz: c33712f14d8e3954583638e677767e18d8994685
4
+ data.tar.gz: 2eb7879f1973dd1700aaa60ea7650550d8fd4e9e
5
5
  SHA512:
6
- metadata.gz: 9a3d746d4a66d17e5e8f96cb1dc61ff88fea618b1d6a32eb7663124134f292ece107d8eb19b23d330959580aaf15610177fb722d1dd1f093feed1514567bb876
7
- data.tar.gz: 86bedf852a2d8ac13fdbb48c4cc7457bcf3e78fe437e9c7d9621296f2a8ebbe2e2c7cd43c5699b1312291abbc0a21f9e1dfbd3061ea5e8c7ff12671ae0a3ee5a
6
+ metadata.gz: 8895ef4b07eaf76bdd3df1b91ec9b2d94daaa3b75683e0b9c1a48321aec85dd6000d7f79b7ebf8e3a892cc84c6f16350432d1036e31f8b9e0b6cbf1ebb1c55df
7
+ data.tar.gz: 7c085ca06d726b5e6c36afcd8da1565a30f9af3cc79f7368fad9fa36a7930c93a33fc66b425c214afbb86103474681685169142e6858e08f610561bcce6f4c4e
data/changelog.md CHANGED
@@ -1,3 +1,5 @@
1
+ #1.7.9
2
+ - Solving eu datacenter support against base_url
1
3
  #1.7.8
2
4
  - Fixing nil condition in user_id methods
3
5
 
data/lib/samanage/api.rb CHANGED
@@ -25,8 +25,8 @@ module Samanage
25
25
  if !datacenter.nil? && datacenter.to_s.downcase != 'eu'
26
26
  self.datacenter = nil
27
27
  end
28
- self.base_url = "https://api#{self.datacenter}.samanage.com/"
29
- self.datacenter = datacenter if datacenter
28
+ self.datacenter ||= datacenter
29
+ self.base_url = "https://api#{self.datacenter.to_s.downcase}.samanage.com/"
30
30
  self.content_type = 'json'
31
31
  self.admins = []
32
32
  if development_mode
data/samanage.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  $:.push File.expand_path("../lib", __FILE__)
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'samanage'
4
- s.version = '1.7.8'
4
+ s.version = '1.7.9'
5
5
  s.date = Date.today.strftime("%Y-%m-%d")
6
6
  s.summary = "Samanage Ruby Gem"
7
7
  s.description = "Connect to Samanage using Ruby!"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: samanage
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.8
4
+ version: 1.7.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Walls
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-12 00:00:00.000000000 Z
11
+ date: 2017-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty