jsus 0.1.8 → 0.1.9
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/CHANGELOG +2 -0
- data/Manifest +1 -0
- data/Rakefile +1 -1
- data/bin/jsus +10 -3
- data/jsus.gemspec +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
= Jsus Changelog
|
2
|
+
== Version 0.1.9
|
3
|
+
* Benchmarking results are now more verbose.
|
2
4
|
== Version 0.1.8
|
3
5
|
* Added extensions lookup to any call of SourceFile#content and SourceFile#required_files.
|
4
6
|
This is needed in order to ensure extensions are loaded for dependencies.
|
data/Manifest
CHANGED
data/Rakefile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
|
-
Echoe.new('jsus', '0.1.
|
4
|
+
Echoe.new('jsus', '0.1.9') do |g|
|
5
5
|
g.description = "Packager/compiler for js-files that resolves dependencies and can compile everything into one file, providing all the neccessary meta-info."
|
6
6
|
g.url = "http://github.com/markiz/jsus"
|
7
7
|
g.author = "Markiz, idea by Inviz (http://github.com/Inviz)"
|
data/bin/jsus
CHANGED
@@ -53,11 +53,14 @@ Choice.options do
|
|
53
53
|
|
54
54
|
end
|
55
55
|
|
56
|
+
compile_start_time = Time.now
|
56
57
|
|
58
|
+
pool_load_start_time = Time.now
|
57
59
|
pool = if Choice.choices[:dependencies]
|
58
60
|
Jsus::Pool.new(Choice.choices[:dependencies])
|
59
61
|
end
|
60
|
-
|
62
|
+
pool_load_finish_time = Time.now
|
63
|
+
|
61
64
|
package = Jsus::Package.new(Choice.choices[:input_directory], :pool => pool)
|
62
65
|
package.include_dependencies! if Choice.choices[:dependencies]
|
63
66
|
output_directory = Choice.choices[:output_directory]
|
@@ -85,6 +88,10 @@ finish_time = Time.now
|
|
85
88
|
|
86
89
|
|
87
90
|
if Choice.choices[:benchmark]
|
88
|
-
puts "
|
89
|
-
puts "Total
|
91
|
+
puts "Benchmarking results:"
|
92
|
+
puts "Total execution time: #{format("%.3f" ,finish_time - start_time)}s"
|
93
|
+
puts ""
|
94
|
+
puts "Of them:"
|
95
|
+
puts "Pool preloading time: #{format("%.3f", pool_load_finish_time - pool_load_start_time)}s"
|
96
|
+
puts "Total compilation time: #{format("%.3f", finish_time - compile_start_time - (pool_load_finish_time - pool_load_start_time))}s"
|
90
97
|
end
|
data/jsus.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{jsus}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.9"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Markiz, idea by Inviz (http://github.com/Inviz)"]
|