avatars_for_rails 0.1.6 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,10 @@
1
+ //= require jquery
2
+ //= require jquery-ui
3
+ //= require jquery.Jcrop.min
4
+ //= require jquery.form
5
+ //= require jquery.fileupload
6
+ //= require jquery.fileupload-ui
7
+
1
8
  $(document).ready( function() {
2
9
  //Full Caption Sliding (Hidden to Visible)
3
10
  $('.boxgrid.captionfull').hover( function() {
@@ -5,4 +12,4 @@ $(document).ready( function() {
5
12
  }, function() {
6
13
  $(".cover", this).stop().animate({top:'104px'},{queue:false,duration:160});
7
14
  });
8
- });
15
+ });
@@ -1,3 +1,8 @@
1
+ /*
2
+ *= require jquery.Jcrop
3
+ *= require jquery.fileupload-ui
4
+ */
5
+
1
6
  /******************** Common ***********************/
2
7
  *{
3
8
  font-family: Arial;
@@ -1,5 +1,3 @@
1
- <%= render :partial => 'includes' %>
2
-
3
1
  <h1>Editing logo</h1>
4
2
 
5
3
  <%= render 'form' %>
@@ -1,4 +1,2 @@
1
- <%= render :partial => 'includes' %>
2
-
3
1
  <%= render :partial => 'list' %>
4
- <%= render :partial => 'form' %>
2
+ <%= render :partial => 'form' %>
@@ -1,6 +1,3 @@
1
- <%= render :partial => 'includes' %>
2
-
3
-
4
1
  <p id="notice"><%= notice %></p>
5
2
 
6
3
 
@@ -2,7 +2,7 @@
2
2
  # project in your rails apps through git.
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "avatars_for_rails"
5
- s.version = "0.1.6"
5
+ s.version = "0.2.0"
6
6
  s.authors = ["Jaime Castro Montero", "GING"]
7
7
  s.summary = "Avatar manager for rails apps."
8
8
  s.description = "A Rails engine that allows any model to act as avatarable, permitting it to have a complete avatar manager with a few options. Adapted to rails 3"
@@ -12,6 +12,7 @@ Gem::Specification.new do |s|
12
12
  #s.files = Dir["{app,lib,config}/**/*"] + ["MIT-LICENSE", "Rakefile", "Gemfile", "README.rdoc"]
13
13
  # Gem dependencies
14
14
  #
15
+ s.add_runtime_dependency('jquery-rails', '>= 1.0.9')
15
16
  # SQL foreign keys
16
17
  s.add_runtime_dependency('foreigner', '>= 0.9.1')
17
18
  s.add_runtime_dependency('paperclip', '>= 2.3.4')
@@ -1,4 +1,3 @@
1
- #class AvatarsForRails::InstallGenerator < Rails::Generators::Base #:nodoc:
2
1
  class AvatarsForRails::InstallGenerator < Rails::Generators::NamedBase #:nodoc:
3
2
  include Rails::Generators::Migration
4
3
 
@@ -17,4 +16,16 @@ class AvatarsForRails::InstallGenerator < Rails::Generators::NamedBase #:nodoc:
17
16
  def create_migration_file
18
17
  migration_template 'migration.rb', 'db/migrate/create_avatars_for_rails_' + file_name + '.rb'
19
18
  end
20
- end
19
+
20
+ def require_javascripts
21
+ inject_into_file 'app/assets/javascripts/application.js',
22
+ "//= require avatars_for_rails\n",
23
+ :before => '//= require_tree .'
24
+ end
25
+
26
+ def require_stylesheets
27
+ inject_into_file 'app/assets/stylesheets/application.css',
28
+ " *= require avatars_for_rails\n",
29
+ :before => ' *= require_tree .'
30
+ end
31
+ end
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 1
9
- - 6
10
- version: 0.1.6
8
+ - 2
9
+ - 0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jaime Castro Montero
@@ -23,6 +23,22 @@ dependencies:
23
23
  prerelease: false
24
24
  type: :runtime
25
25
  requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ hash: 5
31
+ segments:
32
+ - 1
33
+ - 0
34
+ - 9
35
+ version: 1.0.9
36
+ name: jquery-rails
37
+ version_requirements: *id001
38
+ - !ruby/object:Gem::Dependency
39
+ prerelease: false
40
+ type: :runtime
41
+ requirement: &id002 !ruby/object:Gem::Requirement
26
42
  none: false
27
43
  requirements:
28
44
  - - ">="
@@ -34,11 +50,11 @@ dependencies:
34
50
  - 1
35
51
  version: 0.9.1
36
52
  name: foreigner
37
- version_requirements: *id001
53
+ version_requirements: *id002
38
54
  - !ruby/object:Gem::Dependency
39
55
  prerelease: false
40
56
  type: :runtime
41
- requirement: &id002 !ruby/object:Gem::Requirement
57
+ requirement: &id003 !ruby/object:Gem::Requirement
42
58
  none: false
43
59
  requirements:
44
60
  - - ">="
@@ -50,11 +66,11 @@ dependencies:
50
66
  - 4
51
67
  version: 2.3.4
52
68
  name: paperclip
53
- version_requirements: *id002
69
+ version_requirements: *id003
54
70
  - !ruby/object:Gem::Dependency
55
71
  prerelease: false
56
72
  type: :runtime
57
- requirement: &id003 !ruby/object:Gem::Requirement
73
+ requirement: &id004 !ruby/object:Gem::Requirement
58
74
  none: false
59
75
  requirements:
60
76
  - - ">="
@@ -66,11 +82,11 @@ dependencies:
66
82
  - 1
67
83
  version: 2.13.1
68
84
  name: rmagick
69
- version_requirements: *id003
85
+ version_requirements: *id004
70
86
  - !ruby/object:Gem::Dependency
71
87
  prerelease: false
72
88
  type: :development
73
- requirement: &id004 !ruby/object:Gem::Requirement
89
+ requirement: &id005 !ruby/object:Gem::Requirement
74
90
  none: false
75
91
  requirements:
76
92
  - - ">="
@@ -82,11 +98,11 @@ dependencies:
82
98
  - 0
83
99
  version: 3.1.0
84
100
  name: rails
85
- version_requirements: *id004
101
+ version_requirements: *id005
86
102
  - !ruby/object:Gem::Dependency
87
103
  prerelease: false
88
104
  type: :development
89
- requirement: &id005 !ruby/object:Gem::Requirement
105
+ requirement: &id006 !ruby/object:Gem::Requirement
90
106
  none: false
91
107
  requirements:
92
108
  - - ">="
@@ -96,11 +112,11 @@ dependencies:
96
112
  - 0
97
113
  version: "0"
98
114
  name: sqlite3-ruby
99
- version_requirements: *id005
115
+ version_requirements: *id006
100
116
  - !ruby/object:Gem::Dependency
101
117
  prerelease: false
102
118
  type: :development
103
- requirement: &id006 !ruby/object:Gem::Requirement
119
+ requirement: &id007 !ruby/object:Gem::Requirement
104
120
  none: false
105
121
  requirements:
106
122
  - - ~>
@@ -112,11 +128,11 @@ dependencies:
112
128
  - 3
113
129
  version: 0.10.3
114
130
  name: ruby-debug
115
- version_requirements: *id006
131
+ version_requirements: *id007
116
132
  - !ruby/object:Gem::Dependency
117
133
  prerelease: false
118
134
  type: :development
119
- requirement: &id007 !ruby/object:Gem::Requirement
135
+ requirement: &id008 !ruby/object:Gem::Requirement
120
136
  none: false
121
137
  requirements:
122
138
  - - ~>
@@ -128,11 +144,11 @@ dependencies:
128
144
  - 0
129
145
  version: 2.5.0
130
146
  name: rspec-rails
131
- version_requirements: *id007
147
+ version_requirements: *id008
132
148
  - !ruby/object:Gem::Dependency
133
149
  prerelease: false
134
150
  type: :development
135
- requirement: &id008 !ruby/object:Gem::Requirement
151
+ requirement: &id009 !ruby/object:Gem::Requirement
136
152
  none: false
137
153
  requirements:
138
154
  - - ~>
@@ -144,11 +160,11 @@ dependencies:
144
160
  - 2
145
161
  version: 1.3.2
146
162
  name: factory_girl
147
- version_requirements: *id008
163
+ version_requirements: *id009
148
164
  - !ruby/object:Gem::Dependency
149
165
  prerelease: false
150
166
  type: :development
151
- requirement: &id009 !ruby/object:Gem::Requirement
167
+ requirement: &id010 !ruby/object:Gem::Requirement
152
168
  none: false
153
169
  requirements:
154
170
  - - ~>
@@ -160,11 +176,11 @@ dependencies:
160
176
  - 6
161
177
  version: 0.3.6
162
178
  name: forgery
163
- version_requirements: *id009
179
+ version_requirements: *id010
164
180
  - !ruby/object:Gem::Dependency
165
181
  prerelease: false
166
182
  type: :development
167
- requirement: &id010 !ruby/object:Gem::Requirement
183
+ requirement: &id011 !ruby/object:Gem::Requirement
168
184
  none: false
169
185
  requirements:
170
186
  - - ~>
@@ -176,7 +192,7 @@ dependencies:
176
192
  - 9
177
193
  version: 0.3.9
178
194
  name: capybara
179
- version_requirements: *id010
195
+ version_requirements: *id011
180
196
  description: A Rails engine that allows any model to act as avatarable, permitting it to have a complete avatar manager with a few options. Adapted to rails 3
181
197
  email: social-stream@dit.upm.es
182
198
  executables: []
@@ -192,19 +208,12 @@ files:
192
208
  - README.rdoc
193
209
  - Rakefile
194
210
  - app/assets/images/pbar-ani.gif
195
- - app/assets/javascripts/avatars.js
196
- - app/assets/javascripts/jquery.Jcrop.min.js
197
- - app/assets/javascripts/jquery.fileupload-ui.js
198
- - app/assets/javascripts/jquery.fileupload.js
199
- - app/assets/javascripts/jquery.form.js
200
- - app/assets/stylesheets/avatars.css
201
- - app/assets/stylesheets/jquery.Jcrop.css
202
- - app/assets/stylesheets/jquery.fileupload-ui.css
211
+ - app/assets/javascripts/avatars_for_rails.js
212
+ - app/assets/stylesheets/avatars_for_rails.css
203
213
  - app/controllers/avatars_controller.rb
204
214
  - app/models/avatar.rb
205
215
  - app/views/avatars/_errors.html.erb
206
216
  - app/views/avatars/_form.html.erb
207
- - app/views/avatars/_includes.html.erb
208
217
  - app/views/avatars/_list.html.erb
209
218
  - app/views/avatars/_new.html.erb
210
219
  - app/views/avatars/_precrop.html.erb
@@ -307,6 +316,12 @@ files:
307
316
  - spec/dummy/script/rails
308
317
  - spec/integration/navigation_spec.rb
309
318
  - spec/spec_helper.rb
319
+ - vendor/assets/javascripts/jquery.Jcrop.min.js
320
+ - vendor/assets/javascripts/jquery.fileupload-ui.js
321
+ - vendor/assets/javascripts/jquery.fileupload.js
322
+ - vendor/assets/javascripts/jquery.form.js
323
+ - vendor/assets/stylesheets/jquery.Jcrop.css
324
+ - vendor/assets/stylesheets/jquery.fileupload-ui.css
310
325
  has_rdoc: true
311
326
  homepage: http://github.com/ging/avatars_for_rails
312
327
  licenses: []
@@ -1,14 +0,0 @@
1
- <% content_for :headers do %>
2
-
3
- <%= javascript_include_tag 'jquery.Jcrop.min' %>
4
- <%= javascript_include_tag 'jquery-ui.min' %>
5
- <%= javascript_include_tag 'rails' %>
6
- <%= javascript_include_tag 'jquery.form' %>
7
- <%= javascript_include_tag 'jquery.fileupload' %>
8
- <%= javascript_include_tag 'jquery.fileupload-ui' %>
9
- <%= javascript_include_tag 'avatars' %>
10
-
11
- <%= stylesheet_link_tag "jquery.Jcrop", :media => "screen, projection" %>
12
- <%= stylesheet_link_tag "avatars", :media => "screen, projection" %><br/>
13
- <%= stylesheet_link_tag "jquery.fileupload-ui", :media => "screen, projection" %><br/>
14
- <%end%>