cova 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/bin/cova CHANGED
@@ -6,6 +6,7 @@ require 'logger'
6
6
  require 'colorize'
7
7
  require 'fileutils'
8
8
  require 'thor'
9
+ require 'cocoapods'
9
10
  require 'covalog'
10
11
  require 'covaio'
11
12
  require 'covamain'
@@ -4,6 +4,7 @@ require 'logger'
4
4
  require 'colorize'
5
5
  require 'fileutils'
6
6
  require 'thor'
7
+ require 'cocoapods'
7
8
  require 'covalog'
8
9
  require 'covaio'
9
10
  require 'covamain'
@@ -16,9 +16,9 @@ module CovaIO
16
16
 
17
17
  def _io_exec(cmd)
18
18
  pipe = IO.popen(cmd)
19
- puts cmd.blue
19
+ puts cmd
20
20
  while (line = pipe.gets)
21
- print line.black
21
+ print line
22
22
  end
23
23
  end
24
24
 
@@ -108,6 +108,10 @@ module CovaIO
108
108
  end
109
109
 
110
110
  def _io_mkdir(dir)
111
+ if File.directory?(dir)
112
+ return true
113
+ end
114
+
111
115
  _log_line "Creating #{dir}"
112
116
  `mkdir #{dir}`
113
117
  File.directory?(dir) ? _log_line_ok : _log_line_error
@@ -1,50 +1,50 @@
1
1
  module CovaLog
2
2
 
3
3
  def _log_line(msg)
4
- print msg.black + " ... "
4
+ print msg + " ... "
5
5
  end
6
6
 
7
7
  def _log_line_ok
8
- print "[ ".black
8
+ print "[ "
9
9
  print "OK".green
10
- print " ]".black
10
+ print " ]"
11
11
  puts
12
12
  end
13
13
 
14
14
  def _log_line_error
15
- print "[".black
15
+ print "["
16
16
  print "FAIL".red
17
- print "]".black
17
+ print "]"
18
18
  puts
19
19
  end
20
20
 
21
21
  def _log_info(msg)
22
22
  puts
23
- puts msg.blue
23
+ puts msg
24
24
  puts
25
25
  end
26
26
 
27
27
  def _log_block_start(msg)
28
28
  puts
29
- print "=".black * 3
30
- print " " + msg.black + " "
31
- puts "=".black * 3
29
+ print "=" * 3
30
+ print " " + msg + " "
31
+ puts "=" * 3
32
32
  puts
33
33
  end
34
34
 
35
35
  def _log_block_success
36
36
  puts
37
- print "=".black * 9
37
+ print "=" * 9
38
38
  print " SUCCESS ".green
39
- puts "=".black * 9
39
+ puts "=" * 9
40
40
  puts
41
41
  end
42
42
 
43
43
  def _log_block_error
44
44
  puts
45
- print "=".black * 8
45
+ print "=" * 8
46
46
  print " FAILED ".red
47
- puts "=".black * 8
47
+ puts "=" * 8
48
48
  puts
49
49
  end
50
50
  end
@@ -43,16 +43,17 @@ class Cova < Thor
43
43
  return false
44
44
  end
45
45
 
46
- if _io_mkdir @dir_cova_home and _io_mkdir @dir_cova_apps_home
46
+ if _io_mkdir @dir_cova_home and _io_mkdir @dir_cova_apps_home and _io_mkdir @dir_cocoapods_home
47
47
  if _io_clone_repo @repo_xctool, @dir_cova_home and _io_clone_repo @repo_cova, @dir_cova_home
48
- _io_pod_add_repo "cova", @repo_cova_mods
49
- _log_block_success
50
- puts
51
- puts "Congrats! Cove is now installed. Enjoy and build the next great app sensation!".green
52
- puts
53
- puts "For more info check out http://cova.io".black
54
- puts
55
- return true
48
+ if _io_pod_add_repo "cova", @repo_cova_mods
49
+ _log_block_success
50
+ puts
51
+ puts "Congrats! Cove is now installed. Enjoy and build the next great app sensation!".green
52
+ puts
53
+ puts "For more info check out http://cova.io".black
54
+ puts
55
+ return true
56
+ end
56
57
  end
57
58
  end
58
59
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cova
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dan Calinescu
@@ -73,6 +73,20 @@ dependencies:
73
73
  version: "0"
74
74
  type: :runtime
75
75
  version_requirements: *id004
76
+ - !ruby/object:Gem::Dependency
77
+ name: cocoapods
78
+ prerelease: false
79
+ requirement: &id005 !ruby/object:Gem::Requirement
80
+ none: false
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ hash: 3
85
+ segments:
86
+ - 0
87
+ version: "0"
88
+ type: :runtime
89
+ version_requirements: *id005
76
90
  description: Cova removes a lot of the complexity that comes with designing, coding, testing, prototyping and publishing mobile applications.
77
91
  email: dan@cova.io
78
92
  executables: