asproject 0.1.32 → 0.1.33

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.
@@ -1,6 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'rubygems'
4
+ require 'asproject'
5
+
4
6
  version = "> 0"
5
7
 
6
8
  if ARGV.size > 0 && ARGV[0][0]==95 && ARGV[0][-1]==95
@@ -1,7 +1,5 @@
1
1
  $:.push(File.dirname(__FILE__))
2
2
 
3
- #require 'rake'
4
- require 'asproject'
5
3
  require 'asclass_arguments'
6
4
  require 'test_suite_generator'
7
5
 
@@ -5,14 +5,10 @@ module AsProject
5
5
  # ProjectArguments
6
6
  class AsClassArguments < Hash
7
7
  attr_accessor :execution_dir,
8
- :name,
9
8
  :mxml,
10
9
  :component,
11
10
  :force,
12
- :build_test_case,
13
- :build_test_suites,
14
- :display_object,
15
- :template,
11
+ :display_object
16
12
  @@TEMPLATE_TYPE = 'asclass'
17
13
 
18
14
  def initialize(dir=nil)
@@ -16,6 +16,7 @@ require 'path_finder'
16
16
  require 'project'
17
17
  require 'eclipse_project'
18
18
  require 'asproject_arguments'
19
+ require 'asclass'
19
20
 
20
21
  module AsProject
21
22
  class AsProject < AsProjectBase
@@ -2,7 +2,7 @@ module AsProject
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 32
5
+ TINY = 33
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -4,9 +4,9 @@ module AsProject
4
4
  #######################################
5
5
  # ProjectArguments
6
6
  class ProjectArguments < Hash
7
- attr_accessor :path_finder, :selected_templates, :execution_dir,
8
- :default_templates, :default_home_templates, :project_templates,
9
- :copy_to_home, :copy_to_project, :project_name, :verbose,
7
+ attr_accessor :path_finder,
8
+ :execution_dir,
9
+ :project_templates,
10
10
  :should_create
11
11
 
12
12
  def initialize
@@ -142,7 +142,7 @@ EOF
142
142
  end
143
143
  end
144
144
  if(self[:selected_templates].size == 0)
145
- self[:selected_templates] = @default_templates
145
+ self[:selected_templates] = self[:default_templates]
146
146
  end
147
147
  verify_templates(self[:selected_templates])
148
148
  end
@@ -182,10 +182,18 @@ EOF
182
182
  return self[:project_name]
183
183
  end
184
184
 
185
+ def selected_templates=(templates)
186
+ self[:selected_templates] = templates
187
+ end
188
+
185
189
  def selected_templates
186
190
  return self[:selected_templates]
187
191
  end
188
192
 
193
+ def default_templates=(templates)
194
+ self[:default_templates] = templates
195
+ end
196
+
189
197
  def default_templates
190
198
  return self[:default_templates]
191
199
  end
@@ -2,11 +2,7 @@
2
2
  module AsProject
3
3
 
4
4
  class Project < PathFinder
5
- attr_accessor :source_dir,
6
- :test_dir,
7
- :library_dir,
8
- :binary_dir,
9
- :class_path,
5
+ attr_accessor :class_path,
10
6
  :project_name,
11
7
  :project_path,
12
8
  :default_templates,
@@ -1,6 +1,4 @@
1
1
 
2
- require 'erb'
3
-
4
2
  module AsProject
5
3
  class TestSuiteGenerator
6
4
  attr_accessor :test_suites, :created_files
@@ -18,6 +16,7 @@ module AsProject
18
16
  end
19
17
 
20
18
  def finish
19
+ puts ''
21
20
  puts '>> TestSuites rebuilt from: '
22
21
  puts Dir.pwd
23
22
  end
@@ -7,8 +7,7 @@ require 'rake/gempackagetask'
7
7
  require 'rake/rdoctask'
8
8
  require 'rake/contrib/rubyforgepublisher'
9
9
  require 'fileutils'
10
-
11
- require File.join(File.dirname(__FILE__), 'lib', 'asproject', 'version')
10
+ require 'lib/asproject/version'
12
11
 
13
12
  AUTHOR = "lukebayes" # can also be an array of Authors
14
13
  EMAIL = "lbayes@patternpark.com"
@@ -106,7 +105,7 @@ task :release => [:release_confirmation, :package, :increment_revision] do
106
105
  end
107
106
 
108
107
  system("svn commit -m 'Created release #{VERS}'")
109
- system("svn copy -m 'Created tag for release #{VERS}' https://dev.patternpark.com/svn/patternpark/asproject/trunk https://dev.patternpark.com/svn/patternpark/asproject/tags/#{VERS}")
108
+ system("svn copy -m 'Created tag for release #{VERS}' https://asproject.googlecode.com/svn/trunk/ https://asproject.googlecode.com/svn/tags/#{VERS}")
110
109
  end
111
110
 
112
111
  desc "Increment the release revision"
@@ -12,7 +12,7 @@
12
12
  # rake test SomeClass / Run only the specified TestCase
13
13
  # rake test SomeClass.testSomeMethod / Run only the specified TestCase and test method
14
14
 
15
- require_gem 'asproject'
16
- load 'asproject'
15
+ #require_gem 'asproject'
16
+ #load 'asproject'
17
17
 
18
- load_rake_tasks
18
+ #load_rake_tasks
@@ -12,7 +12,7 @@
12
12
  # rake test SomeClass / Run only the specified TestCase
13
13
  # rake test SomeClass.testSomeMethod / Run only the specified TestCase and test method
14
14
 
15
- require_gem 'asproject'
16
- load 'asproject'
15
+ #require_gem 'asproject'
16
+ #load 'asproject'
17
17
 
18
- load_rake_tasks
18
+ #load_rake_tasks
@@ -2,6 +2,7 @@ import asunit.framework.Assert;
2
2
  import asunit.framework.Test;
3
3
  import asunit.framework.TestResult;
4
4
  import asunit.errors.AssertionFailedError;
5
+ import asunit.errors.AssertionPassedError;
5
6
 
6
7
  class asunit.framework.TestCase extends Assert implements Test {
7
8
  private var className:String = "[default]";
@@ -110,7 +111,7 @@ class asunit.framework.TestCase extends Assert implements Test {
110
111
  if(e instanceof AssertionFailedError) {
111
112
  result.addFailure(this, AssertionFailedError(e));
112
113
  }
113
- else {
114
+ else if(!(e instanceof AssertionPassedError)) {
114
115
  result.addError(this, e);
115
116
  }
116
117
  }
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: asproject
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.32
7
- date: 2007-02-27 00:00:00 -08:00
6
+ version: 0.1.33
7
+ date: 2007-02-28 00:00:00 -08:00
8
8
  summary: AsProject is a tool set that simplifies the process of beginning and growing a new ActionScript project.
9
9
  require_paths:
10
10
  - lib
@@ -35,6 +35,7 @@ files:
35
35
  - lib
36
36
  - Manifest.txt
37
37
  - MIT-LICENSE.txt
38
+ - pkg
38
39
  - rakefile.rb
39
40
  - README.txt
40
41
  - setup.rb
@@ -55,7 +56,6 @@ files:
55
56
  - lib/platform.rb
56
57
  - lib/player_fetcher.rb
57
58
  - lib/project.rb
58
- - lib/tasks
59
59
  - lib/template_resolver.rb
60
60
  - lib/test_suite_generator.rb
61
61
  - lib/asproject/version.rb