little-plugger 1.1.2 → 1.1.3
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.
- data/.gitignore +1 -0
- data/History.txt +5 -0
- data/README.rdoc +1 -1
- data/Rakefile +3 -4
- data/lib/little-plugger.rb +2 -2
- data/spec/little-plugger_spec.rb +8 -8
- data/spec/spec_helper.rb +0 -12
- metadata +39 -44
data/.gitignore
CHANGED
data/History.txt
CHANGED
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -8,7 +8,7 @@ end
|
|
8
8
|
ensure_in_path 'lib'
|
9
9
|
require 'little-plugger'
|
10
10
|
|
11
|
-
task :default => 'spec:
|
11
|
+
task :default => 'spec:run'
|
12
12
|
task 'gem:release' => 'spec:run'
|
13
13
|
|
14
14
|
Bones {
|
@@ -18,9 +18,8 @@ Bones {
|
|
18
18
|
url 'http://gemcutter.org/gems/little-plugger'
|
19
19
|
version LittlePlugger::VERSION
|
20
20
|
readme_file 'README.rdoc'
|
21
|
-
|
22
|
-
|
23
|
-
spec.opts << '--color'
|
21
|
+
|
22
|
+
spec.opts.concat %w[--color --format documentation]
|
24
23
|
use_gmail
|
25
24
|
|
26
25
|
depend_on 'rspec', :development => true
|
data/lib/little-plugger.rb
CHANGED
@@ -110,7 +110,7 @@
|
|
110
110
|
#
|
111
111
|
module LittlePlugger
|
112
112
|
|
113
|
-
VERSION = '1.1.
|
113
|
+
VERSION = '1.1.3' # :nodoc:
|
114
114
|
|
115
115
|
# Returns the version string for the library.
|
116
116
|
#
|
@@ -188,7 +188,7 @@ module LittlePlugger
|
|
188
188
|
@loaded ||= {}
|
189
189
|
found = {}
|
190
190
|
|
191
|
-
Gem.find_files(File.join(plugin_path, '*.rb')).
|
191
|
+
Gem.find_files(File.join(plugin_path, '*.rb')).sort!.reverse_each do |path|
|
192
192
|
name = File.basename(path, '.rb').to_sym
|
193
193
|
found[name] = path unless found.key? name
|
194
194
|
end
|
data/spec/little-plugger_spec.rb
CHANGED
@@ -4,22 +4,22 @@ require File.join(File.dirname(__FILE__), %w[spec_helper])
|
|
4
4
|
describe LittlePlugger do
|
5
5
|
|
6
6
|
it "converts a string from camel-case to underscore" do
|
7
|
-
LittlePlugger.underscore('FooBarBaz').should == 'foo_bar_baz'
|
8
|
-
LittlePlugger.underscore('CouchDB').should == 'couch_db'
|
9
|
-
LittlePlugger.underscore('FOOBar').should == 'foo_bar'
|
10
|
-
LittlePlugger.underscore('Foo::Bar::BazBuz').should == 'foo/bar/baz_buz'
|
7
|
+
LittlePlugger.underscore('FooBarBaz').should be == 'foo_bar_baz'
|
8
|
+
LittlePlugger.underscore('CouchDB').should be == 'couch_db'
|
9
|
+
LittlePlugger.underscore('FOOBar').should be == 'foo_bar'
|
10
|
+
LittlePlugger.underscore('Foo::Bar::BazBuz').should be == 'foo/bar/baz_buz'
|
11
11
|
end
|
12
12
|
|
13
13
|
it "generates a default plugin path" do
|
14
|
-
LittlePlugger.default_plugin_path(LittlePlugger).should == 'little_plugger/plugins'
|
15
|
-
LittlePlugger.default_plugin_path(
|
14
|
+
LittlePlugger.default_plugin_path(LittlePlugger).should be == 'little_plugger/plugins'
|
15
|
+
LittlePlugger.default_plugin_path(Process::Status).should be == 'process/status/plugins'
|
16
16
|
end
|
17
17
|
|
18
18
|
it "generates a default plugin module" do
|
19
|
-
LittlePlugger.default_plugin_module('little_plugger').should == LittlePlugger
|
19
|
+
LittlePlugger.default_plugin_module('little_plugger').should be == LittlePlugger
|
20
20
|
lambda {LittlePlugger.default_plugin_module('little_plugger/plugins')}.
|
21
21
|
should raise_error(NameError, 'uninitialized constant LittlePlugger::Plugins')
|
22
|
-
LittlePlugger.default_plugin_module('
|
22
|
+
LittlePlugger.default_plugin_module('process/status').should be == Process::Status
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
data/spec/spec_helper.rb
CHANGED
@@ -2,15 +2,3 @@
|
|
2
2
|
require File.expand_path(
|
3
3
|
File.join(File.dirname(__FILE__), %w[.. lib little-plugger]))
|
4
4
|
|
5
|
-
Spec::Runner.configure do |config|
|
6
|
-
# == Mock Framework
|
7
|
-
#
|
8
|
-
# RSpec uses it's own mocking framework by default. If you prefer to
|
9
|
-
# use mocha, flexmock or RR, uncomment the appropriate line:
|
10
|
-
#
|
11
|
-
# config.mock_with :mocha
|
12
|
-
# config.mock_with :flexmock
|
13
|
-
# config.mock_with :rr
|
14
|
-
end
|
15
|
-
|
16
|
-
# EOF
|
metadata
CHANGED
@@ -1,40 +1,39 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: little-plugger
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.3
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
|
-
authors:
|
7
|
+
authors:
|
7
8
|
- Tim Pease
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-11-17 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: rspec
|
16
|
+
requirement: &2155355020 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 2.7.0
|
17
22
|
type: :development
|
18
|
-
|
19
|
-
version_requirements:
|
20
|
-
|
21
|
-
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 1.2.9
|
24
|
-
version:
|
25
|
-
description: |-
|
26
|
-
LittlePlugger is a module that provides Gem based plugin management.
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *2155355020
|
25
|
+
description: ! 'LittlePlugger is a module that provides Gem based plugin management.
|
26
|
+
|
27
27
|
By extending your own class or module with LittlePlugger you can easily
|
28
|
-
|
28
|
+
|
29
|
+
manage the loading and initializing of plugins provided by other gems.'
|
29
30
|
email: tim.pease@gmail.com
|
30
31
|
executables: []
|
31
|
-
|
32
32
|
extensions: []
|
33
|
-
|
34
|
-
extra_rdoc_files:
|
33
|
+
extra_rdoc_files:
|
35
34
|
- History.txt
|
36
35
|
- README.rdoc
|
37
|
-
files:
|
36
|
+
files:
|
38
37
|
- .gitignore
|
39
38
|
- History.txt
|
40
39
|
- README.rdoc
|
@@ -42,34 +41,30 @@ files:
|
|
42
41
|
- lib/little-plugger.rb
|
43
42
|
- spec/little-plugger_spec.rb
|
44
43
|
- spec/spec_helper.rb
|
45
|
-
has_rdoc: true
|
46
44
|
homepage: http://gemcutter.org/gems/little-plugger
|
47
45
|
licenses: []
|
48
|
-
|
49
46
|
post_install_message:
|
50
|
-
rdoc_options:
|
47
|
+
rdoc_options:
|
51
48
|
- --main
|
52
49
|
- README.rdoc
|
53
|
-
require_paths:
|
50
|
+
require_paths:
|
54
51
|
- lib
|
55
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
52
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ! '>='
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
58
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
|
+
none: false
|
60
|
+
requirements:
|
61
|
+
- - ! '>='
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
67
64
|
requirements: []
|
68
|
-
|
69
|
-
|
70
|
-
rubygems_version: 1.3.5
|
65
|
+
rubyforge_project: little-plugger
|
66
|
+
rubygems_version: 1.8.11
|
71
67
|
signing_key:
|
72
68
|
specification_version: 3
|
73
|
-
summary: LittlePlugger is a module that provides Gem based plugin management
|
69
|
+
summary: LittlePlugger is a module that provides Gem based plugin management.
|
74
70
|
test_files: []
|
75
|
-
|