rails_assist 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.rspec +1 -0
- data/Gemfile +17 -0
- data/LICENSE.txt +20 -0
- data/README.markdown +204 -0
- data/README.rdoc +19 -0
- data/Rakefile +49 -0
- data/VERSION +1 -0
- data/lib/rails_assist.rb +43 -0
- data/lib/rails_assist/app.rb +13 -0
- data/lib/rails_assist/artifact.rb +34 -0
- data/lib/rails_assist/artifact/directory.rb +66 -0
- data/lib/rails_assist/artifact/files.rb +95 -0
- data/lib/rails_assist/artifact/path.rb +16 -0
- data/lib/rails_assist/directory.rb +64 -0
- data/lib/rails_assist/directory/app.rb +21 -0
- data/lib/rails_assist/directory/container.rb +24 -0
- data/lib/rails_assist/directory/root.rb +24 -0
- data/lib/rails_assist/file.rb +91 -0
- data/lib/rails_assist/file/application.rb +15 -0
- data/lib/rails_assist/file/environment.rb +16 -0
- data/lib/rails_assist/file/gem_file.rb +32 -0
- data/lib/rails_assist/file/routes_file.rb +13 -0
- data/lib/rails_assist/file/special.rb +78 -0
- data/lib/rails_assist/files.rb +153 -0
- data/lib/rails_assist/macro.rb +68 -0
- data/lib/rails_assist/namespaces.rb +11 -0
- data/lib/rails_assist/rspec.rb +1 -0
- data/lib/rails_assist/rspec/configure.rb +7 -0
- data/rails_assist.gemspec +221 -0
- data/sandbox/test.rb +16 -0
- data/sandbox/test.txt +5 -0
- data/spec/fixtures.rb +3 -0
- data/spec/fixtures/.gitignore +4 -0
- data/spec/fixtures/Gemfile +9 -0
- data/spec/fixtures/README +256 -0
- data/spec/fixtures/Rakefile +7 -0
- data/spec/fixtures/app/controllers/application_controller.rb +3 -0
- data/spec/fixtures/app/controllers/users_controller.rb +83 -0
- data/spec/fixtures/app/helpers/application_helper.rb +2 -0
- data/spec/fixtures/app/helpers/users_helper.rb +2 -0
- data/spec/fixtures/app/licenses/blogging_license.rb +0 -0
- data/spec/fixtures/app/mailers/user_mailer.rb +0 -0
- data/spec/fixtures/app/models/user.rb +2 -0
- data/spec/fixtures/app/models/user_observer.rb +0 -0
- data/spec/fixtures/app/permits/user_permit.rb +0 -0
- data/spec/fixtures/app/validators/email_validator.rb +0 -0
- data/spec/fixtures/app/views/layouts/application.html.erb +14 -0
- data/spec/fixtures/app/views/users/_form.html.erb +21 -0
- data/spec/fixtures/app/views/users/edit.html.erb +6 -0
- data/spec/fixtures/app/views/users/index.html.erb +23 -0
- data/spec/fixtures/app/views/users/new.html.erb +5 -0
- data/spec/fixtures/app/views/users/show.html.erb +10 -0
- data/spec/fixtures/config.ru +4 -0
- data/spec/fixtures/config/application.rb +43 -0
- data/spec/fixtures/config/boot.rb +13 -0
- data/spec/fixtures/config/database.yml +22 -0
- data/spec/fixtures/config/environment.rb +5 -0
- data/spec/fixtures/config/environments/development.rb +26 -0
- data/spec/fixtures/config/environments/production.rb +49 -0
- data/spec/fixtures/config/environments/test.rb +35 -0
- data/spec/fixtures/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/fixtures/config/initializers/inflections.rb +10 -0
- data/spec/fixtures/config/initializers/mime_types.rb +5 -0
- data/spec/fixtures/config/initializers/my_init.rb +0 -0
- data/spec/fixtures/config/initializers/secret_token.rb +7 -0
- data/spec/fixtures/config/initializers/session_store.rb +8 -0
- data/spec/fixtures/config/locales/en.yml +5 -0
- data/spec/fixtures/config/routes.rb +60 -0
- data/spec/fixtures/db/migrate/20100831135208_create_users.rb +13 -0
- data/spec/fixtures/db/seeds.rb +7 -0
- data/spec/fixtures/lib/tasks/.gitkeep +0 -0
- data/spec/fixtures/public/404.html +26 -0
- data/spec/fixtures/public/422.html +26 -0
- data/spec/fixtures/public/500.html +26 -0
- data/spec/fixtures/public/favicon.ico +0 -0
- data/spec/fixtures/public/images/rails.png +0 -0
- data/spec/fixtures/public/index.html +239 -0
- data/spec/fixtures/public/javascripts/application.js +2 -0
- data/spec/fixtures/public/javascripts/controls.js +965 -0
- data/spec/fixtures/public/javascripts/dragdrop.js +974 -0
- data/spec/fixtures/public/javascripts/effects.js +1 -0
- data/spec/fixtures/public/javascripts/prototype.js +6001 -0
- data/spec/fixtures/public/javascripts/rails.js +175 -0
- data/spec/fixtures/public/robots.txt +5 -0
- data/spec/fixtures/public/stylesheets/.gitkeep +0 -0
- data/spec/fixtures/public/stylesheets/scaffold.css +56 -0
- data/spec/fixtures/script/rails +6 -0
- data/spec/fixtures/test/fixtures/users.yml +7 -0
- data/spec/fixtures/test/functional/users_controller_test.rb +49 -0
- data/spec/fixtures/test/performance/browsing_test.rb +9 -0
- data/spec/fixtures/test/test_helper.rb +13 -0
- data/spec/fixtures/test/unit/helpers/users_helper_test.rb +4 -0
- data/spec/fixtures/test/unit/user_test.rb +8 -0
- data/spec/fixtures/vendor/plugins/.gitkeep +0 -0
- data/spec/load_spec.rb +1 -0
- data/spec/rails_assist/app_spec.rb +31 -0
- data/spec/rails_assist/artifact/directory_spec.rb +66 -0
- data/spec/rails_assist/artifact/files_spec.rb +79 -0
- data/spec/rails_assist/artifact/path_spec.rb +23 -0
- data/spec/rails_assist/artifact_spec.rb +33 -0
- data/spec/rails_assist/directory/app_spec.rb +45 -0
- data/spec/rails_assist/directory/container_spec.rb +63 -0
- data/spec/rails_assist/directory/root_spec.rb +46 -0
- data/spec/rails_assist/directory_spec.rb +64 -0
- data/spec/rails_assist/file/application_spec.rb +33 -0
- data/spec/rails_assist/file/environment_spec.rb +49 -0
- data/spec/rails_assist/file/special_spec.rb +171 -0
- data/spec/rails_assist/file_spec.rb +115 -0
- data/spec/rails_assist/files_spec.rb +90 -0
- data/spec/rails_assist/rspec/have_app_config_spec.rb +0 -0
- data/spec/rails_assist_spec.rb +7 -0
- data/spec/spec_helper.rb +53 -0
- metadata +291 -0
@@ -0,0 +1,153 @@
|
|
1
|
+
require 'rake'
|
2
|
+
require 'rails_assist/directory'
|
3
|
+
require 'sugar-high/regexp'
|
4
|
+
|
5
|
+
require_all File.dirname(__FILE__) + '/file'
|
6
|
+
|
7
|
+
module RailsAssist
|
8
|
+
module Files
|
9
|
+
# we depend on the Directories module doing some of the hard work!
|
10
|
+
module Methods
|
11
|
+
RYBY_FILES = '**/*.rb'
|
12
|
+
|
13
|
+
def rails_app_filepaths type = :app, options = {}
|
14
|
+
type = (type =~ /ss/) ? type : type.to_s.singularize
|
15
|
+
dir = RailsAssist::Directory.send "#{type}_dirpath"
|
16
|
+
expr = options[:expr]
|
17
|
+
file_pattern = options[:pattern] || RYBY_FILES
|
18
|
+
pattern = "#{dir}/#{file_pattern}"
|
19
|
+
FileList[pattern].to_a.grep_it expr
|
20
|
+
end
|
21
|
+
|
22
|
+
def rails_app_files type = :app, options = {}
|
23
|
+
rails_app_filepaths(type, options).to_files
|
24
|
+
end
|
25
|
+
|
26
|
+
def all_filepaths expr=nil
|
27
|
+
pattern = "#{RailsAssist::Directory::Root.root_dirpath}/**/*.*"
|
28
|
+
FileList[pattern].to_a.grep_it expr
|
29
|
+
end
|
30
|
+
|
31
|
+
def all_files expr=nil
|
32
|
+
all_filepaths(expr).to_files
|
33
|
+
end
|
34
|
+
|
35
|
+
def app_filepaths expr=nil
|
36
|
+
rails_app_files(:app).grep_it expr
|
37
|
+
end
|
38
|
+
|
39
|
+
def app_files expr=nil
|
40
|
+
app_filepaths(expr).to_files
|
41
|
+
end
|
42
|
+
|
43
|
+
# files_from :model, :controller, :matching => /user/
|
44
|
+
def filepaths_from *types, &block
|
45
|
+
expr = last_option(types)[:matching]
|
46
|
+
the_files = types.inject([]) do |files, type|
|
47
|
+
method = :"#{type}_files"
|
48
|
+
files_found = send(method, expr) if respond_to?(method)
|
49
|
+
files_found = RailsAssist::Artifact::Files.send(method, expr) if RailsAssist::Artifact::Files.respond_to?(method)
|
50
|
+
files + files_found
|
51
|
+
end.compact
|
52
|
+
yield the_files if block
|
53
|
+
the_files
|
54
|
+
end
|
55
|
+
|
56
|
+
def files_from *types, &block
|
57
|
+
filepaths_from(*types, &block).to_files
|
58
|
+
end
|
59
|
+
|
60
|
+
def with_filepaths_from type, expr=nil, &block
|
61
|
+
method = "#{type}_files"
|
62
|
+
send method, expr, &block if respond_to?(method)
|
63
|
+
end
|
64
|
+
|
65
|
+
def with_files_from type, expr=nil, &block
|
66
|
+
with_filepaths_from(type, expr=nil, &block).to_files
|
67
|
+
end
|
68
|
+
|
69
|
+
[:initializer, :db, :migration].each do |name|
|
70
|
+
class_eval %{
|
71
|
+
def #{name}_filepaths expr=nil
|
72
|
+
filepaths = rails_app_files(:#{name}, :expr => expr)
|
73
|
+
yield filepaths if block_given?
|
74
|
+
filepaths
|
75
|
+
end
|
76
|
+
|
77
|
+
def #{name}_files expr=nil
|
78
|
+
files = #{name}_filepaths(expr).to_files
|
79
|
+
yield files if block_given?
|
80
|
+
files
|
81
|
+
end
|
82
|
+
}
|
83
|
+
end
|
84
|
+
|
85
|
+
{:locale => :yml, :javascript => :js}.each_pair do |name, ext|
|
86
|
+
class_eval %{
|
87
|
+
def #{name}_filepaths expr=nil
|
88
|
+
filepaths = rails_app_files(:#{name}, :pattern => '**/*.#{ext}', :expr => expr)
|
89
|
+
yield filepaths if block_given?
|
90
|
+
filepaths
|
91
|
+
end
|
92
|
+
|
93
|
+
def #{name}_files expr=nil
|
94
|
+
files = #{name}_filepaths(expr).to_files
|
95
|
+
yield files if block_given?
|
96
|
+
files
|
97
|
+
end
|
98
|
+
}
|
99
|
+
end
|
100
|
+
|
101
|
+
{:css => :css, :sass => :scss}.each_pair do |name, ext|
|
102
|
+
class_eval %{
|
103
|
+
def #{name}_filepaths expr=nil
|
104
|
+
filepaths = rails_app_files(:stylesheets, :pattern => '**/*.#{ext}', :expr => expr)
|
105
|
+
yield filepaths if block_given?
|
106
|
+
filepaths
|
107
|
+
end
|
108
|
+
|
109
|
+
def #{name}_files expr=nil
|
110
|
+
files = #{name}_filepaths(expr).to_files
|
111
|
+
yield files if block_given?
|
112
|
+
files
|
113
|
+
end
|
114
|
+
}
|
115
|
+
end
|
116
|
+
|
117
|
+
# RailsAssist::Artifact.app_artifacts.each do |name|
|
118
|
+
# plural_name = name.to_s.pluralize
|
119
|
+
# class_eval %{
|
120
|
+
# def #{name}_files? *names
|
121
|
+
# names.to_strings.each do |name|
|
122
|
+
# return false if !#{name}_file?(name)
|
123
|
+
# end
|
124
|
+
# true
|
125
|
+
# end
|
126
|
+
#
|
127
|
+
# def #{name}_file? name
|
128
|
+
# ::File.file? #{name}_file(name)
|
129
|
+
# end
|
130
|
+
# alias_method :has_#{name}_file?, :#{name}_file?
|
131
|
+
#
|
132
|
+
# def remove_all_#{plural_name}
|
133
|
+
# RailsAssist::Artifact::Files.#{name}_files.each{|f| ::File.delete_file! f}
|
134
|
+
# end
|
135
|
+
# alias_method :delete_all_#{plural_name}, :remove_all_#{plural_name}
|
136
|
+
#
|
137
|
+
# def remove_#{plural_name} *names
|
138
|
+
# return remove_all_#{plural_name} if names.empty?
|
139
|
+
# names.to_strings.each do |name|
|
140
|
+
# ::File.delete #{name}_file(name)
|
141
|
+
# end
|
142
|
+
# end
|
143
|
+
# alias_method :delete_#{plural_name}, :remove_#{plural_name}
|
144
|
+
# alias_method :remove_#{name}, :remove_#{plural_name}
|
145
|
+
# alias_method :delete_#{name}, :remove_#{plural_name}
|
146
|
+
# }
|
147
|
+
# end
|
148
|
+
end
|
149
|
+
|
150
|
+
include Methods
|
151
|
+
extend Methods
|
152
|
+
end # Files
|
153
|
+
end # App
|
@@ -0,0 +1,68 @@
|
|
1
|
+
module RailsAssist
|
2
|
+
module UseMacro
|
3
|
+
def use_orm orm
|
4
|
+
class_eval do
|
5
|
+
begin
|
6
|
+
include "RailsAssist::Orm::#{orm.to_s.camelize}".constantize
|
7
|
+
rescue
|
8
|
+
raise ArgumentError, "Unregistered ORM library: #{orm}"
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def default_template_lang lang
|
14
|
+
class_eval do
|
15
|
+
begin
|
16
|
+
include "RailsAssist::TemplateLanguage::#{lang.to_s.camelize}".constantize
|
17
|
+
rescue
|
18
|
+
raise ArgumentError, "Unregistered Template Language: #{lang}"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def assist_with *types
|
24
|
+
types.each{|type| use_helper type}
|
25
|
+
end
|
26
|
+
alias_method :load_helpers, :assist_with
|
27
|
+
alias_method :use_helpers, :assist_with
|
28
|
+
|
29
|
+
def rails_assist type
|
30
|
+
class_eval do
|
31
|
+
begin
|
32
|
+
module_name = "RailsAssist::#{type.to_s.camelize}"
|
33
|
+
include module_name.constantize
|
34
|
+
if [:files, :directory].include? type
|
35
|
+
module_name = "RailsAssist::Artifact::#{type.to_s.camelize}"
|
36
|
+
include module_name.constantize
|
37
|
+
end
|
38
|
+
rescue
|
39
|
+
raise ArgumentError, "Unregistered RailsAssist library: #{type}, #{module_name}"
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
def artifact_assist type
|
45
|
+
class_eval do
|
46
|
+
begin
|
47
|
+
module_name = "RailsAssist::Artifact::#{type.to_s.camelize}"
|
48
|
+
include module_name.constantize
|
49
|
+
rescue
|
50
|
+
raise ArgumentError, "Unregistered RailsAssist Artifact library: #{type}, #{module_name}"
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
def use_helper type
|
56
|
+
if type == :special
|
57
|
+
class_eval do
|
58
|
+
include "RailsAssist::File::Special".constantize
|
59
|
+
end
|
60
|
+
return
|
61
|
+
end
|
62
|
+
|
63
|
+
return rails_assist(type) if [:file, :files, :directory, :app].include?(type)
|
64
|
+
artifact_assist(type)
|
65
|
+
end
|
66
|
+
alias_method :load_helper, :use_helper
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'rails_assist/rspec/configure'
|
@@ -0,0 +1,221 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{rails_assist}
|
8
|
+
s.version = "0.4.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Kristian Mandrup"]
|
12
|
+
s.date = %q{2011-03-02}
|
13
|
+
s.description = %q{Basic file operation helpers for working with Rails 3 artifacts}
|
14
|
+
s.email = %q{kmandrup@gmail.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.markdown",
|
18
|
+
"README.rdoc"
|
19
|
+
]
|
20
|
+
s.files = [
|
21
|
+
".document",
|
22
|
+
".rspec",
|
23
|
+
"Gemfile",
|
24
|
+
"LICENSE.txt",
|
25
|
+
"README.markdown",
|
26
|
+
"README.rdoc",
|
27
|
+
"Rakefile",
|
28
|
+
"VERSION",
|
29
|
+
"lib/rails_assist.rb",
|
30
|
+
"lib/rails_assist/app.rb",
|
31
|
+
"lib/rails_assist/artifact.rb",
|
32
|
+
"lib/rails_assist/artifact/directory.rb",
|
33
|
+
"lib/rails_assist/artifact/files.rb",
|
34
|
+
"lib/rails_assist/artifact/path.rb",
|
35
|
+
"lib/rails_assist/directory.rb",
|
36
|
+
"lib/rails_assist/directory/app.rb",
|
37
|
+
"lib/rails_assist/directory/container.rb",
|
38
|
+
"lib/rails_assist/directory/root.rb",
|
39
|
+
"lib/rails_assist/file.rb",
|
40
|
+
"lib/rails_assist/file/application.rb",
|
41
|
+
"lib/rails_assist/file/environment.rb",
|
42
|
+
"lib/rails_assist/file/gem_file.rb",
|
43
|
+
"lib/rails_assist/file/routes_file.rb",
|
44
|
+
"lib/rails_assist/file/special.rb",
|
45
|
+
"lib/rails_assist/files.rb",
|
46
|
+
"lib/rails_assist/macro.rb",
|
47
|
+
"lib/rails_assist/namespaces.rb",
|
48
|
+
"lib/rails_assist/rspec.rb",
|
49
|
+
"lib/rails_assist/rspec/configure.rb",
|
50
|
+
"rails_assist.gemspec",
|
51
|
+
"sandbox/test.rb",
|
52
|
+
"sandbox/test.txt",
|
53
|
+
"spec/fixtures.rb",
|
54
|
+
"spec/fixtures/.gitignore",
|
55
|
+
"spec/fixtures/Gemfile",
|
56
|
+
"spec/fixtures/README",
|
57
|
+
"spec/fixtures/Rakefile",
|
58
|
+
"spec/fixtures/app/controllers/application_controller.rb",
|
59
|
+
"spec/fixtures/app/controllers/users_controller.rb",
|
60
|
+
"spec/fixtures/app/helpers/application_helper.rb",
|
61
|
+
"spec/fixtures/app/helpers/users_helper.rb",
|
62
|
+
"spec/fixtures/app/licenses/blogging_license.rb",
|
63
|
+
"spec/fixtures/app/mailers/user_mailer.rb",
|
64
|
+
"spec/fixtures/app/models/user.rb",
|
65
|
+
"spec/fixtures/app/models/user_observer.rb",
|
66
|
+
"spec/fixtures/app/permits/user_permit.rb",
|
67
|
+
"spec/fixtures/app/validators/email_validator.rb",
|
68
|
+
"spec/fixtures/app/views/layouts/application.html.erb",
|
69
|
+
"spec/fixtures/app/views/users/_form.html.erb",
|
70
|
+
"spec/fixtures/app/views/users/edit.html.erb",
|
71
|
+
"spec/fixtures/app/views/users/index.html.erb",
|
72
|
+
"spec/fixtures/app/views/users/new.html.erb",
|
73
|
+
"spec/fixtures/app/views/users/show.html.erb",
|
74
|
+
"spec/fixtures/config.ru",
|
75
|
+
"spec/fixtures/config/application.rb",
|
76
|
+
"spec/fixtures/config/boot.rb",
|
77
|
+
"spec/fixtures/config/database.yml",
|
78
|
+
"spec/fixtures/config/environment.rb",
|
79
|
+
"spec/fixtures/config/environments/development.rb",
|
80
|
+
"spec/fixtures/config/environments/production.rb",
|
81
|
+
"spec/fixtures/config/environments/test.rb",
|
82
|
+
"spec/fixtures/config/initializers/backtrace_silencers.rb",
|
83
|
+
"spec/fixtures/config/initializers/inflections.rb",
|
84
|
+
"spec/fixtures/config/initializers/mime_types.rb",
|
85
|
+
"spec/fixtures/config/initializers/my_init.rb",
|
86
|
+
"spec/fixtures/config/initializers/secret_token.rb",
|
87
|
+
"spec/fixtures/config/initializers/session_store.rb",
|
88
|
+
"spec/fixtures/config/locales/en.yml",
|
89
|
+
"spec/fixtures/config/routes.rb",
|
90
|
+
"spec/fixtures/db/migrate/20100831135208_create_users.rb",
|
91
|
+
"spec/fixtures/db/seeds.rb",
|
92
|
+
"spec/fixtures/lib/tasks/.gitkeep",
|
93
|
+
"spec/fixtures/public/404.html",
|
94
|
+
"spec/fixtures/public/422.html",
|
95
|
+
"spec/fixtures/public/500.html",
|
96
|
+
"spec/fixtures/public/favicon.ico",
|
97
|
+
"spec/fixtures/public/images/rails.png",
|
98
|
+
"spec/fixtures/public/index.html",
|
99
|
+
"spec/fixtures/public/javascripts/application.js",
|
100
|
+
"spec/fixtures/public/javascripts/controls.js",
|
101
|
+
"spec/fixtures/public/javascripts/dragdrop.js",
|
102
|
+
"spec/fixtures/public/javascripts/effects.js",
|
103
|
+
"spec/fixtures/public/javascripts/prototype.js",
|
104
|
+
"spec/fixtures/public/javascripts/rails.js",
|
105
|
+
"spec/fixtures/public/robots.txt",
|
106
|
+
"spec/fixtures/public/stylesheets/.gitkeep",
|
107
|
+
"spec/fixtures/public/stylesheets/scaffold.css",
|
108
|
+
"spec/fixtures/script/rails",
|
109
|
+
"spec/fixtures/test/fixtures/users.yml",
|
110
|
+
"spec/fixtures/test/functional/users_controller_test.rb",
|
111
|
+
"spec/fixtures/test/performance/browsing_test.rb",
|
112
|
+
"spec/fixtures/test/test_helper.rb",
|
113
|
+
"spec/fixtures/test/unit/helpers/users_helper_test.rb",
|
114
|
+
"spec/fixtures/test/unit/user_test.rb",
|
115
|
+
"spec/fixtures/vendor/plugins/.gitkeep",
|
116
|
+
"spec/load_spec.rb",
|
117
|
+
"spec/rails_assist/app_spec.rb",
|
118
|
+
"spec/rails_assist/artifact/directory_spec.rb",
|
119
|
+
"spec/rails_assist/artifact/files_spec.rb",
|
120
|
+
"spec/rails_assist/artifact/path_spec.rb",
|
121
|
+
"spec/rails_assist/artifact_spec.rb",
|
122
|
+
"spec/rails_assist/directory/app_spec.rb",
|
123
|
+
"spec/rails_assist/directory/container_spec.rb",
|
124
|
+
"spec/rails_assist/directory/root_spec.rb",
|
125
|
+
"spec/rails_assist/directory_spec.rb",
|
126
|
+
"spec/rails_assist/file/application_spec.rb",
|
127
|
+
"spec/rails_assist/file/environment_spec.rb",
|
128
|
+
"spec/rails_assist/file/special_spec.rb",
|
129
|
+
"spec/rails_assist/file_spec.rb",
|
130
|
+
"spec/rails_assist/files_spec.rb",
|
131
|
+
"spec/rails_assist/rspec/have_app_config_spec.rb",
|
132
|
+
"spec/rails_assist_spec.rb",
|
133
|
+
"spec/spec_helper.rb"
|
134
|
+
]
|
135
|
+
s.homepage = %q{http://github.com/kristianmandrup/rails3-assist}
|
136
|
+
s.require_paths = ["lib"]
|
137
|
+
s.rubygems_version = %q{1.5.3}
|
138
|
+
s.summary = %q{File operation helpers for Rails 3 artifacts}
|
139
|
+
s.test_files = [
|
140
|
+
"spec/fixtures.rb",
|
141
|
+
"spec/fixtures/app/controllers/application_controller.rb",
|
142
|
+
"spec/fixtures/app/controllers/users_controller.rb",
|
143
|
+
"spec/fixtures/app/helpers/application_helper.rb",
|
144
|
+
"spec/fixtures/app/helpers/users_helper.rb",
|
145
|
+
"spec/fixtures/app/licenses/blogging_license.rb",
|
146
|
+
"spec/fixtures/app/mailers/user_mailer.rb",
|
147
|
+
"spec/fixtures/app/models/user.rb",
|
148
|
+
"spec/fixtures/app/models/user_observer.rb",
|
149
|
+
"spec/fixtures/app/permits/user_permit.rb",
|
150
|
+
"spec/fixtures/app/validators/email_validator.rb",
|
151
|
+
"spec/fixtures/config/application.rb",
|
152
|
+
"spec/fixtures/config/boot.rb",
|
153
|
+
"spec/fixtures/config/environment.rb",
|
154
|
+
"spec/fixtures/config/environments/development.rb",
|
155
|
+
"spec/fixtures/config/environments/production.rb",
|
156
|
+
"spec/fixtures/config/environments/test.rb",
|
157
|
+
"spec/fixtures/config/initializers/backtrace_silencers.rb",
|
158
|
+
"spec/fixtures/config/initializers/inflections.rb",
|
159
|
+
"spec/fixtures/config/initializers/mime_types.rb",
|
160
|
+
"spec/fixtures/config/initializers/my_init.rb",
|
161
|
+
"spec/fixtures/config/initializers/secret_token.rb",
|
162
|
+
"spec/fixtures/config/initializers/session_store.rb",
|
163
|
+
"spec/fixtures/config/routes.rb",
|
164
|
+
"spec/fixtures/db/migrate/20100831135208_create_users.rb",
|
165
|
+
"spec/fixtures/db/seeds.rb",
|
166
|
+
"spec/fixtures/test/functional/users_controller_test.rb",
|
167
|
+
"spec/fixtures/test/performance/browsing_test.rb",
|
168
|
+
"spec/fixtures/test/test_helper.rb",
|
169
|
+
"spec/fixtures/test/unit/helpers/users_helper_test.rb",
|
170
|
+
"spec/fixtures/test/unit/user_test.rb",
|
171
|
+
"spec/load_spec.rb",
|
172
|
+
"spec/rails_assist/app_spec.rb",
|
173
|
+
"spec/rails_assist/artifact/directory_spec.rb",
|
174
|
+
"spec/rails_assist/artifact/files_spec.rb",
|
175
|
+
"spec/rails_assist/artifact/path_spec.rb",
|
176
|
+
"spec/rails_assist/artifact_spec.rb",
|
177
|
+
"spec/rails_assist/directory/app_spec.rb",
|
178
|
+
"spec/rails_assist/directory/container_spec.rb",
|
179
|
+
"spec/rails_assist/directory/root_spec.rb",
|
180
|
+
"spec/rails_assist/directory_spec.rb",
|
181
|
+
"spec/rails_assist/file/application_spec.rb",
|
182
|
+
"spec/rails_assist/file/environment_spec.rb",
|
183
|
+
"spec/rails_assist/file/special_spec.rb",
|
184
|
+
"spec/rails_assist/file_spec.rb",
|
185
|
+
"spec/rails_assist/files_spec.rb",
|
186
|
+
"spec/rails_assist/rspec/have_app_config_spec.rb",
|
187
|
+
"spec/rails_assist_spec.rb",
|
188
|
+
"spec/spec_helper.rb"
|
189
|
+
]
|
190
|
+
|
191
|
+
if s.respond_to? :specification_version then
|
192
|
+
s.specification_version = 3
|
193
|
+
|
194
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
195
|
+
s.add_runtime_dependency(%q<require_all>, ["~> 1.2.0"])
|
196
|
+
s.add_runtime_dependency(%q<sugar-high>, ["~> 0.3.7"])
|
197
|
+
s.add_runtime_dependency(%q<activesupport>, [">= 3.0.4"])
|
198
|
+
s.add_development_dependency(%q<rspec>, [">= 2.3.0"])
|
199
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
200
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
201
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
202
|
+
else
|
203
|
+
s.add_dependency(%q<require_all>, ["~> 1.2.0"])
|
204
|
+
s.add_dependency(%q<sugar-high>, ["~> 0.3.7"])
|
205
|
+
s.add_dependency(%q<activesupport>, [">= 3.0.4"])
|
206
|
+
s.add_dependency(%q<rspec>, [">= 2.3.0"])
|
207
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
208
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
209
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
210
|
+
end
|
211
|
+
else
|
212
|
+
s.add_dependency(%q<require_all>, ["~> 1.2.0"])
|
213
|
+
s.add_dependency(%q<sugar-high>, ["~> 0.3.7"])
|
214
|
+
s.add_dependency(%q<activesupport>, [">= 3.0.4"])
|
215
|
+
s.add_dependency(%q<rspec>, [">= 2.3.0"])
|
216
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
217
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
218
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|