discoverer 0.0.1 → 0.0.2

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
  Discoverer
2
- ====
2
+ ==========
3
3
 
4
4
  Clases
5
5
  ------
@@ -10,4 +10,5 @@ To do
10
10
  -----
11
11
 
12
12
  - For the love of God, add some documentation!!!
13
- - The exception when the Pattern Classes (Writer, Reader) are not properly implemented should be more verbose about what's actually the problem. Furthermore, testing method for correct Pattern Class implementations should be provided within Core.
13
+ - The exception when the Pattern Classes (Writer, Reader) are not properly implemented should be more verbose about what's actually the problem. Furthermore, testing method for correct Pattern Class implementations should be provided within Core.
14
+ - When the matching implementation is not a class, (is a module, for example), it should not attempt to use it as a Writer
@@ -6,5 +6,6 @@ require 'discoverer/version'
6
6
  require 'discoverer/reader'
7
7
  require 'discoverer/writer'
8
8
  require 'discoverer/model'
9
+ require 'discoverer/pattern'
9
10
 
10
11
  require 'discoverer/discoverer'
@@ -0,0 +1,9 @@
1
+ module Discoverer
2
+ class Pattern
3
+ attr_accessor :source
4
+
5
+ def initialize source
6
+ @source = source
7
+ end
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module Discoverer
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe Discoverer::Pattern do
4
+ describe '#initialize' do
5
+ it 'should set the source' do
6
+ source = stub 'source'
7
+ pattern = Discoverer::Pattern.new source
8
+ pattern.source.should == source
9
+ end
10
+ end
11
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: discoverer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-29 00:00:00.000000000 Z
12
+ date: 2013-02-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: virtus
@@ -76,11 +76,13 @@ files:
76
76
  - lib/discoverer.rb
77
77
  - lib/discoverer/discoverer.rb
78
78
  - lib/discoverer/model.rb
79
+ - lib/discoverer/pattern.rb
79
80
  - lib/discoverer/reader.rb
80
81
  - lib/discoverer/version.rb
81
82
  - lib/discoverer/writer.rb
82
83
  - spec/discoverer/discoverer_spec.rb
83
84
  - spec/discoverer/model_spec.rb
85
+ - spec/discoverer/pattern_spec.rb
84
86
  - spec/discoverer/reader_spec.rb
85
87
  - spec/discoverer/writer_spec.rb
86
88
  - spec/spec_helper.rb
@@ -111,7 +113,7 @@ summary: Discoverer functionality with focus in writers and readers
111
113
  test_files:
112
114
  - spec/discoverer/discoverer_spec.rb
113
115
  - spec/discoverer/model_spec.rb
116
+ - spec/discoverer/pattern_spec.rb
114
117
  - spec/discoverer/reader_spec.rb
115
118
  - spec/discoverer/writer_spec.rb
116
119
  - spec/spec_helper.rb
117
- has_rdoc: