jsus 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/CHANGELOG +2 -0
  2. data/Manifest +1 -0
  3. data/Rakefile +1 -1
  4. data/bin/jsus +10 -3
  5. data/jsus.gemspec +1 -1
  6. 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
@@ -5,6 +5,7 @@ README
5
5
  Rakefile
6
6
  TODO
7
7
  bin/jsus
8
+ jsus.gemspec
8
9
  lib/jsus.rb
9
10
  lib/jsus/container.rb
10
11
  lib/jsus/package.rb
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.8') do |g|
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
- compile_start_time = Time.now
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 "Total execution time: #{(finish_time - start_time).round(3)}s"
89
- puts "Total compilation time: #{(finish_time - compile_start_time).round(3)}s"
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{jsus}
5
- s.version = "0.1.8"
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)"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 8
9
- version: 0.1.8
8
+ - 9
9
+ version: 0.1.9
10
10
  platform: ruby
11
11
  authors:
12
12
  - Markiz, idea by Inviz (http://github.com/Inviz)