kantox-chronoscope 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +26 -0
- data/Rakefile +1 -1
- data/config/chronoscope.yml +12 -4
- data/kantox-chronoscope.gemspec +1 -1
- data/lib/kantox/chronoscope.rb +2 -1
- data/lib/kantox/chronoscope/dummy.rb +1 -1
- data/lib/kantox/chronoscope/generic.rb +8 -6
- data/lib/kantox/chronoscope/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c6dabc25fc79888555b0555ec24c2ec8e8d3b1a
|
4
|
+
data.tar.gz: 9b8fdd9577c078374504125f3a57503146ec9dc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 618b50b970c10ff49784af8ab84b686e9da0368d75d6cfbaabe18f3f07f25ff43fe15040b1e52b86b24c0724c814ff6bea29414d416ae437367310053db3c224
|
7
|
+
data.tar.gz: b028fe47d580d247cb3440beffab42c3f0c69fa1576a958c2d96a920402df1a1f2ceaf797fdc9ce1ccb7c9c9ea4365d18f925764efeb5733272ae94e860ad993
|
data/.codeclimate.yml
CHANGED
@@ -24,3 +24,29 @@ ratings:
|
|
24
24
|
exclude_paths:
|
25
25
|
- features/
|
26
26
|
- spec/
|
27
|
+
---
|
28
|
+
engines:
|
29
|
+
duplication:
|
30
|
+
enabled: true
|
31
|
+
config:
|
32
|
+
languages:
|
33
|
+
- ruby
|
34
|
+
- javascript
|
35
|
+
- python
|
36
|
+
- php
|
37
|
+
fixme:
|
38
|
+
enabled: true
|
39
|
+
rubocop:
|
40
|
+
enabled: true
|
41
|
+
ratings:
|
42
|
+
paths:
|
43
|
+
- "**.inc"
|
44
|
+
- "**.js"
|
45
|
+
- "**.jsx"
|
46
|
+
- "**.module"
|
47
|
+
- "**.php"
|
48
|
+
- "**.py"
|
49
|
+
- "**.rb"
|
50
|
+
exclude_paths:
|
51
|
+
- features/
|
52
|
+
- spec/
|
data/Rakefile
CHANGED
data/config/chronoscope.yml
CHANGED
@@ -5,8 +5,16 @@ general:
|
|
5
5
|
options:
|
6
6
|
silent: true
|
7
7
|
|
8
|
+
lang: :en
|
9
|
+
|
8
10
|
i18n:
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
11
|
+
en:
|
12
|
+
name: method
|
13
|
+
times: times
|
14
|
+
average: average
|
15
|
+
total: total
|
16
|
+
ru:
|
17
|
+
name: метод
|
18
|
+
times: раз
|
19
|
+
average: среднее
|
20
|
+
total: всего
|
data/kantox-chronoscope.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
# delete this section to allow pushing this gem to any host.
|
19
19
|
raise 'RubyGems 2.0 or newer is required.' unless spec.respond_to?(:metadata)
|
20
20
|
|
21
|
-
# spec.metadata['allowed_push_host'] = "
|
21
|
+
# spec.metadata['allowed_push_host'] = "https://gemfury.com"
|
22
22
|
|
23
23
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
24
24
|
spec.bindir = 'bin'
|
data/lib/kantox/chronoscope.rb
CHANGED
@@ -16,8 +16,9 @@ module Kantox
|
|
16
16
|
CONFIG_LOCATION = 'config/chronoscope.yml'.freeze
|
17
17
|
|
18
18
|
include Kungfuig
|
19
|
-
kungfuig(File.join(File.expand_path('..', __FILE__), CONFIG_LOCATION)) rescue nil # FIXME: report
|
20
19
|
kungfuig(CONFIG_LOCATION) rescue nil # FIXME: report
|
20
|
+
kungfuig(File.join(File.expand_path('..', __FILE__), CONFIG_LOCATION)) rescue nil # FIXME: report
|
21
|
+
kungfuig(File.join(Rails.root, CONFIG_LOCATION)) rescue nil
|
21
22
|
|
22
23
|
ENV = const_defined?('Rails') && Rails.env || ENV['CHRONOSCOPE_ENV'] || DEFAULT_ENV
|
23
24
|
|
@@ -9,12 +9,14 @@ module Kantox
|
|
9
9
|
Kernel.const_defined?(:Rails) && ::Rails.logger ||
|
10
10
|
Logger.new(STDOUT)
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
12
|
+
LANG = Kantox::Chronoscope.kungfuig.lang || :en
|
13
|
+
I18N = Kantox::Chronoscope.kungfuig.i18n!.public_send("#{LANG}!")
|
14
|
+
BM_DELIMITER = (I18N.bm_delimiter || ' :: ').to_s.freeze
|
15
|
+
ARROW = (I18N.arrow || ' ⇒ ').to_s.freeze
|
16
|
+
METHOD_LABEL = (I18N.name || 'method').freeze
|
17
|
+
TIMES_LABEL = (I18N.times || 'times').freeze
|
18
|
+
AVERAGE_LABEL = (I18N.average || 'average').freeze
|
19
|
+
TOTAL_LABEL = (I18N.total || 'total').freeze
|
18
20
|
|
19
21
|
COLOR_NONE = "\033[0m".freeze
|
20
22
|
DEFAULT_TAG = 'N/A'.freeze
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kantox-chronoscope
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kantox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|