appjam 0.1.8.3 → 0.1.8.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/README.md CHANGED
@@ -2,6 +2,8 @@ appjam
2
2
  =======
3
3
  Appjam is an iOS code repository, including framework, snippet, generators, etc.
4
4
 
5
+ **upgrade to 0.1.8.4 as soon as possible**
6
+
5
7
  Prerequisites
6
8
  =======
7
9
  Ruby
@@ -66,7 +68,15 @@ Usage 5: add asihttp library (## this require git installed)
66
68
 
67
69
  Check Frameworks/AsiHttpRequest/ for new framework [AsiHttpRequest]
68
70
 
69
- Usage 6: add get_gps_info snippet to your project (## this require git installed)
71
+ Usage 6: add cocos2d stable library (## this require appjam 1.8.4)
72
+ -------
73
+ $ cd todo
74
+
75
+ $ appjam lib cocos2d_stable
76
+
77
+ Check Frameworks/cocos2d-iphone-1.0.0/ for new framework [Cocos2d_iPhone_1.0]
78
+
79
+ Usage 7: add get_gps_info snippet to your project (## this require git installed)
70
80
  -------
71
81
  $ cd todo
72
82
 
@@ -50,7 +50,7 @@ module Appjam
50
50
  tempfile.close
51
51
 
52
52
  if system('which qlmanage')
53
- system("qlmanage -p #{tempfile.path} >& /dev/null")
53
+ system("qlmanage -p #{tempfile.path}/* >& /dev/null")
54
54
  end
55
55
  end
56
56
 
@@ -139,7 +139,7 @@ module Appjam
139
139
  end
140
140
  end
141
141
  if system('which qlmanage')
142
- system("qlmanage -p Gist/#{git_category}/#{gist_name.downcase}/*.* >& /dev/null")
142
+ system("qlmanage -p Gist/#{git_category}/#{gist_name.downcase}/* >& /dev/null")
143
143
  end
144
144
  end
145
145
  end
@@ -200,6 +200,7 @@ module Appjam
200
200
  g.each_pair {|key,value|
201
201
  gcategory = key.downcase
202
202
  unless (gcategory == 'lib' or gcategory == 'info')
203
+
203
204
  g[key].each { |k|
204
205
  k.each_pair { |k1,v1|
205
206
  if "#{k1}" == @gist_name
@@ -1,4 +1,4 @@
1
- info: 0.1.8.3
1
+ info: 0.1.8.4
2
2
  design_pattern:
3
3
  - singleton_macro:
4
4
  - id : git://github.com/cjhanson/Objective-C-Optimized-Singleton.git
@@ -19,7 +19,7 @@ design_pattern:
19
19
  - objc_patterns:
20
20
  - id : git://github.com/zbyhoo/ObjC_Patterns_Kata.git
21
21
  - name : ObjC_Patterns
22
- - description : Objective-C implementation of Gang of Four design patterns
22
+ - description : Objective-C implementation of Gang of Four design patterns
23
23
 
24
24
  algorithm:
25
25
  - binary_search:
@@ -80,7 +80,12 @@ lib:
80
80
  - cocos2d:
81
81
  - id : git://github.com/cocos2d/cocos2d-iphone.git
82
82
  - name : Cocos2dIphone
83
- - description : Cocos2d iPhone Framework
83
+ - description : Cocos2d iPhone Framework
84
+ - cocos2d_stable:
85
+ - id : http://cocos2d-iphone.googlecode.com/files/cocos2d-iphone-1.0.0.tar.gz
86
+ - name : Cocos2d_iPhone_1.0
87
+ - description : Cocos2d iPhone Framework Stable 1.0
88
+ - type: http
84
89
  - sparrow:
85
90
  - id : git://github.com/PrimaryFeather/Sparrow-Framework.git
86
91
  - name : SparrowFramework
@@ -99,8 +104,18 @@ lib:
99
104
  - id : http://gdata-objectivec-client.googlecode.com/svn/trunk/
100
105
  - name : Corgdata-objectivec-clientePlot
101
106
  - description : Google Data APIs Objective-C Client Library
107
+ - type : svn
108
+ - photoshopframew:
109
+ - id : https://photoshopframew.svn.sourceforge.net/svnroot/photoshopframew
110
+ - name : PSFrameworkForIPhone
111
+ - description : PSFramework is one powerful library to manipulate images
102
112
  - type : svn
103
-
113
+ - log4cocoa:
114
+ - id : https://log4cocoa.svn.sourceforge.net/svnroot/log4cocoa
115
+ - name : Log4Cocoa
116
+ - description : Log4Cocoa is an Objective-C based port of Log4J
117
+ - type : svn
118
+
104
119
  utiliy:
105
120
  - get_ip_address:
106
121
  - id : 986132
@@ -246,7 +261,74 @@ utiliy:
246
261
  - id : git://github.com/rs/SDWebImage.git
247
262
  - name : SDWebImage
248
263
  - description : Asynchronous image downloader with an UIImageView category
249
-
264
+ - whois_iphone:
265
+ - id : https://poundwhois.svn.sourceforge.net/svnroot/poundwhois
266
+ - name : WhoisIPhoneClient
267
+ - description : An open source WHOIS client for the iPhone
268
+ - type : svn
269
+ - my_crypto:
270
+ - id : https://bitbucket.org/snej/mycrypto
271
+ - name : MYCrypto
272
+ - description : A high-level cryptography API for Mac OS X and iPhone.
273
+ - type : hg
274
+ - cocoahttpserver:
275
+ - id : https://cocoahttpserver.googlecode.com/hg/
276
+ - name : CocoaHttpserver
277
+ - description : An embedded HTTP server written in Cocoa.
278
+ - type : hg
279
+ - iphone_tts:
280
+ - id : https://bitbucket.org/sfoster/iphone-tts
281
+ - name : iPhoneTTS
282
+ - description : Text to Speech wrapper library (and demo app) for the iPhone/iOS platform
283
+ - type : hg
284
+ - gradient_buttons:
285
+ - id : https://bitbucket.org/KristopherJohnson/gradientbuttons
286
+ - name : GradientButtons
287
+ - description : shiny buttons implemented using CAGradientLayer
288
+ - type : hg
289
+ - in_app_settings:
290
+ - id : https://bitbucket.org/keegan3d/inappsettings
291
+ - name : InAppSettings
292
+ - description : InAppSettings provides a view controller displays iPhone settings
293
+ - type : hg
294
+ - mn_color_picker:
295
+ - id : https://bitbucket.org/aquarius/mncolorpicker
296
+ - name : MNColorPicker
297
+ - description : MNColorPicker is a color picker for the iPhone.
298
+ - type : hg
299
+ - ti_swipeable_table_view:
300
+ - id : git://github.com/thermogl/TISwipeableTableView.git
301
+ - name : TISwipeableTableView
302
+ - description : swipe a UITableViewCell and reveal a back view
303
+ - google_toolbox_for_mac:
304
+ - id : http://google-toolbox-for-mac.googlecode.com/svn/trunk/
305
+ - name : GoogleToolboxforMac
306
+ - description : Google projects for developers working other Mac projects
307
+ - type : svn
308
+ - we_popover:
309
+ - id : git://github.com/werner77/WEPopover.git
310
+ - name : WEPopover
311
+ - description : Generic popover implementation for iOS
312
+ - page_peel_example:
313
+ - id : git://github.com/markrickert/iOS-PagePeel-Example.git
314
+ - name : iOS_PagePeel_Example
315
+ - description : the cool page peel effect
316
+ - keychain_utils:
317
+ - id : git://github.com/ldandersen/scifihifi-iphone.git
318
+ - name : SFHFKeychainUtils
319
+ - description : Keychain Utilities
320
+ - ios_components:
321
+ - id : git://github.com/doukasd/iOS-Components.git
322
+ - name : iOS_Components
323
+ - description : Misc components for the iOS
324
+
325
+ app:
326
+ - mobile_terminal:
327
+ - id : http://mobileterminal.googlecode.com/svn/
328
+ - name : MobileTerminal
329
+ - description : A GUI Terminal application for the iPhone
330
+ - type : svn
331
+
250
332
  snippet:
251
333
  - common_macro:
252
334
  - id : 988462
@@ -288,5 +370,8 @@ snippet:
288
370
  - id : 994426
289
371
  - name : Check_If_Simulator
290
372
  - description : A Macro to check if app run in Simulator
291
-
292
-
373
+ - ordered_dictiona:
374
+ - id : https://ordereddictiona.svn.sourceforge.net/svnroot/ordereddictiona
375
+ - name : OrderedDictionary
376
+ - description : OrderedDictionary combines NSMutableArray and NSDictionary
377
+ - type : svn
@@ -57,7 +57,7 @@ module Appjam
57
57
  if gname == 'lib'
58
58
  puts colorize("Framework Lib")
59
59
  else
60
- puts colorize("Gist Category [#{gname}]")
60
+ puts colorize("Gist Category [#{gname}]") unless gname == 'info'
61
61
  end
62
62
  unless gname == 'info'
63
63
  g[key].each { |k|
@@ -70,7 +70,7 @@ module Appjam
70
70
  }
71
71
  }
72
72
  end
73
- View.render(gitopt, RENDER_OPTIONS)
73
+ View.render(gitopt, RENDER_OPTIONS) unless gname == 'info'
74
74
  }
75
75
  puts
76
76
  end
@@ -42,7 +42,7 @@ module Appjam
42
42
  tempfile.close
43
43
 
44
44
  if system('which qlmanage')
45
- system("qlmanage -p #{tempfile.path} >& /dev/null")
45
+ system("qlmanage -p #{tempfile.path}/* >& /dev/null")
46
46
  end
47
47
  end
48
48
 
@@ -82,41 +82,68 @@ module Appjam
82
82
  # system "hg clone https://kissxml.googlecode.com/hg/ Frameworks/kissxml"
83
83
  # system "git add ."
84
84
  # system "git commit -m 'import kissxml submodule'"
85
- # say (<<-TEXT).gsub(/ {10}/,'')
86
- if gist_id.include?('github.com')
87
- if File.directory?("Frameworks/#{gist_name.downcase}")
88
- `rm -rf Frameworks/#{gist_name.downcase}`
85
+ # say (<<-TEXT).gsub(/ {10}/,'')
86
+ if 'ftp' == "#{gist_type.strip}" or 'http' == "#{gist_type.strip}"
87
+ system "ftp #{gist_id}"
88
+ dir = "#{File.basename(gist_id.strip)}"
89
+ case "#{File.basename(gist_id.strip)}"
90
+ when /.tar$/
91
+ system "tar xvf #{File.basename(gist_id.strip)}"
92
+ when /.gz$/
93
+ system "tar zxvf #{File.basename(gist_id.strip)}"
94
+ when /.bz2$/
95
+ system "tar jxvf #{File.basename(gist_id.strip)}"
96
+ when /.bz$/
97
+ system "tar zxvf #{File.basename(gist_id.strip)}"
98
+ when /.Z$/
99
+ system "tar Zxvf #{File.basename(gist_id.strip)}"
100
+ when /.zip$/
101
+ system "unzip #{File.basename(gist_id.strip)}"
89
102
  end
90
- if("#{gist_id}".is_numeric?)
91
- `git clone git://gist.github.com/#{gist_id}.git Frameworks/#{gist_name.downcase} && rm -rf Frameworks/#{gist_name.downcase}/.git`
92
- else
93
- `git clone #{gist_id} Frameworks/#{gist_name.downcase} && rm -rf Frameworks/#{gist_name.downcase}/.git`
94
- end
95
- else
96
- if "#{gist_type}".strip == 'hg'
97
- if system('which hg') != nil
98
- system "rm -rf Frameworks/#{gist_name.downcase}"
99
- system "hg clone https://kissxml.googlecode.com/hg/ Frameworks/#{gist_name.downcase}"
100
- # system "git add ."
101
- # system "git commit -m 'import #{gist_name.downcase} submodule'"
102
- else
103
- say "="*70
104
- say "Mercurial was not installed!! check http://mercurial.selenic.com/ for installation."
105
- say "="*70
106
- end
107
- end
108
- if "#{gist_type}".strip == 'svn'
109
- if system('which svn') != nil
110
- system "rm -rf Frameworks/#{gist_name.downcase}"
111
- system "svn co #{gist_id} Frameworks/#{gist_name.downcase}"
112
- # system "git add ."
113
- # system "git commit -m 'import #{gist_name.downcase} submodule'"
103
+ dir = File.basename(dir, '.gz')
104
+ dir = File.basename(dir, '.tar')
105
+ dir = File.basename(dir, '.bz2')
106
+ dir = File.basename(dir, '.bz')
107
+ dir = File.basename(dir, '.Z')
108
+ dir = File.basename(dir, '.zip')
109
+ system "rm #{File.basename(gist_id.strip)}"
110
+ system "mv #{dir} Frameworks/"
111
+ else
112
+ if gist_id.include?('github.com')
113
+ if File.directory?("Frameworks/#{gist_name.downcase}")
114
+ `rm -rf Frameworks/#{gist_name.downcase}`
115
+ end
116
+ if("#{gist_id}".is_numeric?)
117
+ `git clone git://gist.github.com/#{gist_id}.git Frameworks/#{gist_name.downcase} && rm -rf Frameworks/#{gist_name.downcase}/.git`
114
118
  else
115
- say "="*70
116
- say "Subversion was not installed!! check http://www.open.collab.net/downloads/community/ for installation."
117
- say "="*70
119
+ `git clone #{gist_id} Frameworks/#{gist_name.downcase} && rm -rf Frameworks/#{gist_name.downcase}/.git`
120
+ end
121
+ else
122
+ if "#{gist_type}".strip == 'hg'
123
+ if system('which hg') != nil
124
+ system "rm -rf Frameworks/#{gist_name.downcase}"
125
+ system "hg clone https://kissxml.googlecode.com/hg/ Frameworks/#{gist_name.downcase}"
126
+ # system "git add ."
127
+ # system "git commit -m 'import #{gist_name.downcase} submodule'"
128
+ else
129
+ say "="*70
130
+ say "Mercurial was not installed!! check http://mercurial.selenic.com/ for installation."
131
+ say "="*70
132
+ end
118
133
  end
119
- end
134
+ if "#{gist_type}".strip == 'svn'
135
+ if system('which svn') != nil
136
+ system "rm -rf Frameworks/#{gist_name.downcase}"
137
+ system "svn co #{gist_id} Frameworks/#{gist_name.downcase}"
138
+ # system "git add ."
139
+ # system "git commit -m 'import #{gist_name.downcase} submodule'"
140
+ else
141
+ say "="*70
142
+ say "Subversion was not installed!! check http://www.open.collab.net/downloads/community/ for installation."
143
+ say "="*70
144
+ end
145
+ end
146
+ end
120
147
  end
121
148
  end
122
149
  end
@@ -3,7 +3,7 @@ module Appjam
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
5
  PATCH = 8
6
- BUILD = '3'
6
+ BUILD = '4'
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.').chomp('.')
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appjam
3
3
  version: !ruby/object:Gem::Version
4
- hash: 97
4
+ hash: 111
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
9
  - 8
10
- - 3
11
- version: 0.1.8.3
10
+ - 4
11
+ version: 0.1.8.4
12
12
  platform: ruby
13
13
  authors:
14
14
  - Eiffel Q
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-06-20 00:00:00 +08:00
19
+ date: 2011-07-19 00:00:00 +08:00
20
20
  default_executable: appjam
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency