architecture-js 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc +1 -0
- data/AUTHORS +1 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +2 -2
- data/README.md +3 -3
- data/VERSION +1 -1
- data/architecture-js.gemspec +8 -6
- data/lib/architecture-js/architect.rb +18 -9
- metadata +71 -24
data/.rvmrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rvm use 1.9.2-p290@arcjs --create
|
data/AUTHORS
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Dayton Nolan
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -12,7 +12,7 @@ GEM
|
|
12
12
|
rake
|
13
13
|
rdoc
|
14
14
|
jsmin (1.0.1)
|
15
|
-
json (1.6.
|
15
|
+
json (1.6.6)
|
16
16
|
multi_json (1.0.4)
|
17
17
|
rake (0.9.2.2)
|
18
18
|
rdoc (3.12)
|
@@ -36,7 +36,7 @@ PLATFORMS
|
|
36
36
|
DEPENDENCIES
|
37
37
|
ZenTest (~> 4.6.2)
|
38
38
|
autotest-growl (~> 0.2.16)
|
39
|
-
bundler
|
39
|
+
bundler
|
40
40
|
fssm (~> 0.2.8.1)
|
41
41
|
jeweler (~> 1.8.3)
|
42
42
|
jsmin (~> 1.0.1)
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ ArchitectureJS is a suite of tools to help you build and manage complex javascri
|
|
7
7
|
* JavaScript Compiler (Sprockets 1.0.2)
|
8
8
|
* JavaScript Compression (JSMin)
|
9
9
|
* Scaffold generation using editable templates
|
10
|
-
* Custom local JavaScript package management
|
10
|
+
* Custom local JavaScript package management _(not yet implemented)_
|
11
11
|
* Realtime file monitoring utility to compile your application while you code
|
12
12
|
|
13
13
|
## Installation
|
@@ -24,7 +24,7 @@ ArchitectureJS comes with a small command line utility named `architect` to mana
|
|
24
24
|
|
25
25
|
architect -h
|
26
26
|
|
27
|
-
If `architect` is installed correctly, this command will display the help menu. You will see there are only a few simple commands: create, compile, watch, and generate
|
27
|
+
If `architect` is installed correctly, this command will display the help menu. You will see there are only a few simple commands: create, compile, watch, and generate. These commands are all you need to manage complex javascript applications and frameworks.
|
28
28
|
|
29
29
|
To create an architect application use the create command (where "myapp" is the name of _your_ application)
|
30
30
|
|
@@ -210,7 +210,7 @@ Which generates:
|
|
210
210
|
})();
|
211
211
|
```
|
212
212
|
|
213
|
-
This is a
|
213
|
+
This is obviously a contrived but not wholly unrealistic example of how you can use the architect template generator. Some blueprints contain default templates of their own which are available without the presence of a `/templates` folder. These templates should be documented by the blueprint's authors.
|
214
214
|
|
215
215
|
## Package Management
|
216
216
|
_(Not Yet Implemented)_
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.4
|
data/architecture-js.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "architecture-js"
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Dayton Nolan"]
|
12
|
-
s.date = "2012-
|
12
|
+
s.date = "2012-04-13"
|
13
13
|
s.description = "Architecture.js helps you generate scaffolding, manage third-party packages, compile, and compress your application."
|
14
14
|
s.email = "daytonn@gmail.com"
|
15
15
|
s.executables = ["architect"]
|
@@ -20,7 +20,9 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.files = [
|
21
21
|
".DS_Store",
|
22
22
|
".document",
|
23
|
+
".rvmrc",
|
23
24
|
".travis.yml",
|
25
|
+
"AUTHORS",
|
24
26
|
"Gemfile",
|
25
27
|
"Gemfile.lock",
|
26
28
|
"HELP",
|
@@ -112,7 +114,7 @@ Gem::Specification.new do |s|
|
|
112
114
|
s.homepage = "https://github.com/daytonn/architecture-js"
|
113
115
|
s.licenses = ["MIT"]
|
114
116
|
s.require_paths = ["lib"]
|
115
|
-
s.rubygems_version = "1.8.
|
117
|
+
s.rubygems_version = "1.8.21"
|
116
118
|
s.summary = "architecture.js is a command line application to dynamically build and manage complex javascript applications."
|
117
119
|
|
118
120
|
if s.respond_to? :specification_version then
|
@@ -122,7 +124,7 @@ Gem::Specification.new do |s|
|
|
122
124
|
s.add_runtime_dependency(%q<fssm>, ["~> 0.2.8.1"])
|
123
125
|
s.add_runtime_dependency(%q<jsmin>, ["~> 1.0.1"])
|
124
126
|
s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
|
125
|
-
s.add_development_dependency(%q<bundler>, ["
|
127
|
+
s.add_development_dependency(%q<bundler>, [">= 0"])
|
126
128
|
s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
|
127
129
|
s.add_development_dependency(%q<ZenTest>, ["~> 4.6.2"])
|
128
130
|
s.add_development_dependency(%q<autotest-growl>, ["~> 0.2.16"])
|
@@ -132,7 +134,7 @@ Gem::Specification.new do |s|
|
|
132
134
|
s.add_dependency(%q<fssm>, ["~> 0.2.8.1"])
|
133
135
|
s.add_dependency(%q<jsmin>, ["~> 1.0.1"])
|
134
136
|
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
135
|
-
s.add_dependency(%q<bundler>, ["
|
137
|
+
s.add_dependency(%q<bundler>, [">= 0"])
|
136
138
|
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
137
139
|
s.add_dependency(%q<ZenTest>, ["~> 4.6.2"])
|
138
140
|
s.add_dependency(%q<autotest-growl>, ["~> 0.2.16"])
|
@@ -143,7 +145,7 @@ Gem::Specification.new do |s|
|
|
143
145
|
s.add_dependency(%q<fssm>, ["~> 0.2.8.1"])
|
144
146
|
s.add_dependency(%q<jsmin>, ["~> 1.0.1"])
|
145
147
|
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
146
|
-
s.add_dependency(%q<bundler>, ["
|
148
|
+
s.add_dependency(%q<bundler>, [">= 0"])
|
147
149
|
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
148
150
|
s.add_dependency(%q<ZenTest>, ["~> 4.6.2"])
|
149
151
|
s.add_dependency(%q<autotest-growl>, ["~> 0.2.16"])
|
@@ -26,16 +26,17 @@ module Architect
|
|
26
26
|
|
27
27
|
def run
|
28
28
|
parse_command
|
29
|
-
parse_arguments
|
30
|
-
|
31
29
|
if @command == :generate
|
32
30
|
parse_generate_options
|
33
31
|
else
|
34
32
|
parse_options
|
35
33
|
end
|
34
|
+
parse_arguments
|
35
|
+
|
36
|
+
if @command
|
37
|
+
self.send @command unless @command =~ /^-/
|
38
|
+
end
|
36
39
|
|
37
|
-
self.send(@command) if @command and not @options[:help]
|
38
|
-
help unless @command or @options[:help]
|
39
40
|
end
|
40
41
|
|
41
42
|
def create
|
@@ -145,14 +146,12 @@ module Architect
|
|
145
146
|
def parse_options
|
146
147
|
@options = {}
|
147
148
|
OptionParser.new do |opts|
|
148
|
-
opts.banner = "Usage: example.rb [options]"
|
149
|
-
|
150
|
-
options[:version] = false
|
151
149
|
opts.on("-v", "--version", "Version info") do
|
152
150
|
@options[:version] = true
|
151
|
+
version
|
153
152
|
end
|
154
153
|
|
155
|
-
options[:blueprint] = 'default'
|
154
|
+
@options[:blueprint] = 'default'
|
156
155
|
opts.on('-b', '--blueprint FRAMEWORK', 'with blueprint') do |blueprint|
|
157
156
|
@options[:blueprint] = blueprint
|
158
157
|
end
|
@@ -202,13 +201,23 @@ module Architect
|
|
202
201
|
end
|
203
202
|
|
204
203
|
def parse_command
|
205
|
-
|
204
|
+
unless ARGV[0].nil? && ARGV[0] =~ /^-/
|
205
|
+
@command = ARGV[0].to_sym
|
206
|
+
end
|
206
207
|
end
|
207
208
|
|
208
209
|
def help
|
209
210
|
puts File.read("#{ArchitectureJS::base_directory}/HELP")
|
210
211
|
end
|
211
212
|
|
213
|
+
def version
|
214
|
+
version = File.read("#{ArchitectureJS::base_directory}/VERSION")
|
215
|
+
authors = File.readlines("#{ArchitectureJS::base_directory}/AUTHORS").join(', ')
|
216
|
+
message = "ArchitectureJS #{version}\n"
|
217
|
+
message << "Copyright (c) 2011 #{authors}\n"
|
218
|
+
message << "Released under the MIT License."
|
219
|
+
puts message
|
220
|
+
end
|
212
221
|
end
|
213
222
|
|
214
223
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: architecture-js
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-04-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fssm
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,15 @@ dependencies:
|
|
21
21
|
version: 0.2.8.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.2.8.1
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: jsmin
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ~>
|
@@ -32,10 +37,15 @@ dependencies:
|
|
32
37
|
version: 1.0.1
|
33
38
|
type: :runtime
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 1.0.1
|
36
46
|
- !ruby/object:Gem::Dependency
|
37
47
|
name: rspec
|
38
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
39
49
|
none: false
|
40
50
|
requirements:
|
41
51
|
- - ~>
|
@@ -43,21 +53,31 @@ dependencies:
|
|
43
53
|
version: 2.8.0
|
44
54
|
type: :development
|
45
55
|
prerelease: false
|
46
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.8.0
|
47
62
|
- !ruby/object:Gem::Dependency
|
48
63
|
name: bundler
|
49
|
-
requirement:
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
50
65
|
none: false
|
51
66
|
requirements:
|
52
|
-
- -
|
67
|
+
- - ! '>='
|
53
68
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
69
|
+
version: '0'
|
55
70
|
type: :development
|
56
71
|
prerelease: false
|
57
|
-
version_requirements:
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
58
78
|
- !ruby/object:Gem::Dependency
|
59
79
|
name: jeweler
|
60
|
-
requirement:
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
61
81
|
none: false
|
62
82
|
requirements:
|
63
83
|
- - ~>
|
@@ -65,10 +85,15 @@ dependencies:
|
|
65
85
|
version: 1.8.3
|
66
86
|
type: :development
|
67
87
|
prerelease: false
|
68
|
-
version_requirements:
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 1.8.3
|
69
94
|
- !ruby/object:Gem::Dependency
|
70
95
|
name: ZenTest
|
71
|
-
requirement:
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
72
97
|
none: false
|
73
98
|
requirements:
|
74
99
|
- - ~>
|
@@ -76,10 +101,15 @@ dependencies:
|
|
76
101
|
version: 4.6.2
|
77
102
|
type: :development
|
78
103
|
prerelease: false
|
79
|
-
version_requirements:
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 4.6.2
|
80
110
|
- !ruby/object:Gem::Dependency
|
81
111
|
name: autotest-growl
|
82
|
-
requirement:
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
83
113
|
none: false
|
84
114
|
requirements:
|
85
115
|
- - ~>
|
@@ -87,10 +117,15 @@ dependencies:
|
|
87
117
|
version: 0.2.16
|
88
118
|
type: :development
|
89
119
|
prerelease: false
|
90
|
-
version_requirements:
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 0.2.16
|
91
126
|
- !ruby/object:Gem::Dependency
|
92
127
|
name: jsmin
|
93
|
-
requirement:
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
94
129
|
none: false
|
95
130
|
requirements:
|
96
131
|
- - ! '>='
|
@@ -98,10 +133,15 @@ dependencies:
|
|
98
133
|
version: '0'
|
99
134
|
type: :runtime
|
100
135
|
prerelease: false
|
101
|
-
version_requirements:
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
102
142
|
- !ruby/object:Gem::Dependency
|
103
143
|
name: fssm
|
104
|
-
requirement:
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
105
145
|
none: false
|
106
146
|
requirements:
|
107
147
|
- - ! '>='
|
@@ -109,7 +149,12 @@ dependencies:
|
|
109
149
|
version: '0'
|
110
150
|
type: :runtime
|
111
151
|
prerelease: false
|
112
|
-
version_requirements:
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
113
158
|
description: Architecture.js helps you generate scaffolding, manage third-party packages,
|
114
159
|
compile, and compress your application.
|
115
160
|
email: daytonn@gmail.com
|
@@ -122,7 +167,9 @@ extra_rdoc_files:
|
|
122
167
|
files:
|
123
168
|
- .DS_Store
|
124
169
|
- .document
|
170
|
+
- .rvmrc
|
125
171
|
- .travis.yml
|
172
|
+
- AUTHORS
|
126
173
|
- Gemfile
|
127
174
|
- Gemfile.lock
|
128
175
|
- HELP
|
@@ -225,7 +272,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
225
272
|
version: '0'
|
226
273
|
segments:
|
227
274
|
- 0
|
228
|
-
hash:
|
275
|
+
hash: 1778887863748018177
|
229
276
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
230
277
|
none: false
|
231
278
|
requirements:
|
@@ -234,7 +281,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
234
281
|
version: '0'
|
235
282
|
requirements: []
|
236
283
|
rubyforge_project:
|
237
|
-
rubygems_version: 1.8.
|
284
|
+
rubygems_version: 1.8.21
|
238
285
|
signing_key:
|
239
286
|
specification_version: 3
|
240
287
|
summary: architecture.js is a command line application to dynamically build and manage
|