appjam 0.1.8 → 0.1.8.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
require 'cli-colorize'
|
3
2
|
require 'thor/group'
|
3
|
+
require 'cli-colorize'
|
4
4
|
require 'hirb'
|
5
5
|
require File.dirname(__FILE__) + '/../view'
|
6
6
|
|
@@ -42,6 +42,8 @@ module Appjam
|
|
42
42
|
args = ARGV.empty? && generator_class.require_arguments? ? ["-h"] : ARGV
|
43
43
|
generator_class.start(args)
|
44
44
|
else
|
45
|
+
puts colorize( "Appjam Version: #{Appjam::Version::STRING}", { :foreground => :red, :background => :white, :config => :underline } )
|
46
|
+
puts
|
45
47
|
puts colorize("Usage: appjam [OPTIONS] [ARGS]")
|
46
48
|
puts
|
47
49
|
puts colorize("Generator Options")
|
@@ -5,6 +5,9 @@ require 'net/https'
|
|
5
5
|
require 'uri'
|
6
6
|
require "open-uri"
|
7
7
|
require 'tempfile'
|
8
|
+
require 'cli-colorize'
|
9
|
+
require 'hirb'
|
10
|
+
require File.dirname(__FILE__) + '/../view'
|
8
11
|
require File.dirname(__FILE__) + '/jam'
|
9
12
|
|
10
13
|
class String
|
@@ -19,7 +22,9 @@ end
|
|
19
22
|
module Appjam
|
20
23
|
module Generators
|
21
24
|
class Gist < Jam
|
25
|
+
include CLIColorize
|
22
26
|
|
27
|
+
CLIColorize.default_color = :red
|
23
28
|
class << self
|
24
29
|
def self.attr_rw(*attrs)
|
25
30
|
attrs.each do |attr|
|
@@ -138,7 +143,10 @@ module Appjam
|
|
138
143
|
@developer = "eiffel"
|
139
144
|
@created_on = Date.today.to_s
|
140
145
|
self.destination_root = options[:root]
|
141
|
-
|
146
|
+
|
147
|
+
puts colorize( "Appjam Version: #{Appjam::Version::STRING}", { :foreground => :red, :background => :white, :config => :underline } )
|
148
|
+
puts
|
149
|
+
|
142
150
|
unless @gist_name == 'update'
|
143
151
|
require 'yaml'
|
144
152
|
# begin
|
@@ -5,13 +5,18 @@ require 'net/https'
|
|
5
5
|
require 'uri'
|
6
6
|
require "open-uri"
|
7
7
|
require 'tempfile'
|
8
|
+
require 'cli-colorize'
|
9
|
+
require 'hirb'
|
10
|
+
require File.dirname(__FILE__) + '/../view'
|
8
11
|
require File.dirname(__FILE__) + '/jam'
|
9
12
|
require File.dirname(__FILE__) + '/gist'
|
10
13
|
|
11
14
|
module Appjam
|
12
15
|
module Generators
|
13
16
|
class Lib < Jam
|
17
|
+
include CLIColorize
|
14
18
|
|
19
|
+
CLIColorize.default_color = :red
|
15
20
|
class << self
|
16
21
|
def self.attr_rw(*attrs)
|
17
22
|
attrs.each do |attr|
|
@@ -133,7 +138,9 @@ module Appjam
|
|
133
138
|
@developer = "eiffel"
|
134
139
|
@created_on = Date.today.to_s
|
135
140
|
self.destination_root = options[:root]
|
136
|
-
|
141
|
+
|
142
|
+
puts colorize( "Appjam Version: #{Appjam::Version::STRING}", { :foreground => :red, :background => :white, :config => :underline } )
|
143
|
+
puts
|
137
144
|
require 'yaml'
|
138
145
|
# begin
|
139
146
|
# page_source = Net::HTTP.get(URI.parse("http://eiffelqiu.github.com/appjam/gist.yml"))
|
@@ -158,9 +165,9 @@ module Appjam
|
|
158
165
|
Lib::download_gist("#{gid}",gcategory,gname)
|
159
166
|
eval(File.read(__FILE__) =~ /^__END__/ && $' || '')
|
160
167
|
say "================================================================="
|
161
|
-
say "Check Frameworks/#{
|
168
|
+
say "Check Frameworks/#{gname}/ for lib"
|
162
169
|
say "Open #{@xcode_project_name.capitalize}.xcodeproj"
|
163
|
-
say "Add 'Frameworks/#{
|
170
|
+
say "Add 'Frameworks/#{gname}/' folder to the 'Classes' Group"
|
164
171
|
say "Build and Run"
|
165
172
|
say "================================================================="
|
166
173
|
end
|
@@ -1,9 +1,15 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'cli-colorize'
|
3
|
+
require 'hirb'
|
4
|
+
require File.dirname(__FILE__) + '/../view'
|
1
5
|
require File.dirname(__FILE__) + '/jam'
|
2
6
|
|
3
7
|
module Appjam
|
4
8
|
module Generators
|
5
9
|
class Model < Jam
|
10
|
+
include CLIColorize
|
6
11
|
|
12
|
+
CLIColorize.default_color = :red
|
7
13
|
author 'Eiffel Qiu'
|
8
14
|
homepage 'http://www.likenote.com'
|
9
15
|
email 'eiffelqiu@gmail.com'
|
@@ -34,6 +40,8 @@ module Appjam
|
|
34
40
|
project = options[:project]
|
35
41
|
self.behavior = :revoke if options[:destroy]
|
36
42
|
|
43
|
+
puts colorize( "Appjam Version: #{Appjam::Version::STRING}", { :foreground => :red, :background => :white, :config => :underline } )
|
44
|
+
puts
|
37
45
|
eval(File.read(__FILE__) =~ /^__END__\n/ && $' || '')
|
38
46
|
|
39
47
|
say (<<-TEXT).gsub(/ {10}/,'')
|
@@ -1,9 +1,15 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'cli-colorize'
|
3
|
+
require 'hirb'
|
4
|
+
require File.dirname(__FILE__) + '/../view'
|
1
5
|
require File.dirname(__FILE__) + '/jam'
|
2
6
|
|
3
7
|
module Appjam
|
4
8
|
module Generators
|
5
9
|
class Project < Jam
|
10
|
+
include CLIColorize
|
6
11
|
|
12
|
+
CLIColorize.default_color = :red
|
7
13
|
author 'Eiffel Qiu'
|
8
14
|
homepage 'http://www.likenote.com'
|
9
15
|
email 'eiffelqiu@gmail.com'
|
@@ -30,6 +36,9 @@ module Appjam
|
|
30
36
|
self.destination_root = options[:root]
|
31
37
|
project = options[:project]
|
32
38
|
self.behavior = :revoke if options[:destroy]
|
39
|
+
|
40
|
+
puts colorize( "Appjam Version: #{Appjam::Version::STRING}", { :foreground => :red, :background => :white, :config => :underline } )
|
41
|
+
puts
|
33
42
|
|
34
43
|
eval(File.read(__FILE__) =~ /^__END__\n/ && $' || '')
|
35
44
|
|
@@ -42,6 +42,7 @@ module Appjam
|
|
42
42
|
@developer = "eiffel"
|
43
43
|
@created_on = Date.today.to_s
|
44
44
|
self.destination_root = options[:root]
|
45
|
+
puts colorize( "Appjam Version: #{Appjam::Version::STRING}", { :foreground => :red, :background => :white, :config => :underline } )
|
45
46
|
puts
|
46
47
|
puts colorize("Available Options contains [#{@gist_name}]")
|
47
48
|
puts
|
data/lib/appjam/version.rb
CHANGED
metadata
CHANGED