sequencer 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sequencer.rb +3 -2
- data/sequencer.gemspec +2 -2
- data/test/test_sequencer.rb +2 -1
- metadata +7 -7
data/lib/sequencer.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module Sequencer
|
2
|
-
VERSION = '1.1.
|
2
|
+
VERSION = '1.1.2'
|
3
3
|
NUMBERS_AT_END = /(\d+)([^\d]+)?$/
|
4
4
|
|
5
5
|
extend self
|
@@ -7,7 +7,7 @@ module Sequencer
|
|
7
7
|
# Detects sequences in the passed directory (same as Dir.entries but returns Sequence objects).
|
8
8
|
# Single files will be upgraded to single-frame Sequences
|
9
9
|
def entries(of_dir)
|
10
|
-
actual_files = Dir.entries(of_dir)
|
10
|
+
actual_files = Dir.entries(of_dir).reject{|e| %w(.. .).include?(e)}
|
11
11
|
groups = {}
|
12
12
|
|
13
13
|
actual_files.each do | e |
|
@@ -83,6 +83,7 @@ module Sequencer
|
|
83
83
|
|
84
84
|
class Sequence
|
85
85
|
include Enumerable, Comparable
|
86
|
+
|
86
87
|
attr_reader :pattern
|
87
88
|
attr_reader :directory
|
88
89
|
|
data/sequencer.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "sequencer"
|
8
|
-
s.version = "1.1.
|
8
|
+
s.version = "1.1.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Julik Tarkhanov"]
|
12
|
-
s.date = "2012-
|
12
|
+
s.date = "2012-05-30"
|
13
13
|
s.email = "me@julik.nl"
|
14
14
|
s.executables = ["rseqls", "rseqpad", "rseqrename"]
|
15
15
|
s.extra_rdoc_files = [
|
data/test/test_sequencer.rb
CHANGED
@@ -209,7 +209,8 @@ class A_Sequence_created_from_pad_numbered_files_should < Test::Unit::TestCase
|
|
209
209
|
|
210
210
|
def test_list_all_sequences_in_directory_and_subdirectories_using_the_pattern
|
211
211
|
s = Sequencer.from_glob(TEST_DIR + "/**/*.tif")
|
212
|
-
# Here we need to use a Set since Ruby does not
|
212
|
+
# Here we need to use a Set since Ruby does not sort the globbed results
|
213
|
+
# in a cross-platform way
|
213
214
|
ref_set = Set.new([
|
214
215
|
"#<anotherS [228..312].tif>",
|
215
216
|
"#<seq1.[458..512].tif>",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sequencer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-05-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jeweler
|
16
|
-
requirement: &
|
16
|
+
requirement: &9134000 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *9134000
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rake
|
27
|
-
requirement: &
|
27
|
+
requirement: &9132990 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *9132990
|
36
36
|
description:
|
37
37
|
email: me@julik.nl
|
38
38
|
executables:
|
@@ -69,7 +69,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
69
69
|
version: '0'
|
70
70
|
segments:
|
71
71
|
- 0
|
72
|
-
hash:
|
72
|
+
hash: -408673631
|
73
73
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
74
|
none: false
|
75
75
|
requirements:
|