padrino-performance 0.12.0 → 0.12.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3ffb97537e68a63ebc5aa2feebe0f4f0644c5be
4
- data.tar.gz: 7b67e4505d3889c4ae79baea75580567aa90b7b1
3
+ metadata.gz: c18101b47586d48dca35500b5a756e909bdc62bb
4
+ data.tar.gz: df2c47da963b410ed77e13572e6298988108df1d
5
5
  SHA512:
6
- metadata.gz: ca69aef978f015a28bfc538fbd58eb9caa7dcfcc8010853c49ceaff7042c51f4a3d9af4a7dd715701835f91fadaf13e12e8ac2b7c2f795fdcacc7c29d1c8b1ce
7
- data.tar.gz: fd7ee3eb612e22f13fa98431711c8ca5752711e4179e49161f370babdb8656c1892566608e209a5d55cf46839797e34367f9870780c5dd32eeeb0bf0563a45cb
6
+ metadata.gz: e14b5e6c7f9ab105592cab21c944b7de4e7295f1797465037f396f78e80b292abb57b87fb97a817f8cb7b72fbaeafe9e202aa882eb136a3ef010e007470d5183
7
+ data.tar.gz: 4c37b0a747017e486a52e32baf5db15a5f6778a783fbdf3d0da785313c1bf28198708e3080943f98d80c5a67aa6763e13f0d875c01dfb98bd5c03578861ee496
@@ -1,7 +1,7 @@
1
1
  module Padrino
2
2
  module Performance
3
3
  # The version constant for the current version of Padrino.
4
- VERSION = '0.12.0' unless defined?(Padrino::VERSION)
4
+ VERSION = '0.12.1' unless defined?(Padrino::VERSION)
5
5
 
6
6
  #
7
7
  # The current Padrino version.
data/test/helper.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require File.expand_path('../../../load_paths', __FILE__)
2
- require File.join(File.dirname(__FILE__), '..', '..', 'padrino-core', 'test', 'mini_shoulda')
3
2
 
3
+ require 'minitest/autorun'
4
+ require 'minitest/pride'
4
5
  require 'padrino-core'
5
6
  require 'padrino-performance'
6
7
  require 'rack'
@@ -9,4 +10,3 @@ require 'rack/test'
9
10
  class MiniTest::Spec
10
11
  include Rack::Test::Methods
11
12
  end
12
-
data/test/test_os.rb CHANGED
@@ -3,13 +3,13 @@ require File.expand_path(File.dirname(__FILE__) + '/helper')
3
3
  describe "Padrino Performance OS Module" do
4
4
  WINDOWS_RELATED_SYSTEMS = %w(cygwin mswin mingw bccwin wince emx)
5
5
 
6
- context "#windows?" do
7
- should "return false if OS is now windows" do
6
+ describe "#windows?" do
7
+ it 'should return false if OS is now windows' do
8
8
  RbConfig::CONFIG['target_os'] = "linux"
9
9
  refute(Padrino::Performance::OS.windows?, "No non windows system given")
10
10
  end
11
11
 
12
- should "return true if we have some windows instance" do
12
+ it 'should return true if we have some windows instance' do
13
13
  WINDOWS_RELATED_SYSTEMS.each do |system|
14
14
  RbConfig::CONFIG['target_os'] = system
15
15
  assert(Padrino::Performance::OS.windows?, "#{system} is no windows related operation system.")
@@ -17,25 +17,25 @@ describe "Padrino Performance OS Module" do
17
17
  end
18
18
  end
19
19
 
20
- context "#mac?" do
21
- should "return true if we have darwin running" do
20
+ describe "#mac?" do
21
+ it 'should return true if we have darwin running' do
22
22
  RbConfig::CONFIG['target_os'] = 'darwin'
23
23
  assert(Padrino::Performance::OS.mac?, "We have no Mac related system running")
24
24
  end
25
25
 
26
- should "return false if we have linux running" do
26
+ it 'should return false if we have linux running' do
27
27
  RbConfig::CONFIG['target_os'] = 'linux'
28
28
  refute(Padrino::Performance::OS.mac?, "We have no Mac related system running")
29
29
  end
30
30
  end
31
31
 
32
- context "#unix?" do
33
- should "return true if OS is not windows" do
32
+ describe "#unix?" do
33
+ it 'should return true if OS is not windows' do
34
34
  RbConfig::CONFIG['target_os'] = 'linux'
35
35
  assert(Padrino::Performance::OS.unix?, "We have no windows related system running")
36
36
  end
37
37
 
38
- should "return false if OS is windows" do
38
+ it 'should return false if OS is windows' do
39
39
  WINDOWS_RELATED_SYSTEMS.each do |system|
40
40
  RbConfig::CONFIG['target_os'] = system
41
41
  refute(Padrino::Performance::OS.unix?, "#{system} is windows related operation system.")
@@ -43,13 +43,13 @@ describe "Padrino Performance OS Module" do
43
43
  end
44
44
  end
45
45
 
46
- context "#linux?" do
47
- should "return true if we have no Windows or Mac related OS" do
46
+ describe "#linux?" do
47
+ it 'should return true if we have no Windows or Mac related OS' do
48
48
  RbConfig::CONFIG['target_os'] = 'linux'
49
49
  assert(Padrino::Performance::OS.linux?, 'We have either Mac or Windows operation system.')
50
50
  end
51
51
 
52
- should "return false if we have a Windows or Mac related OS" do
52
+ it 'should return false if we have a Windows or Mac related OS' do
53
53
  RbConfig::CONFIG['target_os'] = 'mingw'
54
54
  refute(Padrino::Performance::OS.linux?, 'We a Windows related operation system.')
55
55
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-performance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Padrino Team
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2014-02-09 00:00:00.000000000 Z
17
+ date: 2014-04-04 00:00:00.000000000 Z
18
18
  dependencies: []
19
19
  description: A gem for finding performance problems in Padrino by tracking loads and
20
20
  memory consumption.