little-plugger 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -14,3 +14,4 @@ announcement.txt
14
14
  coverage
15
15
  doc
16
16
  pkg
17
+ .rvmrc
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 1.1.3 / 2011-11-17
2
+
3
+ * 1 bug fix
4
+ * Ensuring gem files are in a sorted order
5
+
1
6
  == 1.1.2 / 2010-02-01
2
7
 
3
8
  * 1 bug fix
data/README.rdoc CHANGED
@@ -31,7 +31,7 @@ installed on your system.
31
31
 
32
32
  (The MIT License)
33
33
 
34
- Copyright (c) 2009
34
+ Copyright (c) 2009-2011
35
35
 
36
36
  Permission is hereby granted, free of charge, to any person obtaining
37
37
  a copy of this software and associated documentation files (the
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:specdoc'
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
- ignore_file '.gitignore'
22
- rubyforge.name 'codeforpeople'
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
@@ -110,7 +110,7 @@
110
110
  #
111
111
  module LittlePlugger
112
112
 
113
- VERSION = '1.1.2' # :nodoc:
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')).each do |path|
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
@@ -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(Spec::Runner).should == 'spec/runner/plugins'
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('spec/runner').should == Spec::Runner
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.2
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
- date: 2010-02-01 00:00:00 -07:00
13
- default_executable:
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
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
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
- manage the loading and initializing of plugins provided by other gems.
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
- requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- version: "0"
60
- version:
61
- required_rubygems_version: !ruby/object:Gem::Requirement
62
- requirements:
63
- - - ">="
64
- - !ruby/object:Gem::Version
65
- version: "0"
66
- version:
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
- rubyforge_project: codeforpeople
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
-