singu 0.2.0 → 0.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff409e0fdfc205d823e99c55b8c5351383e0ca59
4
- data.tar.gz: e09c6ba5c02d05a52e3b2b28cacd65ba54ca78a7
3
+ metadata.gz: 22d5092eb1b0d73ab705135ca5689caf33922de6
4
+ data.tar.gz: c39715ec26816e038114d06538b38fcc91924d50
5
5
  SHA512:
6
- metadata.gz: bb0d0d8f58ac8682da6b4f4dfc330b9bca84d6e8a500294f76f1f15fbfe983b0371ac8094dd3068769b93e8b24f0103a502a7c796a4afb03d3c81620bed73cb2
7
- data.tar.gz: 1ac87d6c4b05a57680356ebd12046f7bf0fa3464013eeb1da52b3c0870166a42de4a26dfc631a9ccd9161b9426d9004bc69ee951ea5f009b2ea309c81c60f399
6
+ metadata.gz: 7879377a15c490f747a4f6781fc5c9e99c647438c0d9fc49cced3e410fe7508389f985ae54c7f017c8f8bf6fb3f1fd63b03bfc6889f579632ac115a26b3b82f2
7
+ data.tar.gz: fc010a297014c1a9e2d16a010c44dd5ef013249a0ae97cec89fe37f0755d93ce90a11969648a6671111fe46902df3e099f3fcbc5c4bf3961aab9b9560774a073
data/lib/singu/cli.rb CHANGED
@@ -19,20 +19,16 @@ module Singu
19
19
  argument :name, type: :string, desc: "The name of the new application"
20
20
  class_option :gems, type: :array, description: "The names of gems you want to add to the new application"
21
21
  class_option :template, type: :hash, description: "The github repo ex: regedarek/skeleton", enum: 2
22
- class_option :'skip-angular', :type => :boolean
22
+ class_option :'skip-angular', type: :boolean
23
23
 
24
24
  def setup
25
25
  @app_path = name.directory_name
26
26
  @name = name.file_name
27
-
28
- # options.each do |key, value|
29
- # instance_variable_set "@#{key.to_s}".to_sym, value
30
- # end
31
27
  end
32
28
 
33
29
  def create_app_from_template
34
- sinatra_repo = options[:template].fetch('sinatra', DEFAULT_SINATRA_TEMPLATE_REPO)
35
- angular_repo = options[:template].fetch('angular', DEFAULT_ANGULAR_TEMPLATE_REPO)
30
+ sinatra_repo = options.fetch(:template){{}}.fetch('sinatra', DEFAULT_SINATRA_TEMPLATE_REPO)
31
+ angular_repo = options.fetch(:template){{}}.fetch('angular', DEFAULT_ANGULAR_TEMPLATE_REPO)
36
32
  clone_repo(sinatra_repo)
37
33
  clone_repo(angular_repo) unless options[:'skip-angular']
38
34
  end
data/lib/singu/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Singu
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: singu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darek Finster