thingfish-datastore-filesystem 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff81db9d90df8704d3634673f5eb5bc8edcd2d87
4
- data.tar.gz: 49f13b9e59e5d8d53530f69691ac2bcc7f974370
3
+ metadata.gz: d4497664ecc8a0df37ed973f34560e39e87be7e6
4
+ data.tar.gz: a092acf1b441023619ed2e7c73ebb1b0f36bfb0c
5
5
  SHA512:
6
- metadata.gz: 87d6f164a3012f07610db093ecfea94475f70df42451b7ac5bf82bd64922d067e44d50e934e5b20d07c792b7a6e55140ac581519805a29299ee5315274321aea
7
- data.tar.gz: 2f54ac6293763dd38530b5dd2539d3a5949aae8a1fd518c036a8cae823a18b76ed92f42f7be4170dbc5bb360a70af2265477796926d02d418b4d8f77531f51a2
6
+ metadata.gz: d9a50b4e0433b8f28193b985d5368751ac7a209bde47eac2314d68b53282dca834a9138f37bd16539ea4c1cf52397b44824a08ba83c8287aebc17c577af15074
7
+ data.tar.gz: 16957e90d475ae96c03b648a987cf00269cf06adef30e83396f756b704d6fa4e373fdab5af1c1903bc7091eb896e4196c9e7f827ff8fa3a77533cbc212747bf6
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/ChangeLog CHANGED
@@ -1,8 +1,87 @@
1
+ 2017-01-19 Mahlon E. Smith <mahlon@martini.nu>
2
+
3
+ * .gems, lib/thingfish/datastore/filesystem.rb,
4
+ spec/thingfish/datastore/filesystem_spec.rb:
5
+ Move the spooldir check to the initializer.
6
+ [6fd20473c7d7] [tip]
7
+
8
+ 2017-01-16 Michael Granger <ged@FaerieMUD.org>
9
+
10
+ * README.rdoc:
11
+ Fix spacing in the README
12
+ [1fba40d1a49b]
13
+
14
+ * README.rdoc:
15
+ Update the README.
16
+ [02a27216ce62]
17
+
18
+ * .hgignore:
19
+ Ignore generated pkg directory
20
+ [246fab8f06ff]
21
+
22
+ * .hgtags:
23
+ Added tag v0.2.0 for changeset 325c13364443
24
+ [011822c261df]
25
+
26
+ * .hgsigs:
27
+ Added signature for changeset cb4954dd5c6e
28
+ [325c13364443] [v0.2.0]
29
+
30
+ * History.rdoc, lib/thingfish/datastore/filesystem.rb:
31
+ Bump minor version, update history.
32
+ [cb4954dd5c6e]
33
+
34
+ * lib/thingfish/datastore/filesystem.rb:
35
+ Convert to Configurabilty 3-style config
36
+ [a64d87daeece]
37
+
38
+ * Rakefile:
39
+ Update dependencies.
40
+ [48124ad82865]
41
+
42
+ * .hgignore:
43
+ Ignore generated docs directory
44
+ [b76614affc6f]
45
+
46
+ 2016-11-14 Michael Granger <ged@FaerieMUD.org>
47
+
48
+ * .hgtags:
49
+ Added tag v0.1.1 for changeset 9733fb4c338d
50
+ [16771fd02dfc]
51
+
52
+ * .hgsigs:
53
+ Added signature for changeset 3fe311d4cdc5
54
+ [9733fb4c338d] [v0.1.1]
55
+
56
+ * History.rdoc, lib/thingfish/datastore/filesystem.rb:
57
+ Bump the patch version, update history.
58
+ [3fe311d4cdc5]
59
+
60
+ * Rakefile:
61
+ Allow publication.
62
+ [8b2ec5a3d298]
63
+
64
+ * .hgtags:
65
+ Added tag v0.1.0 for changeset 7e154c22db5f
66
+ [1de7216e2d8d]
67
+
68
+ * .hgsigs:
69
+ Added signature for changeset 5e80d2529c45
70
+ [7e154c22db5f] [v0.1.0]
71
+
72
+ * History.rdoc, lib/thingfish/datastore/filesystem.rb:
73
+ Set the version, update History.
74
+ [5e80d2529c45]
75
+
76
+ * LICENSE.rdoc, Rakefile:
77
+ Update copyright, license in the gemspec.
78
+ [03aa8e60713c]
79
+
1
80
  2016-11-03 Michael Granger <ged@FaerieMUD.org>
