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 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::Interface
12
+ include DressUp
13
13
 
14
14
  attr_accessor :name, :age
15
15
 
data/lib/dress_up.rb CHANGED
@@ -5,4 +5,11 @@ require "dress_up/outfit"
5
5
  require "dress_up/errors"
6
6
 
7
7
  module DressUp
8
+
9
+ # include DressUp::Interface if DressUp
10
+ # is included
11
+ def self.included(base)
12
+ base.send :include, DressUp::Interface
13
+ end
14
+
8
15
  end
@@ -1,3 +1,3 @@
1
1
  module DressUp
2
- VERSION = "1.0.0a"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -4,7 +4,7 @@ describe DressUp do
4
4
 
5
5
  before(:each) do
6
6
  class Duck
7
- include DressUp::Interface
7
+ include DressUp
8
8
 
9
9
  attr_accessor :name, :age
10
10
 
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
- hash: 58
5
- prerelease: 5
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
- date: 2012-03-29 00:00:00 Z
20
- dependencies:
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
- prerelease: false
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
- hash: 3
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
- requirement: &id002 !ruby/object:Gem::Requirement
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
- hash: 3
44
- segments:
45
- - 0
46
- version: "0"
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
47
38
  type: :development
48
- version_requirements: *id002
49
- description: Dress Up allows you to specify named sets of method overrides that you can selectively enable and disable.
50
- email:
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
- hash: 3
88
- segments:
77
+ requirements:
78
+ - - ! '>='
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ segments:
89
82
  - 0
90
- version: "0"
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
- hash: 25
97
- segments:
98
- - 1
99
- - 3
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.21
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