Add the FrozenStrings magic comment
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# Fact: java_default_home
|
# Fact: java_default_home
|
||||||
#
|
#
|
||||||
# Purpose: get absolute path of java system home
|
# Purpose: get absolute path of java system home
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# Fact: java_libjvm_path
|
# Fact: java_libjvm_path
|
||||||
#
|
#
|
||||||
# Purpose: get path to libjvm.so
|
# Purpose: get path to libjvm.so
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# Fact: java_major_version
|
# Fact: java_major_version
|
||||||
#
|
#
|
||||||
# Purpose: get Java's major version
|
# Purpose: get Java's major version
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# Fact: java_patch_level
|
# Fact: java_patch_level
|
||||||
#
|
#
|
||||||
# Purpose: get Java's patch level
|
# Purpose: get Java's patch level
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# Fact: java_version
|
# Fact: java_version
|
||||||
#
|
#
|
||||||
# Purpose: get full java version string
|
# Purpose: get full java version string
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'spec_helper_acceptance'
|
require 'spec_helper_acceptance'
|
||||||
require 'pry'
|
require 'pry'
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe 'java', type: :class do
|
describe 'java', type: :class do
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe 'java::adopt', type: :define do
|
describe 'java::adopt', type: :define do
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe 'java::download', type: :define do
|
describe 'java::download', type: :define do
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe 'java::sap', type: :define do
|
describe 'java::sap', type: :define do
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
UNSUPPORTED_PLATFORMS = ['darwin', 'windows'].freeze
|
UNSUPPORTED_PLATFORMS = ['darwin', 'windows'].freeze
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
if ENV['COVERAGE'] == 'yes'
|
if ENV['COVERAGE'] == 'yes'
|
||||||
require 'simplecov'
|
require 'simplecov'
|
||||||
require 'simplecov-console'
|
require 'simplecov-console'
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
java_7_path = '/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java'
|
java_7_path = '/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java'
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe 'java_libjvm_path' do
|
describe 'java_libjvm_path' do
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe 'java_major_version' do
|
describe 'java_major_version' do
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe 'java_patch_level' do
|
describe 'java_patch_level' do
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
openjdk_7_output = "Picked up JAVA_TOOL_OPTIONS: -Djava.net.preferIPv4Stack=true\n"\
|
openjdk_7_output = "Picked up JAVA_TOOL_OPTIONS: -Djava.net.preferIPv4Stack=true\n"\
|
||||||
|
|||||||
Reference in New Issue
Block a user