acts_as_gravatar 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b4c47913dc7fd944b2281cdbe9b0e92e5710880
4
- data.tar.gz: 7975c899b60d71446d296d43086ad9737643d363
3
+ metadata.gz: df637a967c66735b2c1bdcb58f3af105e8c23f14
4
+ data.tar.gz: 66906eb82467ae85cf5333cab788a308de981aa4
5
5
  SHA512:
6
- metadata.gz: d1b49ae702b606d6d365fb73476efccf76e55cbc44e6e132d4f78f579ca1320d668d758dedbfb1961b04fa700a74911ead2bb9eb949c2850eae1e4d92ea79203
7
- data.tar.gz: 8c293369b5ef13fa5644a6099a956f79d2c5eefcbaaec201d9a61f567bc7edf47370e866453766bdf0a06757419abc8646e07de7ac5d1f72acfd4a64038f00e2
6
+ metadata.gz: 9b860d15f9ea36570500e9ac0c76a9a00432d8d78094aad0275994f68f1ecf5b32cea29833bcfcf01bbd717583ae43450cfeacb6936ec23ce20ed02ead631a84
7
+ data.tar.gz: be3047550a9522ecd9947787131d2347ac26868c22ce274f6188d5daff8c923474cec30bbed47ed9dbb80a94a19833001cdfe69632a5796158ac5b8cc237610b
data/README.md CHANGED
@@ -33,18 +33,20 @@ The next method becomes to be usable.
33
33
  ```
34
34
  user = User.find(1); #
35
35
 
36
- # get html tag of gravatar.
36
+ # get profile url of gravatar.
37
37
  user.gravatar_profile # URL of gravatar profile.
38
38
 
39
- # get url of gravatar.
39
+ # get image url of gravatar.
40
40
  user.gravatar_image # URL of gravatar image.
41
41
 
42
42
  ```
43
+
43
44
  acts\_as\_gravatar read `email` column.(default)
44
45
 
45
46
  ### Options
46
47
  when call acts\_as\_gravatar, can set default values.
47
48
  (The option not to appoint at the time of acts_as_gravatar summons becomes the default of gravatar.)
49
+
48
50
  ```
49
51
  class User < ActiveRecord::Base
50
52
  acts_as_gravatar({
@@ -58,20 +60,21 @@ class User < ActiveRecord::Base
58
60
  })
59
61
  end
60
62
  ```
63
+ Please See [Gravatar](http://ja.gravatar.com/site/implement/), Options of gravatar for more detail.
61
64
 
62
65
  And can set options, when call `gravatar_image` or `gravatar_profile`.
63
66
 
64
67
  ```
65
68
  user = User.find(1); #
66
69
 
67
- # get url of gravatar.
70
+ # get image url of gravatar.
68
71
  user.gravatar_image :secure => true, :size => 200
69
72
 
70
-
71
- # get tag of gravatar.
72
- user.gravatar_tag :column => :other_column
73
+ # get profile url of gravatar.
74
+ user.gravatar_profile :column => :other_column
73
75
  ```
74
76
 
77
+
75
78
  ## API DOCUMENT
76
79
 
77
80
  * [acts_as_gravatar](http://rubydoc.info/github/alfa-jpn/acts_as_gravatar/frames)
@@ -24,6 +24,6 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency "rspec", "~> 2.14.1"
25
25
  spec.add_development_dependency "yard", "~> 0.8.7.3"
26
26
 
27
- spec.add_dependency "inum", "~> 1.3.7"
27
+ spec.add_dependency "inum", "~> 2.0.0"
28
28
  spec.add_dependency "activerecord"
29
29
  end
@@ -1,3 +1,3 @@
1
1
  module ActsAsGravatar
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_gravatar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Atsushi Nakamura
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - ~>
88
88
  - !ruby/object:Gem::Version
89
- version: 1.3.7
89
+ version: 2.0.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - ~>
95
95
  - !ruby/object:Gem::Version
96
- version: 1.3.7
96
+ version: 2.0.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: activerecord
99
99
  requirement: !ruby/object:Gem::Requirement