architecture-js 0.6.2 → 0.6.3
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.
- data/Gemfile +1 -1
- data/Gemfile.lock +5 -20
- data/VERSION +1 -1
- data/architecture-js.gemspec +6 -2
- data/lib/architecture-js/architect.rb +6 -6
- data/lib/architecture-js/watcher.rb +1 -0
- data/spec/watcher_spec.rb +3 -0
- metadata +20 -3
data/Gemfile
CHANGED
@@ -7,13 +7,13 @@ gem "jsmin"
|
|
7
7
|
group :test do
|
8
8
|
gem "simplecov"
|
9
9
|
gem 'rb-fsevent'
|
10
|
-
gem 'guard-rspec'
|
11
10
|
end
|
12
11
|
|
13
12
|
group :development do
|
14
13
|
gem "rspec"
|
15
14
|
gem "nyan-cat-formatter"
|
16
15
|
gem "unicorn-formatter"
|
16
|
+
gem "fuubar"
|
17
17
|
gem "bundler"
|
18
18
|
gem "jeweler"
|
19
19
|
end
|
data/Gemfile.lock
CHANGED
@@ -5,14 +5,15 @@ GEM
|
|
5
5
|
builder (3.2.2)
|
6
6
|
celluloid (0.15.2)
|
7
7
|
timers (~> 1.1.0)
|
8
|
-
coderay (1.1.0)
|
9
8
|
diff-lcs (1.2.5)
|
10
9
|
docile (1.1.0)
|
11
10
|
ejs (1.1.1)
|
12
11
|
faraday (0.8.8)
|
13
12
|
multipart-post (~> 1.2.0)
|
14
13
|
ffi (1.9.3)
|
15
|
-
|
14
|
+
fuubar (1.3.2)
|
15
|
+
rspec (>= 2.14.0, < 3.1.0)
|
16
|
+
ruby-progressbar (~> 1.3)
|
16
17
|
git (1.2.6)
|
17
18
|
github_api (0.10.1)
|
18
19
|
addressable
|
@@ -21,15 +22,6 @@ GEM
|
|
21
22
|
multi_json (~> 1.4)
|
22
23
|
nokogiri (~> 1.5.2)
|
23
24
|
oauth2
|
24
|
-
guard (2.2.3)
|
25
|
-
formatador (>= 0.2.4)
|
26
|
-
listen (~> 2.1)
|
27
|
-
lumberjack (~> 1.0)
|
28
|
-
pry (>= 0.9.12)
|
29
|
-
thor (>= 0.18.1)
|
30
|
-
guard-rspec (4.0.4)
|
31
|
-
guard (>= 2.1.1)
|
32
|
-
rspec (~> 2.14)
|
33
25
|
hashie (2.0.5)
|
34
26
|
highline (1.6.20)
|
35
27
|
httpauth (0.2.0)
|
@@ -51,8 +43,6 @@ GEM
|
|
51
43
|
rb-fsevent (>= 0.9.3)
|
52
44
|
rb-inotify (>= 0.9)
|
53
45
|
lockfile (2.1.0)
|
54
|
-
lumberjack (1.0.4)
|
55
|
-
method_source (0.8.2)
|
56
46
|
multi_json (1.8.2)
|
57
47
|
multi_xml (0.5.5)
|
58
48
|
multipart-post (1.2.0)
|
@@ -66,10 +56,6 @@ GEM
|
|
66
56
|
multi_json (~> 1.0)
|
67
57
|
multi_xml (~> 0.5)
|
68
58
|
rack (~> 1.2)
|
69
|
-
pry (0.9.12.3)
|
70
|
-
coderay (~> 1.0)
|
71
|
-
method_source (~> 0.8)
|
72
|
-
slop (~> 3.4)
|
73
59
|
rack (1.5.2)
|
74
60
|
rake (10.1.0)
|
75
61
|
rb-fsevent (0.9.3)
|
@@ -85,14 +71,13 @@ GEM
|
|
85
71
|
rspec-expectations (2.14.4)
|
86
72
|
diff-lcs (>= 1.1.3, < 2.0)
|
87
73
|
rspec-mocks (2.14.4)
|
74
|
+
ruby-progressbar (1.4.0)
|
88
75
|
simplecov (0.8.1)
|
89
76
|
docile (~> 1.1.0)
|
90
77
|
lockfile (>= 2.1.0)
|
91
78
|
multi_json
|
92
79
|
simplecov-html (~> 0.8.0)
|
93
80
|
simplecov-html (0.8.0)
|
94
|
-
slop (3.4.7)
|
95
|
-
thor (0.18.1)
|
96
81
|
timers (1.1.0)
|
97
82
|
unicorn-formatter (0.1.3)
|
98
83
|
rspec
|
@@ -103,7 +88,7 @@ PLATFORMS
|
|
103
88
|
DEPENDENCIES
|
104
89
|
bundler
|
105
90
|
ejs
|
106
|
-
|
91
|
+
fuubar
|
107
92
|
jeweler
|
108
93
|
jsmin
|
109
94
|
listen
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.3
|
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.6.
|
8
|
+
s.version = "0.6.3"
|
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 = "
|
12
|
+
s.date = "2014-01-07"
|
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"]
|
@@ -114,6 +114,7 @@ Gem::Specification.new do |s|
|
|
114
114
|
"spec/notification_spec.rb",
|
115
115
|
"spec/spec_helper.rb",
|
116
116
|
"spec/templates_spec.rb",
|
117
|
+
"spec/watcher_spec.rb",
|
117
118
|
"templates/templates_file.erb",
|
118
119
|
"travis.yml"
|
119
120
|
]
|
@@ -133,6 +134,7 @@ Gem::Specification.new do |s|
|
|
133
134
|
s.add_development_dependency(%q<rspec>, [">= 0"])
|
134
135
|
s.add_development_dependency(%q<nyan-cat-formatter>, [">= 0"])
|
135
136
|
s.add_development_dependency(%q<unicorn-formatter>, [">= 0"])
|
137
|
+
s.add_development_dependency(%q<fuubar>, [">= 0"])
|
136
138
|
s.add_development_dependency(%q<bundler>, [">= 0"])
|
137
139
|
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
138
140
|
s.add_runtime_dependency(%q<jsmin>, [">= 0"])
|
@@ -144,6 +146,7 @@ Gem::Specification.new do |s|
|
|
144
146
|
s.add_dependency(%q<rspec>, [">= 0"])
|
145
147
|
s.add_dependency(%q<nyan-cat-formatter>, [">= 0"])
|
146
148
|
s.add_dependency(%q<unicorn-formatter>, [">= 0"])
|
149
|
+
s.add_dependency(%q<fuubar>, [">= 0"])
|
147
150
|
s.add_dependency(%q<bundler>, [">= 0"])
|
148
151
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
149
152
|
s.add_dependency(%q<jsmin>, [">= 0"])
|
@@ -156,6 +159,7 @@ Gem::Specification.new do |s|
|
|
156
159
|
s.add_dependency(%q<rspec>, [">= 0"])
|
157
160
|
s.add_dependency(%q<nyan-cat-formatter>, [">= 0"])
|
158
161
|
s.add_dependency(%q<unicorn-formatter>, [">= 0"])
|
162
|
+
s.add_dependency(%q<fuubar>, [">= 0"])
|
159
163
|
s.add_dependency(%q<bundler>, [">= 0"])
|
160
164
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
161
165
|
s.add_dependency(%q<jsmin>, [">= 0"])
|
@@ -40,7 +40,7 @@ module Architect
|
|
40
40
|
def create
|
41
41
|
app_name = @args.first
|
42
42
|
if @args[1]
|
43
|
-
sub_dir = @args[1] unless @args[1].match
|
43
|
+
sub_dir = @args[1] unless @args[1].match(/^-/)
|
44
44
|
end
|
45
45
|
blueprint = @options[:blueprint]
|
46
46
|
|
@@ -68,7 +68,7 @@ module Architect
|
|
68
68
|
def watch
|
69
69
|
@project = ArchitectureJS::Blueprint.init_with_config(@root)
|
70
70
|
@project.update
|
71
|
-
@watcher = @project.watch("architect is watching for changes. Type 'quit' to stop.")
|
71
|
+
@watcher = @project.watch("architect is watching for changes. Type 'quit' or 'exit' to stop.")
|
72
72
|
start_interactive_session
|
73
73
|
rescue Exception => e
|
74
74
|
puts ArchitectureJS::Notification.error e.message
|
@@ -86,14 +86,14 @@ module Architect
|
|
86
86
|
def start_interactive_session
|
87
87
|
@command = ''
|
88
88
|
|
89
|
-
while not @command =~ /^quit$/
|
89
|
+
while not @command =~ /^(quit|exit)$/
|
90
90
|
print ArchitectureJS::Notification.prompt
|
91
91
|
@command = gets.chomp
|
92
92
|
args = @command.split(/\s/)
|
93
93
|
parse_command args
|
94
94
|
|
95
95
|
case @command
|
96
|
-
when /^quit$/
|
96
|
+
when /^(quit|exit)$/
|
97
97
|
@watcher.stop
|
98
98
|
when /help/
|
99
99
|
puts 'Interactive commands:'
|
@@ -118,7 +118,7 @@ module Architect
|
|
118
118
|
|
119
119
|
def parse_interactive_options(args = [])
|
120
120
|
@options = {}
|
121
|
-
|
121
|
+
|
122
122
|
args.each do |option|
|
123
123
|
case option
|
124
124
|
when /\-c|\-\-compress/
|
@@ -176,4 +176,4 @@ module Architect
|
|
176
176
|
end
|
177
177
|
end
|
178
178
|
|
179
|
-
end
|
179
|
+
end
|
@@ -27,6 +27,7 @@ module ArchitectureJS
|
|
27
27
|
|
28
28
|
def update_files(files, action)
|
29
29
|
files.each do |f|
|
30
|
+
next unless f.match(/\.jst?$|\.blueprint$/)
|
30
31
|
f = File.basename f
|
31
32
|
if action == "deleted"
|
32
33
|
FileUtils.rm_rf("#{@project.root}/#{@project.config[:build_dir]}/#{f}") if File.exists? "#{@project.root}/#{@project.config[:build_dir]}/#{f}"
|
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.6.
|
4
|
+
version: 0.6.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-01-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: listen
|
@@ -107,6 +107,22 @@ dependencies:
|
|
107
107
|
- - ! '>='
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: fuubar
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
110
126
|
- !ruby/object:Gem::Dependency
|
111
127
|
name: bundler
|
112
128
|
requirement: !ruby/object:Gem::Requirement
|
@@ -277,6 +293,7 @@ files:
|
|
277
293
|
- spec/notification_spec.rb
|
278
294
|
- spec/spec_helper.rb
|
279
295
|
- spec/templates_spec.rb
|
296
|
+
- spec/watcher_spec.rb
|
280
297
|
- templates/templates_file.erb
|
281
298
|
- travis.yml
|
282
299
|
homepage: https://github.com/daytonn/architecture-js
|
@@ -294,7 +311,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
294
311
|
version: '0'
|
295
312
|
segments:
|
296
313
|
- 0
|
297
|
-
hash:
|
314
|
+
hash: -1435570339284134993
|
298
315
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
299
316
|
none: false
|
300
317
|
requirements:
|