yamdi 0.1.0 → 0.1.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/Changelog.mdown +5 -0
- data/VERSION +1 -1
- data/lib/paperclip_processors/metadata_extractor.rb +8 -0
- data/lib/yamdi.rb +1 -0
- data/spec/spec_helper.rb +0 -1
- data/yamdi.gemspec +74 -0
- metadata +5 -4
data/Changelog.mdown
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
== 0.1.1 (January 25, 2011)
|
2
|
+
|
3
|
+
* Fix errant require that caused gem to fail but tests to pass. [Bob Burbach]
|
4
|
+
* Update documentation in the paperclip processor with regards to running the processors in the background and ensuring the attachment instance is saved. [Bob Burbach]
|
5
|
+
|
1
6
|
== 0.1.0 (January 22, 2011)
|
2
7
|
|
3
8
|
* Initial version of gem supporting reading of metadata attributes from flv files. [Bob Burbach]
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
@@ -7,7 +7,15 @@ module Paperclip
|
|
7
7
|
# add values to the attachment instance (for db persistence, etc)
|
8
8
|
# assumes duration is a column in the table this attachment is being
|
9
9
|
# added to.
|
10
|
+
|
11
|
+
# a simple assignment works if you are not background processing your
|
12
|
+
# paperclip processing
|
10
13
|
attachment.instance.duration = metadata.duration
|
14
|
+
|
15
|
+
# if you are background processing your paperclip processing which is
|
16
|
+
# common when working with videos you'll want to ensure the instance gets
|
17
|
+
# saved at some point in the processor chain, use:
|
18
|
+
# attachment.instance.update_attribute(:duration, metadata.duration)
|
11
19
|
|
12
20
|
# always return a reference to the file when done
|
13
21
|
file
|
data/lib/yamdi.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -2,7 +2,6 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
2
2
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
3
|
require 'rspec'
|
4
4
|
require 'yamdi'
|
5
|
-
require 'nokogiri'
|
6
5
|
|
7
6
|
# Requires supporting files with custom matchers and macros, etc,
|
8
7
|
# in ./support/ and its subdirectories.
|
data/yamdi.gemspec
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{yamdi}
|
8
|
+
s.version = "0.1.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Bob Burbach"]
|
12
|
+
s.date = %q{2011-01-25}
|
13
|
+
s.description = %q{Yamdi is a ruby wrapper around the command line tool yamdi (github.com/ioppermann/yamdi). You'll need yamdi installed in order for the gem to be of any use. If you are on OSX I recommend using homebrew (brew install yamdi).}
|
14
|
+
s.email = %q{bob.burbach@gmail.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".rspec",
|
22
|
+
"Changelog.mdown",
|
23
|
+
"Gemfile",
|
24
|
+
"Gemfile.lock",
|
25
|
+
"LICENSE.txt",
|
26
|
+
"README.rdoc",
|
27
|
+
"Rakefile",
|
28
|
+
"VERSION",
|
29
|
+
"lib/paperclip_processors/metadata_extractor.rb",
|
30
|
+
"lib/yamdi.rb",
|
31
|
+
"spec/files/sample.flv",
|
32
|
+
"spec/spec_helper.rb",
|
33
|
+
"spec/yamdi_spec.rb",
|
34
|
+
"yamdi.gemspec"
|
35
|
+
]
|
36
|
+
s.homepage = %q{http://github.com/peregrinator/yamdi}
|
37
|
+
s.licenses = ["MIT"]
|
38
|
+
s.require_paths = ["lib"]
|
39
|
+
s.rubygems_version = %q{1.3.7}
|
40
|
+
s.summary = %q{Yamdi is a ruby wrapper around the command line tool yamdi (github.com/ioppermann/yamdi).}
|
41
|
+
s.test_files = [
|
42
|
+
"spec/spec_helper.rb",
|
43
|
+
"spec/yamdi_spec.rb"
|
44
|
+
]
|
45
|
+
|
46
|
+
if s.respond_to? :specification_version then
|
47
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
48
|
+
s.specification_version = 3
|
49
|
+
|
50
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
51
|
+
s.add_runtime_dependency(%q<nokogiri>, ["~> 1.4.4"])
|
52
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
|
53
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
54
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
55
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
56
|
+
s.add_runtime_dependency(%q<nokogiri>, ["~> 1.4.4"])
|
57
|
+
else
|
58
|
+
s.add_dependency(%q<nokogiri>, ["~> 1.4.4"])
|
59
|
+
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
60
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
61
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
62
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
63
|
+
s.add_dependency(%q<nokogiri>, ["~> 1.4.4"])
|
64
|
+
end
|
65
|
+
else
|
66
|
+
s.add_dependency(%q<nokogiri>, ["~> 1.4.4"])
|
67
|
+
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
68
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
69
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
70
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
71
|
+
s.add_dependency(%q<nokogiri>, ["~> 1.4.4"])
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yamdi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Bob Burbach
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-01-
|
18
|
+
date: 2011-01-25 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -136,6 +136,7 @@ files:
|
|
136
136
|
- spec/files/sample.flv
|
137
137
|
- spec/spec_helper.rb
|
138
138
|
- spec/yamdi_spec.rb
|
139
|
+
- yamdi.gemspec
|
139
140
|
has_rdoc: true
|
140
141
|
homepage: http://github.com/peregrinator/yamdi
|
141
142
|
licenses:
|