appjam 0.1.8.pre5 → 0.1.8.pre6
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
@@ -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?("
|
53
|
-
`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
|
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?("
|
73
|
-
`rm -rf
|
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
|
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
|
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
|
131
|
+
say "Check Gist/#{gcategory}/#{gname}/ for Snippet"
|
132
132
|
say "Open #{@xcode_project_name.capitalize}.xcodeproj"
|
133
|
-
say "Add '
|
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 :
|
4
|
+
- id : 988211
|
5
5
|
- name : Singleton
|
6
|
-
- description :
|
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
|
-
|
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 :
|
25
|
+
- name : Get_IP_Address
|
22
26
|
- description : Get IP address in iphone
|
23
|
-
|
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}/
|
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"
|
data/lib/appjam/version.rb
CHANGED
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:
|
4
|
+
hash: 1923832053
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
9
|
- 8
|
10
10
|
- pre
|
11
|
-
-
|
12
|
-
version: 0.1.8.
|
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-
|
20
|
+
date: 2011-05-24 00:00:00 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
type: :runtime
|