avatar 0.0.5 → 0.2.0
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/History.txt +7 -0
- data/{README.txt → README.rdoc} +12 -4
- data/init.rb +5 -0
- data/lib/avatar.rb +3 -2
- data/lib/avatar/source/pavatar_source.rb +109 -0
- data/lib/avatar/source/wrapper/rails_asset_source_wrapper.rb +3 -1
- data/lib/avatar/version.rb +2 -2
- data/rails/init.rb +1 -0
- metadata +28 -125
- data/.gitignore +0 -8
- data/Manifest.txt +0 -104
- data/Rakefile +0 -10
- data/config/hoe.rb +0 -70
- data/config/requirements.rb +0 -17
- data/script/destroy +0 -14
- data/script/generate +0 -14
- data/script/txt2html +0 -74
- data/setup.rb +0 -1585
- data/tasks/deployment.rake +0 -34
- data/tasks/environment.rake +0 -7
- data/tasks/testing.rake +0 -37
- data/tasks/website.rake +0 -17
- data/test/.gitignore +0 -3
- data/test/lib/database.rb +0 -2
- data/test/lib/database.yml +0 -10
- data/test/lib/file_column/CHANGELOG +0 -69
- data/test/lib/file_column/README +0 -54
- data/test/lib/file_column/Rakefile +0 -36
- data/test/lib/file_column/TODO +0 -6
- data/test/lib/file_column/init.rb +0 -13
- data/test/lib/file_column/lib/file_column.rb +0 -720
- data/test/lib/file_column/lib/file_column_helper.rb +0 -150
- data/test/lib/file_column/lib/file_compat.rb +0 -28
- data/test/lib/file_column/lib/magick_file_column.rb +0 -260
- data/test/lib/file_column/lib/rails_file_column.rb +0 -19
- data/test/lib/file_column/lib/test_case.rb +0 -124
- data/test/lib/file_column/lib/validations.rb +0 -112
- data/test/lib/file_column/test/abstract_unit.rb +0 -63
- data/test/lib/file_column/test/connection.rb +0 -17
- data/test/lib/file_column/test/file_column_helper_test.rb +0 -97
- data/test/lib/file_column/test/file_column_test.rb +0 -650
- data/test/lib/file_column/test/fixtures/entry.rb +0 -32
- data/test/lib/file_column/test/fixtures/invalid-image.jpg +0 -1
- data/test/lib/file_column/test/fixtures/kerb.jpg +0 -0
- data/test/lib/file_column/test/fixtures/mysql.sql +0 -25
- data/test/lib/file_column/test/fixtures/schema.rb +0 -10
- data/test/lib/file_column/test/fixtures/skanthak.png +0 -0
- data/test/lib/file_column/test/magick_test.rb +0 -380
- data/test/lib/file_column/test/magick_view_only_test.rb +0 -21
- data/test/lib/paperclip/README +0 -32
- data/test/lib/paperclip/Rakefile +0 -41
- data/test/lib/paperclip/generators/paperclip/USAGE +0 -5
- data/test/lib/paperclip/generators/paperclip/paperclip_generator.rb +0 -27
- data/test/lib/paperclip/generators/paperclip/templates/paperclip_migration.rb +0 -17
- data/test/lib/paperclip/init.rb +0 -3
- data/test/lib/paperclip/lib/paperclip.rb +0 -197
- data/test/lib/paperclip/lib/paperclip/attachment.rb +0 -230
- data/test/lib/paperclip/lib/paperclip/geometry.rb +0 -109
- data/test/lib/paperclip/lib/paperclip/iostream.rb +0 -43
- data/test/lib/paperclip/lib/paperclip/thumbnail.rb +0 -80
- data/test/lib/paperclip/lib/paperclip/upfile.rb +0 -32
- data/test/lib/paperclip/tasks/paperclip_tasks.rake +0 -38
- data/test/lib/paperclip/test/database.yml +0 -5
- data/test/lib/paperclip/test/fixtures/12k.png +0 -0
- data/test/lib/paperclip/test/fixtures/5k.png +0 -0
- data/test/lib/paperclip/test/fixtures/bad.png +0 -1
- data/test/lib/paperclip/test/helper.rb +0 -38
- data/test/lib/paperclip/test/test_attachment.rb +0 -99
- data/test/lib/paperclip/test/test_geometry.rb +0 -142
- data/test/lib/paperclip/test/test_integration.rb +0 -76
- data/test/lib/paperclip/test/test_iostream.rb +0 -60
- data/test/lib/paperclip/test/test_paperclip.rb +0 -83
- data/test/lib/paperclip/test/test_thumbnail.rb +0 -76
- data/test/lib/schema.rb +0 -20
- data/test/lib/user_suit.png +0 -0
- data/test/test_abstract_view_support.rb +0 -22
- data/test/test_action_view_support.rb +0 -30
- data/test/test_avatar.rb +0 -12
- data/test/test_file_column_source.rb +0 -38
- data/test/test_gravatar_source.rb +0 -79
- data/test/test_helper.rb +0 -27
- data/test/test_nil_source.rb +0 -18
- data/test/test_paperclip_source.rb +0 -52
- data/test/test_rails_asset_source_wrapper.rb +0 -37
- data/test/test_source_chain.rb +0 -44
- data/test/test_static_url_source.rb +0 -18
- data/test/test_string_substitution_source_wrapper.rb +0 -25
- data/website/index.html +0 -105
- data/website/index.txt +0 -48
- data/website/javascripts/rounded_corners_lite.inc.js +0 -285
- data/website/stylesheets/screen.css +0 -138
- data/website/template.rhtml +0 -48
data/History.txt
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
== 0.0.6 2008-06-09
|
|
2
|
+
* 1 major fix:
|
|
3
|
+
* removed all task files (./task/*.rake) for Rails plugin compatability
|
|
4
|
+
|
|
5
|
+
* 1 minor enhancement
|
|
6
|
+
* removed redundant Hoe dependencies, since the gem is only hosted on GitHub
|
|
7
|
+
|
|
1
8
|
== 0.0.5 2008-04-01
|
|
2
9
|
* 4 major enhancements:
|
|
3
10
|
* added PaperclipSource for use with the Paperclip plugin
|
data/{README.txt → README.rdoc}
RENAMED
|
@@ -9,6 +9,7 @@ Avatar is a collection of Ruby utilities for displaying avatars.
|
|
|
9
9
|
|
|
10
10
|
Avatar currently supports the following sources:
|
|
11
11
|
* Gravatar (see http://www.gravatar.com)
|
|
12
|
+
* Initial Pavatar support (see http://pavatar.com/spec/)
|
|
12
13
|
* a constant URL (e.g. http://mysite.com/images/default_icon.png)
|
|
13
14
|
* parameterized URLs (e.g. http://mysite.com/images/famfamfam/user_#{color}.png)
|
|
14
15
|
* file_column (see http://www.kanthak.net/opensource/file_column/)
|
|
@@ -18,15 +19,22 @@ Avatar currently supports the following views:
|
|
|
18
19
|
* ActionView (Rails), through avatar_tag
|
|
19
20
|
* AbstractView (any framework), through avatar_url_for
|
|
20
21
|
|
|
21
|
-
==
|
|
22
|
+
== BUG REPORTING:
|
|
23
|
+
|
|
24
|
+
Submit bugs to https://gcnovus.fogbugz.com/default.asp?pg=pgPublicEdit under the "Avatar Gem" project,
|
|
25
|
+
or discuss at http://groups.google.com/group/ruby-avatar/.
|
|
26
|
+
|
|
27
|
+
== BASICS:
|
|
28
|
+
|
|
29
|
+
in RAILS_ROOT/app/helpers/people_helper.rb:
|
|
22
30
|
|
|
23
|
-
in RAILS_ROOT/app/helpers/people_helper.rb
|
|
24
31
|
require 'avatar/view/action_view_support'
|
|
25
32
|
class PeopleHelper
|
|
26
33
|
include Avatar::View::ActionViewSupport
|
|
27
34
|
end
|
|
28
35
|
|
|
29
36
|
in RAILS_ROOT/app/views/people/show.html.erb:
|
|
37
|
+
|
|
30
38
|
<%= avatar_tag(@current_user, :size => 40) %>
|
|
31
39
|
|
|
32
40
|
== REQUIREMENTS:
|
|
@@ -43,7 +51,7 @@ in RAILS_ROOT/app/views/people/show.html.erb:
|
|
|
43
51
|
|
|
44
52
|
(The MIT License)
|
|
45
53
|
|
|
46
|
-
Copyright (c) 2008
|
|
54
|
+
Copyright (c) 2008 James Rosen
|
|
47
55
|
|
|
48
56
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
57
|
a copy of this software and associated documentation files (the
|
|
@@ -62,4 +70,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
|
62
70
|
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
63
71
|
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
64
72
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
65
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
73
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/init.rb
ADDED
data/lib/avatar.rb
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
$:.unshift File.expand_path(File.dirname(__FILE__))
|
|
2
2
|
require 'avatar/source/abstract_source'
|
|
3
3
|
require 'avatar/source/gravatar_source'
|
|
4
|
+
require 'avatar/source/pavatar_source'
|
|
4
5
|
|
|
5
6
|
# Helpers for displaying avatars.
|
|
6
7
|
# Usage in Rails:
|
|
@@ -31,7 +32,7 @@ module Avatar
|
|
|
31
32
|
|
|
32
33
|
def self.default_avatar_options=(options)
|
|
33
34
|
raise ArgumentError.new("#{options} is not a Hash") unless options.kind_of?(Hash)
|
|
34
|
-
@@
|
|
35
|
+
@@default_avatar_options = options
|
|
35
36
|
end
|
|
36
37
|
|
|
37
|
-
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
require 'net/http'
|
|
2
|
+
require 'uri'
|
|
3
|
+
|
|
4
|
+
module Avatar # :nodoc:
|
|
5
|
+
module Source # :nodoc:
|
|
6
|
+
# Implements http://pavatar.com/spec/
|
|
7
|
+
class PavatarSource
|
|
8
|
+
include AbstractSource
|
|
9
|
+
|
|
10
|
+
PAVATAR_REGEXP = /^((?:http|https):\/\/.+)$/ix
|
|
11
|
+
|
|
12
|
+
attr_accessor :http_connection_factory
|
|
13
|
+
|
|
14
|
+
# Create a new PAvatar source.
|
|
15
|
+
#
|
|
16
|
+
# Options:
|
|
17
|
+
# * <code>:http_connection_factory</code> - the Object used to start new HTTP connections. By default,
|
|
18
|
+
# the <code>Net::HTTP</code> class. To use a proxy, pass
|
|
19
|
+
# <code>:http_connection_factory => Net::HTTP::Proxy(...)</code>
|
|
20
|
+
def initialize(options = {})
|
|
21
|
+
self.http_connection_factory = options.delete(:http_connection_factory) || Net::HTTP
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# Discovers pavatar URL. Returns nil if person is nil.
|
|
25
|
+
#
|
|
26
|
+
# Options:
|
|
27
|
+
# * <code>:pavatar_field (Symbol)</code> - the field to call from person. By default, <code>:blog_url</code>.
|
|
28
|
+
def avatar_url_for(person, options = {})
|
|
29
|
+
return nil if person.nil?
|
|
30
|
+
options = options.merge! ::Avatar.default_avatar_options
|
|
31
|
+
field = options.delete(:pavatar_field) || :blog_url
|
|
32
|
+
raise ArgumentError.new('No field specified; either specify a default field or pass in a value for :pavatar_field (probably :blog_url)') unless field
|
|
33
|
+
|
|
34
|
+
pavatar_url = autodiscover_pavatar_url_from person.send(field)
|
|
35
|
+
|
|
36
|
+
(pavatar_url.nil? || pavatar_url.to_s.blank?) ? nil : pavatar_url
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
private
|
|
40
|
+
|
|
41
|
+
# Autodiscover PAvatar URL from a +profile_url+.
|
|
42
|
+
#
|
|
43
|
+
# See http://pavatar.com/spec/#autodiscovery
|
|
44
|
+
#
|
|
45
|
+
# Returns +nil+ if +profile_url+ is blank.
|
|
46
|
+
def autodiscover_pavatar_url_from(profile_url)
|
|
47
|
+
return nil if profile_url.blank?
|
|
48
|
+
uri = URI.parse(profile_url)
|
|
49
|
+
begin
|
|
50
|
+
self.http_connection_factory.start(uri.host, uri.port) do |http|
|
|
51
|
+
return avatar_from_header(http) || avatar_from_link_element(http) || direct_avatar(profile_url, http) || nil
|
|
52
|
+
end
|
|
53
|
+
rescue Errno::ECONNREFUSED => e
|
|
54
|
+
nil
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
# Autodisciover using http headers.
|
|
60
|
+
#
|
|
61
|
+
# See http://pavatar.com/spec/#http-header
|
|
62
|
+
#
|
|
63
|
+
# Returns the URL if found; +nil+ otherwise.
|
|
64
|
+
def avatar_from_header(http)
|
|
65
|
+
resp = http.head('/')
|
|
66
|
+
resp.kind_of?(Net::HTTPSuccess) && resp['X-Pavatar']
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
# Autodiscover using link element.
|
|
71
|
+
#
|
|
72
|
+
# See http://pavatar.com/spec/#link-element
|
|
73
|
+
#
|
|
74
|
+
# Returns the URL if found; +nil+ otherwise.
|
|
75
|
+
def avatar_from_link_element(http)
|
|
76
|
+
resp = http.get('/')
|
|
77
|
+
resp.kind_of?(Net::HTTPSuccess) && parse_html_for_pavatar(resp.body)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
# Look for a <link rel='pavatar' href='...' />
|
|
82
|
+
#
|
|
83
|
+
# Returns the URL if found; +nil+ otherwise.
|
|
84
|
+
def parse_html_for_pavatar(doc)
|
|
85
|
+
return nil if doc.nil? or doc.empty?
|
|
86
|
+
|
|
87
|
+
# 4.a 2 http://pavatar.com/spec/#autodiscovery-algorithm
|
|
88
|
+
# recommends following regexp /<link rel="pavatar" href="([^""]+)" ?/?>/
|
|
89
|
+
# but it will not always match valid xhtml link element.
|
|
90
|
+
#
|
|
91
|
+
if result = doc.match(/<link(.+)rel=["']pavatar["'](.+)>/)
|
|
92
|
+
result.to_a[1..-1].map { |s| s.split(/["']/) }.flatten.find { |url| url =~ PAVATAR_REGEXP }
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
# Autodiscover using direct URL.
|
|
98
|
+
#
|
|
99
|
+
# See http://pavatar.com/spec/#direct-url
|
|
100
|
+
#
|
|
101
|
+
# Returns the URL if found; +nil+ otherwise.
|
|
102
|
+
def direct_avatar(profile_url, http)
|
|
103
|
+
resp = http.head('/pavatar.png')
|
|
104
|
+
profile_url + (profile_url =~ /\/$/ ? '' : '/') + 'pavatar.png' if resp.kind_of?(Net::HTTPSuccess)
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
end
|
data/lib/avatar/version.rb
CHANGED
data/rails/init.rb
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# File so gem can act like Rails plugin
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: avatar
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Rosen
|
|
@@ -9,134 +9,55 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date:
|
|
12
|
+
date: 2009-07-16 00:00:00 -04:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|
|
16
|
-
description:
|
|
17
|
-
email:
|
|
18
|
-
- james@u-presence.com
|
|
16
|
+
description: Adds support for rendering avatars from a variety of sources.
|
|
17
|
+
email: james.a.rosen@gmail.com
|
|
19
18
|
executables: []
|
|
20
19
|
|
|
21
20
|
extensions: []
|
|
22
21
|
|
|
23
|
-
extra_rdoc_files:
|
|
24
|
-
|
|
25
|
-
- License.txt
|
|
26
|
-
- Manifest.txt
|
|
27
|
-
- README.txt
|
|
28
|
-
- website/index.txt
|
|
22
|
+
extra_rdoc_files: []
|
|
23
|
+
|
|
29
24
|
files:
|
|
30
|
-
- .gitignore
|
|
31
25
|
- History.txt
|
|
32
26
|
- License.txt
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
- config/hoe.rb
|
|
37
|
-
- config/requirements.rb
|
|
38
|
-
- lib/avatar.rb
|
|
27
|
+
- README.rdoc
|
|
28
|
+
- init.rb
|
|
29
|
+
- rails/init.rb
|
|
39
30
|
- lib/avatar/object_support.rb
|
|
40
|
-
- lib/avatar/source.rb
|
|
41
31
|
- lib/avatar/source/abstract_source.rb
|
|
42
32
|
- lib/avatar/source/file_column_source.rb
|
|
43
33
|
- lib/avatar/source/gravatar_source.rb
|
|
44
34
|
- lib/avatar/source/nil_source.rb
|
|
45
35
|
- lib/avatar/source/paperclip_source.rb
|
|
36
|
+
- lib/avatar/source/pavatar_source.rb
|
|
46
37
|
- lib/avatar/source/source_chain.rb
|
|
47
38
|
- lib/avatar/source/static_url_source.rb
|
|
48
|
-
- lib/avatar/source/wrapper.rb
|
|
49
39
|
- lib/avatar/source/wrapper/abstract_source_wrapper.rb
|
|
50
40
|
- lib/avatar/source/wrapper/rails_asset_source_wrapper.rb
|
|
51
41
|
- lib/avatar/source/wrapper/string_substitution_source_wrapper.rb
|
|
42
|
+
- lib/avatar/source/wrapper.rb
|
|
43
|
+
- lib/avatar/source.rb
|
|
52
44
|
- lib/avatar/version.rb
|
|
53
|
-
- lib/avatar/view.rb
|
|
54
45
|
- lib/avatar/view/abstract_view_support.rb
|
|
55
46
|
- lib/avatar/view/action_view_support.rb
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
- script/txt2html
|
|
59
|
-
- setup.rb
|
|
60
|
-
- tasks/deployment.rake
|
|
61
|
-
- tasks/environment.rake
|
|
62
|
-
- tasks/testing.rake
|
|
63
|
-
- tasks/website.rake
|
|
64
|
-
- test/.gitignore
|
|
65
|
-
- test/lib/database.rb
|
|
66
|
-
- test/lib/database.yml
|
|
67
|
-
- test/lib/file_column/CHANGELOG
|
|
68
|
-
- test/lib/file_column/README
|
|
69
|
-
- test/lib/file_column/Rakefile
|
|
70
|
-
- test/lib/file_column/TODO
|
|
71
|
-
- test/lib/file_column/init.rb
|
|
72
|
-
- test/lib/file_column/lib/file_column.rb
|
|
73
|
-
- test/lib/file_column/lib/file_column_helper.rb
|
|
74
|
-
- test/lib/file_column/lib/file_compat.rb
|
|
75
|
-
- test/lib/file_column/lib/magick_file_column.rb
|
|
76
|
-
- test/lib/file_column/lib/rails_file_column.rb
|
|
77
|
-
- test/lib/file_column/lib/test_case.rb
|
|
78
|
-
- test/lib/file_column/lib/validations.rb
|
|
79
|
-
- test/lib/file_column/test/abstract_unit.rb
|
|
80
|
-
- test/lib/file_column/test/connection.rb
|
|
81
|
-
- test/lib/file_column/test/file_column_helper_test.rb
|
|
82
|
-
- test/lib/file_column/test/file_column_test.rb
|
|
83
|
-
- test/lib/file_column/test/fixtures/entry.rb
|
|
84
|
-
- test/lib/file_column/test/fixtures/invalid-image.jpg
|
|
85
|
-
- test/lib/file_column/test/fixtures/kerb.jpg
|
|
86
|
-
- test/lib/file_column/test/fixtures/mysql.sql
|
|
87
|
-
- test/lib/file_column/test/fixtures/schema.rb
|
|
88
|
-
- test/lib/file_column/test/fixtures/skanthak.png
|
|
89
|
-
- test/lib/file_column/test/magick_test.rb
|
|
90
|
-
- test/lib/file_column/test/magick_view_only_test.rb
|
|
91
|
-
- test/lib/paperclip/README
|
|
92
|
-
- test/lib/paperclip/Rakefile
|
|
93
|
-
- test/lib/paperclip/generators/paperclip/USAGE
|
|
94
|
-
- test/lib/paperclip/generators/paperclip/paperclip_generator.rb
|
|
95
|
-
- test/lib/paperclip/generators/paperclip/templates/paperclip_migration.rb
|
|
96
|
-
- test/lib/paperclip/init.rb
|
|
97
|
-
- test/lib/paperclip/lib/paperclip.rb
|
|
98
|
-
- test/lib/paperclip/lib/paperclip/attachment.rb
|
|
99
|
-
- test/lib/paperclip/lib/paperclip/geometry.rb
|
|
100
|
-
- test/lib/paperclip/lib/paperclip/iostream.rb
|
|
101
|
-
- test/lib/paperclip/lib/paperclip/thumbnail.rb
|
|
102
|
-
- test/lib/paperclip/lib/paperclip/upfile.rb
|
|
103
|
-
- test/lib/paperclip/tasks/paperclip_tasks.rake
|
|
104
|
-
- test/lib/paperclip/test/database.yml
|
|
105
|
-
- test/lib/paperclip/test/fixtures/12k.png
|
|
106
|
-
- test/lib/paperclip/test/fixtures/5k.png
|
|
107
|
-
- test/lib/paperclip/test/fixtures/bad.png
|
|
108
|
-
- test/lib/paperclip/test/helper.rb
|
|
109
|
-
- test/lib/paperclip/test/test_attachment.rb
|
|
110
|
-
- test/lib/paperclip/test/test_geometry.rb
|
|
111
|
-
- test/lib/paperclip/test/test_integration.rb
|
|
112
|
-
- test/lib/paperclip/test/test_iostream.rb
|
|
113
|
-
- test/lib/paperclip/test/test_paperclip.rb
|
|
114
|
-
- test/lib/paperclip/test/test_thumbnail.rb
|
|
115
|
-
- test/lib/schema.rb
|
|
116
|
-
- test/lib/user_suit.png
|
|
117
|
-
- test/test_abstract_view_support.rb
|
|
118
|
-
- test/test_action_view_support.rb
|
|
119
|
-
- test/test_avatar.rb
|
|
120
|
-
- test/test_file_column_source.rb
|
|
121
|
-
- test/test_gravatar_source.rb
|
|
122
|
-
- test/test_helper.rb
|
|
123
|
-
- test/test_nil_source.rb
|
|
124
|
-
- test/test_paperclip_source.rb
|
|
125
|
-
- test/test_rails_asset_source_wrapper.rb
|
|
126
|
-
- test/test_source_chain.rb
|
|
127
|
-
- test/test_static_url_source.rb
|
|
128
|
-
- test/test_string_substitution_source_wrapper.rb
|
|
129
|
-
- website/index.html
|
|
130
|
-
- website/index.txt
|
|
131
|
-
- website/javascripts/rounded_corners_lite.inc.js
|
|
132
|
-
- website/stylesheets/screen.css
|
|
133
|
-
- website/template.rhtml
|
|
47
|
+
- lib/avatar/view.rb
|
|
48
|
+
- lib/avatar.rb
|
|
134
49
|
has_rdoc: true
|
|
135
|
-
homepage: http://avatar
|
|
50
|
+
homepage: http://github.com/gcnovus/avatar
|
|
51
|
+
licenses: []
|
|
52
|
+
|
|
136
53
|
post_install_message:
|
|
137
54
|
rdoc_options:
|
|
138
|
-
- --
|
|
139
|
-
-
|
|
55
|
+
- --line-numbers
|
|
56
|
+
- --inline-source
|
|
57
|
+
- --title
|
|
58
|
+
- Grammar RDoc
|
|
59
|
+
- --charset
|
|
60
|
+
- utf-8
|
|
140
61
|
require_paths:
|
|
141
62
|
- lib
|
|
142
63
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
@@ -153,28 +74,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
153
74
|
version:
|
|
154
75
|
requirements: []
|
|
155
76
|
|
|
156
|
-
rubyforge_project:
|
|
157
|
-
rubygems_version: 1.
|
|
77
|
+
rubyforge_project:
|
|
78
|
+
rubygems_version: 1.3.3
|
|
158
79
|
signing_key:
|
|
159
80
|
specification_version: 2
|
|
160
|
-
summary:
|
|
161
|
-
test_files:
|
|
162
|
-
|
|
163
|
-
- test/lib/paperclip/test/test_attachment.rb
|
|
164
|
-
- test/lib/paperclip/test/test_geometry.rb
|
|
165
|
-
- test/lib/paperclip/test/test_integration.rb
|
|
166
|
-
- test/lib/paperclip/test/test_iostream.rb
|
|
167
|
-
- test/lib/paperclip/test/test_paperclip.rb
|
|
168
|
-
- test/lib/paperclip/test/test_thumbnail.rb
|
|
169
|
-
- test/test_abstract_view_support.rb
|
|
170
|
-
- test/test_action_view_support.rb
|
|
171
|
-
- test/test_avatar.rb
|
|
172
|
-
- test/test_file_column_source.rb
|
|
173
|
-
- test/test_gravatar_source.rb
|
|
174
|
-
- test/test_helper.rb
|
|
175
|
-
- test/test_nil_source.rb
|
|
176
|
-
- test/test_paperclip_source.rb
|
|
177
|
-
- test/test_rails_asset_source_wrapper.rb
|
|
178
|
-
- test/test_source_chain.rb
|
|
179
|
-
- test/test_static_url_source.rb
|
|
180
|
-
- test/test_string_substitution_source_wrapper.rb
|
|
81
|
+
summary: Multi-source avatar support
|
|
82
|
+
test_files: []
|
|
83
|
+
|
data/.gitignore
DELETED
data/Manifest.txt
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
.gitignore
|
|
2
|
-
History.txt
|
|
3
|
-
License.txt
|
|
4
|
-
Manifest.txt
|
|
5
|
-
README.txt
|
|
6
|
-
Rakefile
|
|
7
|
-
config/hoe.rb
|
|
8
|
-
config/requirements.rb
|
|
9
|
-
lib/avatar.rb
|
|
10
|
-
lib/avatar/object_support.rb
|
|
11
|
-
lib/avatar/source.rb
|
|
12
|
-
lib/avatar/source/abstract_source.rb
|
|
13
|
-
lib/avatar/source/file_column_source.rb
|
|
14
|
-
lib/avatar/source/gravatar_source.rb
|
|
15
|
-
lib/avatar/source/nil_source.rb
|
|
16
|
-
lib/avatar/source/paperclip_source.rb
|
|
17
|
-
lib/avatar/source/source_chain.rb
|
|
18
|
-
lib/avatar/source/static_url_source.rb
|
|
19
|
-
lib/avatar/source/wrapper.rb
|
|
20
|
-
lib/avatar/source/wrapper/abstract_source_wrapper.rb
|
|
21
|
-
lib/avatar/source/wrapper/rails_asset_source_wrapper.rb
|
|
22
|
-
lib/avatar/source/wrapper/string_substitution_source_wrapper.rb
|
|
23
|
-
lib/avatar/version.rb
|
|
24
|
-
lib/avatar/view.rb
|
|
25
|
-
lib/avatar/view/abstract_view_support.rb
|
|
26
|
-
lib/avatar/view/action_view_support.rb
|
|
27
|
-
script/destroy
|
|
28
|
-
script/generate
|
|
29
|
-
script/txt2html
|
|
30
|
-
setup.rb
|
|
31
|
-
tasks/deployment.rake
|
|
32
|
-
tasks/environment.rake
|
|
33
|
-
tasks/testing.rake
|
|
34
|
-
tasks/website.rake
|
|
35
|
-
test/.gitignore
|
|
36
|
-
test/lib/database.rb
|
|
37
|
-
test/lib/database.yml
|
|
38
|
-
test/lib/file_column/CHANGELOG
|
|
39
|
-
test/lib/file_column/README
|
|
40
|
-
test/lib/file_column/Rakefile
|
|
41
|
-
test/lib/file_column/TODO
|
|
42
|
-
test/lib/file_column/init.rb
|
|
43
|
-
test/lib/file_column/lib/file_column.rb
|
|
44
|
-
test/lib/file_column/lib/file_column_helper.rb
|
|
45
|
-
test/lib/file_column/lib/file_compat.rb
|
|
46
|
-
test/lib/file_column/lib/magick_file_column.rb
|
|
47
|
-
test/lib/file_column/lib/rails_file_column.rb
|
|
48
|
-
test/lib/file_column/lib/test_case.rb
|
|
49
|
-
test/lib/file_column/lib/validations.rb
|
|
50
|
-
test/lib/file_column/test/abstract_unit.rb
|
|
51
|
-
test/lib/file_column/test/connection.rb
|
|
52
|
-
test/lib/file_column/test/file_column_helper_test.rb
|
|
53
|
-
test/lib/file_column/test/file_column_test.rb
|
|
54
|
-
test/lib/file_column/test/fixtures/entry.rb
|
|
55
|
-
test/lib/file_column/test/fixtures/invalid-image.jpg
|
|
56
|
-
test/lib/file_column/test/fixtures/kerb.jpg
|
|
57
|
-
test/lib/file_column/test/fixtures/mysql.sql
|
|
58
|
-
test/lib/file_column/test/fixtures/schema.rb
|
|
59
|
-
test/lib/file_column/test/fixtures/skanthak.png
|
|
60
|
-
test/lib/file_column/test/magick_test.rb
|
|
61
|
-
test/lib/file_column/test/magick_view_only_test.rb
|
|
62
|
-
test/lib/paperclip/README
|
|
63
|
-
test/lib/paperclip/Rakefile
|
|
64
|
-
test/lib/paperclip/generators/paperclip/USAGE
|
|
65
|
-
test/lib/paperclip/generators/paperclip/paperclip_generator.rb
|
|
66
|
-
test/lib/paperclip/generators/paperclip/templates/paperclip_migration.rb
|
|
67
|
-
test/lib/paperclip/init.rb
|
|
68
|
-
test/lib/paperclip/lib/paperclip.rb
|
|
69
|
-
test/lib/paperclip/lib/paperclip/attachment.rb
|
|
70
|
-
test/lib/paperclip/lib/paperclip/geometry.rb
|
|
71
|
-
test/lib/paperclip/lib/paperclip/iostream.rb
|
|
72
|
-
test/lib/paperclip/lib/paperclip/thumbnail.rb
|
|
73
|
-
test/lib/paperclip/lib/paperclip/upfile.rb
|
|
74
|
-
test/lib/paperclip/tasks/paperclip_tasks.rake
|
|
75
|
-
test/lib/paperclip/test/database.yml
|
|
76
|
-
test/lib/paperclip/test/fixtures/12k.png
|
|
77
|
-
test/lib/paperclip/test/fixtures/5k.png
|
|
78
|
-
test/lib/paperclip/test/fixtures/bad.png
|
|
79
|
-
test/lib/paperclip/test/helper.rb
|
|
80
|
-
test/lib/paperclip/test/test_attachment.rb
|
|
81
|
-
test/lib/paperclip/test/test_geometry.rb
|
|
82
|
-
test/lib/paperclip/test/test_integration.rb
|
|
83
|
-
test/lib/paperclip/test/test_iostream.rb
|
|
84
|
-
test/lib/paperclip/test/test_paperclip.rb
|
|
85
|
-
test/lib/paperclip/test/test_thumbnail.rb
|
|
86
|
-
test/lib/schema.rb
|
|
87
|
-
test/lib/user_suit.png
|
|
88
|
-
test/test_abstract_view_support.rb
|
|
89
|
-
test/test_action_view_support.rb
|
|
90
|
-
test/test_avatar.rb
|
|
91
|
-
test/test_file_column_source.rb
|
|
92
|
-
test/test_gravatar_source.rb
|
|
93
|
-
test/test_helper.rb
|
|
94
|
-
test/test_nil_source.rb
|
|
95
|
-
test/test_paperclip_source.rb
|
|
96
|
-
test/test_rails_asset_source_wrapper.rb
|
|
97
|
-
test/test_source_chain.rb
|
|
98
|
-
test/test_static_url_source.rb
|
|
99
|
-
test/test_string_substitution_source_wrapper.rb
|
|
100
|
-
website/index.html
|
|
101
|
-
website/index.txt
|
|
102
|
-
website/javascripts/rounded_corners_lite.inc.js
|
|
103
|
-
website/stylesheets/screen.css
|
|
104
|
-
website/template.rhtml
|