auto 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -82,7 +82,7 @@ Authoring Plugins
82
82
  Plugins have a lib directory just like any other gem. Here is how the lib file for the Foo plugin might look:
83
83
 
84
84
  <pre>
85
- # lib/foo.rb
85
+ # lib/auto/foo.rb
86
86
  module Auto
87
87
  module Foo
88
88
 
@@ -102,7 +102,7 @@ module Auto
102
102
  end
103
103
  </pre>
104
104
 
105
- Auto uses the gem name (<code>auto-foo</code>) to find <code>lib/foo.rb</code> and include <code>Auto::Foo</code> into the environment. Now you can call the <code>foo</code> method in any of your Auto scripts.
105
+ Auto uses the gem name (<code>auto-foo</code>) to find <code>lib/auto/foo.rb</code> and include <code>Auto::Foo</code> into the environment. Now you can call the <code>foo</code> method in any of your Auto scripts.
106
106
 
107
107
  Auto plugins must have gem names with <code>auto-</code> as a prefix to be automatically required.
108
108
 
data/gemspec.rb CHANGED
@@ -7,6 +7,7 @@ GEM_SPEC = Gem::Specification.new do |s|
7
7
  s.homepage = "http://github.com/winton/#{GEM_NAME}"
8
8
  s.summary = "Automate everything!"
9
9
  # == CONFIGURE ==
10
+ s.add_dependency('auto-question', '=0.0.1')
10
11
  s.add_dependency('auto-terminal', '=0.0.1')
11
12
  s.extra_rdoc_files = [ "README.markdown" ]
12
13
  s.files = GEM_FILES.to_a
@@ -14,5 +15,5 @@ GEM_SPEC = Gem::Specification.new do |s|
14
15
  s.name = GEM_NAME
15
16
  s.platform = Gem::Platform::RUBY
16
17
  s.require_path = "lib"
17
- s.version = "0.1.1"
18
+ s.version = "0.1.2"
18
19
  end
@@ -84,7 +84,7 @@ module Auto
84
84
  @name = name[name.index('auto') + 1]
85
85
 
86
86
  # ~/.auto/auto-plugin/lib/plugin.rb
87
- @library = "#{directory}/lib/#{@name}.rb"
87
+ @library = "#{directory}/lib/auto/#{@name}.rb"
88
88
  @library = nil unless File.exists?(@library)
89
89
 
90
90
  # Auto::Plugin
@@ -15,8 +15,8 @@ module Auto
15
15
 
16
16
  it "should provide an array of plugin library files" do
17
17
  @libraries.should == [
18
- "#{@fixtures}/auto-plugin-0.0.0/lib/plugin.rb",
19
- "#{@fixtures}/auto-plugin2/lib/plugin2.rb"
18
+ "#{@fixtures}/auto-plugin-0.0.0/lib/auto/plugin.rb",
19
+ "#{@fixtures}/auto-plugin2/lib/auto/plugin2.rb"
20
20
  ]
21
21
  end
22
22
 
@@ -9,8 +9,8 @@ module Auto
9
9
  end
10
10
 
11
11
  it 'should require plugin library files' do
12
- $".include?("#{@fixtures}/auto-plugin-0.0.0/lib/plugin.rb").should == true
13
- $".include?("#{@fixtures}/auto-plugin2/lib/plugin2.rb").should == true
12
+ $".include?("#{@fixtures}/auto-plugin-0.0.0/lib/auto/plugin.rb").should == true
13
+ $".include?("#{@fixtures}/auto-plugin2/lib/auto/plugin2.rb").should == true
14
14
  end
15
15
 
16
16
  it 'should include all plugin library modules' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Winton Welsh
@@ -12,6 +12,16 @@ cert_chain: []
12
12
  date: 2009-11-15 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: auto-question
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - "="
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.1
24
+ version:
15
25
  - !ruby/object:Gem::Dependency
16
26
  name: auto-terminal
17
27
  type: :runtime
@@ -44,8 +54,8 @@ files:
44
54
  - README.markdown
45
55
  - spec/auto/plugins_spec.rb
46
56
  - spec/auto/runner_spec.rb
47
- - spec/plugins/auto-plugin-0.0.0/lib/plugin.rb
48
- - spec/plugins/auto-plugin2/lib/plugin2.rb
57
+ - spec/plugins/auto-plugin-0.0.0/lib/auto/plugin.rb
58
+ - spec/plugins/auto-plugin2/lib/auto/plugin2.rb
49
59
  - spec/spec.opts
50
60
  - spec/spec_helper.rb
51
61
  has_rdoc: true