squeezer 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.bundle/config +2 -0
- data/.document +5 -0
- data/Gemfile +24 -0
- data/Gemfile.lock +119 -0
- data/LICENSE.txt +20 -0
- data/README +0 -0
- data/README.rdoc +19 -0
- data/Rakefile +53 -0
- data/VERSION +1 -0
- data/config/routes.rb +26 -0
- data/lib/app/controllers/application_controller.rb +25 -0
- data/lib/app/controllers/blogs_controller.rb +19 -0
- data/lib/app/controllers/comments_controller.rb +37 -0
- data/lib/app/controllers/pages_controller.rb +3 -0
- data/lib/app/controllers/posts_controller.rb +23 -0
- data/lib/app/controllers/roles_controller.rb +3 -0
- data/lib/app/controllers/sites_controller.rb +70 -0
- data/lib/app/controllers/users_controller.rb +22 -0
- data/lib/app/helpers/squeezer_helper.rb +80 -0
- data/lib/app/models/ability.rb +17 -0
- data/lib/app/models/blog.rb +5 -0
- data/lib/app/models/comment.rb +4 -0
- data/lib/app/models/page.rb +3 -0
- data/lib/app/models/post.rb +13 -0
- data/lib/app/models/role.rb +4 -0
- data/lib/app/models/site.rb +17 -0
- data/lib/app/models/user.rb +37 -0
- data/lib/app/views/blogs/_entry.haml +26 -0
- data/lib/app/views/blogs/_form.html.haml +15 -0
- data/lib/app/views/blogs/edit.html.haml +8 -0
- data/lib/app/views/blogs/index.html.haml +8 -0
- data/lib/app/views/blogs/new.html.haml +5 -0
- data/lib/app/views/blogs/show.html.haml +4 -0
- data/lib/app/views/comments/_form.html.haml +19 -0
- data/lib/app/views/comments/_index.html.haml +26 -0
- data/lib/app/views/comments/_post.html.haml +20 -0
- data/lib/app/views/comments/show.js.erb +1 -0
- data/lib/app/views/layouts/_footer.html.haml +5 -0
- data/lib/app/views/layouts/_login.haml +9 -0
- data/lib/app/views/layouts/_menu.html.haml +9 -0
- data/lib/app/views/layouts/_msn.haml +12 -0
- data/lib/app/views/layouts/_sidebar.html.haml +1 -0
- data/lib/app/views/layouts/application.html.erb +14 -0
- data/lib/app/views/layouts/ice/squeezer/_ice.haml +27 -0
- data/lib/app/views/layouts/ice/squeezer/ice/_ice.haml +6 -0
- data/lib/app/views/layouts/ice/squeezer/ice/squeezer/_ice.haml +27 -0
- data/lib/app/views/layouts/ice/squeezer/ice/squeezer/ice/_ice.haml +6 -0
- data/lib/app/views/layouts/ice/squeezer/ice/squeezer/ice/squeezer/_ice.haml +7 -0
- data/lib/app/views/layouts/squeezer/ice/_ice.haml +6 -0
- data/lib/app/views/layouts/squeezer/ice/squeezer/_ice.haml +28 -0
- data/lib/app/views/layouts/squeezer/ice/squeezer/ice/_ice.haml +6 -0
- data/lib/app/views/layouts/squeezer/ice/squeezer/ice/squeezer/_ice.haml +7 -0
- data/lib/app/views/layouts/squeezer/squeezer.css +252 -0
- data/lib/app/views/pages/_form.html.haml +17 -0
- data/lib/app/views/pages/edit.html.haml +8 -0
- data/lib/app/views/pages/index.html.haml +22 -0
- data/lib/app/views/pages/new.html.haml +5 -0
- data/lib/app/views/pages/show.html.haml +13 -0
- data/lib/app/views/roles/_form.html.haml +9 -0
- data/lib/app/views/roles/edit.html.haml +7 -0
- data/lib/app/views/roles/index.html.haml +19 -0
- data/lib/app/views/roles/new.html.haml +5 -0
- data/lib/app/views/roles/show.html.haml +13 -0
- data/lib/app/views/sites/_form.html.haml +42 -0
- data/lib/app/views/sites/edit.html.haml +1 -0
- data/lib/app/views/sites/index.html.haml +165 -0
- data/lib/app/views/sites/new.html.haml +1 -0
- data/lib/app/views/sites/show.html.haml +18 -0
- data/lib/app/views/users/index.haml +5 -0
- data/lib/app/views/users/roles.haml +14 -0
- data/lib/app/views/users/show.haml +1 -0
- data/lib/blogs_controller.rb +19 -0
- data/lib/squeezer/engine.rb +0 -0
- data/lib/squeezer.rb +3 -0
- data/pkg/squeezer-0.1.0.gem +0 -0
- data/pkg/squeezer-0.1.1.gem +0 -0
- data/pkg/squeezer-0.1.2.gem +0 -0
- data/pkg/squeezer-0.1.3.gem +0 -0
- data/squeezer.gemspec +168 -0
- data/test/helper.rb +18 -0
- data/test/test_squeezer.rb +7 -0
- metadata +350 -0
@@ -0,0 +1,19 @@
|
|
1
|
+
%h2 Listing roles
|
2
|
+
|
3
|
+
%table{:class=>'mytable'}
|
4
|
+
%tr
|
5
|
+
%th Name
|
6
|
+
%th Descripcion
|
7
|
+
|
8
|
+
- @roles.each do |role|
|
9
|
+
%tr
|
10
|
+
%td
|
11
|
+
= link_to role.name, role
|
12
|
+
%td
|
13
|
+
= role.desc
|
14
|
+
%td
|
15
|
+
= link_to 'Edit', edit_role_path(role)
|
16
|
+
%td
|
17
|
+
= link_to 'Destroy', role, :confirm => 'Are you sure?', :method => :delete
|
18
|
+
%br
|
19
|
+
= link_to 'New role', new_role_path
|
@@ -0,0 +1,42 @@
|
|
1
|
+
%div
|
2
|
+
%h2 Informacion del sitio
|
3
|
+
|
4
|
+
- form_for (@site), :html => { :multipart => true } do |f|
|
5
|
+
= f.error_messages
|
6
|
+
|
7
|
+
%p
|
8
|
+
= f.label :'Nombre*'
|
9
|
+
%p
|
10
|
+
= f.text_field :name
|
11
|
+
%p
|
12
|
+
= f.label :slogan
|
13
|
+
%p
|
14
|
+
= f.text_field :slogan
|
15
|
+
%p
|
16
|
+
= f.label :email
|
17
|
+
%p
|
18
|
+
= f.text_field :email
|
19
|
+
%p
|
20
|
+
= f.label :Logo
|
21
|
+
%p
|
22
|
+
= f.file_field :logo
|
23
|
+
%p
|
24
|
+
= f.label :Icono
|
25
|
+
%p
|
26
|
+
= f.file_field :icon
|
27
|
+
%p
|
28
|
+
= f.label :Mision
|
29
|
+
%p
|
30
|
+
= f.text_area :mision, :rows => 5
|
31
|
+
%p
|
32
|
+
= f.label :Footer
|
33
|
+
%p
|
34
|
+
= f.text_area :footer, :rows => 5
|
35
|
+
|
36
|
+
%p
|
37
|
+
= f.label :'Estilo'
|
38
|
+
%p
|
39
|
+
= f.select :style, @files
|
40
|
+
|
41
|
+
%p
|
42
|
+
= f.submit 'Update'
|
@@ -0,0 +1 @@
|
|
1
|
+
= render :partial => 'form'
|
@@ -0,0 +1,165 @@
|
|
1
|
+
- content_for(:head) do
|
2
|
+
%script{:type=>"text/javascript", :src=>"javascripts/prototype.js"}
|
3
|
+
%script{:type=>"text/javascript", :src=>"javascripts/effects.js"}
|
4
|
+
|
5
|
+
%script{:type=>"text/javascript"}
|
6
|
+
function about() {
|
7
|
+
if (Element.empty('about-content')) {
|
8
|
+
new Ajax.Updater('about-content', 'rails/info/properties', {
|
9
|
+
method: 'get',
|
10
|
+
onFailure: function() {Element.classNames('about-content').add('failure')},
|
11
|
+
onComplete: function() {new Effect.BlindDown('about-content', {duration: 0.25})}
|
12
|
+
});
|
13
|
+
} else {
|
14
|
+
new Effect[Element.visible('about-content') ?
|
15
|
+
'BlindUp' : 'BlindDown']('about-content', {duration: 0.25});
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
window.onload = function() {
|
20
|
+
$('search-text').value = '';
|
21
|
+
$('search').onsubmit = function() {
|
22
|
+
$('search-text').value = 'site:rubyonrails.org ' + $F('search-text');
|
23
|
+
}
|
24
|
+
}
|
25
|
+
- content_for(:sidebar) do
|
26
|
+
%ul{:id=>'sidebar-items'}
|
27
|
+
%li
|
28
|
+
%form{:id=>"searchx",:action=>"http://www.google.com/search",:method=>"get"}
|
29
|
+
%input{:name=>"hl",:value=>"en",:type=>"hidden"}
|
30
|
+
%input{:id=>"search-text",:name=>"q",:value=>" ",:type=>"text"}
|
31
|
+
%input{:value=>"Search",:type=>"submit"}
|
32
|
+
the Rails site
|
33
|
+
%li
|
34
|
+
%h3 Join the community
|
35
|
+
%ul{:class=>"links"}
|
36
|
+
%li
|
37
|
+
%a{:href=>"http://www.rubyonrails.org/"} Ruby on Rails
|
38
|
+
%li
|
39
|
+
%a{:href=>"http://weblog.rubyonrails.org/"} Official weblog
|
40
|
+
%li
|
41
|
+
%a{:href=>"http://wiki.rubyonrails.org/"} Wiki
|
42
|
+
%li
|
43
|
+
%h3 Browse the documentation
|
44
|
+
%ul{:class=>"links"}
|
45
|
+
%li
|
46
|
+
%a{:href=>"http://stdlib.rubyonrails.org/"} Rails API
|
47
|
+
%li
|
48
|
+
%a{:href=>"http://corelib.rubyonrails.org/"} Ruby core
|
49
|
+
%li
|
50
|
+
%a{:href=>"http://guides.rubyonrails.org/"} Rails Guides
|
51
|
+
|
52
|
+
- content_for(:header) do
|
53
|
+
%h1 Squeezer!
|
54
|
+
%h3 A nadie le gusta exprimir, pero a todos les gusta la limonada
|
55
|
+
%div
|
56
|
+
#getting-started
|
57
|
+
#about
|
58
|
+
%h3
|
59
|
+
%a{:href => 'rails/info/properties', :onclick=> 'about(); return false'} Acerca de la aplicacion
|
60
|
+
#about-content{:style=>"display: none"}
|
61
|
+
%br
|
62
|
+
-if !site
|
63
|
+
= link_to 'Crea los datos para el sitio', new_site_path
|
64
|
+
-else
|
65
|
+
= link_to 'Modifica los datos del sitio', {:controller=>'sites',:action=>'edit',:id=>site.id}
|
66
|
+
%br
|
67
|
+
= link_to 'Crea Usuaior', new_user_registration_path
|
68
|
+
%br
|
69
|
+
= link_to 'Administra roles', roles_path
|
70
|
+
%br
|
71
|
+
%h3
|
72
|
+
Crea conteido para la aplicación
|
73
|
+
Podes crear nuevas paginas para tu sitio
|
74
|
+
=link_to 'Paginas', new_page_path
|
75
|
+
%br
|
76
|
+
O tambien información en el blog
|
77
|
+
=link_to 'Blog', new_blog_path
|
78
|
+
%div{:class=>'wikistyle'}
|
79
|
+
%h3 Modulos
|
80
|
+
%b Usuarios
|
81
|
+
%p
|
82
|
+
El modulo de Usuarios se crea con
|
83
|
+
=link_to 'Devise.','http://github.com/plataformatec/devise'
|
84
|
+
|
85
|
+
%b Permisos
|
86
|
+
%p
|
87
|
+
Los permisos los maneja la gema
|
88
|
+
=link_to 'Cancan,','http://github.com/ryanb/cancan'
|
89
|
+
para modificarlos hay que cambiar la clase ability. La clase se encuentra con los modelos
|
90
|
+
%br
|
91
|
+
|
92
|
+
%b Comentarios
|
93
|
+
%p
|
94
|
+
Los comentarios son modelos dentro de la app.
|
95
|
+
%br
|
96
|
+
Para agregar comentarios a una Entidad, en el modelo de pagina se agrega
|
97
|
+
%pre
|
98
|
+
has_one :comment, :as=>:commentable,:dependent => :destroy
|
99
|
+
%p
|
100
|
+
Y en el show de pagina
|
101
|
+
%pre
|
102
|
+
<%= render :partial => "comments/index", :locals=>{:table=>@pagina}%>
|
103
|
+
%b Estilos
|
104
|
+
%p
|
105
|
+
Los estilos se instalan en la carpeta
|
106
|
+
%pre
|
107
|
+
public/stylesheets/ice
|
108
|
+
Una vez instalados se pueden cambiar en
|
109
|
+
%pre
|
110
|
+
=link_to 'Editar sitio',{:controller=>'sites',:action=>'edit',:id=>1}
|
111
|
+
%h3 Gemas
|
112
|
+
|
113
|
+
%b Devise
|
114
|
+
%p
|
115
|
+
=link_to 'github','http://github.com/plataformatec/devise'
|
116
|
+
%br
|
117
|
+
%b Rails casts
|
118
|
+
%br
|
119
|
+
=link_to 'Railscasts 209','http://railscasts.com/episodes/209-introducing-devise'
|
120
|
+
%br
|
121
|
+
=link_to 'Railscasts 210','http://railscasts.com/episodes/210-customizing-devise'
|
122
|
+
%br
|
123
|
+
%b ASCIIcasts
|
124
|
+
%br
|
125
|
+
=link_to 'ASCIIcasts 209','http://asciicasts.com/episodes/209-introducing-devise'
|
126
|
+
%br
|
127
|
+
=link_to 'ASCIIcasts 210','http://asciicasts.com/episodes/210-customizing-devise'
|
128
|
+
|
129
|
+
%b Cancan
|
130
|
+
%p
|
131
|
+
=link_to 'github','http://github.com/ryanb/cancan'
|
132
|
+
%br
|
133
|
+
%b Rails casts
|
134
|
+
%br
|
135
|
+
=link_to 'Railscasts 192','http://railscasts.com/episodes/192-authorization-with-cancan'
|
136
|
+
%br
|
137
|
+
%b ASCIIcasts
|
138
|
+
%br
|
139
|
+
=link_to 'ASCIIcasts 192','http://asciicasts.com/episodes/192-authorization-with-cancan'
|
140
|
+
%b haml
|
141
|
+
%p
|
142
|
+
=link_to 'Home','http://haml-lang.com/'
|
143
|
+
|
144
|
+
%b nifty-generators
|
145
|
+
%p
|
146
|
+
=link_to 'Git','http://github.com/ryanb/nifty-generators'
|
147
|
+
%br
|
148
|
+
Ejemplo
|
149
|
+
%pre
|
150
|
+
$ rails g scaffold blog title:string
|
151
|
+
%p
|
152
|
+
Las vista se generan en haml, porque el aplication.rb fué cambiado y se le agregò esto.
|
153
|
+
%pre
|
154
|
+
config.generators do |g|
|
155
|
+
%br
|
156
|
+
g.haml true
|
157
|
+
%br
|
158
|
+
end
|
159
|
+
%p
|
160
|
+
De lo contrario hay que agregar --haml a cada sentencia.
|
161
|
+
|
162
|
+
|
163
|
+
%b paperclip
|
164
|
+
%p
|
165
|
+
=link_to 'Git','http://github.com/thoughtbot/paperclip'
|
@@ -0,0 +1 @@
|
|
1
|
+
= render :partial => 'form'
|
@@ -0,0 +1 @@
|
|
1
|
+
%h2=@user.username
|
@@ -0,0 +1,19 @@
|
|
1
|
+
class BlogsController < InheritedResources::Base
|
2
|
+
load_and_authorize_resource
|
3
|
+
|
4
|
+
def index
|
5
|
+
@blogs = Blog.find(:all,:order=>'created_at desc')
|
6
|
+
end
|
7
|
+
|
8
|
+
def create
|
9
|
+
@blog = Blog.new(params[:blog])
|
10
|
+
@blog.user =current_user
|
11
|
+
if @blog.save
|
12
|
+
flash[:notice] = "Successfully created blog."
|
13
|
+
redirect_to @blog
|
14
|
+
else
|
15
|
+
render :action => 'new'
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
File without changes
|
data/lib/squeezer.rb
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/squeezer.gemspec
ADDED
@@ -0,0 +1,168 @@
|
|
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{squeezer}
|
8
|
+
s.version = "0.1.3"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Oldani Pablo"]
|
12
|
+
s.date = %q{2010-11-26}
|
13
|
+
s.description = %q{an appliaction ready to run}
|
14
|
+
s.email = %q{magicche@hotmail.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README",
|
18
|
+
"README.rdoc"
|
19
|
+
]
|
20
|
+
s.files = [
|
21
|
+
".bundle/config",
|
22
|
+
".document",
|
23
|
+
"Gemfile",
|
24
|
+
"Gemfile.lock",
|
25
|
+
"LICENSE.txt",
|
26
|
+
"README",
|
27
|
+
"README.rdoc",
|
28
|
+
"Rakefile",
|
29
|
+
"VERSION",
|
30
|
+
"config/routes.rb",
|
31
|
+
"lib/app/controllers/application_controller.rb",
|
32
|
+
"lib/app/controllers/blogs_controller.rb",
|
33
|
+
"lib/app/controllers/comments_controller.rb",
|
34
|
+
"lib/app/controllers/pages_controller.rb",
|
35
|
+
"lib/app/controllers/posts_controller.rb",
|
36
|
+
"lib/app/controllers/roles_controller.rb",
|
37
|
+
"lib/app/controllers/sites_controller.rb",
|
38
|
+
"lib/app/controllers/users_controller.rb",
|
39
|
+
"lib/app/helpers/squeezer_helper.rb",
|
40
|
+
"lib/app/models/ability.rb",
|
41
|
+
"lib/app/models/blog.rb",
|
42
|
+
"lib/app/models/comment.rb",
|
43
|
+
"lib/app/models/page.rb",
|
44
|
+
"lib/app/models/post.rb",
|
45
|
+
"lib/app/models/role.rb",
|
46
|
+
"lib/app/models/site.rb",
|
47
|
+
"lib/app/models/user.rb",
|
48
|
+
"lib/app/views/blogs/_entry.haml",
|
49
|
+
"lib/app/views/blogs/_form.html.haml",
|
50
|
+
"lib/app/views/blogs/edit.html.haml",
|
51
|
+
"lib/app/views/blogs/index.html.haml",
|
52
|
+
"lib/app/views/blogs/new.html.haml",
|
53
|
+
"lib/app/views/blogs/show.html.haml",
|
54
|
+
"lib/app/views/comments/_form.html.haml",
|
55
|
+
"lib/app/views/comments/_index.html.haml",
|
56
|
+
"lib/app/views/comments/_post.html.haml",
|
57
|
+
"lib/app/views/comments/show.js.erb",
|
58
|
+
"lib/app/views/layouts/_footer.html.haml",
|
59
|
+
"lib/app/views/layouts/_login.haml",
|
60
|
+
"lib/app/views/layouts/_menu.html.haml",
|
61
|
+
"lib/app/views/layouts/_msn.haml",
|
62
|
+
"lib/app/views/layouts/_sidebar.html.haml",
|
63
|
+
"lib/app/views/layouts/application.html.erb",
|
64
|
+
"lib/app/views/layouts/ice/squeezer/_ice.haml",
|
65
|
+
"lib/app/views/layouts/ice/squeezer/ice/_ice.haml",
|
66
|
+
"lib/app/views/layouts/ice/squeezer/ice/squeezer/_ice.haml",
|
67
|
+
"lib/app/views/layouts/ice/squeezer/ice/squeezer/ice/_ice.haml",
|
68
|
+
"lib/app/views/layouts/ice/squeezer/ice/squeezer/ice/squeezer/_ice.haml",
|
69
|
+
"lib/app/views/layouts/squeezer/ice/_ice.haml",
|
70
|
+
"lib/app/views/layouts/squeezer/ice/squeezer/_ice.haml",
|
71
|
+
"lib/app/views/layouts/squeezer/ice/squeezer/ice/_ice.haml",
|
72
|
+
"lib/app/views/layouts/squeezer/ice/squeezer/ice/squeezer/_ice.haml",
|
73
|
+
"lib/app/views/layouts/squeezer/squeezer.css",
|
74
|
+
"lib/app/views/pages/_form.html.haml",
|
75
|
+
"lib/app/views/pages/edit.html.haml",
|
76
|
+
"lib/app/views/pages/index.html.haml",
|
77
|
+
"lib/app/views/pages/new.html.haml",
|
78
|
+
"lib/app/views/pages/show.html.haml",
|
79
|
+
"lib/app/views/roles/_form.html.haml",
|
80
|
+
"lib/app/views/roles/edit.html.haml",
|
81
|
+
"lib/app/views/roles/index.html.haml",
|
82
|
+
"lib/app/views/roles/new.html.haml",
|
83
|
+
"lib/app/views/roles/show.html.haml",
|
84
|
+
"lib/app/views/sites/_form.html.haml",
|
85
|
+
"lib/app/views/sites/edit.html.haml",
|
86
|
+
"lib/app/views/sites/index.html.haml",
|
87
|
+
"lib/app/views/sites/new.html.haml",
|
88
|
+
"lib/app/views/sites/show.html.haml",
|
89
|
+
"lib/app/views/users/index.haml",
|
90
|
+
"lib/app/views/users/roles.haml",
|
91
|
+
"lib/app/views/users/show.haml",
|
92
|
+
"lib/blogs_controller.rb",
|
93
|
+
"lib/squeezer.rb",
|
94
|
+
"lib/squeezer/engine.rb",
|
95
|
+
"pkg/squeezer-0.1.0.gem",
|
96
|
+
"pkg/squeezer-0.1.1.gem",
|
97
|
+
"pkg/squeezer-0.1.2.gem",
|
98
|
+
"pkg/squeezer-0.1.3.gem",
|
99
|
+
"squeezer.gemspec",
|
100
|
+
"test/helper.rb",
|
101
|
+
"test/test_squeezer.rb"
|
102
|
+
]
|
103
|
+
s.homepage = %q{http://github.com/olvap/squeezer}
|
104
|
+
s.licenses = ["MIT"]
|
105
|
+
s.require_paths = ["lib"]
|
106
|
+
s.rubygems_version = %q{1.3.7}
|
107
|
+
s.summary = %q{i have to learn the meaning of summary}
|
108
|
+
s.test_files = [
|
109
|
+
"test/helper.rb",
|
110
|
+
"test/test_squeezer.rb"
|
111
|
+
]
|
112
|
+
|
113
|
+
if s.respond_to? :specification_version then
|
114
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
115
|
+
s.specification_version = 3
|
116
|
+
|
117
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
118
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
119
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
120
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
|
121
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
122
|
+
s.add_development_dependency(%q<will_paginate>, ["~> 3.0.pre2"])
|
123
|
+
s.add_development_dependency(%q<haml>, [">= 0"])
|
124
|
+
s.add_development_dependency(%q<devise>, ["~> 1.1.rc2"])
|
125
|
+
s.add_development_dependency(%q<paperclip>, [">= 0"])
|
126
|
+
s.add_development_dependency(%q<cancan>, [">= 0"])
|
127
|
+
s.add_development_dependency(%q<nifty-generators>, [">= 0"])
|
128
|
+
s.add_development_dependency(%q<jquery-rails>, [">= 0"])
|
129
|
+
s.add_development_dependency(%q<inherited_resources>, [">= 0"])
|
130
|
+
s.add_development_dependency(%q<mysql>, [">= 0"])
|
131
|
+
s.add_development_dependency(%q<meta_search>, [">= 0"])
|
132
|
+
s.add_development_dependency(%q<rails_helpers_fix>, [">= 0"])
|
133
|
+
else
|
134
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
135
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
136
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
|
137
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
138
|
+
s.add_dependency(%q<will_paginate>, ["~> 3.0.pre2"])
|
139
|
+
s.add_dependency(%q<haml>, [">= 0"])
|
140
|
+
s.add_dependency(%q<devise>, ["~> 1.1.rc2"])
|
141
|
+
s.add_dependency(%q<paperclip>, [">= 0"])
|
142
|
+
s.add_dependency(%q<cancan>, [">= 0"])
|
143
|
+
s.add_dependency(%q<nifty-generators>, [">= 0"])
|
144
|
+
s.add_dependency(%q<jquery-rails>, [">= 0"])
|
145
|
+
s.add_dependency(%q<inherited_resources>, [">= 0"])
|
146
|
+
s.add_dependency(%q<mysql>, [">= 0"])
|
147
|
+
s.add_dependency(%q<meta_search>, [">= 0"])
|
148
|
+
s.add_dependency(%q<rails_helpers_fix>, [">= 0"])
|
149
|
+
end
|
150
|
+
else
|
151
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
152
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
153
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
|
154
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
155
|
+
s.add_dependency(%q<will_paginate>, ["~> 3.0.pre2"])
|
156
|
+
s.add_dependency(%q<haml>, [">= 0"])
|
157
|
+
s.add_dependency(%q<devise>, ["~> 1.1.rc2"])
|
158
|
+
s.add_dependency(%q<paperclip>, [">= 0"])
|
159
|
+
s.add_dependency(%q<cancan>, [">= 0"])
|
160
|
+
s.add_dependency(%q<nifty-generators>, [">= 0"])
|
161
|
+
s.add_dependency(%q<jquery-rails>, [">= 0"])
|
162
|
+
s.add_dependency(%q<inherited_resources>, [">= 0"])
|
163
|
+
s.add_dependency(%q<mysql>, [">= 0"])
|
164
|
+
s.add_dependency(%q<meta_search>, [">= 0"])
|
165
|
+
s.add_dependency(%q<rails_helpers_fix>, [">= 0"])
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
data/test/helper.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :development)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
+
exit e.status_code
|
9
|
+
end
|
10
|
+
require 'test/unit'
|
11
|
+
require 'shoulda'
|
12
|
+
|
13
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
14
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
15
|
+
require 'squeezer'
|
16
|
+
|
17
|
+
class Test::Unit::TestCase
|
18
|
+
end
|