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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec5800306c52e0e731130f29032966018c5237ae
4
- data.tar.gz: 09c956a679383144a084f49e445dabc61259ea54
3
+ metadata.gz: 9c6dabc25fc79888555b0555ec24c2ec8e8d3b1a
4
+ data.tar.gz: 9b8fdd9577c078374504125f3a57503146ec9dc0
5
5
  SHA512:
6
- metadata.gz: 3b9d8fad9953de8d2a9cb3337610c8f94617fef9fe4c71b70217937c0036629ae116ceb0c02f565379cac5ca3fc5637271e85cfe9bb27a9ecb63fe899dc839e1
7
- data.tar.gz: 8574f1c32cca7e894ce4b7ed13b63c902abb512db4c3057a91fcca25efa7bf8db3d16bcdfda2fba3b5dde5adf48b0b07fe172c9ef4fbd873447eb147989de883
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
@@ -21,4 +21,4 @@ RSpec::Core::RakeTask.new(:spec) do |spec|
21
21
  # spec.rcov = true
22
22
  end
23
23
 
24
- task :default => :spec
24
+ task default: :spec
@@ -5,8 +5,16 @@ general:
5
5
  options:
6
6
  silent: true
7
7
 
8
+ lang: :en
9
+
8
10
  i18n:
9
- name: метод
10
- times: раз
11
- average: среднее
12
- total: всего
11
+ en:
12
+ name: method
13
+ times: times
14
+ average: average
15
+ total: total
16
+ ru:
17
+ name: метод
18
+ times: раз
19
+ average: среднее
20
+ total: всего
@@ -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'] = "TODO: Set to 'http://mygemserver.com'"
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'
@@ -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
 
@@ -8,7 +8,7 @@ module Kantox
8
8
  yield(*args) if block_given?
9
9
  end
10
10
 
11
- def ⌛(*args)
11
+ def ⌛(*)
12
12
  {}
13
13
  end
14
14
  # rubocop:enable Style/OpMethod
@@ -9,12 +9,14 @@ module Kantox
9
9
  Kernel.const_defined?(:Rails) && ::Rails.logger ||
10
10
  Logger.new(STDOUT)
11
11
 
12
- BM_DELIMITER = (Kantox::Chronoscope.kungfuig.i18n!.bm_delimiter || ' :: ').to_s.freeze
13
- ARROW = (Kantox::Chronoscope.kungfuig.i18n!.arrow || ' ⇒ ').to_s.freeze
14
- METHOD_LABEL = Kantox::Chronoscope.kungfuig.i18n!.name || 'method'.freeze
15
- TIMES_LABEL = Kantox::Chronoscope.kungfuig.i18n!.times || 'times'.freeze
16
- AVERAGE_LABEL = Kantox::Chronoscope.kungfuig.i18n!.average || 'average'.freeze
17
- TOTAL_LABEL = Kantox::Chronoscope.kungfuig.i18n!.total || 'total'.freeze
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
@@ -1,5 +1,5 @@
1
1
  module Kantox
2
2
  module Chronoscope
3
- VERSION = "0.7.0"
3
+ VERSION = "0.7.1"
4
4
  end
5
5
  end
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.0
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-05-19 00:00:00.000000000 Z
11
+ date: 2016-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler