rails3_assist 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.8
1
+ 0.2.9
@@ -1,3 +1,5 @@
1
+ require_all File.dirname(__FILE__) + '/file'
2
+
1
3
  module Rails3::Assist
2
4
  module File
3
5
  module Methods
@@ -48,6 +50,9 @@ module Rails3::Assist
48
50
  }
49
51
  end
50
52
  end
53
+
54
+ include Special
55
+ extend Special
51
56
 
52
57
  include Methods
53
58
  extend Methods
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rails3_assist}
8
- s.version = "0.2.8"
8
+ s.version = "0.2.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kristian Mandrup"]
12
- s.date = %q{2010-09-15}
12
+ s.date = %q{2010-09-17}
13
13
  s.description = %q{Assist in operating on Rails 3 artifacts including migrations}
14
14
  s.email = %q{kmandrup@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -3,15 +3,13 @@ require 'spec_helper'
3
3
  CLASS = Rails3::Assist::File::Special
4
4
 
5
5
  class AppDir
6
- include CLASS
6
+ extend Rails3::Assist::UseMacro
7
+ use_helper :special
7
8
  end
8
9
 
9
10
  describe Rails3::Assist::File::Special do
10
- # use_helper :directories
11
-
12
11
  before do
13
12
  Rails3::Assist::Directory.rails_root = fixtures_dir
14
- # puts Rails3::Assist::Directory.methods.sort
15
13
  end
16
14
 
17
15
  [:application, :environment, :seed].each do |name|
@@ -28,7 +26,7 @@ describe Rails3::Assist::File::Special do
28
26
 
29
27
  describe '##{name}_file' do
30
28
  it "should return the #{name} file path" do
31
- CLASS.#{name}_file.should match /#{name}s?\\.rb/
29
+ AppDir.new.#{name}_file.should match /#{name}s?\\.rb/
32
30
  end
33
31
  end
34
32
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 8
9
- version: 0.2.8
8
+ - 9
9
+ version: 0.2.9
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kristian Mandrup
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-09-15 00:00:00 +02:00
17
+ date: 2010-09-17 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency