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 +4 -4
- data/lib/padrino-performance/version.rb +1 -1
- data/test/helper.rb +2 -2
- data/test/test_os.rb +12 -12
- 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: c18101b47586d48dca35500b5a756e909bdc62bb
|
4
|
+
data.tar.gz: df2c47da963b410ed77e13572e6298988108df1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e14b5e6c7f9ab105592cab21c944b7de4e7295f1797465037f396f78e80b292abb57b87fb97a817f8cb7b72fbaeafe9e202aa882eb136a3ef010e007470d5183
|
7
|
+
data.tar.gz: 4c37b0a747017e486a52e32baf5db15a5f6778a783fbdf3d0da785313c1bf28198708e3080943f98d80c5a67aa6763e13f0d875c01dfb98bd5c03578861ee496
|
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
|
-
|
7
|
-
should
|
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
|
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
|
-
|
21
|
-
should
|
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
|
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
|
-
|
33
|
-
should
|
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
|
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
|
-
|
47
|
-
should
|
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
|
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.
|
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-
|
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.
|