little-plugger 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/History.txt +5 -0
- data/Rakefile +3 -4
- data/lib/little-plugger.rb +1 -1
- data/spec/little-plugger_spec.rb +10 -11
- metadata +20 -20
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 89f3dc1eda5e9c563e032fde6ecdec55716cdecf
|
4
|
+
data.tar.gz: a535fd4c3554afd3904589f814fd5d1c6c58cf11
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: dceff84f8e7eef2947c197e9f4c0b4ac58622fa48444f599ad914ec501f525c7a3b65659dcc1fd0d6c670d25a944630bfbcaa3d78f5054edd3dab65041dffb70
|
7
|
+
data.tar.gz: 4c02c7d9d5fc4d2e02d6d41374aa1f5efe1d49c156f7587f6d18fd255ef33f46b250d3d2cbb9c86a8926d895554f0de952a79434f9d653d79df3ad74c3778264
|
data/.gitignore
CHANGED
data/History.txt
CHANGED
data/Rakefile
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
$:.unshift 'lib'
|
2
|
+
require 'little-plugger'
|
1
3
|
|
2
4
|
begin
|
3
5
|
require 'bones'
|
@@ -5,9 +7,6 @@ rescue LoadError
|
|
5
7
|
abort '### please install the "bones" gem ###'
|
6
8
|
end
|
7
9
|
|
8
|
-
ensure_in_path 'lib'
|
9
|
-
require 'little-plugger'
|
10
|
-
|
11
10
|
task :default => 'spec:run'
|
12
11
|
task 'gem:release' => 'spec:run'
|
13
12
|
|
@@ -22,7 +21,7 @@ Bones {
|
|
22
21
|
spec.opts.concat %w[--color --format documentation]
|
23
22
|
use_gmail
|
24
23
|
|
25
|
-
depend_on 'rspec', :development => true
|
24
|
+
depend_on 'rspec', '~> 3.3', :development => true
|
26
25
|
}
|
27
26
|
|
28
27
|
# depending on bones (even as a development dependency) creates a circular
|
data/lib/little-plugger.rb
CHANGED
data/spec/little-plugger_spec.rb
CHANGED
@@ -1,25 +1,24 @@
|
|
1
|
-
|
2
1
|
require File.join(File.dirname(__FILE__), %w[spec_helper])
|
3
2
|
|
4
3
|
describe LittlePlugger do
|
5
4
|
|
6
5
|
it "converts a string from camel-case to underscore" do
|
7
|
-
LittlePlugger.underscore('FooBarBaz').
|
8
|
-
LittlePlugger.underscore('CouchDB').
|
9
|
-
LittlePlugger.underscore('FOOBar').
|
10
|
-
LittlePlugger.underscore('Foo::Bar::BazBuz').
|
6
|
+
expect(LittlePlugger.underscore('FooBarBaz')).to eq('foo_bar_baz')
|
7
|
+
expect(LittlePlugger.underscore('CouchDB')).to eq('couch_db')
|
8
|
+
expect(LittlePlugger.underscore('FOOBar')).to eq('foo_bar')
|
9
|
+
expect(LittlePlugger.underscore('Foo::Bar::BazBuz')).to eq('foo/bar/baz_buz')
|
11
10
|
end
|
12
11
|
|
13
12
|
it "generates a default plugin path" do
|
14
|
-
LittlePlugger.default_plugin_path(LittlePlugger).
|
15
|
-
LittlePlugger.default_plugin_path(Process::Status).
|
13
|
+
expect(LittlePlugger.default_plugin_path(LittlePlugger)).to eq('little_plugger/plugins')
|
14
|
+
expect(LittlePlugger.default_plugin_path(Process::Status)).to eq('process/status/plugins')
|
16
15
|
end
|
17
16
|
|
18
17
|
it "generates a default plugin module" do
|
19
|
-
LittlePlugger.default_plugin_module('little_plugger').
|
20
|
-
|
21
|
-
|
22
|
-
LittlePlugger.default_plugin_module('process/status').
|
18
|
+
expect(LittlePlugger.default_plugin_module('little_plugger')).to eq(LittlePlugger)
|
19
|
+
expect {LittlePlugger.default_plugin_module('little_plugger/plugins')}.to \
|
20
|
+
raise_error(NameError, /uninitialized constant (LittlePlugger::)?Plugins/)
|
21
|
+
expect(LittlePlugger.default_plugin_module('process/status')).to eq(Process::Status)
|
23
22
|
end
|
24
23
|
end
|
25
24
|
|
metadata
CHANGED
@@ -1,32 +1,33 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: little-plugger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.1.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Tim Pease
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-08-28 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rspec
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
19
|
+
version: '3.3'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
-
|
26
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.3'
|
27
|
+
description: |-
|
28
|
+
LittlePlugger is a module that provides Gem based plugin management.
|
27
29
|
By extending your own class or module with LittlePlugger you can easily
|
28
|
-
|
29
|
-
manage the loading and initializing of plugins provided by other gems.'
|
30
|
+
manage the loading and initializing of plugins provided by other gems.
|
30
31
|
email: tim.pease@gmail.com
|
31
32
|
executables: []
|
32
33
|
extensions: []
|
@@ -34,7 +35,7 @@ extra_rdoc_files:
|
|
34
35
|
- History.txt
|
35
36
|
- README.rdoc
|
36
37
|
files:
|
37
|
-
- .gitignore
|
38
|
+
- ".gitignore"
|
38
39
|
- History.txt
|
39
40
|
- README.rdoc
|
40
41
|
- Rakefile
|
@@ -43,28 +44,27 @@ files:
|
|
43
44
|
- spec/spec_helper.rb
|
44
45
|
homepage: http://gemcutter.org/gems/little-plugger
|
45
46
|
licenses: []
|
47
|
+
metadata: {}
|
46
48
|
post_install_message:
|
47
49
|
rdoc_options:
|
48
|
-
- --main
|
50
|
+
- "--main"
|
49
51
|
- README.rdoc
|
50
52
|
require_paths:
|
51
53
|
- lib
|
52
54
|
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
-
none: false
|
54
55
|
requirements:
|
55
|
-
- -
|
56
|
+
- - ">="
|
56
57
|
- !ruby/object:Gem::Version
|
57
58
|
version: '0'
|
58
59
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
|
-
none: false
|
60
60
|
requirements:
|
61
|
-
- -
|
61
|
+
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: '0'
|
64
64
|
requirements: []
|
65
65
|
rubyforge_project: little-plugger
|
66
|
-
rubygems_version:
|
66
|
+
rubygems_version: 2.2.3
|
67
67
|
signing_key:
|
68
|
-
specification_version:
|
68
|
+
specification_version: 4
|
69
69
|
summary: LittlePlugger is a module that provides Gem based plugin management.
|
70
70
|
test_files: []
|