sprout 0.7.157-x86-linux → 0.7.159-x86-linux
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sprout.rb +1 -0
- data/lib/sprout/project_model.rb +14 -2
- data/lib/sprout/version.rb +1 -1
- data/rakefile.rb +1 -1
- metadata +2 -1
data/lib/sprout.rb
CHANGED
data/lib/sprout/project_model.rb
CHANGED
@@ -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
|
data/lib/sprout/version.rb
CHANGED
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.
|
4
|
+
version: 0.7.159
|
5
5
|
platform: x86-linux
|
6
6
|
authors:
|
7
7
|
- Luke Bayes
|
@@ -70,6 +70,7 @@ files:
|
|
70
70
|
- doc
|
71
71
|
- lib
|
72
72
|
- MIT-LICENSE
|
73
|
+
- pkg
|
73
74
|
- rakefile.rb
|
74
75
|
- samples
|
75
76
|
- script
|