partridge 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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +21 -1
- data/lib/partridge/version.rb +1 -1
- metadata +1 -2
- data/Gemfile.lock +0 -83
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8592debc2707bd216a3acc1a1e4c8d631ca18d7f6cf73657d27afd6d8cc83ad1
|
4
|
+
data.tar.gz: c2f734a5826de68933e8b91d5da877f2fd58172b46eec16f94ca84506f1a4e25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae3d7ee12921148c4fc00f81852b2369eaf3ad740bd0ecbb8f16ff10401d6c6d3ca6cff3e3731982cd0953f866f6cac0b921c285e5f950480ba3d26e27f4f9ef
|
7
|
+
data.tar.gz: 82458e606bc74a989484a981260bab3fd55a9aa8702a53a19b00bd70acf6dd37c27b3120e2329f8a53b21a7f901102fd8241cd9c9bd87aac9f94a5e98ea0e52e
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -20,7 +20,27 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
## Usage
|
22
22
|
|
23
|
-
|
23
|
+
This method takes an oid as an integer and returns a path as a string.
|
24
|
+
```ruby
|
25
|
+
Partridge::Pairtree.oid_to_pairtree(oid)
|
26
|
+
```
|
27
|
+
```bash
|
28
|
+
> Partridge::Pairtree.oid_to_pairtree(123456)
|
29
|
+
=> "56/12/34/56"
|
30
|
+
```
|
31
|
+
|
32
|
+
### Sample implementation
|
33
|
+
```ruby
|
34
|
+
def self.remote_ptiff_path(oid)
|
35
|
+
pairtree_path = Partridge::Pairtree.oid_to_pairtree(oid)
|
36
|
+
File.join("ptiffs", pairtree_path, "#{oid}.tif" )
|
37
|
+
end
|
38
|
+
```
|
39
|
+
|
40
|
+
```bash
|
41
|
+
> self.remote_ptiff_path(123456)
|
42
|
+
=> "ptiffs/56/12/34/56/123456.tif"
|
43
|
+
```
|
24
44
|
|
25
45
|
## Development
|
26
46
|
|
data/lib/partridge/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: partridge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Max Kadel
|
@@ -52,7 +52,6 @@ files:
|
|
52
52
|
- ".gitignore"
|
53
53
|
- ".rspec"
|
54
54
|
- Gemfile
|
55
|
-
- Gemfile.lock
|
56
55
|
- LICENSE.txt
|
57
56
|
- README.md
|
58
57
|
- Rakefile
|
data/Gemfile.lock
DELETED
@@ -1,83 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
partridge (0.1.0)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
activesupport (6.0.3.2)
|
10
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
11
|
-
i18n (>= 0.7, < 2)
|
12
|
-
minitest (~> 5.1)
|
13
|
-
tzinfo (~> 1.1)
|
14
|
-
zeitwerk (~> 2.2, >= 2.2.2)
|
15
|
-
ast (2.4.1)
|
16
|
-
bixby (3.0.1)
|
17
|
-
rubocop (= 0.85.1)
|
18
|
-
rubocop-performance
|
19
|
-
rubocop-rails
|
20
|
-
rubocop-rspec
|
21
|
-
concurrent-ruby (1.1.7)
|
22
|
-
diff-lcs (1.4.4)
|
23
|
-
i18n (1.8.5)
|
24
|
-
concurrent-ruby (~> 1.0)
|
25
|
-
minitest (5.14.2)
|
26
|
-
parallel (1.19.2)
|
27
|
-
parser (2.7.1.4)
|
28
|
-
ast (~> 2.4.1)
|
29
|
-
rack (2.2.3)
|
30
|
-
rainbow (3.0.0)
|
31
|
-
rake (12.3.3)
|
32
|
-
regexp_parser (1.7.1)
|
33
|
-
rexml (3.2.4)
|
34
|
-
rspec (3.9.0)
|
35
|
-
rspec-core (~> 3.9.0)
|
36
|
-
rspec-expectations (~> 3.9.0)
|
37
|
-
rspec-mocks (~> 3.9.0)
|
38
|
-
rspec-core (3.9.2)
|
39
|
-
rspec-support (~> 3.9.3)
|
40
|
-
rspec-expectations (3.9.2)
|
41
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
42
|
-
rspec-support (~> 3.9.0)
|
43
|
-
rspec-mocks (3.9.1)
|
44
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
45
|
-
rspec-support (~> 3.9.0)
|
46
|
-
rspec-support (3.9.3)
|
47
|
-
rubocop (0.85.1)
|
48
|
-
parallel (~> 1.10)
|
49
|
-
parser (>= 2.7.0.1)
|
50
|
-
rainbow (>= 2.2.2, < 4.0)
|
51
|
-
regexp_parser (>= 1.7)
|
52
|
-
rexml
|
53
|
-
rubocop-ast (>= 0.0.3)
|
54
|
-
ruby-progressbar (~> 1.7)
|
55
|
-
unicode-display_width (>= 1.4.0, < 2.0)
|
56
|
-
rubocop-ast (0.3.0)
|
57
|
-
parser (>= 2.7.1.4)
|
58
|
-
rubocop-performance (1.7.1)
|
59
|
-
rubocop (>= 0.82.0)
|
60
|
-
rubocop-rails (2.6.0)
|
61
|
-
activesupport (>= 4.2.0)
|
62
|
-
rack (>= 1.1)
|
63
|
-
rubocop (>= 0.82.0)
|
64
|
-
rubocop-rspec (1.41.0)
|
65
|
-
rubocop (>= 0.68.1)
|
66
|
-
ruby-progressbar (1.10.1)
|
67
|
-
thread_safe (0.3.6)
|
68
|
-
tzinfo (1.2.7)
|
69
|
-
thread_safe (~> 0.1)
|
70
|
-
unicode-display_width (1.7.0)
|
71
|
-
zeitwerk (2.4.0)
|
72
|
-
|
73
|
-
PLATFORMS
|
74
|
-
ruby
|
75
|
-
|
76
|
-
DEPENDENCIES
|
77
|
-
bixby
|
78
|
-
partridge!
|
79
|
-
rake (~> 12.0)
|
80
|
-
rspec (~> 3.0)
|
81
|
-
|
82
|
-
BUNDLED WITH
|
83
|
-
2.1.4
|