ccios 2.0.2 → 2.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 43f453c19f1da51cd1a18d5d25e15d5ca3e90683
4
- data.tar.gz: 5a8c08ab93303d719503eaafa901a6c4fa2513d6
3
+ metadata.gz: fbdbfc24427136819707fbc0250ceac8dc0cc508
4
+ data.tar.gz: 9c1fca09c4477192fdeaa6495705a8384f249d74
5
5
  SHA512:
6
- metadata.gz: 1d7a760a1579d28981af27a313942b1ded9ff443aa890fa6c3c2dad1debbf1ff266705c3f0f75357cb7637dd9fa6d80f8e9bdf85411ee883450457ebc444e402
7
- data.tar.gz: 73136cf66b35647c5906b5ed7baa1e433fc0d904d576c6b441e2f25e56f8f2082fa800d7f4407f60e9b80aae9e90dcdf1180a22a6ed3dbc6b6e6c3ceac23098f
6
+ metadata.gz: 07f8941880e9f7b71f2af9329d385f1db093a3bb51b735548ef31cea276ed2b58b8d0b3ed68e30cb639929cb8938c3283d172b20f6eaafe2ff089379e62e6c84
7
+ data.tar.gz: a454f4d518afc4bcfe278300fc0e7338fc6ec4c46e58bb847213a78e7fa97008a2d3e216a5f0f03a51f54231f7ac3bd9129ea0d104358f9c0fbf37d649398797
data/README.md CHANGED
@@ -2,13 +2,20 @@
2
2
  Xcode File Generator for Clean Code architecture
3
3
 
4
4
  # How to install
5
+ ```
6
+ gem install ccios
7
+ ```
5
8
 
9
+ To build it from source:
6
10
  ```
7
11
  cd ccios
8
12
  gem build ccios.gemspec
9
13
  gem install ./ccios-x.x.x.gem
10
14
  ```
11
15
 
16
+ To run the tests run:
17
+ ```rake test```
18
+
12
19
  # How to use
13
20
 
14
21
  Go to your `.xcodeproj` folder `cd /paht/to/my/xcodeproj`.
@@ -0,0 +1,8 @@
1
+ require 'rake/testtask'
2
+
3
+ Rake::TestTask.new do |t|
4
+ t.libs << 'test'
5
+ end
6
+
7
+ desc "Run tests"
8
+ task :default => :test
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ccios'
3
- s.version = '2.0.2'
3
+ s.version = '2.0.3'
4
4
  s.executables << 'ccios'
5
5
  s.date = '2016-08-03'
6
6
  s.summary = "Clean Code iOS Generator"
@@ -1,4 +1,5 @@
1
1
  require 'mustache'
2
+ require 'rails'
2
3
 
3
4
  class CodeTemplater
4
5
  def initialize(options = {})
@@ -9,7 +9,7 @@
9
9
  import Foundation
10
10
 
11
11
  {{#generate_delegate}}
12
- protocol {{name}}CoordinatorDelegate : class {
12
+ protocol {{name}}CoordinatorDelegate: class {
13
13
 
14
14
  }
15
15
 
@@ -25,7 +25,7 @@ class {{name}}Coordinator: Coordinator {
25
25
  self.navigationController = navigationController
26
26
  }
27
27
 
28
- //MARK: - Public
28
+ // MARK: - Public
29
29
 
30
30
  func start() {
31
31
 
@@ -2,4 +2,4 @@ container.register({{name}}Interactor.self) { r in
2
2
  {{name}}InteractorImplementation(
3
3
 
4
4
  )
5
- }
5
+ }
@@ -10,7 +10,7 @@ import Foundation
10
10
 
11
11
  class {{name}}InteractorImplementation : {{name}}Interactor {
12
12
 
13
- //MARK: - {{name}}Interactor
13
+ // MARK: - {{name}}Interactor
14
14
 
15
15
  func execute() {
16
16
 
@@ -13,7 +13,7 @@ protocol {{name}}Presenter {
13
13
  }
14
14
  {{#generate_delegate}}
15
15
 
16
- protocol {{name}}PresenterDelegate : class {
16
+ protocol {{name}}PresenterDelegate: class {
17
17
 
18
18
  }
19
19
  {{/generate_delegate}}
@@ -27,7 +27,7 @@ class {{name}}PresenterImplementation : {{name}}Presenter {
27
27
  }
28
28
  {{/generate_delegate}}
29
29
 
30
- //MARK: - {{name}}Presenter
30
+ // MARK: - {{name}}Presenter
31
31
 
32
32
  func start() {
33
33
 
@@ -2,4 +2,4 @@ container.register({{name}}Repository.self) { r in
2
2
  {{name}}RepositoryImplementation(
3
3
 
4
4
  )
5
- }.inObjectScope(.container)
5
+ }.inObjectScope(.container)
@@ -15,6 +15,6 @@ class {{name}}RepositoryImplementation : {{name}}Repository {
15
15
 
16
16
  }
17
17
 
18
- //MARK: - {{name}}Repository
18
+ // MARK: - {{name}}Repository
19
19
 
20
20
  }
@@ -8,6 +8,6 @@
8
8
 
9
9
  import Foundation
10
10
 
11
- protocol {{name}}ViewContract : class {
11
+ protocol {{name}}ViewContract: class {
12
12
 
13
13
  }
@@ -26,6 +26,6 @@ class {{name}}ViewController : SharedViewController, {{name}}ViewContract {
26
26
  presenter?.start()
27
27
  }
28
28
 
29
- //MARK: - {{name}}ViewContract
29
+ // MARK: - {{name}}ViewContract
30
30
 
31
31
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ccios
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre Felgines
@@ -63,6 +63,7 @@ files:
63
63
  - Gemfile
64
64
  - Gemfile.lock
65
65
  - README.md
66
+ - Rakefile
66
67
  - bin/ccios
67
68
  - ccios.gemspec
68
69
  - lib/ccios.rb