rails3_assist 0.2.8 → 0.2.9
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/VERSION +1 -1
- data/lib/rails3_assist/file.rb +5 -0
- data/rails3_assist.gemspec +2 -2
- data/spec/rails3_assist/file/special_spec.rb +3 -5
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.9
|
data/lib/rails3_assist/file.rb
CHANGED
data/rails3_assist.gemspec
CHANGED
@@ -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
|
+
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-
|
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
|
-
|
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
|
-
|
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
|
-
-
|
9
|
-
version: 0.2.
|
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-
|
17
|
+
date: 2010-09-17 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|