molt 0.1.2 → 0.1.3

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.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +1 -1
  4. data/{bundled → bundle}/models/Entity+CoreData.swift.liquid +0 -0
  5. data/{bundled → bundle}/models/Entity.swift.liquid +0 -0
  6. data/{bundled → bundle}/models/Model.swift.liquid +0 -0
  7. data/{bundled → bundle}/partials/_header.liquid +0 -0
  8. data/{bundled → bundle}/swift_helpers/ErrorTypes/APIError.swift +0 -0
  9. data/{bundled → bundle}/swift_helpers/ErrorTypes/ErrorTypes.swift +0 -0
  10. data/{bundled → bundle}/swift_helpers/ErrorTypes/PersistenceError.swift +0 -0
  11. data/{bundled → bundle}/swift_helpers/ISODateTransform.swift +0 -0
  12. data/{bundled → bundle}/swift_helpers/Identifiable.swift +0 -0
  13. data/{bundled → bundle}/swift_helpers/Loadable.swift +0 -0
  14. data/{bundled → bundle}/swift_helpers/Networking/APIRouter.swift +0 -0
  15. data/{bundled → bundle}/swift_helpers/StoryboardExtensions.swift +0 -0
  16. data/{bundled → bundle}/template_sets/viper_detail/Presenter.swift.liquid +0 -0
  17. data/{bundled → bundle}/template_sets/viper_detail/Protocols.swift.liquid +0 -0
  18. data/{bundled → bundle}/template_sets/viper_detail/View.swift.liquid +0 -0
  19. data/{bundled → bundle}/template_sets/viper_detail/WireFrame.swift.liquid +0 -0
  20. data/{bundled → bundle}/template_sets/viper_table/DataManagers/LocalDataManager.swift.liquid +0 -0
  21. data/{bundled → bundle}/template_sets/viper_table/DataManagers/RemoteDataManager.swift.liquid +0 -0
  22. data/{bundled → bundle}/template_sets/viper_table/Interactor.swift.liquid +0 -0
  23. data/{bundled → bundle}/template_sets/viper_table/Presenter.swift.liquid +0 -0
  24. data/{bundled → bundle}/template_sets/viper_table/Protocols.swift.liquid +0 -0
  25. data/{bundled → bundle}/template_sets/viper_table/View.swift.liquid +0 -0
  26. data/{bundled → bundle}/template_sets/viper_table/WireFrame.swift.liquid +0 -0
  27. data/lib/molt/cli/setup.rb +3 -2
  28. data/lib/molt/configuration.rb +1 -2
  29. data/lib/molt/version.rb +1 -1
  30. metadata +25 -25
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f653a91f4ffbb1fae1b4ebed28e5705ca47aa10
4
- data.tar.gz: 2e817635437347b36f3be3326cd9e225789cdeb7
3
+ metadata.gz: 809e870820ca5fbd579068f6a6c0d903dc677b9d
4
+ data.tar.gz: 21f7c9b83962370317bfdcd5afd5d31e95b3abb6
5
5
  SHA512:
6
- metadata.gz: 2f96319f8ec285255791c61bc4e53b6ead9723f29d7578e6b2f665bb431effa36c53269206ad2f630b35c560697faf6a4ef4e1e73e4c5cc3c11d1c99bb5d5c9a
7
- data.tar.gz: 7cecde0df45fb3239777f9e8c63172cfcc575e62f70a396757478d47d9dbbdb8150420305f9653fe67cfa3d30cfb87ecae211bc96f48aa8063df1b675fe6489b
6
+ metadata.gz: 17f8a65908fc7f6df03db5fde33bb1349658deba174cc10da4d762d8dd2dc278bd3ded9efca52c5fa3ca9764a4de4ec3aaff1e36f8b7dbe168793c3c7f1d7fb4
7
+ data.tar.gz: 592b56ba0ed22247de57c50eb53cc3a00c1c4b985b569a2ab6d45503e3f2286cd3b33de8e1d818bb1f0f3c75ecb79069834d1616cc3417151e7a24d4192eb4cb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- molt (0.1.2)
4
+ molt (0.1.3)
5
5
  commander
6
6
  liquid (~> 4.0.0)
7
7
  terminal-table
data/README.md CHANGED
@@ -3,7 +3,7 @@ Molt
3
3
 
4
4
  Molt is a simple VIPER module generator for Swift apps.
5
5
 
