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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/{bundled → bundle}/models/Entity+CoreData.swift.liquid +0 -0
- data/{bundled → bundle}/models/Entity.swift.liquid +0 -0
- data/{bundled → bundle}/models/Model.swift.liquid +0 -0
- data/{bundled → bundle}/partials/_header.liquid +0 -0
- data/{bundled → bundle}/swift_helpers/ErrorTypes/APIError.swift +0 -0
- data/{bundled → bundle}/swift_helpers/ErrorTypes/ErrorTypes.swift +0 -0
- data/{bundled → bundle}/swift_helpers/ErrorTypes/PersistenceError.swift +0 -0
- data/{bundled → bundle}/swift_helpers/ISODateTransform.swift +0 -0
- data/{bundled → bundle}/swift_helpers/Identifiable.swift +0 -0
- data/{bundled → bundle}/swift_helpers/Loadable.swift +0 -0
- data/{bundled → bundle}/swift_helpers/Networking/APIRouter.swift +0 -0
- data/{bundled → bundle}/swift_helpers/StoryboardExtensions.swift +0 -0
- data/{bundled → bundle}/template_sets/viper_detail/Presenter.swift.liquid +0 -0
- data/{bundled → bundle}/template_sets/viper_detail/Protocols.swift.liquid +0 -0
- data/{bundled → bundle}/template_sets/viper_detail/View.swift.liquid +0 -0
- data/{bundled → bundle}/template_sets/viper_detail/WireFrame.swift.liquid +0 -0
- data/{bundled → bundle}/template_sets/viper_table/DataManagers/LocalDataManager.swift.liquid +0 -0
- data/{bundled → bundle}/template_sets/viper_table/DataManagers/RemoteDataManager.swift.liquid +0 -0
- data/{bundled → bundle}/template_sets/viper_table/Interactor.swift.liquid +0 -0
- data/{bundled → bundle}/template_sets/viper_table/Presenter.swift.liquid +0 -0
- data/{bundled → bundle}/template_sets/viper_table/Protocols.swift.liquid +0 -0
- data/{bundled → bundle}/template_sets/viper_table/View.swift.liquid +0 -0
- data/{bundled → bundle}/template_sets/viper_table/WireFrame.swift.liquid +0 -0
- data/lib/molt/cli/setup.rb +3 -2
- data/lib/molt/configuration.rb +1 -2
- data/lib/molt/version.rb +1 -1
- metadata +25 -25
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 809e870820ca5fbd579068f6a6c0d903dc677b9d
|
|
4
|
+
data.tar.gz: 21f7c9b83962370317bfdcd5afd5d31e95b3abb6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 17f8a65908fc7f6df03db5fde33bb1349658deba174cc10da4d762d8dd2dc278bd3ded9efca52c5fa3ca9764a4de4ec3aaff1e36f8b7dbe168793c3c7f1d7fb4
|
|
7
|
+
data.tar.gz: 592b56ba0ed22247de57c50eb53cc3a00c1c4b985b569a2ab6d45503e3f2286cd3b33de8e1d818bb1f0f3c75ecb79069834d1616cc3417151e7a24d4192eb4cb
|
data/Gemfile.lock
CHANGED
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
|
-
[](https://travis-ci.org/MarcoCabazal/Molt) [](https://circleci.com/gh/MarcoCabazal/Molt)
|
|
6
|
+
[](https://badge.fury.io/rb/molt) [](https://travis-ci.org/MarcoCabazal/Molt) [](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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/{bundled → bundle}/template_sets/viper_table/DataManagers/LocalDataManager.swift.liquid
RENAMED
|
File without changes
|
data/{bundled → bundle}/template_sets/viper_table/DataManagers/RemoteDataManager.swift.liquid
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/lib/molt/cli/setup.rb
CHANGED
|
@@ -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 "
|
|
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
|
data/lib/molt/configuration.rb
CHANGED
|
@@ -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"]["
|
|
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
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.
|
|
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-
|
|
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
|
-
-
|
|
161
|
-
-
|
|
162
|
-
-
|
|
163
|
-
-
|
|
164
|
-
-
|
|
165
|
-
-
|
|
166
|
-
-
|
|
167
|
-
-
|
|
168
|
-
-
|
|
169
|
-
-
|
|
170
|
-
-
|
|
171
|
-
-
|
|
172
|
-
-
|
|
173
|
-
-
|
|
174
|
-
-
|
|
175
|
-
-
|
|
176
|
-
-
|
|
177
|
-
-
|
|
178
|
-
-
|
|
179
|
-
-
|
|
180
|
-
-
|
|
181
|
-
-
|
|
182
|
-
-
|
|
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
|