rails_assist 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/VERSION +1 -1
- data/lib/rails_assist/artifact/path.rb +1 -1
- data/lib/rails_assist/directory.rb +5 -7
- data/lib/rails_assist/file.rb +2 -2
- data/lib/rails_assist/file/gem_file.rb +2 -2
- data/rails_assist.gemspec +2 -2
- metadata +23 -23
data/Gemfile
CHANGED
@@ -6,7 +6,7 @@ gem "require_all", "~> 1.2.0"
|
|
6
6
|
gem "sugar-high", "~> 0.4.0"
|
7
7
|
gem "activesupport", ">= 3.0.4"
|
8
8
|
|
9
|
-
# gem "migration_assist", "~> 0.
|
9
|
+
# gem "migration_assist", "~> 0.2.0"
|
10
10
|
|
11
11
|
# Add dependencies to develop your gem here.
|
12
12
|
# Include everything needed to run rake, tests, features, etc.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.3
|
@@ -31,17 +31,15 @@ module RailsAssist
|
|
31
31
|
# app_dir, config_dir ...
|
32
32
|
RailsAssist::Directory::Root.root_directories.each do |name|
|
33
33
|
class_eval %{
|
34
|
-
def #{name}_dir options={}
|
35
|
-
_root_dir = RailsAssist::Directory::Root.root_dir(options)
|
36
|
-
raise "Rails Root dir not defined" if _root_dir.nil?
|
37
|
-
::File.join(_root_dir, '#{name}')
|
38
|
-
end
|
39
|
-
|
40
34
|
def #{name}_dirpath options={}
|
41
35
|
_root_dir = RailsAssist::Directory::Root.root_dirpath(options)
|
42
36
|
raise "Rails Root dir not defined" if _root_dir.nil?
|
43
37
|
::File.join(_root_dir, '#{name}')
|
44
|
-
end
|
38
|
+
end
|
39
|
+
|
40
|
+
def #{name}_dir options={}
|
41
|
+
#{name}_dirpath(options).dir
|
42
|
+
end
|
45
43
|
}
|
46
44
|
end
|
47
45
|
|
data/lib/rails_assist/file.rb
CHANGED
@@ -25,7 +25,7 @@ module RailsAssist
|
|
25
25
|
def #{name}_filepath name
|
26
26
|
name = name.as_filename
|
27
27
|
name = (name =~ /.rb$/) ? name : "\#{name}.#{pure_ext}"
|
28
|
-
[RailsAssist::Artifact::Directory.#{name}
|
28
|
+
[RailsAssist::Artifact::Directory.#{name}_dirpath, name].file_join
|
29
29
|
end
|
30
30
|
|
31
31
|
def #{name}_file name
|
@@ -65,7 +65,7 @@ module RailsAssist
|
|
65
65
|
end
|
66
66
|
|
67
67
|
def remove_all_#{plural_name}
|
68
|
-
return if !(RailsAssist::Artifact::Directory.#{name}_dir.path.directory?)
|
68
|
+
return if !(RailsAssist::Artifact::Directory.#{name}_dir.path.directory?) # bug?
|
69
69
|
#{name}_files.delete_all!
|
70
70
|
end
|
71
71
|
|
@@ -10,11 +10,11 @@ module RailsAssist::File
|
|
10
10
|
|
11
11
|
def clean_gemfile
|
12
12
|
clean_gemfile_content = read_gem_file.gsub(/('|"|end)\s*gem/m, "\\1\ngem")
|
13
|
-
read_gem_file.
|
13
|
+
read_gem_file.replace clean_gemfile_content
|
14
14
|
end
|
15
15
|
|
16
16
|
def gem_filepath
|
17
|
-
[RailsAssist::Directory.
|
17
|
+
[RailsAssist::Directory::Root.root_dirpath, 'Gemfile'].file_join
|
18
18
|
end
|
19
19
|
|
20
20
|
def gem_file
|
data/rails_assist.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rails_assist}
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = [%q{Kristian Mandrup}]
|
12
|
-
s.date = %q{2011-05-
|
12
|
+
s.date = %q{2011-05-08}
|
13
13
|
s.description = %q{Basic file operation helpers for working with Rails 3 artifacts}
|
14
14
|
s.email = %q{kmandrup@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_assist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-05-
|
12
|
+
date: 2011-05-08 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: require_all
|
16
|
-
requirement: &
|
16
|
+
requirement: &2153299600 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 1.2.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2153299600
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: sugar-high
|
27
|
-
requirement: &
|
27
|
+
requirement: &2153299120 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.4.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2153299120
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: activesupport
|
38
|
-
requirement: &
|
38
|
+
requirement: &2153298540 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 3.0.4
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2153298540
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec
|
49
|
-
requirement: &
|
49
|
+
requirement: &2153297940 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 2.4.1
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2153297940
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: bundler
|
60
|
-
requirement: &
|
60
|
+
requirement: &2153288660 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 1.0.0
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *2153288660
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: jeweler
|
71
|
-
requirement: &
|
71
|
+
requirement: &2153288080 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: 1.5.2
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *2153288080
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: rcov
|
82
|
-
requirement: &
|
82
|
+
requirement: &2153287480 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *2153287480
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: require_all
|
93
|
-
requirement: &
|
93
|
+
requirement: &2153286900 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ~>
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: 1.2.0
|
99
99
|
type: :runtime
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *2153286900
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: sugar-high
|
104
|
-
requirement: &
|
104
|
+
requirement: &2153286380 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ~>
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: 0.4.0
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *2153286380
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: activesupport
|
115
|
-
requirement: &
|
115
|
+
requirement: &2153285780 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ! '>='
|
@@ -120,7 +120,7 @@ dependencies:
|
|
120
120
|
version: 3.0.4
|
121
121
|
type: :runtime
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *2153285780
|
124
124
|
description: Basic file operation helpers for working with Rails 3 artifacts
|
125
125
|
email: kmandrup@gmail.com
|
126
126
|
executables: []
|
@@ -257,7 +257,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
257
257
|
version: '0'
|
258
258
|
segments:
|
259
259
|
- 0
|
260
|
-
hash:
|
260
|
+
hash: 1541089187218663022
|
261
261
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
262
262
|
none: false
|
263
263
|
requirements:
|