tidyflash 0.1.1 → 0.1.2
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/Manifest +1 -0
- data/Rakefile +1 -1
- data/lib/tidy_project.rb +7 -7
- data/templates/project/rakefile.rb +1 -0
- data/tidyflash.gemspec +1 -1
- metadata +2 -2
data/Manifest
CHANGED
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('tidyflash', '0.1.
|
5
|
+
Echoe.new('tidyflash', '0.1.2') do |p|
|
6
6
|
p.description = "Tidy Flash - an ActionScript framework for people who love Ruby"
|
7
7
|
p.url = "http://github.com/michaelforrest/tidy"
|
8
8
|
p.author = "Michael Forrest"
|
data/lib/tidy_project.rb
CHANGED
@@ -6,20 +6,20 @@ class TidyProject
|
|
6
6
|
|
7
7
|
|
8
8
|
def initialize(project_name)
|
9
|
-
@project_dir = project_name
|
10
|
-
raise "Project already exists" if File.exists? project_name
|
11
|
-
FileUtils.mkdir_p(project_name)
|
12
|
-
Dir.chdir(@project_dir) do
|
13
|
-
Tidy::Generate.new(:template_id=>'project', :args=>[project_name])
|
14
|
-
end
|
15
9
|
unless File.exists?(File.expand_path("~/.tidy/tidy-as3"))
|
16
10
|
puts "You don't have the tidy as3 libs installed. Attempting to pull them from github..."
|
17
|
-
command = "git clone git
|
11
|
+
command = "git clone git://github.com/michaelforrest/tidy.git ~/.tidy/tidy-as3"
|
18
12
|
puts command
|
19
13
|
stdin, stdout, stderr = Open3.popen3(command)
|
20
14
|
puts "#{stdout.read}\n#{stderr.read}"
|
21
15
|
|
22
16
|
end
|
17
|
+
@project_dir = project_name
|
18
|
+
raise "Project already exists" if File.exists? project_name
|
19
|
+
FileUtils.mkdir_p(project_name)
|
20
|
+
Dir.chdir(@project_dir) do
|
21
|
+
Tidy::Generate.new(:template_id=>'project', :args=>[project_name])
|
22
|
+
end
|
23
23
|
end
|
24
24
|
|
25
25
|
|
data/tidyflash.gemspec
CHANGED