decorum 0.5.0 → 0.5.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/.travis.yml +5 -1
- data/README.md +6 -4
- data/lib/decorum/version.rb +1 -1
- data/spec/unit/decorations_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3111af17283398400659fd217cfb16fe1420a826
|
4
|
+
data.tar.gz: 05d99f1592379115309dbca439adb889453ef06b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4e88558e3d5c3932ad701eab5654bc010c4d6ccfee15cdd9aac7169f7ab0de06351409e9286108ebab7a30550a88b67170217aebbd98dfafe40f40054feb060
|
7
|
+
data.tar.gz: 7e10249d77b7de3d00c246f74e0934b8ba7797457a0e4990b611869a9a1a2aefddda49172c98b18cb4261a102cb31ec0d31bd611113711bc7149c32a864b3b95
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -2,10 +2,9 @@
|
|
2
2
|
[](http://badge.fury.io/rb/decorum)
|
3
3
|
[](https://travis-ci.org/erikcameron/decorum)
|
4
4
|
|
5
|
-
Decorum implements lightweight decorators
|
6
|
-
|
7
|
-
|
8
|
-
library. Use it wherever.
|
5
|
+
Decorum implements lightweight decorators for Ruby, which we're
|
6
|
+
calling "tasteful decorators." (See below.) It is very small, and
|
7
|
+
has no requirements outside of the standard library. Use it wherever.
|
9
8
|
|
10
9
|
## Quick Start
|
11
10
|
|
@@ -33,6 +32,9 @@ bp.is_decorated? # ==> true
|
|
33
32
|
bp.shoot_confetti # ==> "boom, yay"
|
34
33
|
```
|
35
34
|
|
35
|
+
## 0.5.1
|
36
|
+
- Test suite maintenance, all is well.
|
37
|
+
|
36
38
|
## New in 0.5.0
|
37
39
|
- The (public) methods in Decorum::Decorations (decorate, undecorate, etc.) may now be aliased. If you were having weird bugs beacuse Decorum was clobbering some existing method named `#decorate`, this is the version for you. More below.
|
38
40
|
|
data/lib/decorum/version.rb
CHANGED
@@ -32,7 +32,7 @@ describe Decorum::Decorations do
|
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'rejects malformed options' do
|
35
|
-
expect { klass.decorum(Decorum::Spec::Decorations::FirstDecorator, "invalid decorator argument") }.to raise_error
|
35
|
+
expect { klass.decorum(Decorum::Spec::Decorations::FirstDecorator, "invalid decorator argument") }.to raise_error(ArgumentError)
|
36
36
|
end
|
37
37
|
|
38
38
|
# this probably belongs with other instance methods below, but we've got the
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decorum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erik Cameron
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
128
|
version: '0'
|
129
129
|
requirements: []
|
130
130
|
rubyforge_project:
|
131
|
-
rubygems_version: 2.
|
131
|
+
rubygems_version: 2.6.11
|
132
132
|
signing_key:
|
133
133
|
specification_version: 4
|
134
134
|
summary: Decorum implements the Decorator pattern (more or less) in a fairly unobtrusive
|