2
81
 
3
82
  * .hgtags:
4
83
  Added tag v0.0.1.pre20161103180658 for changeset 568f7e6f8496
5
- [921b2527889e] [github/master, tip]
84
+ [921b2527889e]
6
85
 
7
86
  * Gemfile, thingfish-datastore-filesystem.gemspec:
8
87
  Adding generated gemspec/Gemfile
data/History.rdoc CHANGED
@@ -1,3 +1,8 @@
1
+ == v0.2.1 [2017-01-16] Mahlon E. Smith <mahlon@martini.nu>
2
+
3
+ - Bugfix: Perform spooldir existence checks during initialization, not configuration.
4
+
5
+
1
6
  == v0.2.0 [2017-01-16] Michael Granger <ged@FaerieMUD.org>
2
7
 
3
8
  - Convert to Configurabilty 3-style config
data/README.rdoc CHANGED
@@ -34,12 +34,11 @@ default behaviors.
34
34
  Here's an example configuration file that enables this plugin and
35
35
  modifies the default storage path:
36
36
 
37
- ---
38
- thingfish:
39
- datastore: filesystem
40
-
41
- filesystem_datastore:
42
- root_path: /net/storage/thingfish-data
37
+ ---
38
+ thingfish:
39
+ datastore: filesystem
40
+ filesystem_datastore:
41
+ root_path: /net/storage/thingfish-data
43
42
 
44
43
 
45
44
  == Advanced Usage
@@ -107,7 +106,7 @@ read/write access to these files.
107
106
 
108
107
  == License
109
108
 
110
- Copyright (c) 2014-2016, Michael Granger and Mahlon E. Smith
109
+ Copyright (c) 2014-2017, Michael Granger and Mahlon E. Smith
111
110
  All rights reserved.
112
111
 
113
112
  Redistribution and use in source and binary forms, with or without
@@ -16,10 +16,10 @@ class Thingfish::Datastore::Filesystem < Thingfish::Datastore
16
16
  Thingfish::Normalization
17
17
 
18
18
  # Package version
19
- VERSION = '0.2.0'
19
+ VERSION = '0.2.1'
20
20
 
21
21
  # Version control revision
22
- REVISION = %q$Revision: cb4954dd5c6e $
22
+ REVISION = %q$Revision: 6fd20473c7d7 $
23
23
 
24
24
  # The number of subdirectories to use in the hashed directory tree. Must be 2, 4, or 8
25
25
  HASH_DEPTH = 4
@@ -33,12 +33,8 @@ class Thingfish::Datastore::Filesystem < Thingfish::Datastore
33
33
  ##
34
34
  # The directory to use for the datastore
35
35
  setting :root_path, default: Pathname( Dir.tmpdir ) + 'thingfish' do |val|
36
- val = Pathname( val )
37
- raise ArgumentError, "root path %s does not exist" % [ val ] unless
38
- val.exist?
39
- val
36
+ Pathname( val ) if val
40
37
  end
41
-
42
38
  end
43
39
 
44
40
 
@@ -46,6 +42,7 @@ class Thingfish::Datastore::Filesystem < Thingfish::Datastore
46
42
  def initialize
47
43
  super
48
44
  @root_path = self.class.root_path
45
+ raise ArgumentError, "root path %s does not exist" % [ @root_path ] unless @root_path.exist?
49
46
  end
50
47
 
51
48
 
@@ -48,6 +48,7 @@ describe Thingfish::Datastore::Filesystem do
48
48
  it "raises an exception if the configured root directory doesn't exist" do
49
49
  expect {
50
50
  described_class.configure( root_path: '/nonexistent' )
51
+ described_class.new
51
52
  }.to raise_error( ArgumentError, /root path \/nonexistent does not exist/ )
52
53
  end
53
54
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thingfish-datastore-filesystem
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
  - Michael Granger
@@ -11,32 +11,27 @@ bindir: bin
11
11
  cert_chain:
12
12
  - |
13
13
  -----BEGIN CERTIFICATE-----
