appjam 0.1.0.pre6 → 0.1.0.pre9
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.rdoc +1 -1
- data/bin/appjam +2 -7
- data/lib/appjam.rb +9 -1
- data/lib/appjam/command.rb +27 -0
- data/lib/appjam/generators/actions.rb +170 -0
- data/lib/appjam/generators/cli.rb +42 -0
- data/lib/appjam/generators/model.rb +51 -0
- data/lib/appjam/generators/project.rb +9 -6
- data/lib/appjam/generators/project/Classes/{users → contacts}/ApplicationFacade.h.tt +0 -0
- data/lib/appjam/generators/project/Classes/{users → contacts}/ApplicationFacade.m.tt +0 -0
- data/lib/appjam/generators/project/Classes/{users → contacts}/controller/CreateUserCommand.h.tt +0 -0
- data/lib/appjam/generators/project/Classes/{users → contacts}/controller/CreateUserCommand.m.tt +0 -0
- data/lib/appjam/generators/project/Classes/{users → contacts}/controller/DeleteUserCommand.h.tt +0 -0
- data/lib/appjam/generators/project/Classes/{users → contacts}/controller/DeleteUserCommand.m.tt +0 -0
- data/lib/appjam/generators/project/Classes/{users → contacts}/controller/GetUsersCommand.h.tt +0 -0
- data/lib/appjam/generators/project/Classes/{users → contacts}/controller/GetUsersCommand.m.tt +0 -0
- data/lib/appjam/generators/project/Classes/{users → contacts}/controller/StartupCommand.h.tt +0 -0
- data/lib/appjam/generators/project/Classes/{users → contacts}/controller/StartupCommand.m.tt +0 -0
- data/lib/appjam/generators/project/Classes/{users → contacts}/controller/UpdateUserCommand.h.tt +0 -0
- data/lib/appjam/generators/project/Classes/{users → contacts}/controller/UpdateUserCommand.m.tt +0 -0
- data/lib/appjam/generators/project/Classes/{users → contacts}/model/UserProxy.h.tt +0 -0
- data/lib/appjam/generators/project/Classes/{users → contacts}/model/UserProxy.m.tt +0 -0
- data/lib/appjam/generators/project/Classes/{users → contacts}/model/vo/UserVO.h.tt +0 -0
- data/lib/appjam/generators/project/Classes/{users → contacts}/model/vo/UserVO.m.tt +0 -0
- data/lib/appjam/generators/project/Classes/{users → contacts}/view/ContactsMediator.h.tt +0 -0
- data/lib/appjam/generators/project/Classes/{users → contacts}/view/ContactsMediator.m.tt +0 -0
- data/lib/appjam/generators/project/Classes/{users → contacts}/view/UserFormMediator.h.tt +0 -0
- data/lib/appjam/generators/project/Classes/{users → contacts}/view/UserFormMediator.m.tt +0 -0
- data/lib/appjam/generators/project/Classes/{users → contacts}/view/UserListMediator.h.tt +0 -0
- data/lib/appjam/generators/project/Classes/{users → contacts}/view/UserListMediator.m.tt +0 -0
- data/lib/appjam/generators/project/Classes/{users → contacts}/view/components/Contacts.h.tt +0 -0
- data/lib/appjam/generators/project/Classes/{users → contacts}/view/components/Contacts.m.tt +0 -0
- data/lib/appjam/generators/project/Classes/{users → contacts}/view/components/UserForm.h.tt +0 -0
- data/lib/appjam/generators/project/Classes/{users → contacts}/view/components/UserForm.m.tt +0 -0
- data/lib/appjam/generators/project/Classes/{users → contacts}/view/components/UserList.h.tt +0 -0
- data/lib/appjam/generators/project/Classes/{users → contacts}/view/components/UserList.m.tt +0 -0
- data/lib/appjam/generators/project/Contacts.xcodeproj/eiffel.pbxuser +185 -41
- data/lib/appjam/generators/project/Contacts.xcodeproj/eiffel.perspectivev3 +23 -22
- data/lib/appjam/generators/project/Contacts.xcodeproj/project.pbxproj +102 -102
- data/lib/appjam/version.rb +1 -1
- data/test/helper.rb +132 -0
- data/test/test_project_generator.rb +38 -0
- metadata +263 -56
- data/spec/appjam_spec.rb +0 -7
- data/spec/spec_helper.rb +0 -12
data/lib/appjam/version.rb
CHANGED
data/test/helper.rb
ADDED
@@ -0,0 +1,132 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :development)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
+
exit e.status_code
|
9
|
+
end
|
10
|
+
require 'test/unit'
|
11
|
+
require 'rack/test'
|
12
|
+
require 'rack'
|
13
|
+
require 'uuid'
|
14
|
+
require 'shoulda'
|
15
|
+
require 'mocha'
|
16
|
+
require 'webrat'
|
17
|
+
require 'grit'
|
18
|
+
require 'thor/group'
|
19
|
+
require 'fakeweb'
|
20
|
+
require 'active_support/inflector'
|
21
|
+
|
22
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
23
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
24
|
+
require 'appjam'
|
25
|
+
require File.expand_path(File.dirname(__FILE__) + '/../lib/appjam/generators/project')
|
26
|
+
|
27
|
+
class Test::Unit::TestCase
|
28
|
+
include Rack::Test::Methods
|
29
|
+
include Webrat::Methods
|
30
|
+
include Webrat::Matchers
|
31
|
+
|
32
|
+
Webrat.configure do |config|
|
33
|
+
config.mode = :rack
|
34
|
+
end
|
35
|
+
|
36
|
+
def stop_time_for_test
|
37
|
+
time = Time.now
|
38
|
+
Time.stubs(:now).returns(time)
|
39
|
+
return time
|
40
|
+
end
|
41
|
+
|
42
|
+
# generate(:controller, 'DemoItems', '-r=/tmp/sample_project')
|
43
|
+
def generate(name, *params)
|
44
|
+
"Appjam::Generators::#{name.to_s.capitalize}".constantize.start(params)
|
45
|
+
end
|
46
|
+
|
47
|
+
# assert_file_exists('/tmp/app')
|
48
|
+
def assert_file_exists(file_path)
|
49
|
+
assert File.exist?(file_path), "File at path '#{file_path}' does not exist!"
|
50
|
+
end
|
51
|
+
alias :assert_dir_exists :assert_file_exists
|
52
|
+
|
53
|
+
# assert_no_file_exists('/tmp/app')
|
54
|
+
def assert_no_file_exists(file_path)
|
55
|
+
assert !File.exist?(file_path), "File should not exist at path '#{file_path}' but was found!"
|
56
|
+
end
|
57
|
+
alias :assert_no_dir_exists :assert_no_file_exists
|
58
|
+
|
59
|
+
# Asserts that a file matches the pattern
|
60
|
+
def assert_match_in_file(pattern, file)
|
61
|
+
File.exist?(file) ? assert_match(pattern, File.read(file)) : assert_file_exists(file)
|
62
|
+
end
|
63
|
+
|
64
|
+
def assert_no_match_in_file(pattern, file)
|
65
|
+
File.exists?(file) ? assert_no_match(pattern, File.read(file)) : assert_file_exists(file)
|
66
|
+
end
|
67
|
+
|
68
|
+
# expects_dependencies 'nokogiri'
|
69
|
+
def expects_dependencies(name)
|
70
|
+
instance = mock
|
71
|
+
instance.expects(:invoke!).once
|
72
|
+
include_text = "gem '#{name}'\n"
|
73
|
+
Thor::Actions::InjectIntoFile.expects(:new).with(anything,'Gemfile', include_text, anything).returns(instance)
|
74
|
+
end
|
75
|
+
|
76
|
+
def expects
|
77
|
+
|
78
|
+
end
|
79
|
+
|
80
|
+
# expects_rake "custom"
|
81
|
+
def expects_rake(command,options={})
|
82
|
+
#options.reverse_merge!(:root => '/tmp')
|
83
|
+
Appjam.expects(:bin).with("rake", command, "-c=#{options[:root]}").returns(true)
|
84
|
+
end
|
85
|
+
|
86
|
+
def git(action, arguments=nil)
|
87
|
+
FileUtils.cd(destination_root) do
|
88
|
+
require 'grit' unless defined?(::Grit)
|
89
|
+
if action.to_s == 'init'
|
90
|
+
::Grit::Repo.init(arguments || destination_root)
|
91
|
+
say "Git repo has been initialized", :green
|
92
|
+
else
|
93
|
+
@_git ||= ::Grit::Repo.new(destination_root)
|
94
|
+
@_git.method(action).call(arguments)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
# expects_git :commit, "hello world"
|
100
|
+
def expects_git(command,options={})
|
101
|
+
FileUtils.mkdir_p(options[:root])
|
102
|
+
if command.to_s == 'init'
|
103
|
+
args = options[:arguments] || options[:root]
|
104
|
+
::Grit::Repo.expects(:init).with(args).returns(true)
|
105
|
+
else
|
106
|
+
base = ::Grit::Git.new(options[:root])
|
107
|
+
::Grit::Repo.stubs(:new).with(options[:root]).returns(base)
|
108
|
+
::Grit::Git.any_instance.expects(command.to_sym).with(options[:arguments]).returns(true)
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
end
|
113
|
+
|
114
|
+
class Object
|
115
|
+
# Silences the output by redirecting to stringIO
|
116
|
+
# silence_logger { ...commands... } => "...output..."
|
117
|
+
def silence_logger(&block)
|
118
|
+
orig_stdout = $stdout
|
119
|
+
$stdout = log_buffer = StringIO.new
|
120
|
+
block.call
|
121
|
+
$stdout = orig_stdout
|
122
|
+
log_buffer.rewind && log_buffer.read
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
module Webrat
|
127
|
+
module Logging
|
128
|
+
def logger # :nodoc:
|
129
|
+
@logger = nil
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/helper')
|
2
|
+
|
3
|
+
class TestProjectGenerator < Test::Unit::TestCase
|
4
|
+
def setup
|
5
|
+
@apptmp = "#{Dir.tmpdir}/appjam-tests/#{UUID.new.generate}"
|
6
|
+
`mkdir -p #{@apptmp}`
|
7
|
+
end
|
8
|
+
|
9
|
+
def teardown
|
10
|
+
`rm -rf #{@apptmp}`
|
11
|
+
`rm -rf /tmp/project`
|
12
|
+
end
|
13
|
+
|
14
|
+
context 'the project generator' do
|
15
|
+
|
16
|
+
should "display the right path" do
|
17
|
+
buffer = silence_logger { generate(:project, 'project', "--root=/tmp") }
|
18
|
+
assert_file_exists("/tmp/project")
|
19
|
+
end
|
20
|
+
|
21
|
+
should "allow simple generator to run and create base_app with no options" do
|
22
|
+
assert_nothing_raised { silence_logger { generate(:project, 'sample_project', "--root=#{@apptmp}") } }
|
23
|
+
assert_file_exists("#{@apptmp}/sample_project")
|
24
|
+
assert_file_exists("#{@apptmp}/sample_project/Classes")
|
25
|
+
assert_file_exists("#{@apptmp}/sample_project/Contacts_Prefix.pch")
|
26
|
+
assert_file_exists("#{@apptmp}/sample_project/Contacts-Info.plist")
|
27
|
+
assert_file_exists("#{@apptmp}/sample_project/Contacts.xcodeproj")
|
28
|
+
assert_file_exists("#{@apptmp}/sample_project/main.m")
|
29
|
+
end
|
30
|
+
|
31
|
+
should "raise an Error when given invalid constant names" do
|
32
|
+
assert_raise(::NameError) { silence_logger { generate(:project, "123asdf", "--root=#{@apptmp}") } }
|
33
|
+
assert_raise(::NameError) { silence_logger { generate(:project, "./sample_project", "--root=#{@apptmp}") } }
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
37
|
+
|
38
|
+
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:
|
4
|
+
hash: 1923831979
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
9
|
- 0
|
10
10
|
- pre
|
11
|
-
-
|
12
|
-
version: 0.1.0.
|
11
|
+
- 9
|
12
|
+
version: 0.1.0.pre9
|
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-04-
|
20
|
+
date: 2011-04-30 00:00:00 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
type: :runtime
|
@@ -54,48 +54,162 @@ dependencies:
|
|
54
54
|
requirements:
|
55
55
|
- - ">="
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
hash:
|
57
|
+
hash: 49
|
58
58
|
segments:
|
59
59
|
- 0
|
60
|
-
|
60
|
+
- 8
|
61
|
+
- 7
|
62
|
+
version: 0.8.7
|
61
63
|
version_requirements: *id003
|
62
|
-
name:
|
64
|
+
name: rake
|
63
65
|
prerelease: false
|
64
66
|
- !ruby/object:Gem::Dependency
|
65
67
|
type: :development
|
66
68
|
requirement: &id004 !ruby/object:Gem::Requirement
|
67
69
|
none: false
|
68
70
|
requirements:
|
69
|
-
- -
|
71
|
+
- - ">="
|
70
72
|
- !ruby/object:Gem::Version
|
71
|
-
hash:
|
73
|
+
hash: 43
|
72
74
|
segments:
|
73
|
-
- 2
|
74
|
-
- 3
|
75
75
|
- 0
|
76
|
-
|
76
|
+
- 9
|
77
|
+
- 8
|
78
|
+
version: 0.9.8
|
77
79
|
version_requirements: *id004
|
78
|
-
name:
|
80
|
+
name: mocha
|
79
81
|
prerelease: false
|
80
82
|
- !ruby/object:Gem::Dependency
|
81
83
|
type: :development
|
82
84
|
requirement: &id005 !ruby/object:Gem::Requirement
|
83
85
|
none: false
|
84
86
|
requirements:
|
85
|
-
- -
|
87
|
+
- - ">="
|
86
88
|
- !ruby/object:Gem::Version
|
87
|
-
hash:
|
89
|
+
hash: 11
|
88
90
|
segments:
|
89
|
-
- 1
|
90
91
|
- 0
|
92
|
+
- 5
|
91
93
|
- 0
|
92
|
-
version:
|
94
|
+
version: 0.5.0
|
93
95
|
version_requirements: *id005
|
94
|
-
name:
|
96
|
+
name: rack-test
|
95
97
|
prerelease: false
|
96
98
|
- !ruby/object:Gem::Dependency
|
97
99
|
type: :development
|
98
100
|
requirement: &id006 !ruby/object:Gem::Requirement
|
101
|
+
none: false
|
102
|
+
requirements:
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
hash: 15
|
106
|
+
segments:
|
107
|
+
- 1
|
108
|
+
- 2
|
109
|
+
- 8
|
110
|
+
version: 1.2.8
|
111
|
+
version_requirements: *id006
|
112
|
+
name: fakeweb
|
113
|
+
prerelease: false
|
114
|
+
- !ruby/object:Gem::Dependency
|
115
|
+
type: :development
|
116
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
117
|
+
none: false
|
118
|
+
requirements:
|
119
|
+
- - "="
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
hash: 9
|
122
|
+
segments:
|
123
|
+
- 0
|
124
|
+
- 5
|
125
|
+
- 1
|
126
|
+
version: 0.5.1
|
127
|
+
version_requirements: *id007
|
128
|
+
name: webrat
|
129
|
+
prerelease: false
|
130
|
+
- !ruby/object:Gem::Dependency
|
131
|
+
type: :development
|
132
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
133
|
+
none: false
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
hash: 19
|
138
|
+
segments:
|
139
|
+
- 2
|
140
|
+
- 7
|
141
|
+
- 0
|
142
|
+
version: 2.7.0
|
143
|
+
version_requirements: *id008
|
144
|
+
name: erubis
|
145
|
+
prerelease: false
|
146
|
+
- !ruby/object:Gem::Dependency
|
147
|
+
type: :development
|
148
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
149
|
+
none: false
|
150
|
+
requirements:
|
151
|
+
- - ">="
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
hash: 63
|
154
|
+
segments:
|
155
|
+
- 0
|
156
|
+
- 9
|
157
|
+
- 2
|
158
|
+
version: 0.9.2
|
159
|
+
version_requirements: *id009
|
160
|
+
name: slim
|
161
|
+
prerelease: false
|
162
|
+
- !ruby/object:Gem::Dependency
|
163
|
+
type: :development
|
164
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
165
|
+
none: false
|
166
|
+
requirements:
|
167
|
+
- - ">="
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
hash: 33
|
170
|
+
segments:
|
171
|
+
- 2
|
172
|
+
- 10
|
173
|
+
- 3
|
174
|
+
version: 2.10.3
|
175
|
+
version_requirements: *id010
|
176
|
+
name: shoulda
|
177
|
+
prerelease: false
|
178
|
+
- !ruby/object:Gem::Dependency
|
179
|
+
type: :development
|
180
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
181
|
+
none: false
|
182
|
+
requirements:
|
183
|
+
- - ">="
|
184
|
+
- !ruby/object:Gem::Version
|
185
|
+
hash: 1
|
186
|
+
segments:
|
187
|
+
- 2
|
188
|
+
- 3
|
189
|
+
- 1
|
190
|
+
version: 2.3.1
|
191
|
+
version_requirements: *id011
|
192
|
+
name: uuid
|
193
|
+
prerelease: false
|
194
|
+
- !ruby/object:Gem::Dependency
|
195
|
+
type: :development
|
196
|
+
requirement: &id012 !ruby/object:Gem::Requirement
|
197
|
+
none: false
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
hash: 15
|
202
|
+
segments:
|
203
|
+
- 2
|
204
|
+
- 1
|
205
|
+
- 2
|
206
|
+
version: 2.1.2
|
207
|
+
version_requirements: *id012
|
208
|
+
name: builder
|
209
|
+
prerelease: false
|
210
|
+
- !ruby/object:Gem::Dependency
|
211
|
+
type: :development
|
212
|
+
requirement: &id013 !ruby/object:Gem::Requirement
|
99
213
|
none: false
|
100
214
|
requirements:
|
101
215
|
- - ~>
|
@@ -106,12 +220,28 @@ dependencies:
|
|
106
220
|
- 5
|
107
221
|
- 2
|
108
222
|
version: 1.5.2
|
109
|
-
version_requirements: *
|
223
|
+
version_requirements: *id013
|
110
224
|
name: jeweler
|
111
225
|
prerelease: false
|
112
226
|
- !ruby/object:Gem::Dependency
|
113
227
|
type: :development
|
114
|
-
requirement: &
|
228
|
+
requirement: &id014 !ruby/object:Gem::Requirement
|
229
|
+
none: false
|
230
|
+
requirements:
|
231
|
+
- - ~>
|
232
|
+
- !ruby/object:Gem::Version
|
233
|
+
hash: 43
|
234
|
+
segments:
|
235
|
+
- 0
|
236
|
+
- 9
|
237
|
+
- 8
|
238
|
+
version: 0.9.8
|
239
|
+
version_requirements: *id014
|
240
|
+
name: rcov
|
241
|
+
prerelease: false
|
242
|
+
- !ruby/object:Gem::Dependency
|
243
|
+
type: :development
|
244
|
+
requirement: &id015 !ruby/object:Gem::Requirement
|
115
245
|
none: false
|
116
246
|
requirements:
|
117
247
|
- - ">="
|
@@ -120,12 +250,71 @@ dependencies:
|
|
120
250
|
segments:
|
121
251
|
- 0
|
122
252
|
version: "0"
|
123
|
-
version_requirements: *
|
124
|
-
name:
|
253
|
+
version_requirements: *id015
|
254
|
+
name: grit
|
255
|
+
prerelease: false
|
256
|
+
- !ruby/object:Gem::Dependency
|
257
|
+
type: :development
|
258
|
+
requirement: &id016 !ruby/object:Gem::Requirement
|
259
|
+
none: false
|
260
|
+
requirements:
|
261
|
+
- - ">="
|
262
|
+
- !ruby/object:Gem::Version
|
263
|
+
hash: 3
|
264
|
+
segments:
|
265
|
+
- 0
|
266
|
+
version: "0"
|
267
|
+
version_requirements: *id016
|
268
|
+
name: i18n
|
269
|
+
prerelease: false
|
270
|
+
- !ruby/object:Gem::Dependency
|
271
|
+
type: :development
|
272
|
+
requirement: &id017 !ruby/object:Gem::Requirement
|
273
|
+
none: false
|
274
|
+
requirements:
|
275
|
+
- - ">="
|
276
|
+
- !ruby/object:Gem::Version
|
277
|
+
hash: 57
|
278
|
+
segments:
|
279
|
+
- 0
|
280
|
+
- 9
|
281
|
+
- 1
|
282
|
+
version: 0.9.1
|
283
|
+
version_requirements: *id017
|
284
|
+
name: ruby-prof
|
285
|
+
prerelease: false
|
286
|
+
- !ruby/object:Gem::Dependency
|
287
|
+
type: :development
|
288
|
+
requirement: &id018 !ruby/object:Gem::Requirement
|
289
|
+
none: false
|
290
|
+
requirements:
|
291
|
+
- - ">="
|
292
|
+
- !ruby/object:Gem::Version
|
293
|
+
hash: 15
|
294
|
+
segments:
|
295
|
+
- 1
|
296
|
+
- 0
|
297
|
+
version: "1.0"
|
298
|
+
version_requirements: *id018
|
299
|
+
name: system_timer
|
300
|
+
prerelease: false
|
301
|
+
- !ruby/object:Gem::Dependency
|
302
|
+
type: :development
|
303
|
+
requirement: &id019 !ruby/object:Gem::Requirement
|
304
|
+
none: false
|
305
|
+
requirements:
|
306
|
+
- - ">="
|
307
|
+
- !ruby/object:Gem::Version
|
308
|
+
hash: 3
|
309
|
+
segments:
|
310
|
+
- 0
|
311
|
+
version: "0"
|
312
|
+
version_requirements: *id019
|
313
|
+
name: jruby-openssl
|
125
314
|
prerelease: false
|
126
315
|
- !ruby/object:Gem::Dependency
|
127
316
|
type: :runtime
|
128
|
-
requirement: &
|
317
|
+
requirement: &id020 !ruby/object:Gem::Requirement
|
129
318
|
none: false
|
130
319
|
requirements:
|
131
320
|
- - ">="
|
@@ -134,9 +323,23 @@ dependencies:
|
|
134
323
|
segments:
|
135
324
|
- 0
|
136
325
|
version: "0"
|
137
|
-
version_requirements: *
|
326
|
+
version_requirements: *id020
|
138
327
|
name: activesupport
|
139
328
|
prerelease: false
|
329
|
+
- !ruby/object:Gem::Dependency
|
330
|
+
type: :runtime
|
331
|
+
requirement: &id021 !ruby/object:Gem::Requirement
|
332
|
+
none: false
|
333
|
+
requirements:
|
334
|
+
- - ">="
|
335
|
+
- !ruby/object:Gem::Version
|
336
|
+
hash: 3
|
337
|
+
segments:
|
338
|
+
- 0
|
339
|
+
version: "0"
|
340
|
+
version_requirements: *id021
|
341
|
+
name: grit
|
342
|
+
prerelease: false
|
140
343
|
description: generate iphone app skeleton based on pure mvc framework
|
141
344
|
email: eiffelqiu@gmail.com
|
142
345
|
executables:
|
@@ -148,9 +351,41 @@ extra_rdoc_files:
|
|
148
351
|
- README.rdoc
|
149
352
|
files:
|
150
353
|
- lib/appjam.rb
|
354
|
+
- lib/appjam/command.rb
|
355
|
+
- lib/appjam/generators/actions.rb
|
356
|
+
- lib/appjam/generators/cli.rb
|
357
|
+
- lib/appjam/generators/model.rb
|
151
358
|
- lib/appjam/generators/project.rb
|
152
359
|
- lib/appjam/generators/project/Classes/ContactsAppDelegate.h.tt
|
153
360
|
- lib/appjam/generators/project/Classes/ContactsAppDelegate.m.tt
|
361
|
+
- lib/appjam/generators/project/Classes/contacts/ApplicationFacade.h.tt
|
362
|
+
- lib/appjam/generators/project/Classes/contacts/ApplicationFacade.m.tt
|
363
|
+
- lib/appjam/generators/project/Classes/contacts/controller/CreateUserCommand.h.tt
|
364
|
+
- lib/appjam/generators/project/Classes/contacts/controller/CreateUserCommand.m.tt
|
365
|
+
- lib/appjam/generators/project/Classes/contacts/controller/DeleteUserCommand.h.tt
|
366
|
+
- lib/appjam/generators/project/Classes/contacts/controller/DeleteUserCommand.m.tt
|
367
|
+
- lib/appjam/generators/project/Classes/contacts/controller/GetUsersCommand.h.tt
|
368
|
+
- lib/appjam/generators/project/Classes/contacts/controller/GetUsersCommand.m.tt
|
369
|
+
- lib/appjam/generators/project/Classes/contacts/controller/StartupCommand.h.tt
|
370
|
+
- lib/appjam/generators/project/Classes/contacts/controller/StartupCommand.m.tt
|
371
|
+
- lib/appjam/generators/project/Classes/contacts/controller/UpdateUserCommand.h.tt
|
372
|
+
- lib/appjam/generators/project/Classes/contacts/controller/UpdateUserCommand.m.tt
|
373
|
+
- lib/appjam/generators/project/Classes/contacts/model/UserProxy.h.tt
|
374
|
+
- lib/appjam/generators/project/Classes/contacts/model/UserProxy.m.tt
|
375
|
+
- lib/appjam/generators/project/Classes/contacts/model/vo/UserVO.h.tt
|
376
|
+
- lib/appjam/generators/project/Classes/contacts/model/vo/UserVO.m.tt
|
377
|
+
- lib/appjam/generators/project/Classes/contacts/view/ContactsMediator.h.tt
|
378
|
+
- lib/appjam/generators/project/Classes/contacts/view/ContactsMediator.m.tt
|
379
|
+
- lib/appjam/generators/project/Classes/contacts/view/UserFormMediator.h.tt
|
380
|
+
- lib/appjam/generators/project/Classes/contacts/view/UserFormMediator.m.tt
|
381
|
+
- lib/appjam/generators/project/Classes/contacts/view/UserListMediator.h.tt
|
382
|
+
- lib/appjam/generators/project/Classes/contacts/view/UserListMediator.m.tt
|
383
|
+
- lib/appjam/generators/project/Classes/contacts/view/components/Contacts.h.tt
|
384
|
+
- lib/appjam/generators/project/Classes/contacts/view/components/Contacts.m.tt
|
385
|
+
- lib/appjam/generators/project/Classes/contacts/view/components/UserForm.h.tt
|
386
|
+
- lib/appjam/generators/project/Classes/contacts/view/components/UserForm.m.tt
|
387
|
+
- lib/appjam/generators/project/Classes/contacts/view/components/UserList.h.tt
|
388
|
+
- lib/appjam/generators/project/Classes/contacts/view/components/UserList.m.tt
|
154
389
|
- lib/appjam/generators/project/Classes/org/puremvc/objectivec/core/Controller.h
|
155
390
|
- lib/appjam/generators/project/Classes/org/puremvc/objectivec/core/Controller.m
|
156
391
|
- lib/appjam/generators/project/Classes/org/puremvc/objectivec/core/Model.h
|
@@ -183,34 +418,6 @@ files:
|
|
183
418
|
- lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Observer.m
|
184
419
|
- lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/proxy/Proxy.h
|
185
420
|
- lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/proxy/Proxy.m
|
186
|
-
- lib/appjam/generators/project/Classes/users/ApplicationFacade.h.tt
|
187
|
-
- lib/appjam/generators/project/Classes/users/ApplicationFacade.m.tt
|
188
|
-
- lib/appjam/generators/project/Classes/users/controller/CreateUserCommand.h.tt
|
189
|
-
- lib/appjam/generators/project/Classes/users/controller/CreateUserCommand.m.tt
|
190
|
-
- lib/appjam/generators/project/Classes/users/controller/DeleteUserCommand.h.tt
|
191
|
-
- lib/appjam/generators/project/Classes/users/controller/DeleteUserCommand.m.tt
|
192
|
-
- lib/appjam/generators/project/Classes/users/controller/GetUsersCommand.h.tt
|
193
|
-
- lib/appjam/generators/project/Classes/users/controller/GetUsersCommand.m.tt
|
194
|
-
- lib/appjam/generators/project/Classes/users/controller/StartupCommand.h.tt
|
195
|
-
- lib/appjam/generators/project/Classes/users/controller/StartupCommand.m.tt
|
196
|
-
- lib/appjam/generators/project/Classes/users/controller/UpdateUserCommand.h.tt
|
197
|
-
- lib/appjam/generators/project/Classes/users/controller/UpdateUserCommand.m.tt
|
198
|
-
- lib/appjam/generators/project/Classes/users/model/UserProxy.h.tt
|
199
|
-
- lib/appjam/generators/project/Classes/users/model/UserProxy.m.tt
|
200
|
-
- lib/appjam/generators/project/Classes/users/model/vo/UserVO.h.tt
|
201
|
-
- lib/appjam/generators/project/Classes/users/model/vo/UserVO.m.tt
|
202
|
-
- lib/appjam/generators/project/Classes/users/view/ContactsMediator.h.tt
|
203
|
-
- lib/appjam/generators/project/Classes/users/view/ContactsMediator.m.tt
|
204
|
-
- lib/appjam/generators/project/Classes/users/view/UserFormMediator.h.tt
|
205
|
-
- lib/appjam/generators/project/Classes/users/view/UserFormMediator.m.tt
|
206
|
-
- lib/appjam/generators/project/Classes/users/view/UserListMediator.h.tt
|
207
|
-
- lib/appjam/generators/project/Classes/users/view/UserListMediator.m.tt
|
208
|
-
- lib/appjam/generators/project/Classes/users/view/components/Contacts.h.tt
|
209
|
-
- lib/appjam/generators/project/Classes/users/view/components/Contacts.m.tt
|
210
|
-
- lib/appjam/generators/project/Classes/users/view/components/UserForm.h.tt
|
211
|
-
- lib/appjam/generators/project/Classes/users/view/components/UserForm.m.tt
|
212
|
-
- lib/appjam/generators/project/Classes/users/view/components/UserList.h.tt
|
213
|
-
- lib/appjam/generators/project/Classes/users/view/components/UserList.m.tt
|
214
421
|
- lib/appjam/generators/project/Contacts-Info.plist.tt
|
215
422
|
- lib/appjam/generators/project/Contacts.xcodeproj/eiffel.pbxuser
|
216
423
|
- lib/appjam/generators/project/Contacts.xcodeproj/eiffel.perspectivev3
|
@@ -226,8 +433,8 @@ files:
|
|
226
433
|
- lib/appjam/version.rb
|
227
434
|
- LICENSE.txt
|
228
435
|
- README.rdoc
|
229
|
-
-
|
230
|
-
-
|
436
|
+
- test/helper.rb
|
437
|
+
- test/test_project_generator.rb
|
231
438
|
- bin/appjam
|
232
439
|
homepage: http://github.com/eiffelqiu/appjam
|
233
440
|
licenses:
|
@@ -265,5 +472,5 @@ signing_key:
|
|
265
472
|
specification_version: 3
|
266
473
|
summary: an iphone app generator
|
267
474
|
test_files:
|
268
|
-
-
|
269
|
-
-
|
475
|
+
- test/helper.rb
|
476
|
+
- test/test_project_generator.rb
|