pluggability 0.4.0 → 0.4.2
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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/ChangeLog +157 -6
- data/History.rdoc +15 -0
- data/Rakefile +51 -11
- data/lib/pluggability.rb +4 -3
- data/spec/helpers.rb +0 -1
- data/spec/pluggability_spec.rb +9 -10
- metadata +45 -59
- metadata.gz.sig +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 79b38407fa1be726d81496482b5fd665f870732d
|
|
4
|
+
data.tar.gz: 510a7fcf6c22bb7b11433ec75c136d0b2989bc5a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 905d853b3d2c2110e6f5d18e0b6b61f95bde3097e9903146fcce1b5f05626e7a31f21b640bf0e5337a93c3209ab6b7258a4dfe149b89e676611982370683b6a2
|
|
7
|
+
data.tar.gz: 0c39d095e2df1eaec065033ca730381cc1185488b742a97525d4c606810a5e754d44a91c2e60300b3fe903a9a97e2ecd37b64aaa1a3c8fc0b81838969e9f83d4
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/ChangeLog
CHANGED
|
@@ -1,8 +1,159 @@
|
|
|
1
|
+
2015-03-03 Mahlon E. Smith <mahlon@laika.com>
|
|
2
|
+
|
|
3
|
+
* .hgsigs:
|
|
4
|
+
Added signature for changeset 7f6ff521c94a
|
|
5
|
+
[5bcb7e1a02d1] [tip]
|
|
6
|
+
|
|
7
|
+
* .hgtags:
|
|
8
|
+
Added tag v0.4.1 for changeset 4b314c3ea2cb
|
|
9
|
+
[7f6ff521c94a]
|
|
10
|
+
|
|
11
|
+
2015-03-03 Michael Granger <ged@FaerieMUD.org>
|
|
12
|
+
|
|
13
|
+
* History.rdoc, Rakefile:
|
|
14
|
+
Update History
|
|
15
|
+
[57f448b3e4a5]
|
|
16
|
+
|
|
17
|
+
2015-03-03 Mahlon E. Smith <mahlon@martini.nu>
|
|
18
|
+
|
|
19
|
+
* lib/pluggability.rb, spec/pluggability_spec.rb:
|
|
20
|
+
Use only the latest installed gems to build a candidate list, rather
|
|
21
|
+
than all installed in the $LOAD_PATH. Bump version.
|
|
22
|
+
[4b314c3ea2cb] [v0.4.1]
|
|
23
|
+
|
|
24
|
+
2015-02-27 Michael Granger <ged@FaerieMUD.org>
|
|
25
|
+
|
|
26
|
+
* Rakefile, loggability.gemspec, pluggability.gemspec:
|
|
27
|
+
Fix the gemspec name
|
|
28
|
+
[f17b18fbdb15] [github/master]
|
|
29
|
+
|
|
30
|
+
* .rvmrc, .travis.yml, Gemfile, Rakefile, loggability.gemspec:
|
|
31
|
+
Prep for travis-ci builds
|
|
32
|
+
[6f744d57837f]
|
|
33
|
+
|
|
34
|
+
2014-06-05 Michael Granger <ged@FaerieMUD.org>
|
|
35
|
+
|
|
36
|
+
* Gemfile, Rakefile, lib/pluggability.rb, spec/helpers.rb,
|
|
37
|
+
spec/pluggability_spec.rb:
|
|
38
|
+
Update for RSpec 3.
|
|
39
|
+
[6efeedbd384c]
|
|
40
|
+
|
|
41
|
+
2014-01-08 Michael Granger <ged@FaerieMUD.org>
|
|
42
|
+
|
|
43
|
+
* .rvm.gems, Rakefile:
|
|
44
|
+
Update dependencies.
|
|
45
|
+
[1110442a07c7]
|
|
46
|
+
|
|
47
|
+
* .hgtags:
|
|
48
|
+
Added tag v0.4.0 for changeset f07f7054d9bd
|
|
49
|
+
[4d4ed9f6e347]
|
|
50
|
+
|
|
51
|
+
* .hgsigs:
|
|
52
|
+
Added signature for changeset d25537179cd9
|
|
53
|
+
[f07f7054d9bd] [v0.4.0]
|
|
54
|
+
|
|
55
|
+
* History.rdoc, lib/pluggability.rb:
|
|
56
|
+
Bump the minor version, update history.
|
|
57
|
+
[d25537179cd9]
|
|
58
|
+
|
|
59
|
+
* lib/pluggability.rb, spec/pluggability_spec.rb:
|
|
60
|
+
Add a name attribute to plugins for introspection.
|
|
61
|
+
[305572825ffb]
|
|
62
|
+
|
|
63
|
+
2013-09-25 Michael Granger <ged@FaerieMUD.org>
|
|
64
|
+
|
|
65
|
+
* .hgtags:
|
|
66
|
+
Added tag v0.3.0 for changeset 344a4bea4055
|
|
67
|
+
[6319eb6a7b45]
|
|
68
|
+
|
|
69
|
+
* .hgsigs:
|
|
70
|
+
Added signature for changeset 262b5b4e1629
|
|
71
|
+
[344a4bea4055] [v0.3.0]
|
|
72
|
+
|
|
73
|
+
* History.rdoc, lib/pluggability.rb:
|
|
74
|
+
Bump the minor version, update history.
|
|
75
|
+
[262b5b4e1629]
|
|
76
|
+
|
|
77
|
+
* Gemfile, README.rdoc, Rakefile, experiments/logger_output.rb,
|
|
78
|
+
lib/pluggability.rb, spec/pluggability_spec.rb:
|
|
79
|
+
Add plugin exclusion patterns
|
|
80
|
+
[dc968f687c9c]
|
|
81
|
+
|
|
82
|
+
* Manifest.txt, spec/helpers.rb, spec/lib/helpers.rb,
|
|
83
|
+
spec/pluggability_spec.rb:
|
|
84
|
+
Converted to use new RSpec syntax.
|
|
85
|
+
[1b4bb8026a4a]
|
|
86
|
+
|
|
87
|
+
* .hgignore, .rvm.gems, Gemfile, Rakefile:
|
|
88
|
+
Update dependencies; add Gemfile
|
|
89
|
+
[ead3164b3b3c]
|
|
90
|
+
|
|
91
|
+
* README.rdoc:
|
|
92
|
+
Updated the README
|
|
93
|
+
[3b9ccb970bc2]
|
|
94
|
+
|
|
95
|
+
2013-03-28 Michael Granger <ged@FaerieMUD.org>
|
|
96
|
+
|
|
97
|
+
* .hgtags:
|
|
98
|
+
Added tag v0.2.0 for changeset e84984f17d66
|
|
99
|
+
[000ff70690ab]
|
|
100
|
+
|
|
101
|
+
* .hgsigs:
|
|
102
|
+
Added signature for changeset ae9bce03c327
|
|
103
|
+
[e84984f17d66] [v0.2.0]
|
|
104
|
+
|
|
105
|
+
* History.rdoc, lib/pluggability.rb:
|
|
106
|
+
Bump the minor version, update history.
|
|
107
|
+
[ae9bce03c327]
|
|
108
|
+
|
|
109
|
+
* .rvm.gems, Rakefile:
|
|
110
|
+
Bump dependency versions
|
|
111
|
+
[dfff4fd68a46]
|
|
112
|
+
|
|
113
|
+
* README.rdoc, lib/pluggability.rb, spec/pluggability_spec.rb:
|
|
114
|
+
Fix loading of grandchildren of plugins
|
|
115
|
+
[93a6045c9551]
|
|
116
|
+
|
|
117
|
+
* experiments/logger_output.rb:
|
|
118
|
+
Add logging experiment
|
|
119
|
+
[8485f1330bd0]
|
|
120
|
+
|
|
121
|
+
2013-03-27 Michael Granger <ged@FaerieMUD.org>
|
|
122
|
+
|
|
123
|
+
* .hgtags:
|
|
124
|
+
Added tag v0.1.0 for changeset 4f9521c5937c
|
|
125
|
+
[227f97060b6c]
|
|
126
|
+
|
|
127
|
+
* .hgsigs:
|
|
128
|
+
Added signature for changeset c2ff7a2e8e97
|
|
129
|
+
[4f9521c5937c] [v0.1.0]
|
|
130
|
+
|
|
131
|
+
* History.rdoc, lib/pluggability.rb:
|
|
132
|
+
Bumped minor version, updated history.
|
|
133
|
+
[c2ff7a2e8e97]
|
|
134
|
+
|
|
135
|
+
* lib/pluggability.rb, spec/pluggability_spec.rb:
|
|
136
|
+
Add loading via underbarred name variants (CommaDelimitedThing ->
|
|
137
|
+
comma_delimited)
|
|
138
|
+
[950d84e5d343]
|
|
139
|
+
|
|
140
|
+
* lib/pluggability.rb, spec/pluggability_spec.rb:
|
|
141
|
+
Rename some 'factory' bits to 'plugin' for consistency.
|
|
142
|
+
[6d0c8e03207b]
|
|
143
|
+
|
|
1
144
|
2013-03-01 Michael Granger <ged@FaerieMUD.org>
|
|
2
145
|
|
|
146
|
+
* .hgtags:
|
|
147
|
+
Added tag v0.0.2 for changeset bb1aacf9953c
|
|
148
|
+
[8157aa410711]
|
|
149
|
+
|
|
150
|
+
* .hgsigs:
|
|
151
|
+
Added signature for changeset 41c55c0e6830
|
|
152
|
+
[bb1aacf9953c] [v0.0.2]
|
|
153
|
+
|
|
3
154
|
* .rvmrc, History.rdoc, lib/pluggability.rb:
|
|
4
155
|
Bump patch version, update history.
|
|
5
|
-
[41c55c0e6830]
|
|
156
|
+
[41c55c0e6830]
|
|
6
157
|
|
|
7
158
|
2012-08-13 Michael Granger <ged@FaerieMUD.org>
|
|
8
159
|
|
|
@@ -23,7 +174,7 @@
|
|
|
23
174
|
[f66a50774525]
|
|
24
175
|
|
|
25
176
|
* lib/pluggability.rb, spec/pluggability_spec.rb:
|
|
26
|
-
Fix specs for
|
|
177
|
+
Fix specs for FactoryError changes; add backward-compatibility
|
|
27
178
|
constant.
|
|
28
179
|
[379015772893] [v0.0.1]
|
|
29
180
|
|
|
@@ -329,7 +480,7 @@
|
|
|
329
480
|
[7ef14552ab3d]
|
|
330
481
|
|
|
331
482
|
* lib/pluginfactory.rb:
|
|
332
|
-
- Made load failures raise
|
|
483
|
+
- Made load failures raise FactoryErrors as intended instead of
|
|
333
484
|
RuntimeErrors.
|
|
334
485
|
[e95a4103ceff]
|
|
335
486
|
|
|
@@ -416,7 +567,7 @@
|
|
|
416
567
|
[bdfc3046476d]
|
|
417
568
|
|
|
418
569
|
* lib/pluginfactory.rb:
|
|
419
|
-
|
|
570
|
+
FactoryError now inherits from RuntimeError
|
|
420
571
|
[fff45f7bd617]
|
|
421
572
|
|
|
422
573
|
* test.rb:
|
|
@@ -578,7 +729,7 @@
|
|
|
578
729
|
[b83ace0e5210]
|
|
579
730
|
|
|
580
731
|
* lib/pluginfactory.rb:
|
|
581
|
-
- Made load failures raise
|
|
732
|
+
- Made load failures raise FactoryErrors as intended instead of
|
|
582
733
|
RuntimeErrors.
|
|
583
734
|
[ee1c6ed5d684]
|
|
584
735
|
|
|
@@ -665,7 +816,7 @@
|
|
|
665
816
|
[48a6ad672ee6]
|
|
666
817
|
|
|
667
818
|
* lib/pluginfactory.rb:
|
|
668
|
-
|
|
819
|
+
FactoryError now inherits from RuntimeError
|
|
669
820
|
[3bbead1f4ca4]
|
|
670
821
|
|
|
671
822
|
* test.rb:
|
data/History.rdoc
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
== v0.4.2 [2015-03-04] Michael Granger <ged@FaerieMUD.org>
|
|
2
|
+
|
|
3
|
+
Bugfixes:
|
|
4
|
+
|
|
5
|
+
- Set the minimum Rubygems version for #find_latest_files support [#1].
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
== v0.4.1 [2015-03-03] Mahlon E. Smith <mahlon@martini.nu>
|
|
9
|
+
|
|
10
|
+
Bugfix:
|
|
11
|
+
|
|
12
|
+
- Only consider the latest versions of each installed gem
|
|
13
|
+
when finding files to load for .load_all.
|
|
14
|
+
|
|
15
|
+
|
|
1
16
|
== v0.4.0 [2014-01-08] Michael Granger <ged@FaerieMUD.org>
|
|
2
17
|
|
|
3
18
|
- Add a name attribute to plugins for introspection.
|
data/Rakefile
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env rake
|
|
2
2
|
|
|
3
|
-
require '
|
|
3
|
+
require 'rake/clean'
|
|
4
|
+
|
|
5
|
+
begin
|
|
6
|
+
require 'hoe'
|
|
7
|
+
rescue LoadError
|
|
8
|
+
abort "This Rakefile requires 'hoe' (gem install hoe)"
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
GEMSPEC = 'pluggability.gemspec'
|
|
4
12
|
|
|
5
|
-
Hoe.plugin :deveiate
|
|
6
13
|
Hoe.plugin :mercurial
|
|
7
14
|
Hoe.plugin :signing
|
|
8
|
-
Hoe.plugin :
|
|
15
|
+
Hoe.plugin :deveiate
|
|
9
16
|
|
|
10
17
|
Hoe.plugins.delete :rubyforge
|
|
11
18
|
|
|
@@ -14,6 +21,7 @@ hoespec = Hoe.spec 'pluggability' do
|
|
|
14
21
|
self.history_file = 'History.rdoc'
|
|
15
22
|
self.extra_rdoc_files = Rake::FileList[ '*.rdoc' ]
|
|
16
23
|
self.spec_extras[:rdoc_options] = ['-t', 'Pluggability Toolkit']
|
|
24
|
+
self.spec_extras[:required_rubygems_version] = '~> 2.1'
|
|
17
25
|
|
|
18
26
|
# Hoops to avoid adding a formatting to the gem's spec, but still build
|
|
19
27
|
# with a custom formatter locally
|
|
@@ -23,11 +31,10 @@ hoespec = Hoe.spec 'pluggability' do
|
|
|
23
31
|
self.developer 'Martin Chase', 'stillflame@FaerieMUD.org'
|
|
24
32
|
self.developer 'Michael Granger', 'ged@FaerieMUD.org'
|
|
25
33
|
|
|
26
|
-
self.dependency 'loggability', '~> 0.
|
|
34
|
+
self.dependency 'loggability', '~> 0.8'
|
|
27
35
|
|
|
28
|
-
self.dependency 'hoe-deveiate', '~> 0.
|
|
36
|
+
self.dependency 'hoe-deveiate', '~> 0.6', :development
|
|
29
37
|
self.dependency 'hoe-bundler', '~> 1.2', :development
|
|
30
|
-
self.dependency 'rdoc-generator-fivefish', '~> 0.1', :development
|
|
31
38
|
|
|
32
39
|
self.license "BSD"
|
|
33
40
|
self.hg_sign_tags = true if self.respond_to?( :hg_sign_tags= )
|
|
@@ -35,12 +42,45 @@ hoespec = Hoe.spec 'pluggability' do
|
|
|
35
42
|
self.rdoc_locations << "deveiate:/usr/local/www/public/code/#{remote_rdoc_dir}"
|
|
36
43
|
end
|
|
37
44
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
45
|
+
ENV['VERSION'] ||= hoespec.spec.version.to_s
|
|
46
|
+
|
|
47
|
+
# Ensure the specs pass before checking in
|
|
48
|
+
task 'hg:precheckin' => [ :check_history, :check_manifest, :gemspec, :spec ]
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
desc "Build a coverage report"
|
|
52
|
+
task :coverage do
|
|
53
|
+
ENV["COVERAGE"] = 'yes'
|
|
54
|
+
Rake::Task[:spec].invoke
|
|
41
55
|
end
|
|
56
|
+
CLOBBER.include( 'coverage' )
|
|
42
57
|
|
|
43
|
-
ENV['VERSION'] ||= hoespec.spec.version.to_s
|
|
44
58
|
|
|
45
|
-
|
|
59
|
+
# Use the fivefish formatter for docs generated from development checkout
|
|
60
|
+
if File.directory?( '.hg' )
|
|
61
|
+
require 'rdoc/task'
|
|
62
|
+
|
|
63
|
+
Rake::Task[ 'docs' ].clear
|
|
64
|
+
RDoc::Task.new( 'docs' ) do |rdoc|
|
|
65
|
+
rdoc.main = "README.rdoc"
|
|
66
|
+
rdoc.rdoc_files.include( "*.rdoc", "ChangeLog", "lib/**/*.rb" )
|
|
67
|
+
rdoc.generator = :fivefish
|
|
68
|
+
rdoc.title = "Pluggability"
|
|
69
|
+
rdoc.rdoc_dir = 'doc'
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
task :gemspec => GEMSPEC
|
|
74
|
+
file GEMSPEC => __FILE__
|
|
75
|
+
task GEMSPEC do |task|
|
|
76
|
+
spec = $hoespec.spec
|
|
77
|
+
spec.files.delete( '.gemtest' )
|
|
78
|
+
spec.signing_key = nil
|
|
79
|
+
spec.version = "#{spec.version.bump}.0.pre#{Time.now.strftime("%Y%m%d%H%M%S")}"
|
|
80
|
+
File.open( task.name, 'w' ) do |fh|
|
|
81
|
+
fh.write( spec.to_ruby )
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
CLOBBER.include( GEMSPEC.to_s )
|
|
46
86
|
|
data/lib/pluggability.rb
CHANGED
|
@@ -12,7 +12,7 @@ module Pluggability
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
# Library version
|
|
15
|
-
VERSION = '0.4.
|
|
15
|
+
VERSION = '0.4.2'
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
# An exception class for Pluggability specific errors.
|
|
@@ -148,7 +148,7 @@ module Pluggability
|
|
|
148
148
|
|
|
149
149
|
# Register it under each of its name variants
|
|
150
150
|
keys.each do |key|
|
|
151
|
-
Pluggability.log.
|
|
151
|
+
Pluggability.log.debug "Registering %s derivative of %s as %p" %
|
|
152
152
|
[ subclass.name, plugin_class.name, key ]
|
|
153
153
|
plugin_class.derivatives[ key ] = subclass
|
|
154
154
|
end
|
|
@@ -249,6 +249,7 @@ module Pluggability
|
|
|
249
249
|
### an array of all derivative classes. Load failures are logged but otherwise
|
|
250
250
|
### ignored.
|
|
251
251
|
def load_all
|
|
252
|
+
Pluggability.log.debug "Loading all %p derivatives." % [ self ]
|
|
252
253
|
patterns = []
|
|
253
254
|
prefixes = self.plugin_prefixes
|
|
254
255
|
|
|
@@ -267,7 +268,7 @@ module Pluggability
|
|
|
267
268
|
|
|
268
269
|
patterns.each do |glob|
|
|
269
270
|
Pluggability.log.debug " finding derivatives matching pattern %p" % [ glob ]
|
|
270
|
-
candidates = Gem.
|
|
271
|
+
candidates = Gem.find_latest_files( glob )
|
|
271
272
|
Pluggability.log.debug " found %d matching files" % [ candidates.length ]
|
|
272
273
|
next if candidates.empty?
|
|
273
274
|
|
data/spec/helpers.rb
CHANGED
data/spec/pluggability_spec.rb
CHANGED
|
@@ -95,7 +95,7 @@ describe Pluggability do
|
|
|
95
95
|
it "will load new plugins from the require path if they're not loaded yet" do
|
|
96
96
|
loaded_class = nil
|
|
97
97
|
|
|
98
|
-
expect( Plugin ).to receive( :require ).with( 'plugins/dazzle_plugin' )
|
|
98
|
+
expect( Plugin ).to receive( :require ).with( 'plugins/dazzle_plugin' ) do |*args|
|
|
99
99
|
loaded_class = Class.new( Plugin )
|
|
100
100
|
# Simulate a named class, since we're not really requiring
|
|
101
101
|
Plugin.derivatives['dazzle'] = loaded_class
|
|
@@ -110,9 +110,8 @@ describe Pluggability do
|
|
|
110
110
|
"derivative fails" do
|
|
111
111
|
|
|
112
112
|
# at least 6 -> 3 variants * 2 paths
|
|
113
|
-
expect( Plugin ).to receive( :require ).
|
|
114
|
-
|
|
115
|
-
and_return {|path| raise LoadError, "path" }
|
|
113
|
+
expect( Plugin ).to receive( :require ).at_least(6).times.
|
|
114
|
+
and_raise( LoadError.new("path") )
|
|
116
115
|
|
|
117
116
|
expect {
|
|
118
117
|
Plugin.create('scintillating')
|
|
@@ -144,9 +143,9 @@ describe Pluggability do
|
|
|
144
143
|
|
|
145
144
|
|
|
146
145
|
it "can preload all of its derivatives" do
|
|
147
|
-
expect( Gem ).to receive( :
|
|
146
|
+
expect( Gem ).to receive( :find_latest_files ).with( 'plugins/*.rb' ).
|
|
148
147
|
and_return([ 'plugins/first.rb' ])
|
|
149
|
-
expect( Gem ).to receive( :
|
|
148
|
+
expect( Gem ).to receive( :find_latest_files ).with( 'plugins/private/*.rb' ).
|
|
150
149
|
and_return([ 'plugins/private/second.rb', 'plugins/private/third.rb' ])
|
|
151
150
|
|
|
152
151
|
expect( Plugin ).to receive( :require ).with( 'plugins/first.rb' ).
|
|
@@ -161,9 +160,9 @@ describe Pluggability do
|
|
|
161
160
|
|
|
162
161
|
|
|
163
162
|
it "doesn't preload derivatives whose path matches a Regexp exclusion" do
|
|
164
|
-
expect( Gem ).to receive( :
|
|
163
|
+
expect( Gem ).to receive( :find_latest_files ).with( 'plugins/*.rb' ).
|
|
165
164
|
and_return([ 'plugins/first.rb' ])
|
|
166
|
-
expect( Gem ).to receive( :
|
|
165
|
+
expect( Gem ).to receive( :find_latest_files ).with( 'plugins/private/*.rb' ).
|
|
167
166
|
and_return([ 'plugins/private/second.rb', 'plugins/private/third.rb' ])
|
|
168
167
|
|
|
169
168
|
expect( Plugin ).to receive( :require ).with( 'plugins/first.rb' ).
|
|
@@ -177,9 +176,9 @@ describe Pluggability do
|
|
|
177
176
|
|
|
178
177
|
|
|
179
178
|
it "doesn't preload derivatives whose path matches a glob String exclusion" do
|
|
180
|
-
expect( Gem ).to receive( :
|
|
179
|
+
expect( Gem ).to receive( :find_latest_files ).with( 'plugins/*.rb' ).
|
|
181
180
|
and_return([ 'plugins/first.rb' ])
|
|
182
|
-
expect( Gem ).to receive( :
|
|
181
|
+
expect( Gem ).to receive( :find_latest_files ).with( 'plugins/private/*.rb' ).
|
|
183
182
|
and_return([ 'plugins/private/second.rb', 'plugins/private/third.rb' ])
|
|
184
183
|
|
|
185
184
|
expect( Plugin ).to receive( :require ).with( 'plugins/first.rb' ).
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pluggability
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Martin Chase
|
|
@@ -13,7 +13,7 @@ cert_chain:
|
|
|
13
13
|
-----BEGIN CERTIFICATE-----
|
|
14
14
|
MIIDbDCCAlSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA+MQwwCgYDVQQDDANnZWQx
|
|
15
15
|
GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
|
|
16
|
-
|
|
16
|
+
HhcNMTQwMzE5MDQzNTI2WhcNMTUwMzE5MDQzNTI2WjA+MQwwCgYDVQQDDANnZWQx
|
|
17
17
|
GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
|
|
18
18
|
ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDb92mkyYwuGBg1oRxt2tkH
|
|
19
19
|
+Uo3LAsaL/APBfSLzy8o3+B3AUHKCjMUaVeBoZdWtMHB75X3VQlvXfZMyBxj59Vo
|
|
@@ -24,127 +24,113 @@ cert_chain:
|
|
|
24
24
|
AgMBAAGjdTBzMAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBSZ0hCV
|
|
25
25
|
qoHr122fGKelqffzEQBhszAcBgNVHREEFTATgRFnZWRARmFlcmllTVVELm9yZzAc
|
|
26
26
|
BgNVHRIEFTATgRFnZWRARmFlcmllTVVELm9yZzANBgkqhkiG9w0BAQUFAAOCAQEA
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
TuL1Bzl6TBs1YEzEubFHb9XAPgehWzzUudjDKzTRd+uyZmxnomBqTCQjT5ucNRph
|
|
28
|
+
3jZ6bhLNooLQxTjIuHodeGcEMHZdt4Yi7SyPmw5Nry12z6wrDp+5aGps3HsE5WsQ
|
|
29
|
+
Zq2EuyEOc96g31uoIvjNdieKs+1kE+K+dJDjtw+wTH2i63P7r6N/NfPPXpxsFquo
|
|
30
|
+
wcYRRrHdR7GhdJeT+V8Q8Bi5bglCUGdx+8scMgkkePc98k9osQHypbACmzO+Bqkv
|
|
31
|
+
c7ZKPJcWBv0sm81+FCZXNACn2f9jfF8OQinxVs0O052KbGuEQaaiGIYeuuwQE2q6
|
|
32
|
+
ggcrPfcYeTwWlfZPu2LrBg==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date:
|
|
34
|
+
date: 2015-03-04 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: loggability
|
|
38
38
|
requirement: !ruby/object:Gem::Requirement
|
|
39
39
|
requirements:
|
|
40
|
-
- - ~>
|
|
40
|
+
- - "~>"
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
|
-
version: '0.
|
|
42
|
+
version: '0.8'
|
|
43
43
|
type: :runtime
|
|
44
44
|
prerelease: false
|
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
|
46
46
|
requirements:
|
|
47
|
-
- - ~>
|
|
47
|
+
- - "~>"
|
|
48
48
|
- !ruby/object:Gem::Version
|
|
49
|
-
version: '0.
|
|
49
|
+
version: '0.8'
|
|
50
50
|
- !ruby/object:Gem::Dependency
|
|
51
51
|
name: hoe-mercurial
|
|
52
52
|
requirement: !ruby/object:Gem::Requirement
|
|
53
53
|
requirements:
|
|
54
|
-
- - ~>
|
|
54
|
+
- - "~>"
|
|
55
55
|
- !ruby/object:Gem::Version
|
|
56
|
-
version: 1.4
|
|
56
|
+
version: '1.4'
|
|
57
57
|
type: :development
|
|
58
58
|
prerelease: false
|
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
|
60
60
|
requirements:
|
|
61
|
-
- - ~>
|
|
61
|
+
- - "~>"
|
|
62
62
|
- !ruby/object:Gem::Version
|
|
63
|
-
version: 1.4
|
|
63
|
+
version: '1.4'
|
|
64
64
|
- !ruby/object:Gem::Dependency
|
|
65
|
-
name: hoe-
|
|
65
|
+
name: hoe-deveiate
|
|
66
66
|
requirement: !ruby/object:Gem::Requirement
|
|
67
67
|
requirements:
|
|
68
|
-
- - ~>
|
|
68
|
+
- - "~>"
|
|
69
69
|
- !ruby/object:Gem::Version
|
|
70
|
-
version: 0.
|
|
70
|
+
version: '0.6'
|
|
71
71
|
type: :development
|
|
72
72
|
prerelease: false
|
|
73
73
|
version_requirements: !ruby/object:Gem::Requirement
|
|
74
74
|
requirements:
|
|
75
|
-
- - ~>
|
|
75
|
+
- - "~>"
|
|
76
76
|
- !ruby/object:Gem::Version
|
|
77
|
-
version: 0.
|
|
77
|
+
version: '0.6'
|
|
78
78
|
- !ruby/object:Gem::Dependency
|
|
79
|
-
name:
|
|
79
|
+
name: hoe-highline
|
|
80
80
|
requirement: !ruby/object:Gem::Requirement
|
|
81
81
|
requirements:
|
|
82
|
-
- - ~>
|
|
82
|
+
- - "~>"
|
|
83
83
|
- !ruby/object:Gem::Version
|
|
84
|
-
version: '
|
|
84
|
+
version: '0.2'
|
|
85
85
|
type: :development
|
|
86
86
|
prerelease: false
|
|
87
87
|
version_requirements: !ruby/object:Gem::Requirement
|
|
88
88
|
requirements:
|
|
89
|
-
- - ~>
|
|
89
|
+
- - "~>"
|
|
90
90
|
- !ruby/object:Gem::Version
|
|
91
|
-
version: '
|
|
91
|
+
version: '0.2'
|
|
92
92
|
- !ruby/object:Gem::Dependency
|
|
93
|
-
name:
|
|
93
|
+
name: rdoc
|
|
94
94
|
requirement: !ruby/object:Gem::Requirement
|
|
95
95
|
requirements:
|
|
96
|
-
- - ~>
|
|
96
|
+
- - "~>"
|
|
97
97
|
- !ruby/object:Gem::Version
|
|
98
|
-
version: '0
|
|
98
|
+
version: '4.0'
|
|
99
99
|
type: :development
|
|
100
100
|
prerelease: false
|
|
101
101
|
version_requirements: !ruby/object:Gem::Requirement
|
|
102
102
|
requirements:
|
|
103
|
-
- - ~>
|
|
103
|
+
- - "~>"
|
|
104
104
|
- !ruby/object:Gem::Version
|
|
105
|
-
version: '0
|
|
105
|
+
version: '4.0'
|
|
106
106
|
- !ruby/object:Gem::Dependency
|
|
107
107
|
name: hoe-bundler
|
|
108
108
|
requirement: !ruby/object:Gem::Requirement
|
|
109
109
|
requirements:
|
|
110
|
-
- - ~>
|
|
110
|
+
- - "~>"
|
|
111
111
|
- !ruby/object:Gem::Version
|
|
112
112
|
version: '1.2'
|
|
113
113
|
type: :development
|
|
114
114
|
prerelease: false
|
|
115
115
|
version_requirements: !ruby/object:Gem::Requirement
|
|
116
116
|
requirements:
|
|
117
|
-
- - ~>
|
|
117
|
+
- - "~>"
|
|
118
118
|
- !ruby/object:Gem::Version
|
|
119
119
|
version: '1.2'
|
|
120
|
-
- !ruby/object:Gem::Dependency
|
|
121
|
-
name: rdoc-generator-fivefish
|
|
122
|
-
requirement: !ruby/object:Gem::Requirement
|
|
123
|
-
requirements:
|
|
124
|
-
- - ~>
|
|
125
|
-
- !ruby/object:Gem::Version
|
|
126
|
-
version: '0.1'
|
|
127
|
-
type: :development
|
|
128
|
-
prerelease: false
|
|
129
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
130
|
-
requirements:
|
|
131
|
-
- - ~>
|
|
132
|
-
- !ruby/object:Gem::Version
|
|
133
|
-
version: '0.1'
|
|
134
120
|
- !ruby/object:Gem::Dependency
|
|
135
121
|
name: hoe
|
|
136
122
|
requirement: !ruby/object:Gem::Requirement
|
|
137
123
|
requirements:
|
|
138
|
-
- - ~>
|
|
124
|
+
- - "~>"
|
|
139
125
|
- !ruby/object:Gem::Version
|
|
140
|
-
version: '3.
|
|
126
|
+
version: '3.13'
|
|
141
127
|
type: :development
|
|
142
128
|
prerelease: false
|
|
143
129
|
version_requirements: !ruby/object:Gem::Requirement
|
|
144
130
|
requirements:
|
|
145
|
-
- - ~>
|
|
131
|
+
- - "~>"
|
|
146
132
|
- !ruby/object:Gem::Version
|
|
147
|
-
version: '3.
|
|
133
|
+
version: '3.13'
|
|
148
134
|
description: "Pluggability is a mixin module that turns an including class into a\nfactory
|
|
149
135
|
for its derivatives, capable of searching for and loading them\nby name. This is
|
|
150
136
|
useful when you have an abstract base class which\ndefines an interface and basic
|
|
@@ -176,7 +162,7 @@ extra_rdoc_files:
|
|
|
176
162
|
- Manifest.txt
|
|
177
163
|
- README.rdoc
|
|
178
164
|
files:
|
|
179
|
-
- .gemtest
|
|
165
|
+
- ".gemtest"
|
|
180
166
|
- ChangeLog
|
|
181
167
|
- History.rdoc
|
|
182
168
|
- Manifest.txt
|
|
@@ -191,23 +177,23 @@ licenses:
|
|
|
191
177
|
metadata: {}
|
|
192
178
|
post_install_message:
|
|
193
179
|
rdoc_options:
|
|
194
|
-
- -t
|
|
180
|
+
- "-t"
|
|
195
181
|
- Pluggability Toolkit
|
|
196
182
|
require_paths:
|
|
197
183
|
- lib
|
|
198
184
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
199
185
|
requirements:
|
|
200
|
-
- -
|
|
186
|
+
- - ">="
|
|
201
187
|
- !ruby/object:Gem::Version
|
|
202
188
|
version: '0'
|
|
203
189
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
204
190
|
requirements:
|
|
205
|
-
- -
|
|
191
|
+
- - "~>"
|
|
206
192
|
- !ruby/object:Gem::Version
|
|
207
|
-
version: '
|
|
193
|
+
version: '2.1'
|
|
208
194
|
requirements: []
|
|
209
|
-
rubyforge_project:
|
|
210
|
-
rubygems_version: 2.
|
|
195
|
+
rubyforge_project:
|
|
196
|
+
rubygems_version: 2.4.5
|
|
211
197
|
signing_key:
|
|
212
198
|
specification_version: 4
|
|
213
199
|
summary: Pluggability is a mixin module that turns an including class into a factory
|
metadata.gz.sig
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
�O�7:
|
|
2
|
+
�����5
|
|
3
|
+
���=cl�~D�ss`���B�)��R��>�� v��0�S�bU,���>qq~�ҕ�u<?��`���n���Q���J�G��g����������*!i�Mw'!'�����iN��&Ծ�n�a:[������̤�e?�-��j�$�:HA�]A��g�:��m*��ܶ^��?��Mk��ڇEL�;�kB�́:�Z��%��y���l��֪7z�~�]�"$� ��gv|
|