benchmark_methods 0.5 → 0.6

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: 4ed622b5050220307ac5e8dbfec9bc75ec240b78
4
- data.tar.gz: f8c552d1204b5953c6480f6c3d8f2a2a3d938679
3
+ metadata.gz: e2805ee294f5d5f9511ca9b1e144037715ba8352
4
+ data.tar.gz: 5e29dcb77aa55ced27e903638bb46226a841127f
5
5
  SHA512:
6
- metadata.gz: 929b63b9b8906938c0aab6e8647f7fa32aeb49c1fc480cf7e43542e71f527e771c91662769c6e5abf0a2305413a2a286da767b47d4bb8021bccbd4e49b4c7dfb
7
- data.tar.gz: 2b8727ae2ee51746eb11ec5a612eadacc7118f601a42d00da8bfc6fdfee8cd18a54c4b45526915ff358da36f048e5c450035ca9b7972efa2b9914ab01e450b71
6
+ metadata.gz: a5669e591dc5bace7685eaead369fe78df98d4a5bf31a606b213f5ef1fba6186bc301124e30252581c5890001eeaad29a0a8dd3c5da1213b7cadf8ac1b13916d
7
+ data.tar.gz: 6a0b7659d40a7e353d3b20ea22826968f2751d6f3fa176ff34eccba6581876aaef03f72eac3353f38d1035ef9dcecaf56e7caa994875a232ff541ca4fa9199b0
@@ -19,8 +19,6 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_dependency "activesupport", ">= 4.0.0"
23
-
24
22
  spec.add_development_dependency "bundler", "~> 1.9"
25
23
  spec.add_development_dependency "rake", "~> 10.0"
26
24
  spec.add_development_dependency "activerecord", "> 0"
@@ -1,8 +1,10 @@
1
1
  require 'securerandom'
2
2
  require 'benchmark'
3
+ require_relative 'string_ext.rb'
3
4
  require 'benchmark_methods/version'
4
5
 
5
6
  module BenchmarkMethods
7
+ using StringExt
6
8
 
7
9
  def self.included(base_klass)
8
10
  unless const_defined?("#{base_klass.name.demodulize}Interceptor")
@@ -1,3 +1,3 @@
1
1
  module BenchmarkMethods
2
- VERSION = "0.5"
2
+ VERSION = "0.6"
3
3
  end
data/lib/string_ext.rb ADDED
@@ -0,0 +1,12 @@
1
+ module StringExt
2
+ refine String do
3
+ def demodulize
4
+ path = self
5
+ if i = path.rindex('::')
6
+ path[(i+2)..-1]
7
+ else
8
+ path
9
+ end
10
+ end
11
+ end
12
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: benchmark_methods
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.5'
4
+ version: '0.6'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kasyanchuk
@@ -10,20 +10,6 @@ bindir: exe
10
10
  cert_chain: []
11
11
  date: 2015-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: activesupport
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 4.0.0
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: 4.0.0
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: bundler
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -145,6 +131,7 @@ files:
145
131
  - bin/setup
146
132
  - lib/benchmark_methods.rb
147
133
  - lib/benchmark_methods/version.rb
134
+ - lib/string_ext.rb
148
135
  homepage: https://github.com/igorkasyanchuk/benchmark_methods
149
136
  licenses:
150
137
  - MIT