dress_up 1.0.0a → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -2
- data/lib/dress_up.rb +7 -0
- data/lib/dress_up/version.rb +1 -1
- data/spec/dress_up/dress_up_spec.rb +1 -1
- metadata +55 -65
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Dress Up [![Build Status](https://secure.travis-ci.org/mhgbrown/dress_up.png)](http://travis-ci.org/mhgbrown/dress_up)
|
2
|
-
Let's play dress-up! Dress Up allows you to specify named sets of method overrides that you can selectively enable and disable.
|
2
|
+
Let's play dress-up! Dress Up allows you to specify named sets of method overrides that you can selectively enable and disable. It makes for a sort of an on-the-fly decorator pattern.
|
3
3
|
|
4
4
|
## Compatibility
|
5
5
|
Dress Up relies on the Ruby 1.9.X ordering of Hash entries.
|
@@ -9,7 +9,7 @@ Below is the Duck class that has defined two costumes: dog and robosoldier. The
|
|
9
9
|
|
10
10
|
class Duck
|
11
11
|
# include the Dress Up functionality
|
12
|
-
include DressUp
|
12
|
+
include DressUp
|
13
13
|
|
14
14
|
attr_accessor :name, :age
|
15
15
|
|
data/lib/dress_up.rb
CHANGED
data/lib/dress_up/version.rb
CHANGED
metadata
CHANGED
@@ -1,61 +1,56 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: dress_up
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 0
|
10
|
-
- a
|
11
|
-
version: 1.0.0a
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.1
|
5
|
+
prerelease:
|
12
6
|
platform: ruby
|
13
|
-
authors:
|
7
|
+
authors:
|
14
8
|
- Morgan Brown
|
15
9
|
autorequire:
|
16
10
|
bindir: bin
|
17
11
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-05-20 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: rake
|
23
|
-
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
25
17
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
version: "0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
33
22
|
type: :runtime
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: rspec
|
37
23
|
prerelease: false
|
38
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rspec
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
39
33
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
segments:
|
45
|
-
- 0
|
46
|
-
version: "0"
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
47
38
|
type: :development
|
48
|
-
|
49
|
-
|
50
|
-
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
description: Dress Up allows you to specify named sets of method overrides that you
|
47
|
+
can selectively enable and disable.
|
48
|
+
email:
|
51
49
|
- brown.mhg@gmail.com
|
52
50
|
executables: []
|
53
|
-
|
54
51
|
extensions: []
|
55
|
-
|
56
52
|
extra_rdoc_files: []
|
57
|
-
|
58
|
-
files:
|
53
|
+
files:
|
59
54
|
- .gitignore
|
60
55
|
- .travis.yml
|
61
56
|
- Gemfile
|
@@ -73,39 +68,34 @@ files:
|
|
73
68
|
- spec/spec_helper.rb
|
74
69
|
homepage: https://github.com/discom4rt/dress_up
|
75
70
|
licenses: []
|
76
|
-
|
77
71
|
post_install_message:
|
78
72
|
rdoc_options: []
|
79
|
-
|
80
|
-
require_paths:
|
73
|
+
require_paths:
|
81
74
|
- lib
|
82
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
75
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
83
76
|
none: false
|
84
|
-
requirements:
|
85
|
-
- -
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
|
88
|
-
segments:
|
77
|
+
requirements:
|
78
|
+
- - ! '>='
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
segments:
|
89
82
|
- 0
|
90
|
-
|
91
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
83
|
+
hash: 3788657920219976717
|
84
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
85
|
none: false
|
93
|
-
requirements:
|
94
|
-
- -
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
|
97
|
-
segments:
|
98
|
-
-
|
99
|
-
|
100
|
-
- 1
|
101
|
-
version: 1.3.1
|
86
|
+
requirements:
|
87
|
+
- - ! '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
segments:
|
91
|
+
- 0
|
92
|
+
hash: 3788657920219976717
|
102
93
|
requirements: []
|
103
|
-
|
104
94
|
rubyforge_project:
|
105
|
-
rubygems_version: 1.8.
|
95
|
+
rubygems_version: 1.8.24
|
106
96
|
signing_key:
|
107
97
|
specification_version: 3
|
108
98
|
summary: Enable and disable sets of method overrides
|
109
|
-
test_files:
|
99
|
+
test_files:
|
110
100
|
- spec/dress_up/dress_up_spec.rb
|
111
101
|
- spec/spec_helper.rb
|