appjam 0.1.8.pre5 → 0.1.8.pre6

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -22,6 +22,7 @@ Installation
22
22
 
23
23
  Usage
24
24
  =======
25
+ ![appjam usage](http://eiffelqiu.github.com/appjam/appjam.jpg)
25
26
  Usage 1: generate iphone app project
26
27
  -------
27
28
  $ appjam project todo
@@ -49,10 +49,10 @@ module Appjam
49
49
  links = get_links(response.body)
50
50
  links.each do |link, gist_id|
51
51
  puts "git://gist.github.com/#{gist_id}.git"
52
- if File.directory?("Support/#{gist_id}")
53
- `cd Support/#{gist_id} && git pull ; cd ..`
52
+ if File.directory?("Gist/#{gist_id}")
53
+ `cd Gist/#{gist_id} && git pull ; cd ..`
54
54
  else
55
- `git clone git://gist.github.com/#{gist_id}.git Support/#{gist_id}`
55
+ `git clone git://gist.github.com/#{gist_id}.git Gist/#{gist_id}`
56
56
  end
57
57
  end
58
58
  download_gists(username, page+1) unless links.empty?
@@ -69,12 +69,12 @@ module Appjam
69
69
  # Yajl::HttpStream.get(uri, :symbolize_keys => true) do |hash|
70
70
  #
71
71
  # end
72
- if File.directory?("Support/#{git_category}/#{gist_name}")
73
- `rm -rf Support/#{git_category}/#{gist_name}`
72
+ if File.directory?("Gist/#{git_category}/#{gist_name}")
73
+ `rm -rf Gist/#{git_category}/#{gist_name}`
74
74
  end
75
- `git clone git://gist.github.com/#{gist_id}.git Support/#{git_category}/#{gist_name} && rm -rf Support/#{git_category}/#{gist_name}/.git`
75
+ `git clone git://gist.github.com/#{gist_id}.git Gist/#{git_category}/#{gist_name} && rm -rf Gist/#{git_category}/#{gist_name}/.git`
76
76
  if system('which qlmanage')
77
- system("qlmanage -p Support/#{git_category}/#{gist_name}/*.* >& /dev/null")
77
+ system("qlmanage -p Gist/#{git_category}/#{gist_name}/*.* >& /dev/null")
78
78
  end
79
79
  end
80
80
  end
@@ -128,9 +128,9 @@ module Appjam
128
128
  eval(File.read(__FILE__) =~ /^__END__/ && $' || '')
129
129
  say "================================================================="
130
130
  say "Your '#{gname.capitalize}' design pattern snippet has been generated."
131
- say "Check Support/#{gcategory}/#{gname}/ for Snippet"
131
+ say "Check Gist/#{gcategory}/#{gname}/ for Snippet"
132
132
  say "Open #{@xcode_project_name.capitalize}.xcodeproj"
133
- say "Add 'Support/#{gcategory}/#{gname}/' folder to the 'Classes/apps' Group"
133
+ say "Add 'Gist/#{gcategory}/#{gname}/' folder to the 'Classes/apps' Group"
134
134
  say "Build and Run"
135
135
  say "================================================================="
136
136
  end
@@ -1,23 +1,36 @@
1
1
  ---
2
2
  design_pattern:
3
3
  - singleton:
4
- - id : 979981
4
+ - id : 988211
5
5
  - name : Singleton
6
- - description : Singleton Snippet for Objective C
7
- - email : eiffelqiu@gmail.com
6
+ - description : An Objective-C template for singleton classes
8
7
  - delegate:
9
8
  - id : 985279
10
9
  - name : Delegation
11
10
  - description : Delegation Snippet for Objective C
12
- - email : eiffelqiu@gmail.com
13
11
  - injection:
14
12
  - id : 986087
15
13
  - name : Injection
16
14
  - description : Ruby's injection method for Objective C
17
- - email : eiffelqiu@gmail.com
15
+
16
+ algorithm:
17
+ - binary_search:
18
+ - id : 988219
19
+ - name : Binary_Search
20
+ - description : A binary search algorithm written Objective C
21
+
18
22
  utiliy_function:
19
23
  - get_ip_address:
20
24
  - id : 986132
21
- - name : GetIPAddress
25
+ - name : Get_IP_Address
22
26
  - description : Get IP address in iphone
23
- - email : eiffelqiu@gmail.com
27
+ - nsstring_truncation:
28
+ - id : 988236
29
+ - name : NSString_Truncation
30
+ - description : NSString truncate to given size
31
+
32
+ snippet:
33
+ - load_assets_in_webview:
34
+ - id : 988227
35
+ - name : Load_Assets_In_Webview
36
+ - description : Load assets in Webview
@@ -70,7 +70,7 @@ template "project/main.m.tt", "#{@project_name}/main.m"
70
70
 
71
71
  empty_directory "#{@project_name}/Classes/utils"
72
72
 
73
- empty_directory "#{@project_name}/Support"
73
+ empty_directory "#{@project_name}/Gist"
74
74
 
75
75
  copy_file "project/utils/NSStringWhiteSpace.h", "#{@project_name}/Classes/utils/NSStringWhiteSpace.h"
76
76
  copy_file "project/utils/NSStringWhiteSpace.m", "#{@project_name}/Classes/utils/NSStringWhiteSpace.m"
@@ -2,6 +2,7 @@
2
2
  .DS_Store
3
3
  profile
4
4
  xcuserdata
5
+ Gist
5
6
 
6
7
  # Textmate - if you build your xcode projects with it
7
8
  *.tm_build_errors
@@ -3,7 +3,7 @@ module Appjam
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
5
  PATCH = 8
6
- BUILD = 'pre5'
6
+ BUILD = 'pre6'
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.').chomp('.')
9
9
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appjam
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1923832051
4
+ hash: 1923832053
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
9
  - 8
10
10
  - pre
11
- - 5
12
- version: 0.1.8.pre5
11
+ - 6
12
+ version: 0.1.8.pre6
13
13
  platform: ruby
14
14
  authors:
15
15
  - Eiffel Q
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-05-23 00:00:00 Z
20
+ date: 2011-05-24 00:00:00 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  type: :runtime