outline 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/outline.rb +1 -1
  3. data/spec/outline_spec.rb +9 -0
  4. metadata +5 -5
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -8,7 +8,7 @@ class Outline
8
8
 
9
9
  include MetaTools
10
10
 
11
- attr_reader :parent
11
+ attr_reader :parent, :data
12
12
 
13
13
  def initialize(opts={}, &blk)
14
14
  raise(TypeError, "opts must respond to :to_hash or be nil") unless opts.nil? || opts.respond_to?(:to_hash)
@@ -51,6 +51,15 @@ describe Outline do
51
51
  end
52
52
  end
53
53
 
54
+ describe "#data" do
55
+ it "should be able to be manipulated from outside of the Outline" do
56
+ config.data[:from_outside] = "Hello"
57
+ config.from_outside.should == "Hello"
58
+ config.from_outside = "Goodbye"
59
+ config.data[:from_outside].should == "Goodbye"
60
+ end
61
+ end
62
+
54
63
  describe "#to_h" do
55
64
  it "should return the correct Hash output" do
56
65
  config.to_h.should == {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: outline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-01-22 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: meta_tools
16
- requirement: &70132294995180 !ruby/object:Gem::Requirement
16
+ requirement: &70303086873140 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.2.6
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70132294995180
24
+ version_requirements: *70303086873140
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70132294994700 !ruby/object:Gem::Requirement
27
+ requirement: &70303086872660 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 2.6.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70132294994700
35
+ version_requirements: *70303086872660
36
36
  description: Easily set configurations on your Ruby apps.
37
37
  email: c00lryguy@gmail.com
38
38
  executables: []