cova 0.1.3 → 0.1.4
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.
- data/bin/cova +1 -0
- data/lib/cova.rb +1 -0
- data/lib/covaio.rb +6 -2
- data/lib/covalog.rb +13 -13
- data/lib/covamain.rb +10 -9
- metadata +17 -3
data/bin/cova
CHANGED
data/lib/cova.rb
CHANGED
data/lib/covaio.rb
CHANGED
@@ -16,9 +16,9 @@ module CovaIO
|
|
16
16
|
|
17
17
|
def _io_exec(cmd)
|
18
18
|
pipe = IO.popen(cmd)
|
19
|
-
puts cmd
|
19
|
+
puts cmd
|
20
20
|
while (line = pipe.gets)
|
21
|
-
print line
|
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
|
data/lib/covalog.rb
CHANGED
@@ -1,50 +1,50 @@
|
|
1
1
|
module CovaLog
|
2
2
|
|
3
3
|
def _log_line(msg)
|
4
|
-
print msg
|
4
|
+
print msg + " ... "
|
5
5
|
end
|
6
6
|
|
7
7
|
def _log_line_ok
|
8
|
-
print "[ "
|
8
|
+
print "[ "
|
9
9
|
print "OK".green
|
10
|
-
print " ]"
|
10
|
+
print " ]"
|
11
11
|
puts
|
12
12
|
end
|
13
13
|
|
14
14
|
def _log_line_error
|
15
|
-
print "["
|
15
|
+
print "["
|
16
16
|
print "FAIL".red
|
17
|
-
print "]"
|
17
|
+
print "]"
|
18
18
|
puts
|
19
19
|
end
|
20
20
|
|
21
21
|
def _log_info(msg)
|
22
22
|
puts
|
23
|
-
puts msg
|
23
|
+
puts msg
|
24
24
|
puts
|
25
25
|
end
|
26
26
|
|
27
27
|
def _log_block_start(msg)
|
28
28
|
puts
|
29
|
-
print "="
|
30
|
-
print " " + msg
|
31
|
-
puts "="
|
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 "="
|
37
|
+
print "=" * 9
|
38
38
|
print " SUCCESS ".green
|
39
|
-
puts "="
|
39
|
+
puts "=" * 9
|
40
40
|
puts
|
41
41
|
end
|
42
42
|
|
43
43
|
def _log_block_error
|
44
44
|
puts
|
45
|
-
print "="
|
45
|
+
print "=" * 8
|
46
46
|
print " FAILED ".red
|
47
|
-
puts "="
|
47
|
+
puts "=" * 8
|
48
48
|
puts
|
49
49
|
end
|
50
50
|
end
|
data/lib/covamain.rb
CHANGED
@@ -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
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
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:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
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:
|