sprout 0.7.159-darwin → 0.7.162-darwin
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sprout might be problematic. Click here for more details.
- data/lib/sprout.rb +0 -1
- data/lib/sprout/project_model.rb +29 -18
- data/lib/sprout/version.rb +1 -1
- metadata +2 -2
data/lib/sprout.rb
CHANGED
data/lib/sprout/project_model.rb
CHANGED
@@ -8,36 +8,46 @@ module Sprout
|
|
8
8
|
#
|
9
9
|
# This class should have some reasonable default values, but can be modified from any rakefile.
|
10
10
|
# If you don't find some properties that you'd like on the ProjectModel, you can simply add
|
11
|
-
# new properties and use them however you wish
|
11
|
+
# new properties and use them however you wish. To Monkey Patch the ProjectModel, just add something
|
12
|
+
# like the following to any Rakefile before the model is used.
|
13
|
+
#
|
14
|
+
# class Sprout::ProjectModel < Hash
|
15
|
+
# # The new_param is now available at model.new_param
|
16
|
+
# attr_accessor :new_param
|
17
|
+
# end
|
18
|
+
#
|
12
19
|
class ProjectModel < Hash
|
13
20
|
|
14
|
-
#
|
15
|
-
attr_accessor :
|
16
|
-
# The
|
17
|
-
attr_accessor :
|
21
|
+
# Relative path to the folder where compile time assets will be stored
|
22
|
+
attr_accessor :asset_dir
|
23
|
+
# The folder where binary files will be created. Usually this is where any build artifacts like SWF files get placed.
|
24
|
+
attr_accessor :bin_dir
|
25
|
+
# The technology language that is being used, right now this is either 'as2' or 'as3'.
|
26
|
+
# Code generators take advantage of this setting to determine which templates to use.
|
27
|
+
attr_accessor :language
|
18
28
|
# The relative path to your library directory. Defaults to 'lib'
|
19
29
|
#
|
20
30
|
# Any remote .SWC and source libraries that are referenced in your rakefile will be installed
|
21
31
|
# into this directory. Source libraries will be placed in a folder that matches the library name,
|
22
32
|
# while SWCs will be simply placed directly into the lib_dir.
|
23
33
|
attr_accessor :lib_dir
|
24
|
-
# The folder where binary files will be created. Usually this is where any build artifacts like SWF files get placed.
|
25
|
-
attr_accessor :bin_dir
|
26
|
-
# Relative path to the folder that contains your test cases
|
27
|
-
attr_accessor :test_dir
|
28
|
-
# Relative path to the folder where compile time assets will be stored
|
29
|
-
attr_accessor :asset_dir
|
30
|
-
# The folder where compile time skins can be loaded from
|
31
|
-
attr_accessor :skin_dir
|
32
|
-
# The technology language that is being used, right now this is either 'as2' or 'as3'.
|
33
|
-
# Code generators take advantage of this setting to determine which templates to use.
|
34
|
-
attr_accessor :language
|
35
34
|
# The production file that this Project will generate
|
36
35
|
attr_accessor :output
|
37
|
-
# The
|
38
|
-
attr_accessor :
|
36
|
+
# The real name of the project, usually capitalized like a class name 'SomeProject'
|
37
|
+
attr_accessor :project_name
|
38
|
+
# The folder where compile time skins can be loaded from
|
39
|
+
attr_accessor :skin_dir
|
39
40
|
# The skin file that will be generated
|
40
41
|
attr_accessor :skin_output
|
42
|
+
# The relative path to your main source directory. Defaults to 'src'
|
43
|
+
attr_accessor :src_dir
|
44
|
+
# The relative path to the directory where swc files should be kept.
|
45
|
+
# This value defaults to lib_dir
|
46
|
+
attr_accessor :swc_dir
|
47
|
+
# Relative path to the folder that contains your test cases
|
48
|
+
attr_accessor :test_dir
|
49
|
+
# The test executable
|
50
|
+
attr_accessor :test_output
|
41
51
|
|
42
52
|
# TODO: Add clean hash interface so that users
|
43
53
|
# can simply add to this object's properties like:
|
@@ -63,6 +73,7 @@ module Sprout
|
|
63
73
|
@project_name = ''
|
64
74
|
@src_dir = 'src'
|
65
75
|
@lib_dir = 'lib'
|
76
|
+
@swc_dir = 'lib'
|
66
77
|
@bin_dir = 'bin'
|
67
78
|
@test_dir = 'test'
|
68
79
|
@asset_dir = 'assets'
|
data/lib/sprout/version.rb
CHANGED
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.162
|
5
5
|
platform: darwin
|
6
6
|
authors:
|
7
7
|
- Luke Bayes
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-02-
|
12
|
+
date: 2008-02-18 00:00:00 -08:00
|
13
13
|
default_executable: sprout
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|