aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/dsl
diff options
context:
space:
mode:
authorMarkus Reiter2016-10-14 20:33:16 +0200
committerMarkus Reiter2016-10-23 14:32:04 +0200
commitad8ae33c1f2bf09cf70944aba0708000adce93e1 (patch)
tree855ff4c86c4d08af0bb6b40d5d3d055f5e7ae993 /Library/Homebrew/cask/lib/hbc/dsl
parent2b7e6c1dcb2e1aa8416b9b26d1a3d77b68f65013 (diff)
downloadbrew-ad8ae33c1f2bf09cf70944aba0708000adce93e1.tar.bz2
Fix spacing and indentation.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/dsl')
-rw-r--r--Library/Homebrew/cask/lib/hbc/dsl/conflicts_with.rb14
-rw-r--r--Library/Homebrew/cask/lib/hbc/dsl/container.rb6
-rw-r--r--Library/Homebrew/cask/lib/hbc/dsl/depends_on.rb58
-rw-r--r--Library/Homebrew/cask/lib/hbc/dsl/gpg.rb6
-rw-r--r--Library/Homebrew/cask/lib/hbc/dsl/installer.rb6
-rw-r--r--Library/Homebrew/cask/lib/hbc/dsl/version.rb10
6 files changed, 50 insertions, 50 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/dsl/conflicts_with.rb b/Library/Homebrew/cask/lib/hbc/dsl/conflicts_with.rb
index e121e5373..948348239 100644
--- a/Library/Homebrew/cask/lib/hbc/dsl/conflicts_with.rb
+++ b/Library/Homebrew/cask/lib/hbc/dsl/conflicts_with.rb
@@ -2,13 +2,13 @@ module Hbc
class DSL
class ConflictsWith
VALID_KEYS = Set.new [
- :formula,
- :cask,
- :macos,
- :arch,
- :x11,
- :java,
- ]
+ :formula,
+ :cask,
+ :macos,
+ :arch,
+ :x11,
+ :java,
+ ]
attr_accessor(*VALID_KEYS)
attr_accessor :pairs
diff --git a/Library/Homebrew/cask/lib/hbc/dsl/container.rb b/Library/Homebrew/cask/lib/hbc/dsl/container.rb
index 56db31d97..ab260c98c 100644
--- a/Library/Homebrew/cask/lib/hbc/dsl/container.rb
+++ b/Library/Homebrew/cask/lib/hbc/dsl/container.rb
@@ -2,9 +2,9 @@ module Hbc
class DSL
class Container
VALID_KEYS = Set.new [
- :type,
- :nested,
- ]
+ :type,
+ :nested,
+ ]
attr_accessor(*VALID_KEYS)
attr_accessor :pairs
diff --git a/Library/Homebrew/cask/lib/hbc/dsl/depends_on.rb b/Library/Homebrew/cask/lib/hbc/dsl/depends_on.rb
index 6bd6445ff..5a17c09f2 100644
--- a/Library/Homebrew/cask/lib/hbc/dsl/depends_on.rb
+++ b/Library/Homebrew/cask/lib/hbc/dsl/depends_on.rb
@@ -4,40 +4,40 @@ module Hbc
class DSL
class DependsOn
VALID_KEYS = Set.new [
- :formula,
- :cask,
- :macos,
- :arch,
- :x11,
- :java,
- ].freeze
+ :formula,
+ :cask,
+ :macos,
+ :arch,
+ :x11,
+ :java,
+ ].freeze
VALID_ARCHES = {
- intel: { type: :intel, bits: [32, 64] },
- ppc: { type: :ppc, bits: [32, 64] },
- # specific
- i386: { type: :intel, bits: 32 },
- x86_64: { type: :intel, bits: 64 },
- ppc_7400: { type: :ppc, bits: 32 },
- ppc_64: { type: :ppc, bits: 64 },
- }.freeze
+ intel: { type: :intel, bits: [32, 64] },
+ ppc: { type: :ppc, bits: [32, 64] },
+ # specific
+ i386: { type: :intel, bits: 32 },
+ x86_64: { type: :intel, bits: 64 },
+ ppc_7400: { type: :ppc, bits: 32 },
+ ppc_64: { type: :ppc, bits: 64 },
+ }.freeze
# Intentionally undocumented: catch variant spellings.
ARCH_SYNONYMS = {
- x86_32: :i386,
- x8632: :i386,
- x8664: :x86_64,
- intel_32: :i386,
- intel32: :i386,
- intel_64: :x86_64,
- intel64: :x86_64,
- amd_64: :x86_64,
- amd64: :x86_64,
- ppc7400: :ppc_7400,
- ppc_32: :ppc_7400,
- ppc32: :ppc_7400,
- ppc64: :ppc_64,
- }.freeze
+ x86_32: :i386,
+ x8632: :i386,
+ x8664: :x86_64,
+ intel_32: :i386,
+ intel32: :i386,
+ intel_64: :x86_64,
+ intel64: :x86_64,
+ amd_64: :x86_64,
+ amd64: :x86_64,
+ ppc7400: :ppc_7400,
+ ppc_32: :ppc_7400,
+ ppc32: :ppc_7400,
+ ppc64: :ppc_64,
+ }.freeze
attr_accessor :java
attr_accessor :pairs
diff --git a/Library/Homebrew/cask/lib/hbc/dsl/gpg.rb b/Library/Homebrew/cask/lib/hbc/dsl/gpg.rb
index c54db4524..b49ebb97c 100644
--- a/Library/Homebrew/cask/lib/hbc/dsl/gpg.rb
+++ b/Library/Homebrew/cask/lib/hbc/dsl/gpg.rb
@@ -2,9 +2,9 @@ module Hbc
class DSL
class Gpg
KEY_PARAMETERS = Set.new [
- :key_id,
- :key_url,
- ]
+ :key_id,
+ :key_url,
+ ]
VALID_PARAMETERS = Set.new []
VALID_PARAMETERS.merge KEY_PARAMETERS
diff --git a/Library/Homebrew/cask/lib/hbc/dsl/installer.rb b/Library/Homebrew/cask/lib/hbc/dsl/installer.rb
index 92561c703..b01b28d76 100644
--- a/Library/Homebrew/cask/lib/hbc/dsl/installer.rb
+++ b/Library/Homebrew/cask/lib/hbc/dsl/installer.rb
@@ -2,9 +2,9 @@ module Hbc
class DSL
class Installer
VALID_KEYS = Set.new [
- :manual,
- :script,
- ]
+ :manual,
+ :script,
+ ]
attr_accessor(*VALID_KEYS)
diff --git a/Library/Homebrew/cask/lib/hbc/dsl/version.rb b/Library/Homebrew/cask/lib/hbc/dsl/version.rb
index 63c15a02d..d73205f52 100644
--- a/Library/Homebrew/cask/lib/hbc/dsl/version.rb
+++ b/Library/Homebrew/cask/lib/hbc/dsl/version.rb
@@ -2,11 +2,11 @@ module Hbc
class DSL
class Version < ::String
DIVIDERS = {
- "." => :dots,
- "-" => :hyphens,
- "_" => :underscores,
- "/" => :slashes,
- }.freeze
+ "." => :dots,
+ "-" => :hyphens,
+ "_" => :underscores,
+ "/" => :slashes,
+ }.freeze
DIVIDER_REGEX = /(#{DIVIDERS.keys.map { |v| Regexp.quote(v) }.join('|')})/