mortar 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -39,7 +39,7 @@ module Mortar
39
39
  end
40
40
 
41
41
  def default_host
42
- "https://api.mortardata.com"
42
+ "mortardata.com"
43
43
  end
44
44
 
45
45
  def host
@@ -63,7 +63,8 @@ class Mortar::Local::Jython
63
63
  end
64
64
 
65
65
  def jython_jar_url
66
- default_url = host + "/" + JYTHON_JAR_DEFAULT_URL_PATH
66
+ full_host = (host =~ /^http/) ? host : "https://api.#{host}"
67
+ default_url = full_host + "/" + JYTHON_JAR_DEFAULT_URL_PATH
67
68
  ENV.fetch('JYTHON_JAR_URL', default_url)
68
69
  end
69
70
  end
@@ -78,7 +78,8 @@ class Mortar::Local::Pig
78
78
  end
79
79
 
80
80
  def pig_archive_url
81
- default_url = host + "/" + PIG_TGZ_DEFAULT_URL_PATH
81
+ full_host = (host =~ /^http/) ? host : "https://api.#{host}"
82
+ default_url = full_host + "/" + PIG_TGZ_DEFAULT_URL_PATH
82
83
  ENV.fetch('PIG_DISTRO_URL', default_url)
83
84
  end
84
85
 
@@ -158,7 +158,8 @@ class Mortar::Local::Python
158
158
  end
159
159
 
160
160
  def python_archive_url
161
- default_url = host + "/" + PYTHON_OSX_TGZ_DEFAULT_URL_PATH
161
+ full_host = (host =~ /^http/) ? host : "https://api.#{host}"
162
+ default_url = full_host + "/" + PYTHON_OSX_TGZ_DEFAULT_URL_PATH
162
163
  return ENV.fetch('PYTHON_DISTRO_URL', default_url)
163
164
  end
164
165
 
@@ -16,5 +16,5 @@
16
16
 
17
17
  module Mortar
18
18
  # see http://semver.org/
19
- VERSION = "0.9.5"
19
+ VERSION = "0.9.6"
20
20
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mortar
3
3
  version: !ruby/object:Gem::Version
4
- hash: 49
4
+ hash: 55
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 5
10
- version: 0.9.5
9
+ - 6
10
+ version: 0.9.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mortar Data