thingfish-datastore-filesystem 0.1.1 → 0.2.0

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: 7602021a98fb82eb3142256db1fe171c108df7ba
4
- data.tar.gz: e57e7ec77654c21c06b432b10863ff1dd5193a8c
3
+ metadata.gz: ff81db9d90df8704d3634673f5eb5bc8edcd2d87
4
+ data.tar.gz: 49f13b9e59e5d8d53530f69691ac2bcc7f974370
5
5
  SHA512:
6
- metadata.gz: c88333c2daa9ae5a2b1d601f6312d8506e15f3a1e666c13d8533befba66650f120cc08ed570a40834868b202adb2a2aa28dfdbf027e41b213f88f905e9e59ff4
7
- data.tar.gz: 0de8a5f1cb9f3781e3ed354d95e78e295a8aa41591b79be3af44e058415d74dce0709bbc3ff23c97bd34ae23b02d6eb3f90579c72ec370b4f058d49e0d480dbe
6
+ metadata.gz: 87d6f164a3012f07610db093ecfea94475f70df42451b7ac5bf82bd64922d067e44d50e934e5b20d07c792b7a6e55140ac581519805a29299ee5315274321aea
7
+ data.tar.gz: 2f54ac6293763dd38530b5dd2539d3a5949aae8a1fd518c036a8cae823a18b76ed92f42f7be4170dbc5bb360a70af2265477796926d02d418b4d8f77531f51a2
checksums.yaml.gz.sig CHANGED
@@ -1 +1,2 @@
1
- ��b`�~e���Ȉ*H�d롻�G��ś��GxDf��2\y[Ya���f��у���A��*�/��g�<%c��Lj�[�V~1���d1|p�ԯiCEРz������-e�#�w��������P�u4��kC �&�2 0U$�2Ai�����u��/�܍�$��e�>�e��a���a4�pk-�NqS`�쩓j�8��<d��$L78��Yq^M ֔$&.;x]������*�q�#6n ��}�GCW��[0}��}\(Q��m�Ҙ����eVyq�/�i����O%x��;w�&Sr����h\�|�E��t�}��<�5dk�QC�f�-��7@���k�t?�� ��xqrM�v�
1
+ �`4'U.߈<�:�dA�[,ͭ1~�Ŀ��e��O��1����7Ngr�.MY"hʐH05�#�KVB~�W_�Q Xئ�ǔ�1��[eG�{,y'�����$-�抨`����Zz���}W���K Rޫ������\*���Xsr<ˇ��鮢`eFXNy�J���R�/N����)��VE�������+b��xh���h%ew���J9�](���/�~n�&�u��TA<������nF��;����̺��]u���a�� �{��x\'?�Up)k�T?5If�c��`�&������}B
2
+ i�7(���]�/%p����-����ց2��8�D����d�kh��.
data.tar.gz.sig CHANGED
Binary file
data/History.rdoc CHANGED
@@ -1,3 +1,8 @@
1
+ == v0.2.0 [2017-01-16] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ - Convert to Configurabilty 3-style config
4
+
5
+
1
6
  == v0.1.1 [2016-11-14] Michael Granger <ged@FaerieMUD.org>
2
7
 
3
8
  Re-release after a build system change.
data/Rakefile CHANGED
@@ -29,11 +29,11 @@ hoespec = Hoe.spec 'thingfish-datastore-filesystem' do |spec|
29
29
  spec.developer 'Michael Granger', 'ged@FaerieMUD.org'
30
30
  spec.developer 'Mahlon E. Smith', 'mahlon@martini.nu'
31
31
 
32
- spec.dependency 'thingfish', '~> 0.5'
33
- spec.dependency 'configurability', '~> 2.2'
32
+ spec.dependency 'thingfish', '~> 0.6'
33
+ spec.dependency 'configurability', '~> 3.1'
34
34
 
