facade 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGES.md +4 -0
- data/facade.gemspec +1 -1
- data/lib/facade.rb +1 -1
- data/spec/facade_spec.rb +1 -1
- metadata +2 -3
- metadata.gz.sig +0 -0
- data/test/test_facade.rb +0 -67
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42771164aefacf1b7c99fa78f8866d528cbea326409d4556829a003a61e800d6
|
4
|
+
data.tar.gz: ad610e31ab2859ace230866dbdbf9495c10a2e7485907850ede95084bb156244
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60ffd93871099bdb05f26d21d115c3ecbd00677634c1c0eb1e906c00d72d487e3d6a9b290b05df4e16cf06a30b2cb5142588ecef361b6c77a4ae1a3774f393da
|
7
|
+
data.tar.gz: 2f232f9a8f6e1643704434d234975676fc98d543cca66474f96b8543600f0430718928db3f17b9b61d26fa1cca1ee34ea11f14b67f39b3e2f9d38b7ca9773f7f
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGES.md
CHANGED
data/facade.gemspec
CHANGED
data/lib/facade.rb
CHANGED
data/spec/facade_spec.rb
CHANGED
@@ -28,7 +28,7 @@ RSpec.describe Facade do
|
|
28
28
|
let(:string) { facade.new('/home/whatever') }
|
29
29
|
|
30
30
|
example "facade module has expected version set and it's frozen" do
|
31
|
-
expect(Facade::FACADE_VERSION).to eq('1.2.
|
31
|
+
expect(Facade::FACADE_VERSION).to eq('1.2.1')
|
32
32
|
expect(Facade::FACADE_VERSION).to be_frozen
|
33
33
|
end
|
34
34
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: facade
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
ORVCZpRuCPpmC8qmqxUnARDArzucjaclkxjLWvCVHeFa9UP7K3Nl9oTjJNv+7/jM
|
36
36
|
WZs4eecIcUc4tKdHxcAJ0MO/Dkqq7hGaiHpwKY76wQ1+8xAh
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2020-
|
38
|
+
date: 2020-10-10 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: rake
|
@@ -83,7 +83,6 @@ files:
|
|
83
83
|
- facade.gemspec
|
84
84
|
- lib/facade.rb
|
85
85
|
- spec/facade_spec.rb
|
86
|
-
- test/test_facade.rb
|
87
86
|
homepage: https://github.com/djberg96/facade
|
88
87
|
licenses:
|
89
88
|
- Apache-2.0
|
metadata.gz.sig
CHANGED
Binary file
|
data/test/test_facade.rb
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
#########################################################################
|
2
|
-
# test_facade.rb
|
3
|
-
#
|
4
|
-
# Test suite for the Facade module. This test suite should be run via
|
5
|
-
# the 'rake test' task.
|
6
|
-
#########################################################################
|
7
|
-
require 'test/unit'
|
8
|
-
require 'facade'
|
9
|
-
|
10
|
-
module Baz
|
11
|
-
def testme(str)
|
12
|
-
str
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
class FooString < String
|
17
|
-
extend Facade
|
18
|
-
facade File, :basename, 'dirname'
|
19
|
-
facade Dir
|
20
|
-
facade Baz
|
21
|
-
|
22
|
-
def blockdev?
|
23
|
-
'test'
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
class TC_Facade < Test::Unit::TestCase
|
28
|
-
def setup
|
29
|
-
@str = FooString.new('/home/djberge')
|
30
|
-
end
|
31
|
-
|
32
|
-
def test_facade_version
|
33
|
-
assert_equal('1.1.1', Facade::FACADE_VERSION)
|
34
|
-
assert_true(Facade::FACADE_VERSION.frozen?)
|
35
|
-
end
|
36
|
-
|
37
|
-
def test_file_methods
|
38
|
-
assert_respond_to(@str, :basename)
|
39
|
-
assert_respond_to(@str, :dirname)
|
40
|
-
assert_raises(NoMethodError){ @str.executable? }
|
41
|
-
assert_raises(NoMethodError){ @str.chardev? }
|
42
|
-
end
|
43
|
-
|
44
|
-
def test_file_method_return_values
|
45
|
-
assert_equal('djberge', @str.basename)
|
46
|
-
assert_equal('/home', @str.dirname)
|
47
|
-
end
|
48
|
-
|
49
|
-
def test_dir_methods
|
50
|
-
assert_respond_to(@str, :pwd)
|
51
|
-
assert_respond_to(@str, :entries)
|
52
|
-
end
|
53
|
-
|
54
|
-
def test_no_clobber
|
55
|
-
assert_respond_to(@str, :blockdev?)
|
56
|
-
assert_equal('test', @str.blockdev?)
|
57
|
-
end
|
58
|
-
|
59
|
-
def test_module_methods
|
60
|
-
assert_respond_to(@str, :testme)
|
61
|
-
assert_equal('/home/djberge', @str.testme)
|
62
|
-
end
|
63
|
-
|
64
|
-
def teardown
|
65
|
-
@str = nil
|
66
|
-
end
|
67
|
-
end
|