redbreast 0.1.1 → 0.1.2
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.
- checksums.yaml +4 -4
- data/lib/redbreast/commands/setup.rb +4 -3
- data/lib/redbreast/helpers/general.rb +1 -1
- data/lib/redbreast/helpers/hash.rb +3 -4
- data/lib/redbreast/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28335747641b4f238124171e835adccda21ebcdf
|
4
|
+
data.tar.gz: 9c10192572608e34b0666c9b0cbad98f137cd200
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ae134219d98faad33b54171cef764ffb1069b8f7520931f9e5f24c6577d9d7251abcd7ad5bb4447109be58636a4a47e257220963ae7786eb9069998434947f4
|
7
|
+
data.tar.gz: 7839bccb9fffebe8aeba5acdc45a0090f35474f3c68618a343fbfe38effe77f85d4affcbb5e9e53b61ea0a8f3886be9dbcb83d0cfb1d442a42a92cbaead78fe3
|
@@ -6,7 +6,7 @@ module Redbreast
|
|
6
6
|
class Setup
|
7
7
|
include Helper::Terminal
|
8
8
|
include Helper::General
|
9
|
-
include Helper::
|
9
|
+
include Helper::HashHelper
|
10
10
|
|
11
11
|
def self.init(options = Commander::Command::Options.new)
|
12
12
|
new(options).call
|
@@ -24,14 +24,15 @@ module Redbreast
|
|
24
24
|
assets_search_path = assets_search_path_prompt(bundle)
|
25
25
|
output_source_path = images_sources_path_prompt(bundle, language)
|
26
26
|
include_tests = create_tests_path_prompt?(bundle)
|
27
|
-
{
|
27
|
+
fields = {
|
28
28
|
name: bundle,
|
29
29
|
reference: reference,
|
30
30
|
assetsSearchPath: assets_search_path,
|
31
31
|
outputSourcePath: output_source_path,
|
32
32
|
outputTestPath: include_tests ? tests_path_prompt(bundle, language) : nil,
|
33
33
|
testableImport: include_tests ? testable_import_prompt(bundle, language) : nil
|
34
|
-
}
|
34
|
+
}
|
35
|
+
compact fields
|
35
36
|
end
|
36
37
|
config = {
|
37
38
|
language: language,
|
@@ -45,7 +45,7 @@ module Redbreast
|
|
45
45
|
.split(/[^0-9a-zA-Z]/)
|
46
46
|
.reject { |c| c.empty? }
|
47
47
|
.each_with_index
|
48
|
-
.map { |value, index| index == 0 ? value.downcase : value.capitalize }
|
48
|
+
.map { |value, index| index == 0 ? value.tap { |char| char[0] = char[0].downcase } : value.capitalize }
|
49
49
|
.join
|
50
50
|
|
51
51
|
escaped_underscore = escape_with_underscore_if_needed(clean_name)
|
data/lib/redbreast/version.rb
CHANGED