14
- MIIEbDCCAtSgAwIBAgIBATANBgkqhkiG9w0BAQsFADA+MQwwCgYDVQQDDANnZWQx
15
- GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
16
- HhcNMTYwODIwMTgxNzQyWhcNMTcwODIwMTgxNzQyWjA+MQwwCgYDVQQDDANnZWQx
17
- GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
18
- ggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQC/JWGRHO+USzR97vXjkFgt
19
- 83qeNf2KHkcvrRTSnR64i6um/ziin0I0oX23H7VYrDJC9A/uoUa5nGRJS5Zw/+wW
20
- ENcvWVZS4iUzi4dsYJGY6yEOsXh2CcF46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sv9deppFvZ+pXyR+eq
28
+ qy/efw4F+3DAPw+9QNlPJG8DHQ8HrYPrf7wv5DPBpyKLD1atMGnoDb5gijIx5IMR
29
+ MxiffPYQsT7Noimqaz8KWqP1keDY9aqVKe3iDXUXKBV27sl9GhOt5jJ3rVW9ihok
30
+ KiEoBnrgQcZIEAOwfXbWT4IaIcOCgD+JloEesuHL72/3zP/vOcqZf4SOcne4+qti
31
+ DHE5pl144V24tqxZb65WTup/ov22SCXmpU8/wTeZVL3rePGRfwTJNpm+6iYszl7A
32
+ SixmX0X3SOeYg4FRkblUIA==
38
33
  -----END CERTIFICATE-----
39
- date: 2017-01-16 00:00:00.000000000 Z
34
+ date: 2017-01-20 00:00:00.000000000 Z
40
35
  dependencies:
41
36
  - !ruby/object:Gem::Dependency
42
37
  name: thingfish
@@ -81,33 +76,33 @@ dependencies:
81
76
  - !ruby/object:Gem::Version
82
77
  version: '1.4'
83
78
  - !ruby/object:Gem::Dependency
84
- name: hoe-deveiate
79
+ name: hoe-highline
85
80
  requirement: !ruby/object:Gem::Requirement
86
81
  requirements:
87
82
  - - "~>"
88
83
  - !ruby/object:Gem::Version
89
- version: '0.8'
84
+ version: '0.2'
90
85
  type: :development
91
86
  prerelease: false
92
87
  version_requirements: !ruby/object:Gem::Requirement
93
88
  requirements:
94
89
  - - "~>"
95
90
  - !ruby/object:Gem::Version
96
- version: '0.8'
91
+ version: '0.2'
97
92
  - !ruby/object:Gem::Dependency
98
- name: hoe-highline
93
+ name: hoe-deveiate
99
94
  requirement: !ruby/object:Gem::Requirement
100
95
  requirements:
101
96
  - - "~>"
102
97
  - !ruby/object:Gem::Version
103
- version: '0.2'
98
+ version: '0.8'
104
99
  type: :development
105
100
  prerelease: false
106
101
  version_requirements: !ruby/object:Gem::Requirement
107
102
  requirements:
108
103
  - - "~>"
109
104
  - !ruby/object:Gem::Version
110
- version: '0.2'
105
+ version: '0.8'
111
106
  - !ruby/object:Gem::Dependency
112
107
  name: simplecov
113
108
  requirement: !ruby/object:Gem::Requirement
@@ -142,14 +137,14 @@ dependencies:
142
137
  requirements:
143
138
  - - "~>"
144
139
  - !ruby/object:Gem::Version
145
- version: '3.15'
140
+ version: '3.16'
146
141
  type: :development
147
142
  prerelease: false
148
143
  version_requirements: !ruby/object:Gem::Requirement
149
144
  requirements:
150
145
  - - "~>"
151
146
  - !ruby/object:Gem::Version
152
- version: '3.15'
147
+ version: '3.16'
153
148
  description: |-
154
149
  This is a data storage plugin for the Thingfish digital asset manager.
155
150
  It provides persistent storage for uploaded data to a simple filesystem
@@ -200,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
195
  version: '0'
201
196
  requirements: []
202
197
  rubyforge_project:
203
- rubygems_version: 2.6.8
198
+ rubygems_version: 2.5.1
204
199
  signing_key:
205
200
  specification_version: 4
206
201
  summary: This is a data storage plugin for the Thingfish digital asset manager
metadata.gz.sig CHANGED
Binary file