| 
					
				 | 
			
			
				@@ -183,9 +183,18 @@ class PythonDistribTest(object): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 class RubyDistribTest(object): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     """Tests Ruby package""" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    def __init__(self, platform, arch, docker_suffix, ruby_version=None): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        self.name = 'ruby_%s_%s_%s_version_%s' % (platform, arch, docker_suffix, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                                  ruby_version or 'unspecified') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    def __init__(self, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                 platform, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                 arch, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                 docker_suffix, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                 ruby_version=None, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                 source=False): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        self.package_type = 'binary' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if source: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            self.package_type = 'source' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        self.name = 'ruby_%s_%s_%s_version_%s_package_type_%s' % ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            platform, arch, docker_suffix, ruby_version or 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            'unspecified', self.package_type) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         self.platform = platform 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         self.arch = arch 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         self.docker_suffix = docker_suffix 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -210,8 +219,8 @@ class RubyDistribTest(object): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return create_docker_jobspec( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             self.name, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             dockerfile_name, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            'test/distrib/ruby/run_distrib_test.sh %s %s' % 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            (arch_to_gem_arch[self.arch], self.platform), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            'test/distrib/ruby/run_distrib_test.sh %s %s %s' % 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            (arch_to_gem_arch[self.arch], self.platform, self.package_type), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             copy_rel_path='test/distrib') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     def __str__(self): 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -341,6 +350,11 @@ def targets(): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         RubyDistribTest('linux', 'x64', 'jessie', ruby_version='ruby_2_5'), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         RubyDistribTest('linux', 'x64', 'jessie', ruby_version='ruby_2_6'), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         RubyDistribTest('linux', 'x64', 'jessie', ruby_version='ruby_2_7'), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        RubyDistribTest('linux', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        'x64', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        'jessie', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        ruby_version='ruby_2_3', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        source=True), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         RubyDistribTest('linux', 'x64', 'centos6'), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         RubyDistribTest('linux', 'x64', 'centos7'), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         RubyDistribTest('linux', 'x64', 'fedora23'), 
			 |