seamus 0.2.0 → 0.2.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.
data/Seamus.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{seamus}
5
- s.version = "0.2.0"
5
+ s.version = "0.2.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Scott Burton"]
9
- s.date = %q{2009-12-03}
9
+ s.date = %q{2010-01-26}
10
10
  s.description = %q{Seamus is not an Irish monk. Instead, it inspects a file and returns whatever metadata it can determine.}
11
11
  s.email = %q{scottburton11@gmail.com}
12
12
  s.extra_rdoc_files = [
@@ -31,11 +31,13 @@ Gem::Specification.new do |s|
31
31
  "lib/seamus/inspector/application_inspector.rb",
32
32
  "lib/seamus/inspector/audio_inspector.rb",
33
33
  "lib/seamus/inspector/image_inspector.rb",
34
+ "lib/seamus/inspector/text_inspector.rb",
34
35
  "lib/seamus/inspector/video_inspector.rb",
35
36
  "lib/seamus/processor.rb",
36
37
  "lib/seamus/processor/application_processor.rb",
37
38
  "lib/seamus/processor/audio_processor.rb",
38
39
  "lib/seamus/processor/image_processor.rb",
40
+ "lib/seamus/processor/text_processor.rb",
39
41
  "lib/seamus/processor/video_processor.rb",
40
42
  "spec/Seamus_spec.rb",
41
43
  "spec/lib/core/numeric_spec.rb",
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
data/lib/Seamus.rb CHANGED
@@ -11,11 +11,13 @@ require 'seamus/inspector/video_inspector'
11
11
  require 'seamus/inspector/audio_inspector'
12
12
  require 'seamus/inspector/image_inspector'
13
13
  require 'seamus/inspector/application_inspector'
14
+ require 'seamus/inspector/text_inspector'
14
15
  require 'seamus/processor'
15
16
  require 'seamus/processor/video_processor'
16
17
  require 'seamus/processor/audio_processor'
17
18
  require 'seamus/processor/image_processor'
18
19
  require 'seamus/processor/application_processor'
20
+ require 'seamus/processor/text_processor'
19
21
  require 'mime_table'
20
22
 
21
23
 
@@ -0,0 +1,16 @@
1
+ module Seamus
2
+ class TextInspector < Inspector
3
+
4
+ def stats
5
+ inspection_attributes
6
+ end
7
+
8
+ private
9
+
10
+ def inspection_attributes
11
+ attr_hash = {"size" => file_stat.size}
12
+ return attr_hash
13
+ end
14
+
15
+ end
16
+ end
@@ -1,5 +1,9 @@
1
1
  module Seamus
2
2
  class ApplicationProcessor < Processor
3
+
4
+ def thumbnail
5
+ raise ThumbnailError, "invalid type for thumbnail"
6
+ end
3
7
 
4
8
  end
5
9
  end
@@ -0,0 +1,9 @@
1
+ module Seamus
2
+ class TextProcessor < Processor
3
+
4
+ def thumbnail
5
+ raise ThumbnailError, "invalid type for thumbnail"
6
+ end
7
+
8
+ end
9
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seamus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Burton
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-03 00:00:00 -08:00
12
+ date: 2010-01-26 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -40,11 +40,13 @@ files:
40
40
  - lib/seamus/inspector/application_inspector.rb
41
41
  - lib/seamus/inspector/audio_inspector.rb
42
42
  - lib/seamus/inspector/image_inspector.rb
43
+ - lib/seamus/inspector/text_inspector.rb
43
44
  - lib/seamus/inspector/video_inspector.rb
44
45
  - lib/seamus/processor.rb
45
46
  - lib/seamus/processor/application_processor.rb
46
47
  - lib/seamus/processor/audio_processor.rb
47
48
  - lib/seamus/processor/image_processor.rb
49
+ - lib/seamus/processor/text_processor.rb
48
50
  - lib/seamus/processor/video_processor.rb
49
51
  - spec/Seamus_spec.rb
50
52
  - spec/lib/core/numeric_spec.rb