6
- [![Build Status](https://travis-ci.org/MarcoCabazal/Molt.svg?branch=development)](https://travis-ci.org/MarcoCabazal/Molt) [![CircleCI](https://circleci.com/gh/MarcoCabazal/Molt.svg?style=svg)](https://circleci.com/gh/MarcoCabazal/Molt)
6
+ [![Gem Version](https://badge.fury.io/rb/molt.svg)](https://badge.fury.io/rb/molt) [![Build Status](https://travis-ci.org/MarcoCabazal/Molt.svg?branch=development)](https://travis-ci.org/MarcoCabazal/Molt) [![CircleCI](https://circleci.com/gh/MarcoCabazal/Molt.svg?style=svg)](https://circleci.com/gh/MarcoCabazal/Molt)
7
7
 
8
8
  ## Installation
9
9
 
File without changes
File without changes
File without changes
File without changes
@@ -5,7 +5,8 @@ module Molt::CLI
5
5
  include Thor::Actions
6
6
 
7
7
  def self.source_root
8
- File.dirname(".")
8
+ gem_root = File.join(File.dirname(__FILE__), "../../..")
9
+ File.expand_path(gem_root)
9
10
  end
10
11
 
11
12
  desc "perform", "perform"
@@ -13,7 +14,7 @@ module Molt::CLI
13
14
  config = molt_path == Molt::MOLT_GLOBAL ? Molt::Configuration.defaults_from_git_config : Molt::Configuration.load_or_initialize
14
15
 
15
16
  if !Dir.exist? molt_path
16
- directory "bundled", molt_path
17
+ directory "bundle", molt_path
17
18
  template "sample_configs/global_config.yml.erb", config_path, config
18
19
  else
19
20
  puts "Doing nothing. #{molt_path} is already existing.".yellow
@@ -24,10 +24,9 @@ module Molt
24
24
  end
25
25
 
26
26
  def self.apply_cli_overrides config, options, module_name, template_set
27
- config["developer"]["company"] = options.company if options.company
28
27
  config["developer"]["name"] = options.name if options.name
29
28
  config["developer"]["email"] = options.email if options.email
30
- config["developer"]["name"] = options.name if options.name
29
+ config["developer"]["company"] = options.company if options.company
31
30
  config["project"]["name"] = options.project if options.project
32
31
  config["model"] = "#{options.model}Model" || "<# Model #>"
33
32
  config["entity"] = options.model || "<# Entity #>"
data/lib/molt/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Molt
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: molt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Cabazal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-19 00:00:00.000000000 Z
11
+ date: 2018-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander
@@ -157,29 +157,29 @@ files:
157
157
  - bin/console
158
158
  - bin/molt
159
159
  - bin/setup
160
- - bundled/models/Entity+CoreData.swift.liquid
161
- - bundled/models/Entity.swift.liquid
162
- - bundled/models/Model.swift.liquid
163
- - bundled/partials/_header.liquid
164
- - bundled/swift_helpers/ErrorTypes/APIError.swift
165
- - bundled/swift_helpers/ErrorTypes/ErrorTypes.swift
166
- - bundled/swift_helpers/ErrorTypes/PersistenceError.swift
167
- - bundled/swift_helpers/ISODateTransform.swift
168
- - bundled/swift_helpers/Identifiable.swift
169
- - bundled/swift_helpers/Loadable.swift
170
- - bundled/swift_helpers/Networking/APIRouter.swift
171
- - bundled/swift_helpers/StoryboardExtensions.swift
172
- - bundled/template_sets/viper_detail/Presenter.swift.liquid
173
- - bundled/template_sets/viper_detail/Protocols.swift.liquid
174
- - bundled/template_sets/viper_detail/View.swift.liquid
175
- - bundled/template_sets/viper_detail/WireFrame.swift.liquid
176
- - bundled/template_sets/viper_table/DataManagers/LocalDataManager.swift.liquid
177
- - bundled/template_sets/viper_table/DataManagers/RemoteDataManager.swift.liquid
178
- - bundled/template_sets/viper_table/Interactor.swift.liquid
179
- - bundled/template_sets/viper_table/Presenter.swift.liquid
180
- - bundled/template_sets/viper_table/Protocols.swift.liquid
181
- - bundled/template_sets/viper_table/View.swift.liquid
182
- - bundled/template_sets/viper_table/WireFrame.swift.liquid
160
+ - bundle/models/Entity+CoreData.swift.liquid
161
+ - bundle/models/Entity.swift.liquid
162
+ - bundle/models/Model.swift.liquid
163
+ - bundle/partials/_header.liquid
164
+ - bundle/swift_helpers/ErrorTypes/APIError.swift
165
+ - bundle/swift_helpers/ErrorTypes/ErrorTypes.swift
166
+ - bundle/swift_helpers/ErrorTypes/PersistenceError.swift
167
+ - bundle/swift_helpers/ISODateTransform.swift
168
+ - bundle/swift_helpers/Identifiable.swift
169
+ - bundle/swift_helpers/Loadable.swift
170
+ - bundle/swift_helpers/Networking/APIRouter.swift
171
+ - bundle/swift_helpers/StoryboardExtensions.swift
172
+ - bundle/template_sets/viper_detail/Presenter.swift.liquid
173
+ - bundle/template_sets/viper_detail/Protocols.swift.liquid
174
+ - bundle/template_sets/viper_detail/View.swift.liquid
175
+ - bundle/template_sets/viper_detail/WireFrame.swift.liquid
176
+ - bundle/template_sets/viper_table/DataManagers/LocalDataManager.swift.liquid
177
+ - bundle/template_sets/viper_table/DataManagers/RemoteDataManager.swift.liquid
178
+ - bundle/template_sets/viper_table/Interactor.swift.liquid
179
+ - bundle/template_sets/viper_table/Presenter.swift.liquid
180
+ - bundle/template_sets/viper_table/Protocols.swift.liquid
181
+ - bundle/template_sets/viper_table/View.swift.liquid
182
+ - bundle/template_sets/viper_table/WireFrame.swift.liquid
183
183
  - lib/generamba/string-colorize.rb
184
184
  - lib/molt.rb
185
185
  - lib/molt/cli/create_module.rb