redbreast 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22c722797f1f14175a60e950a437b8a911e513c1
4
- data.tar.gz: cf567bc1622e84458528aa04e551fa9cc2da872d
3
+ metadata.gz: 28335747641b4f238124171e835adccda21ebcdf
4
+ data.tar.gz: 9c10192572608e34b0666c9b0cbad98f137cd200
5
5
  SHA512:
6
- metadata.gz: d501788cf54ae96fc178a77df69c4f6c40c478a1dc92cc1b1775089757aac6c71268bc67350b1002b6d77e7f1dfa781bf3425af4582dbc4a46b40ba9727404f8
7
- data.tar.gz: 905824edaff3e1cf7de6f4d107ccd9a25a8355ebda8d4bb182543d4af5f3c62e0b15a5876c129f635a8e6a4e784d0749c05daa560218cdf0a61c8a3e7441109a
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::Hash
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
- }.compact
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)
@@ -1,9 +1,8 @@
1
-
2
1
  module Redbreast
3
2
  module Helper
4
- module Hash
5
- def compact
6
- delete_if { |k, v| v.nil? }
3
+ module HashHelper
4
+ def compact(dictionary)
5
+ dictionary.delete_if { |k, v| v.nil? }
7
6
  end
8
7
  end
9
8
  end
@@ -1,3 +1,3 @@
1
1
  module Redbreast
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redbreast
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vlaho