vidibus-fileinfo 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +0 -7
- data/lib/vidibus/fileinfo.rb +5 -5
- data/lib/vidibus/fileinfo/version.rb +1 -1
- metadata +91 -142
data/Rakefile
CHANGED
@@ -9,12 +9,6 @@ require "vidibus/fileinfo/version"
|
|
9
9
|
|
10
10
|
Bundler::GemHelper.install_tasks
|
11
11
|
|
12
|
-
RSpec::Core::RakeTask.new(:rcov) do |t|
|
13
|
-
t.pattern = "spec/**/*_spec.rb"
|
14
|
-
t.rcov = true
|
15
|
-
t.rcov_opts = ["--exclude", "^spec,/gems/"]
|
16
|
-
end
|
17
|
-
|
18
12
|
Rake::RDocTask.new do |rdoc|
|
19
13
|
rdoc.rdoc_dir = "rdoc"
|
20
14
|
rdoc.title = "vidibus-fileinfo #{Vidibus::Fileinfo::VERSION}"
|
@@ -23,4 +17,3 @@ Rake::RDocTask.new do |rdoc|
|
|
23
17
|
rdoc.options << "--charset=utf-8"
|
24
18
|
end
|
25
19
|
|
26
|
-
task :default => :rcov
|
data/lib/vidibus/fileinfo.rb
CHANGED
@@ -54,11 +54,11 @@ module Vidibus
|
|
54
54
|
size = $1.to_f
|
55
55
|
unit = $2.strip.upcase if $2
|
56
56
|
power = case unit
|
57
|
-
when "B", ""
|
58
|
-
when "K", "KB"
|
59
|
-
when "M", "MB"
|
60
|
-
when "G", "GB"
|
61
|
-
when "T", "TB"
|
57
|
+
when "B", "" then 0
|
58
|
+
when "K", "KB" then 1
|
59
|
+
when "M", "MB" then 2
|
60
|
+
when "G", "GB" then 3
|
61
|
+
when "T", "TB" then 4
|
62
62
|
else raise UnitError
|
63
63
|
end
|
64
64
|
factor = 1024**power
|
metadata
CHANGED
@@ -1,160 +1,122 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: vidibus-fileinfo
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 2
|
10
|
-
version: 1.0.2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.0
|
5
|
+
prerelease:
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Andre Pankratz
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-06-19 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: mime-types
|
23
|
-
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &2162763400 !ruby/object:Gem::Requirement
|
25
17
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
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: posix-spawn
|
37
23
|
prerelease: false
|
38
|
-
|
24
|
+
version_requirements: *2162763400
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: posix-spawn
|
27
|
+
requirement: &2162768340 !ruby/object:Gem::Requirement
|
39
28
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
segments:
|
45
|
-
- 0
|
46
|
-
version: "0"
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
47
33
|
type: :runtime
|
48
|
-
version_requirements: *id002
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: vidibus-core_extensions
|
51
34
|
prerelease: false
|
52
|
-
|
35
|
+
version_requirements: *2162768340
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: vidibus-core_extensions
|
38
|
+
requirement: &2162672300 !ruby/object:Gem::Requirement
|
53
39
|
none: false
|
54
|
-
requirements:
|
55
|
-
- -
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
|
58
|
-
segments:
|
59
|
-
- 0
|
60
|
-
version: "0"
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
61
44
|
type: :runtime
|
62
|
-
version_requirements: *id003
|
63
|
-
- !ruby/object:Gem::Dependency
|
64
|
-
name: bundler
|
65
45
|
prerelease: false
|
66
|
-
|
46
|
+
version_requirements: *2162672300
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: bundler
|
49
|
+
requirement: &2162542620 !ruby/object:Gem::Requirement
|
67
50
|
none: false
|
68
|
-
requirements:
|
69
|
-
- -
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
hash: 23
|
72
|
-
segments:
|
73
|
-
- 1
|
74
|
-
- 0
|
75
|
-
- 0
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
76
54
|
version: 1.0.0
|
77
55
|
type: :development
|
78
|
-
version_requirements: *id004
|
79
|
-
- !ruby/object:Gem::Dependency
|
80
|
-
name: rspec
|
81
56
|
prerelease: false
|
82
|
-
|
57
|
+
version_requirements: *2162542620
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: rspec
|
60
|
+
requirement: &2162462080 !ruby/object:Gem::Requirement
|
83
61
|
none: false
|
84
|
-
requirements:
|
62
|
+
requirements:
|
85
63
|
- - ~>
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
|
88
|
-
segments:
|
89
|
-
- 2
|
90
|
-
version: "2"
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '2'
|
91
66
|
type: :development
|
92
|
-
version_requirements: *id005
|
93
|
-
- !ruby/object:Gem::Dependency
|
94
|
-
name: rr
|
95
67
|
prerelease: false
|
96
|
-
|
68
|
+
version_requirements: *2162462080
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rr
|
71
|
+
requirement: &2162391560 !ruby/object:Gem::Requirement
|
97
72
|
none: false
|
98
|
-
requirements:
|
99
|
-
- -
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
|
102
|
-
segments:
|
103
|
-
- 0
|
104
|
-
version: "0"
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
105
77
|
type: :development
|
106
|
-
version_requirements: *id006
|
107
|
-
- !ruby/object:Gem::Dependency
|
108
|
-
name: rake
|
109
78
|
prerelease: false
|
110
|
-
|
79
|
+
version_requirements: *2162391560
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: rake
|
82
|
+
requirement: &2162258760 !ruby/object:Gem::Requirement
|
111
83
|
none: false
|
112
|
-
requirements:
|
113
|
-
- -
|
114
|
-
- !ruby/object:Gem::Version
|
115
|
-
|
116
|
-
segments:
|
117
|
-
- 0
|
118
|
-
version: "0"
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
119
88
|
type: :development
|
120
|
-
version_requirements: *id007
|
121
|
-
- !ruby/object:Gem::Dependency
|
122
|
-
name: rcov
|
123
89
|
prerelease: false
|
124
|
-
|
90
|
+
version_requirements: *2162258760
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: rdoc
|
93
|
+
requirement: &2162138320 !ruby/object:Gem::Requirement
|
125
94
|
none: false
|
126
|
-
requirements:
|
127
|
-
- -
|
128
|
-
- !ruby/object:Gem::Version
|
129
|
-
|
130
|
-
segments:
|
131
|
-
- 0
|
132
|
-
version: "0"
|
95
|
+
requirements:
|
96
|
+
- - ! '>='
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
133
99
|
type: :development
|
134
|
-
version_requirements: *id008
|
135
|
-
- !ruby/object:Gem::Dependency
|
136
|
-
name: rdoc
|
137
100
|
prerelease: false
|
138
|
-
|
101
|
+
version_requirements: *2162138320
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: simplecov
|
104
|
+
requirement: &2154177040 !ruby/object:Gem::Requirement
|
139
105
|
none: false
|
140
|
-
requirements:
|
141
|
-
- -
|
142
|
-
- !ruby/object:Gem::Version
|
143
|
-
|
144
|
-
segments:
|
145
|
-
- 0
|
146
|
-
version: "0"
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
147
110
|
type: :development
|
148
|
-
|
149
|
-
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: *2154177040
|
113
|
+
description: Returns information like the width, height and bits about an image or
|
114
|
+
video file.
|
150
115
|
email: andre@vidibus.com
|
151
116
|
executables: []
|
152
|
-
|
153
117
|
extensions: []
|
154
|
-
|
155
118
|
extra_rdoc_files: []
|
156
|
-
|
157
|
-
files:
|
119
|
+
files:
|
158
120
|
- lib/vidibus/fileinfo/base.rb
|
159
121
|
- lib/vidibus/fileinfo/processor/image.rb
|
160
122
|
- lib/vidibus/fileinfo/processor/video.rb
|
@@ -164,41 +126,28 @@ files:
|
|
164
126
|
- LICENSE
|
165
127
|
- README.md
|
166
128
|
- Rakefile
|
167
|
-
has_rdoc: true
|
168
129
|
homepage: https://github.com/vidibus/vidibus-fileinfo
|
169
130
|
licenses: []
|
170
|
-
|
171
131
|
post_install_message:
|
172
132
|
rdoc_options: []
|
173
|
-
|
174
|
-
require_paths:
|
133
|
+
require_paths:
|
175
134
|
- lib
|
176
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
135
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
177
136
|
none: false
|
178
|
-
requirements:
|
179
|
-
- -
|
180
|
-
- !ruby/object:Gem::Version
|
181
|
-
|
182
|
-
|
183
|
-
- 0
|
184
|
-
version: "0"
|
185
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - ! '>='
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '0'
|
141
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
186
142
|
none: false
|
187
|
-
requirements:
|
188
|
-
- -
|
189
|
-
- !ruby/object:Gem::Version
|
190
|
-
hash: 23
|
191
|
-
segments:
|
192
|
-
- 1
|
193
|
-
- 3
|
194
|
-
- 6
|
143
|
+
requirements:
|
144
|
+
- - ! '>='
|
145
|
+
- !ruby/object:Gem::Version
|
195
146
|
version: 1.3.6
|
196
147
|
requirements: []
|
197
|
-
|
198
148
|
rubyforge_project:
|
199
|
-
rubygems_version: 1.
|
149
|
+
rubygems_version: 1.8.11
|
200
150
|
signing_key:
|
201
151
|
specification_version: 3
|
202
152
|
summary: Returns information about an image or video file.
|
203
153
|
test_files: []
|
204
|
-
|