35
- spec.dependency 'rspec', '~> 3.1', :developer
36
- spec.dependency 'simplecov', '~> 0.9', :developer
35
+ spec.dependency 'hoe-deveiate', '~> 0.8', :development
36
+ spec.dependency 'simplecov', '~> 0.12', :developer
37
37
 
38
38
  spec.require_ruby_version( '>=2.0.0' )
39
39
  spec.hg_sign_tags = true if spec.respond_to?( :hg_sign_tags= )
@@ -16,40 +16,29 @@ class Thingfish::Datastore::Filesystem < Thingfish::Datastore
16
16
  Thingfish::Normalization
17
17
 
18
18
  # Package version
19
- VERSION = '0.1.1'
19
+ VERSION = '0.2.0'
20
20
 
21
21
  # Version control revision
22
- REVISION = %q$Revision: 3fe311d4cdc5 $
22
+ REVISION = %q$Revision: cb4954dd5c6e $
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
26
26
 
27
- # Configurability API -- default configuration
28
- DEFAULT_CONFIG = {
29
- root_path: Pathname( Dir.tmpdir ) + 'thingfish',
30
- }
31
-
32
-
33
27
  # Loggability API -- log to the thingfish logger
34
28
  log_to :thingfish
35
29
 
36
- ##
37
- # The directory to use for the datastore
38
- singleton_attr_accessor :root_path
39
- @root_path = DEFAULT_CONFIG[ :root_path ]
40
-
30
+ # Configurability API -- set up settings and defaults
31
+ configurability( 'thingfish.filesystem_datastore' ) do
41
32
 
42
- # Configurability API -- the section of the config to use
43
- config_key :filesystem_datastore
44
-
45
-
46
- ### Configurability API -- configure the filesystem datastore.
47
- def self::configure( config=nil )
48
- config = self.defaults.merge( config || {} )
33
+ ##
34
+ # The directory to use for the datastore
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
40
+ end
49
41
 
50
- self.root_path = Pathname( config[:root_path] )
51
- raise ArgumentError, "root path %s does not exist" % [ self.root_path ] unless
52
- self.root_path.exist?
53
42
  end
54
43
 
55
44
 
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.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Granger
@@ -36,7 +36,7 @@ cert_chain:
36
36
  w8aNA5re5+Rt/Vvjxj5AcEnZnZiz5x959NaddQocX32Z1unHw44pzRNUur1GInfW
37
37
  p4vpx2kUSFSAGjtCbDGTNV2AH8w9OU4xEmNz8c5lyoA=
38
38
  -----END CERTIFICATE-----
39
- date: 2016-11-14 00:00:00.000000000 Z
39
+ date: 2017-01-16 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: thingfish
@@ -44,28 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.5'
47
+ version: '0.6'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0.5'
54
+ version: '0.6'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: configurability
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '2.2'
61
+ version: '3.1'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '2.2'
68
+ version: '3.1'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: hoe-mercurial
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -108,34 +108,20 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0.2'
111
- - !ruby/object:Gem::Dependency
112
- name: rspec
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: '3.1'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '3.1'
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: simplecov
127
113
  requirement: !ruby/object:Gem::Requirement
128
114
  requirements:
129
115
  - - "~>"
130
116
  - !ruby/object:Gem::Version
131
- version: '0.9'
117
+ version: '0.12'
132
118
  type: :development
133
119
  prerelease: false
134
120
  version_requirements: !ruby/object:Gem::Requirement
135
121
  requirements:
136
122
  - - "~>"
137
123
  - !ruby/object:Gem::Version
138
- version: '0.9'
124
+ version: '0.12'
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: rdoc
141
127
  requirement: !ruby/object:Gem::Requirement
@@ -214,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
200
  version: '0'
215
201
  requirements: []
216
202
  rubyforge_project:
217
- rubygems_version: 2.5.1
203
+ rubygems_version: 2.6.8
218
204
  signing_key:
219
205
  specification_version: 4
220
206
  summary: This is a data storage plugin for the Thingfish digital asset manager
metadata.gz.sig CHANGED
Binary file