ti 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Guardfile +5 -0
- data/Rakefile +28 -3
- data/TODO.mkd +12 -6
- data/VERSION +1 -1
- data/bin/ti +1 -17
- data/lib/ti.rb +4 -1
- data/lib/ti/cli.rb +39 -0
- data/lib/ti/templates/config +1 -1
- data/spec/cli/command_spec.rb +92 -0
- data/spec/spec_helper.rb +31 -0
- data/ti.gemspec +9 -7
- metadata +36 -33
- data/test/helper.rb +0 -17
- data/test/test_ti.rb +0 -7
data/Guardfile
ADDED
data/Rakefile
CHANGED
@@ -9,7 +9,7 @@ rescue Bundler::BundlerError => e
|
|
9
9
|
end
|
10
10
|
|
11
11
|
require 'rake'
|
12
|
-
|
12
|
+
require 'time'
|
13
13
|
|
14
14
|
require 'jeweler'
|
15
15
|
Jeweler::Tasks.new do |gem|
|
@@ -20,8 +20,8 @@ Jeweler::Tasks.new do |gem|
|
|
20
20
|
gem.summary = %Q{Ti}
|
21
21
|
gem.description = %Q{Titanium Project Generator}
|
22
22
|
gem.email = "robert@codewranglers.org"
|
23
|
-
gem.authors = ["Robert R Evans", "Julius Francisco", 'Wynn Netherland']
|
24
|
-
gem.date = "
|
23
|
+
gem.authors = ["Robert R Evans", "Julius Francisco", 'Wynn Netherland', 'Rupak Ganguly']
|
24
|
+
gem.date = Time.now.strftime("%Y-%m-%d")
|
25
25
|
gem.executables = ["ti"]
|
26
26
|
gem.version = File.read(File.join(File.dirname(__FILE__), 'VERSION')).chomp
|
27
27
|
|
@@ -46,3 +46,28 @@ Rake::RDocTask.new do |rdoc|
|
|
46
46
|
rdoc.rdoc_files.include('README*')
|
47
47
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
48
48
|
end
|
49
|
+
|
50
|
+
|
51
|
+
require 'rspec/core'
|
52
|
+
require 'rspec/core/rake_task'
|
53
|
+
|
54
|
+
task :default => :spec
|
55
|
+
|
56
|
+
desc "Run specs"
|
57
|
+
RSpec::Core::RakeTask.new do |t|
|
58
|
+
t.rspec_opts = '--color'
|
59
|
+
end
|
60
|
+
|
61
|
+
namespace :spec do
|
62
|
+
|
63
|
+
desc "Run specs verbosely"
|
64
|
+
RSpec::Core::RakeTask.new('verbose') do |t|
|
65
|
+
t.rspec_opts = '--color --format documentation'
|
66
|
+
end
|
67
|
+
|
68
|
+
desc "Run specs with html report"
|
69
|
+
RSpec::Core::RakeTask.new('html') do |t|
|
70
|
+
t.rspec_opts = '--color --format html'
|
71
|
+
end
|
72
|
+
|
73
|
+
end
|
data/TODO.mkd
CHANGED
@@ -1,14 +1,20 @@
|
|
1
1
|
# TODO
|
2
2
|
|
3
3
|
* CoffeeScript Compiling doesn't work because "path" needs to be implemented. The idea is to make this a dynamic lookup.
|
4
|
-
* File creation, moving, replacing, etc should be moved to a module that can be included in other classes.
|
5
|
-
* Config, gitignore, rakefile, readme need to be moved to an appropriately named folder inside of the ti directory.
|
6
|
-
* Jasmine needs to be added.
|
7
|
-
* Guard needs to be added
|
8
|
-
* SASS needs to be added.
|
9
4
|
* Need to remove the perl script in the rakefile
|
10
|
-
* Use Thor instead of the choice gem.
|
11
5
|
* Documentation.
|
6
|
+
* Currently, using a home-brewed option parser, which works. Once I figure out why Thor is error-ing out on my system, I'll re implement with Thor.
|
7
|
+
* Need to write a guard-jasmine gem.
|
8
|
+
|
9
|
+
## Ideas
|
10
|
+
|
11
|
+
I love autotest for rails. I'd like to have the coffee-scripts auto compiling, sass auto compiling, and jasmine specs being ran when changes are made. However, I'm concerned with the overhead of the first two, if set to auto compile. So, maybe this needs to be a config setting? e.g.
|
12
|
+
|
13
|
+
Ti.auto_compile_sass = true
|
14
|
+
Ti.auto_compile_coffeescript = true
|
15
|
+
Ti.autotest_with_jasmine = true
|
16
|
+
|
17
|
+
|
12
18
|
|
13
19
|
## Versioning
|
14
20
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.6
|
data/bin/ti
CHANGED
@@ -1,20 +1,4 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require 'ti'
|
4
|
-
|
5
|
-
|
6
|
-
# Create a new project
|
7
|
-
if options.name
|
8
|
-
puts "Generating a new Ti Project named #{options.name}"
|
9
|
-
Ti::Generate::Project.create(options.name, options.device_id, (options.platform || 'iphone'))
|
10
|
-
end
|
11
|
-
|
12
|
-
|
13
|
-
if options.model
|
14
|
-
Ti::Generate::Model.create(options.model)
|
15
|
-
end
|
16
|
-
|
17
|
-
|
18
|
-
if options.view
|
19
|
-
Ti::Generate::View.create(options.view)
|
20
|
-
end
|
4
|
+
Ti::CLI.start
|
data/lib/ti.rb
CHANGED
@@ -5,18 +5,21 @@ require 'pathname'
|
|
5
5
|
require 'fileutils'
|
6
6
|
require 'colored'
|
7
7
|
require 'rocco'
|
8
|
+
require 'thor'
|
9
|
+
|
8
10
|
require 'ostruct'
|
9
11
|
|
10
12
|
module Ti
|
11
13
|
VERSION = File.read(File.join(File.dirname(__FILE__), '../VERSION')).chomp
|
12
14
|
ROOT_PATH = Pathname(__FILE__).dirname.expand_path
|
13
|
-
TITANIUM_VERSION = '1.6.
|
15
|
+
TITANIUM_VERSION = '1.6.2'
|
14
16
|
|
15
17
|
# TODO: Need to support those how have install Titanium in their $HOME dir.
|
16
18
|
|
17
19
|
OSX_TITANIUM = "/Library/Application\\ Support/Titanium/mobilesdk/osx/#{::Ti::TITANIUM_VERSION}/titanium.py"
|
18
20
|
LINUX_TITANIUM = "$HOME/.titanium/mobilesdk/linux/#{::Ti::TITANIUM_VERSION}/titanium.py"
|
19
21
|
|
22
|
+
autoload :CLI, 'ti/cli.rb'
|
20
23
|
autoload :Options, 'ti/options.rb'
|
21
24
|
autoload :ParseOptions, 'ti/parse_options.rb'
|
22
25
|
autoload :Logger, "ti/logger.rb"
|
data/lib/ti/cli.rb
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
module Ti
|
2
|
+
class CLI < Thor
|
3
|
+
|
4
|
+
STATUS_TYPES = {:success => 0,
|
5
|
+
:general_error => 1,
|
6
|
+
:not_supported => 3,
|
7
|
+
:not_found => 4,
|
8
|
+
:incorrect_usage => 64,
|
9
|
+
}
|
10
|
+
|
11
|
+
map %w(--version -v) => 'info'
|
12
|
+
desc "info", "information about Ti."
|
13
|
+
def info
|
14
|
+
say "Version #{::Ti::VERSION}"
|
15
|
+
end
|
16
|
+
|
17
|
+
desc "new <name> <id> <platform>", "generates a new Titanium project."
|
18
|
+
long_desc "Generates a new Titanium project. See 'ti help project:new' for more information.
|
19
|
+
\n\nExamples:
|
20
|
+
\n\nti new demo ==> Creates a new project with a default id (org.mycompany.demo) and sets the project platform to iphone.
|
21
|
+
\n\nti new demo com.youwantit.dontyou ==> Creates a new project 'demo' with the id of 'com.youwantit.dontyou' to be used on the iphone.
|
22
|
+
\n\nti new demo com.youwantit.dontyou ipad ==. Creates a new project 'demo' with the id 'com.youwantit.dontyou' for the ipad."
|
23
|
+
def new(name, device_id='org.mycompany.demo', platform='iphone')
|
24
|
+
::Ti::Generate::Project.create(name, device_id, platform)
|
25
|
+
end
|
26
|
+
|
27
|
+
map %w(g) => 'generate'
|
28
|
+
desc "generate <model/view> <name>", "generate a new model or view with jasmine specs."
|
29
|
+
def generate(type, name)
|
30
|
+
case
|
31
|
+
when type =~ /model/i
|
32
|
+
::Ti::Generate::Model.create(name)
|
33
|
+
when type =~ /view/i
|
34
|
+
::Ti::Generate::View.create(name)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
data/lib/ti/templates/config
CHANGED
@@ -0,0 +1,92 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
2
|
+
|
3
|
+
describe "Ti Generator Commands" do
|
4
|
+
context "Help command:" do
|
5
|
+
context "ti help" do
|
6
|
+
it "should display the basic help for the CLI" do
|
7
|
+
response, status = capture_with_status(:stdout){ Ti::CLI.start(['help']) }
|
8
|
+
status.should eql(Ti::CLI::STATUS_TYPES[:success])
|
9
|
+
end
|
10
|
+
end
|
11
|
+
context "ti help invalid_task" do
|
12
|
+
it "should display appropriate error message" do
|
13
|
+
response, status = capture_with_status(:stderr){ Ti::CLI.start(['help', 'blah']) }
|
14
|
+
response.should eql("Could not find task \"blah\".\n")
|
15
|
+
status.should eql(Ti::CLI::STATUS_TYPES[:success])
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
context "Info command:" do
|
20
|
+
context "ti info" do
|
21
|
+
it "should display the version" do
|
22
|
+
response, status = capture_with_status(:stdout){ Ti::CLI.start(['info']) }
|
23
|
+
response.should eql("Version #{::Ti::VERSION}\n")
|
24
|
+
status.should eql(Ti::CLI::STATUS_TYPES[:success])
|
25
|
+
end
|
26
|
+
end
|
27
|
+
context "ti -v (alias)" do
|
28
|
+
it "should display the version" do
|
29
|
+
response, status = capture_with_status(:stdout){ Ti::CLI.start(['-v']) }
|
30
|
+
response.should eql("Version #{::Ti::VERSION}\n")
|
31
|
+
status.should eql(Ti::CLI::STATUS_TYPES[:success])
|
32
|
+
end
|
33
|
+
end
|
34
|
+
context "ti --version (alias)" do
|
35
|
+
it "should display the version" do
|
36
|
+
response, status = capture_with_status(:stdout){ Ti::CLI.start(['--version']) }
|
37
|
+
response.should eql("Version #{::Ti::VERSION}\n")
|
38
|
+
status.should eql(Ti::CLI::STATUS_TYPES[:success])
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
context "New command: " do
|
43
|
+
context "Help (ti help new)" do
|
44
|
+
it "should display help for the task 'new'" do
|
45
|
+
response, status = capture_with_status(:stdout){ Ti::CLI.start(['help', 'new']) }
|
46
|
+
status.should eql(Ti::CLI::STATUS_TYPES[:success])
|
47
|
+
end
|
48
|
+
end
|
49
|
+
context "Generate a new project: " do
|
50
|
+
context "with defaults (ti new)" do
|
51
|
+
it "should generate new project \"HelloWorld\"" do
|
52
|
+
response, status = capture_with_status(:stdout){ Ti::CLI.start(['new']) }
|
53
|
+
response.should eql("")
|
54
|
+
status.should eql(Ti::CLI::STATUS_TYPES[:success])
|
55
|
+
end
|
56
|
+
after (:all) do
|
57
|
+
remove_directories("HelloWorld")
|
58
|
+
end
|
59
|
+
end
|
60
|
+
context "with custom name (ti new Demo)" do
|
61
|
+
it "should generate new project \"Demo\"" do
|
62
|
+
response, status = capture_with_status(:stdout){ Ti::CLI.start(['new', 'Demo']) }
|
63
|
+
response.should eql("\e[1m\e[32mCreating the tmp directory.\e[0m\e[0m\n\e[1m\e[32mRemoving README file.\e[0m\e[0m\n\e[1m\e[32mRemoving Resources directory.\e[0m\e[0m\n\e[1m\e[32mCreating the Resources directory.\e[0m\e[0m\n\e[1m\e[32mCreating the Resources/images directory.\e[0m\e[0m\n\e[1m\e[32mCreating the Resources/vendor directory.\e[0m\e[0m\n\e[1m\e[32mCreating the config directory.\e[0m\e[0m\n\e[1m\e[32mCreating the docs directory.\e[0m\e[0m\n\e[1m\e[32mCreating the app/models directory.\e[0m\e[0m\n\e[1m\e[32mCreating the app/views directory.\e[0m\e[0m\n\e[1m\e[32mCreating the app/stylesheets directory.\e[0m\e[0m\n\e[1m\e[32mCreating the specs/models directory.\e[0m\e[0m\n\e[1m\e[32mCreating the specs/views directory.\e[0m\e[0m\n\e[1m\e[32mCreating Readme.mkd file.\e[0m\e[0m\n\e[1m\e[32mCreating app/app.coffee\e[0m\e[0m\n\e[1m\e[32mCreating .gitignore\e[0m\e[0m\n\e[1m\e[32mCreating config/config.rb\e[0m\e[0m\n\e[1m\e[32mCreating Rakefile\e[0m\e[0m\n\e[1m\e[32mCreating Readme.mkd\e[0m\e[0m\n\e[1m\e[32mCreating Guardfile\e[0m\e[0m\n\e[1m\e[32mCreating specs/app_spec.coffee\e[0m\e[0m\n\e[1m\e[32mYour Titanium project is ready for you to get rockin!\e[0m\e[0m\n")
|
64
|
+
status.should eql(Ti::CLI::STATUS_TYPES[:success])
|
65
|
+
end
|
66
|
+
after (:all) do
|
67
|
+
remove_directories("Demo")
|
68
|
+
end
|
69
|
+
end
|
70
|
+
context "with custom name and id (ti new Demo com.mycompany.demo)" do
|
71
|
+
it "should generate new project \"Demo\" with id \"com.mycompany.demo\"" do
|
72
|
+
response, status = capture_with_status(:stdout){ Ti::CLI.start(['new', 'Demo', 'com.mycompany.demo']) }
|
73
|
+
response.should eql("\e[1m\e[32mCreating the tmp directory.\e[0m\e[0m\n\e[1m\e[32mRemoving README file.\e[0m\e[0m\n\e[1m\e[32mRemoving Resources directory.\e[0m\e[0m\n\e[1m\e[32mCreating the Resources directory.\e[0m\e[0m\n\e[1m\e[32mCreating the Resources/images directory.\e[0m\e[0m\n\e[1m\e[32mCreating the Resources/vendor directory.\e[0m\e[0m\n\e[1m\e[32mCreating the config directory.\e[0m\e[0m\n\e[1m\e[32mCreating the docs directory.\e[0m\e[0m\n\e[1m\e[32mCreating the app/models directory.\e[0m\e[0m\n\e[1m\e[32mCreating the app/views directory.\e[0m\e[0m\n\e[1m\e[32mCreating the app/stylesheets directory.\e[0m\e[0m\n\e[1m\e[32mCreating the specs/models directory.\e[0m\e[0m\n\e[1m\e[32mCreating the specs/views directory.\e[0m\e[0m\n\e[1m\e[32mCreating Readme.mkd file.\e[0m\e[0m\n\e[1m\e[32mCreating app/app.coffee\e[0m\e[0m\n\e[1m\e[32mCreating .gitignore\e[0m\e[0m\n\e[1m\e[32mCreating config/config.rb\e[0m\e[0m\n\e[1m\e[32mCreating Rakefile\e[0m\e[0m\n\e[1m\e[32mCreating Readme.mkd\e[0m\e[0m\n\e[1m\e[32mCreating Guardfile\e[0m\e[0m\n\e[1m\e[32mCreating specs/app_spec.coffee\e[0m\e[0m\n\e[1m\e[32mYour Titanium project is ready for you to get rockin!\e[0m\e[0m\n")
|
74
|
+
status.should eql(Ti::CLI::STATUS_TYPES[:success])
|
75
|
+
end
|
76
|
+
after (:all) do
|
77
|
+
remove_directories("Demo")
|
78
|
+
end
|
79
|
+
end
|
80
|
+
context "with custom name, id and platform (ti new Demo com.mycompany.demo ipad)" do
|
81
|
+
it "should generate new project \"Demo\" with id \"com.mycompany.demo\" and for platform \"ipad\"" do
|
82
|
+
response, status = capture_with_status(:stdout){ Ti::CLI.start(['new', 'Demo', 'com.mycompany.demo']) }
|
83
|
+
response.should eql("\e[1m\e[32mCreating the tmp directory.\e[0m\e[0m\n\e[1m\e[32mRemoving README file.\e[0m\e[0m\n\e[1m\e[32mRemoving Resources directory.\e[0m\e[0m\n\e[1m\e[32mCreating the Resources directory.\e[0m\e[0m\n\e[1m\e[32mCreating the Resources/images directory.\e[0m\e[0m\n\e[1m\e[32mCreating the Resources/vendor directory.\e[0m\e[0m\n\e[1m\e[32mCreating the config directory.\e[0m\e[0m\n\e[1m\e[32mCreating the docs directory.\e[0m\e[0m\n\e[1m\e[32mCreating the app/models directory.\e[0m\e[0m\n\e[1m\e[32mCreating the app/views directory.\e[0m\e[0m\n\e[1m\e[32mCreating the app/stylesheets directory.\e[0m\e[0m\n\e[1m\e[32mCreating the specs/models directory.\e[0m\e[0m\n\e[1m\e[32mCreating the specs/views directory.\e[0m\e[0m\n\e[1m\e[32mCreating Readme.mkd file.\e[0m\e[0m\n\e[1m\e[32mCreating app/app.coffee\e[0m\e[0m\n\e[1m\e[32mCreating .gitignore\e[0m\e[0m\n\e[1m\e[32mCreating config/config.rb\e[0m\e[0m\n\e[1m\e[32mCreating Rakefile\e[0m\e[0m\n\e[1m\e[32mCreating Readme.mkd\e[0m\e[0m\n\e[1m\e[32mCreating Guardfile\e[0m\e[0m\n\e[1m\e[32mCreating specs/app_spec.coffee\e[0m\e[0m\n\e[1m\e[32mYour Titanium project is ready for you to get rockin!\e[0m\e[0m\n")
|
84
|
+
status.should eql(Ti::CLI::STATUS_TYPES[:success])
|
85
|
+
end
|
86
|
+
after (:all) do
|
87
|
+
remove_directories("Demo")
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib', 'ti'))
|
2
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
|
+
require 'rspec'
|
4
|
+
require 'ti'
|
5
|
+
|
6
|
+
RSpec.configure do |config|
|
7
|
+
|
8
|
+
def capture_with_status(stream)
|
9
|
+
exit_status = 0
|
10
|
+
begin
|
11
|
+
stream = stream.to_s
|
12
|
+
eval "$#{stream} = StringIO.new"
|
13
|
+
begin
|
14
|
+
yield
|
15
|
+
rescue SystemExit => system_exit # catch any exit calls
|
16
|
+
exit_status = system_exit.status
|
17
|
+
end
|
18
|
+
result = eval("$#{stream}").string
|
19
|
+
ensure
|
20
|
+
eval("$#{stream} = #{stream.upcase}")
|
21
|
+
end
|
22
|
+
return result, exit_status
|
23
|
+
end
|
24
|
+
|
25
|
+
def remove_directories(*names)
|
26
|
+
project_dir = Pathname.new(Dir.pwd)
|
27
|
+
names.each do |name|
|
28
|
+
FileUtils.rm_rf(project_dir.join(name)) if FileTest.exists?(project_dir.join(name))
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
data/ti.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ti}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Robert R Evans", "Julius Francisco", "Wynn Netherland"]
|
12
|
-
s.date = %q{2011-
|
11
|
+
s.authors = ["Robert R Evans", "Julius Francisco", "Wynn Netherland", "Rupak Ganguly"]
|
12
|
+
s.date = %q{2011-05-03}
|
13
13
|
s.description = %q{Titanium Project Generator}
|
14
14
|
s.email = %q{robert@codewranglers.org}
|
15
15
|
s.executables = ["ti"]
|
@@ -22,6 +22,7 @@ Gem::Specification.new do |s|
|
|
22
22
|
".rvmrc",
|
23
23
|
"Gemfile",
|
24
24
|
"Gemfile.lock",
|
25
|
+
"Guardfile",
|
25
26
|
"LICENSE.txt",
|
26
27
|
"README.rdoc",
|
27
28
|
"Rakefile",
|
@@ -29,6 +30,7 @@ Gem::Specification.new do |s|
|
|
29
30
|
"VERSION",
|
30
31
|
"bin/ti",
|
31
32
|
"lib/ti.rb",
|
33
|
+
"lib/ti/cli.rb",
|
32
34
|
"lib/ti/generate/model.rb",
|
33
35
|
"lib/ti/generate/project.rb",
|
34
36
|
"lib/ti/generate/view.rb",
|
@@ -43,8 +45,8 @@ Gem::Specification.new do |s|
|
|
43
45
|
"lib/ti/templates/readme",
|
44
46
|
"lib/ti/templates/specs/app_spec.coffee",
|
45
47
|
"lib/ti/utils.rb",
|
46
|
-
"
|
47
|
-
"
|
48
|
+
"spec/cli/command_spec.rb",
|
49
|
+
"spec/spec_helper.rb",
|
48
50
|
"ti.gemspec"
|
49
51
|
]
|
50
52
|
s.homepage = %q{http://github.com/revans/ti}
|
@@ -53,8 +55,8 @@ Gem::Specification.new do |s|
|
|
53
55
|
s.rubygems_version = %q{1.7.2}
|
54
56
|
s.summary = %q{Ti}
|
55
57
|
s.test_files = [
|
56
|
-
"
|
57
|
-
"
|
58
|
+
"spec/cli/command_spec.rb",
|
59
|
+
"spec/spec_helper.rb"
|
58
60
|
]
|
59
61
|
|
60
62
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
@@ -1,21 +1,22 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ti
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Robert R Evans
|
9
9
|
- Julius Francisco
|
10
10
|
- Wynn Netherland
|
11
|
+
- Rupak Ganguly
|
11
12
|
autorequire:
|
12
13
|
bindir: bin
|
13
14
|
cert_chain: []
|
14
|
-
date: 2011-
|
15
|
+
date: 2011-05-03 00:00:00.000000000Z
|
15
16
|
dependencies:
|
16
17
|
- !ruby/object:Gem::Dependency
|
17
18
|
name: sass
|
18
|
-
requirement: &
|
19
|
+
requirement: &2153713780 !ruby/object:Gem::Requirement
|
19
20
|
none: false
|
20
21
|
requirements:
|
21
22
|
- - ~>
|
@@ -23,10 +24,10 @@ dependencies:
|
|
23
24
|
version: 3.1.1
|
24
25
|
type: :runtime
|
25
26
|
prerelease: false
|
26
|
-
version_requirements: *
|
27
|
+
version_requirements: *2153713780
|
27
28
|
- !ruby/object:Gem::Dependency
|
28
29
|
name: guard-sass
|
29
|
-
requirement: &
|
30
|
+
requirement: &2153713180 !ruby/object:Gem::Requirement
|
30
31
|
none: false
|
31
32
|
requirements:
|
32
33
|
- - ! '>='
|
@@ -34,10 +35,10 @@ dependencies:
|
|
34
35
|
version: '0'
|
35
36
|
type: :runtime
|
36
37
|
prerelease: false
|
37
|
-
version_requirements: *
|
38
|
+
version_requirements: *2153713180
|
38
39
|
- !ruby/object:Gem::Dependency
|
39
40
|
name: guard
|
40
|
-
requirement: &
|
41
|
+
requirement: &2153712580 !ruby/object:Gem::Requirement
|
41
42
|
none: false
|
42
43
|
requirements:
|
43
44
|
- - ~>
|
@@ -45,10 +46,10 @@ dependencies:
|
|
45
46
|
version: 0.3.4
|
46
47
|
type: :runtime
|
47
48
|
prerelease: false
|
48
|
-
version_requirements: *
|
49
|
+
version_requirements: *2153712580
|
49
50
|
- !ruby/object:Gem::Dependency
|
50
51
|
name: guard-coffeescript
|
51
|
-
requirement: &
|
52
|
+
requirement: &2153711980 !ruby/object:Gem::Requirement
|
52
53
|
none: false
|
53
54
|
requirements:
|
54
55
|
- - ~>
|
@@ -56,10 +57,10 @@ dependencies:
|
|
56
57
|
version: 0.2.0
|
57
58
|
type: :runtime
|
58
59
|
prerelease: false
|
59
|
-
version_requirements: *
|
60
|
+
version_requirements: *2153711980
|
60
61
|
- !ruby/object:Gem::Dependency
|
61
62
|
name: guard-livereload
|
62
|
-
requirement: &
|
63
|
+
requirement: &2153711440 !ruby/object:Gem::Requirement
|
63
64
|
none: false
|
64
65
|
requirements:
|
65
66
|
- - ~>
|
@@ -67,10 +68,10 @@ dependencies:
|
|
67
68
|
version: 0.1.10
|
68
69
|
type: :runtime
|
69
70
|
prerelease: false
|
70
|
-
version_requirements: *
|
71
|
+
version_requirements: *2153711440
|
71
72
|
- !ruby/object:Gem::Dependency
|
72
73
|
name: jasmine
|
73
|
-
requirement: &
|
74
|
+
requirement: &2153690880 !ruby/object:Gem::Requirement
|
74
75
|
none: false
|
75
76
|
requirements:
|
76
77
|
- - ~>
|
@@ -78,10 +79,10 @@ dependencies:
|
|
78
79
|
version: 1.0.2.0
|
79
80
|
type: :runtime
|
80
81
|
prerelease: false
|
81
|
-
version_requirements: *
|
82
|
+
version_requirements: *2153690880
|
82
83
|
- !ruby/object:Gem::Dependency
|
83
84
|
name: coffee-script
|
84
|
-
requirement: &
|
85
|
+
requirement: &2153690280 !ruby/object:Gem::Requirement
|
85
86
|
none: false
|
86
87
|
requirements:
|
87
88
|
- - ~>
|
@@ -89,10 +90,10 @@ dependencies:
|
|
89
90
|
version: 2.2.0
|
90
91
|
type: :runtime
|
91
92
|
prerelease: false
|
92
|
-
version_requirements: *
|
93
|
+
version_requirements: *2153690280
|
93
94
|
- !ruby/object:Gem::Dependency
|
94
95
|
name: colored
|
95
|
-
requirement: &
|
96
|
+
requirement: &2153689640 !ruby/object:Gem::Requirement
|
96
97
|
none: false
|
97
98
|
requirements:
|
98
99
|
- - ~>
|
@@ -100,10 +101,10 @@ dependencies:
|
|
100
101
|
version: '1.2'
|
101
102
|
type: :runtime
|
102
103
|
prerelease: false
|
103
|
-
version_requirements: *
|
104
|
+
version_requirements: *2153689640
|
104
105
|
- !ruby/object:Gem::Dependency
|
105
106
|
name: rocco
|
106
|
-
requirement: &
|
107
|
+
requirement: &2153689000 !ruby/object:Gem::Requirement
|
107
108
|
none: false
|
108
109
|
requirements:
|
109
110
|
- - ~>
|
@@ -111,10 +112,10 @@ dependencies:
|
|
111
112
|
version: '0.6'
|
112
113
|
type: :runtime
|
113
114
|
prerelease: false
|
114
|
-
version_requirements: *
|
115
|
+
version_requirements: *2153689000
|
115
116
|
- !ruby/object:Gem::Dependency
|
116
117
|
name: rake
|
117
|
-
requirement: &
|
118
|
+
requirement: &2153688400 !ruby/object:Gem::Requirement
|
118
119
|
none: false
|
119
120
|
requirements:
|
120
121
|
- - ~>
|
@@ -122,10 +123,10 @@ dependencies:
|
|
122
123
|
version: 0.8.7
|
123
124
|
type: :runtime
|
124
125
|
prerelease: false
|
125
|
-
version_requirements: *
|
126
|
+
version_requirements: *2153688400
|
126
127
|
- !ruby/object:Gem::Dependency
|
127
128
|
name: bundler
|
128
|
-
requirement: &
|
129
|
+
requirement: &2153687800 !ruby/object:Gem::Requirement
|
129
130
|
none: false
|
130
131
|
requirements:
|
131
132
|
- - ~>
|
@@ -133,10 +134,10 @@ dependencies:
|
|
133
134
|
version: 1.0.10
|
134
135
|
type: :development
|
135
136
|
prerelease: false
|
136
|
-
version_requirements: *
|
137
|
+
version_requirements: *2153687800
|
137
138
|
- !ruby/object:Gem::Dependency
|
138
139
|
name: jeweler
|
139
|
-
requirement: &
|
140
|
+
requirement: &2153687200 !ruby/object:Gem::Requirement
|
140
141
|
none: false
|
141
142
|
requirements:
|
142
143
|
- - ~>
|
@@ -144,10 +145,10 @@ dependencies:
|
|
144
145
|
version: 1.5.2
|
145
146
|
type: :development
|
146
147
|
prerelease: false
|
147
|
-
version_requirements: *
|
148
|
+
version_requirements: *2153687200
|
148
149
|
- !ruby/object:Gem::Dependency
|
149
150
|
name: rspec
|
150
|
-
requirement: &
|
151
|
+
requirement: &2153686600 !ruby/object:Gem::Requirement
|
151
152
|
none: false
|
152
153
|
requirements:
|
153
154
|
- - ~>
|
@@ -155,7 +156,7 @@ dependencies:
|
|
155
156
|
version: 2.5.0
|
156
157
|
type: :development
|
157
158
|
prerelease: false
|
158
|
-
version_requirements: *
|
159
|
+
version_requirements: *2153686600
|
159
160
|
description: Titanium Project Generator
|
160
161
|
email: robert@codewranglers.org
|
161
162
|
executables:
|
@@ -169,6 +170,7 @@ files:
|
|
169
170
|
- .rvmrc
|
170
171
|
- Gemfile
|
171
172
|
- Gemfile.lock
|
173
|
+
- Guardfile
|
172
174
|
- LICENSE.txt
|
173
175
|
- README.rdoc
|
174
176
|
- Rakefile
|
@@ -176,6 +178,7 @@ files:
|
|
176
178
|
- VERSION
|
177
179
|
- bin/ti
|
178
180
|
- lib/ti.rb
|
181
|
+
- lib/ti/cli.rb
|
179
182
|
- lib/ti/generate/model.rb
|
180
183
|
- lib/ti/generate/project.rb
|
181
184
|
- lib/ti/generate/view.rb
|
@@ -190,8 +193,8 @@ files:
|
|
190
193
|
- lib/ti/templates/readme
|
191
194
|
- lib/ti/templates/specs/app_spec.coffee
|
192
195
|
- lib/ti/utils.rb
|
193
|
-
-
|
194
|
-
-
|
196
|
+
- spec/cli/command_spec.rb
|
197
|
+
- spec/spec_helper.rb
|
195
198
|
- ti.gemspec
|
196
199
|
homepage: http://github.com/revans/ti
|
197
200
|
licenses:
|
@@ -208,7 +211,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
208
211
|
version: '0'
|
209
212
|
segments:
|
210
213
|
- 0
|
211
|
-
hash:
|
214
|
+
hash: 3627978724793494530
|
212
215
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
213
216
|
none: false
|
214
217
|
requirements:
|
@@ -222,5 +225,5 @@ signing_key:
|
|
222
225
|
specification_version: 3
|
223
226
|
summary: Ti
|
224
227
|
test_files:
|
225
|
-
-
|
226
|
-
-
|
228
|
+
- spec/cli/command_spec.rb
|
229
|
+
- spec/spec_helper.rb
|
data/test/helper.rb
DELETED
@@ -1,17 +0,0 @@
|
|
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
|
-
|
12
|
-
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
13
|
-
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
14
|
-
require 'ti'
|
15
|
-
|
16
|
-
class Test::Unit::TestCase
|
17
|
-
end
|