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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6717943e139c8af4bb62fc7403ec46f4539820dde024a56b14bf7d3433e77d1b
4
- data.tar.gz: fa4c4ed14f9369a422417a2bd688e44c7a0b6f5143e4b12f82ffbd0219e443fa
3
+ metadata.gz: 42771164aefacf1b7c99fa78f8866d528cbea326409d4556829a003a61e800d6
4
+ data.tar.gz: ad610e31ab2859ace230866dbdbf9495c10a2e7485907850ede95084bb156244
5
5
  SHA512:
6
- metadata.gz: b376fc1f69f81c881772f6bccc4fad631af784d9b9f05865cc481b807ec6bf6cc03de603d62fca414e949c3c6b2e86ad17e5b83acd25085f93b84852408ee0aa
7
- data.tar.gz: 8602a3a44236e99b90e10a38a59145f9f03f5469fd0782cbe60226b8b38a2d42f3160872e26d7585ba9e65c73efba752c79b42522bfc0c7db6be533dd555c96c
6
+ metadata.gz: 60ffd93871099bdb05f26d21d115c3ecbd00677634c1c0eb1e906c00d72d487e3d6a9b290b05df4e16cf06a30b2cb5142588ecef361b6c77a4ae1a3774f393da
7
+ data.tar.gz: 2f232f9a8f6e1643704434d234975676fc98d543cca66474f96b8543600f0430718928db3f17b9b61d26fa1cca1ee34ea11f14b67f39b3e2f9d38b7ca9773f7f
Binary file
data.tar.gz.sig CHANGED
Binary file
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.2.1 - 10-Oct-2020
2
+ * Remove the old test file and directory, oops. Thanks go to Michael Crusoe
3
+ for the spot.
4
+
1
5
  ## 1.2.0 - 30-Sep-2020
2
6
  * Switched from test-unit to rspec, and added a Gemfile.
3
7
  * Use markdown for text files.
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'facade'
5
- spec.version = '1.2.0'
5
+ spec.version = '1.2.1'
6
6
  spec.author = 'Daniel J. Berger'
7
7
  spec.license = 'Apache-2.0'
8
8
  spec.email = 'djberg96@gmail.com'
@@ -1,6 +1,6 @@
1
1
  module Facade
2
2
  # The version of the facade library
3
- FACADE_VERSION = '1.2.0'.freeze
3
+ FACADE_VERSION = '1.2.1'.freeze
4
4
 
5
5
  # The facade method will forward a singleton method as an instance
6
6
  # method of the extending class. If no arguments are provided, then all
@@ -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.0')
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.0
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-09-30 00:00:00.000000000 Z
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
@@ -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