sprout 0.7.157-darwin → 0.7.159-darwin

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,6 +32,12 @@ module Sprout
32
32
  # The technology language that is being used, right now this is either 'as2' or 'as3'.
33
33
  # Code generators take advantage of this setting to determine which templates to use.
34
34
  attr_accessor :language
35
+ # The production file that this Project will generate
36
+ attr_accessor :output
37
+ # The test executable
38
+ attr_accessor :test_output
39
+ # The skin file that will be generated
40
+ attr_accessor :skin_output
35
41
 
36
42
  # TODO: Add clean hash interface so that users
37
43
  # can simply add to this object's properties like:
@@ -46,7 +52,12 @@ module Sprout
46
52
  def self.destroy # :nodoc:
47
53
  @@instance = nil
48
54
  end
49
-
55
+
56
+ # Patch submitted by Thomas Winkler
57
+ def self.setup(&block)
58
+ yield instance
59
+ end
60
+
50
61
  def initialize
51
62
  super
52
63
  @project_name = ''
@@ -72,7 +83,7 @@ module Sprout
72
83
  def model_dir=(dir)
73
84
  @model_dir = dir
74
85
  end
75
-
86
+
76
87
  # Simple MVC helper for project-wide models if your project is called 'SomeProject'
77
88
  # this will default to:
78
89
  # SomeProject/src/someproject/models
@@ -110,5 +121,6 @@ module Sprout
110
121
  end
111
122
  return @controller_dir
112
123
  end
124
+
113
125
  end
114
126
  end
@@ -2,7 +2,7 @@ module Sprout
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 7
5
- TINY = 157
5
+ TINY = 159
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  MAJOR_MINOR = [MAJOR, MINOR].join('.')
data/lib/sprout.rb CHANGED
@@ -2,6 +2,7 @@ require 'rubygems'
2
2
  require 'archive/tar/minitar'
3
3
  require 'rake'
4
4
  require 'rake/clean'
5
+ require 'open-uri'
5
6
 
6
7
  $:.push(File.dirname(__FILE__))
7
8
  require 'progress_bar'
data/rakefile.rb CHANGED
@@ -63,7 +63,7 @@ osx_spec = Gem::Specification.new do |s|
63
63
  apply_shared_spec(s)
64
64
  s.platform = 'darwin'
65
65
  # Add osx-specific dependencies here
66
- s.add_dependency('rb-appscript', '>= 0.5.0')
66
+ #s.add_dependency('rb-appscript', '>= 0.5.0')
67
67
  s.add_dependency('open4', '>= 0.9.6')
68
68
  end
69
69
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.157
4
+ version: 0.7.159
5
5
  platform: darwin
6
6
  authors:
7
7
  - Luke Bayes
@@ -48,15 +48,6 @@ dependencies:
48
48
  - !ruby/object:Gem::Version
49
49
  version: 0.0.0
50
50
  version:
51
- - !ruby/object:Gem::Dependency
52
- name: rb-appscript
53
- version_requirement:
54
- version_requirements: !ruby/object:Gem::Requirement
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- version: 0.5.0
59
- version:
60
51
  - !ruby/object:Gem::Dependency
61
52
  name: open4
62
53
  version_requirement:
@@ -79,6 +70,7 @@ files:
79
70
  - doc
80
71
  - lib
81
72
  - MIT-LICENSE
73
+ - pkg
82
74
  - rakefile.rb
83
75
  - samples
84
76
  - script