coral_core 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.9
1
+ 0.1.10
data/coral_core.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "coral_core"
8
- s.version = "0.1.9"
8
+ s.version = "0.1.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Adrian Webb"]
@@ -139,9 +139,8 @@ class Command < Core
139
139
  end
140
140
  end
141
141
  flags.each do |flag|
142
- if flag && ! flag.empty?
143
- flag = string(flag)
144
-
142
+ flag = string(flag)
143
+ if ! flag.empty?
145
144
  if flag.match(dash_pattern)
146
145
  dashes = $1
147
146
  else
@@ -110,7 +110,7 @@ class Core
110
110
 
111
111
  def self.array(data, default = [], split_string = false)
112
112
  result = default
113
- if data && ! data.empty?
113
+ if data
114
114
  case data
115
115
  when Array
116
116
  result = data
@@ -133,7 +133,7 @@ class Core
133
133
 
134
134
  def self.hash(data, default = {})
135
135
  result = default
136
- if data && ! data.empty?
136
+ if data
137
137
  case data
138
138
  when Hash
139
139
  result = data
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coral_core
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 9
10
- version: 0.1.9
9
+ - 10
10
+ version: 0.1.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Adrian Webb