letter_avatar 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Njg3MTMzMDBiZGEzNDhjNTYwZWRjOGE0MGI0ZWEzN2E2MzNiYjFlNQ==
4
+ YjllZTEzZDFiNDhjMGM2MTVmNWQ3MDYwMWRkM2MwMGRhY2NkN2QxMg==
5
5
  data.tar.gz: !binary |-
6
- MDNkYmE3ODg2OGQxMTY3ZTFmMjVjZWQ2OWMzZDZkMDQyMDJiNTY1MA==
6
+ YjNmNWY5ZGU5OTc4Yzg5OTA4ZjQ4Y2Q1MTJlYWVlMDQ1NDQzODdkZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjQ3YjRmYTM5NGE3MWQ1ODc0ZWExNTVhYTUyYWY3YzgwMmE2OTdmMjc2YTc3
10
- YmVlMjQ4NDI0M2JmZGJmZDAyZjJhZWEwNGQ4M2IzMzU4Mzk3NjY1M2Y0YWNj
11
- YTViZTUyMzhjNzQ5ZWJhNWZhZTZmNTNiMWVkMzE2OTZjMmU2MGM=
9
+ NjU0YjkyNjBlOTA1ZGMxMGU2NDc3MjYxNjFmNjhkOWIzZDNhZDVjNmM0YjIz
10
+ NDE3MzQyNzg4NjI4OWQ2Y2RkZDU1MTlmMTFkOWI3OWEzMjMyZjEzNzAwNDli
11
+ NDczOGRhMzEyYmY1OWZjZjU0OTgxOTA3MWVjMzhiMGVhMjQ4YzU=
12
12
  data.tar.gz: !binary |-
13
- ZmZkMzU5MTExNzFmYzA5MmE0OTViOWM5NTNjZjk4YzNjM2I5OWU2MzRkNzBj
14
- NmQwMmY5Zjg0ZDAwYjJlYjhjZWJkODg0YTY1ODZkYjIwZDc2YTczZDlmOGUx
15
- MzMwZTc1ZGExNTk4N2M3YTljYjg0MTZmNDVlMzhhMzYxOTRhYjk=
13
+ ZmE5ZDg3MmZjMmNkNzQwNDRhYzEyOTA5NDc3MjQ0NDY2NzIzZjI5YjkxNjVl
14
+ ZTc0YjNlYmFkOGExOGYzYzZkOWRhOTcwZGI1ZDYxNjJlMzQ2YzRkNWFiZGI3
15
+ MWU4ODhlNjVmYTA3Zjc1YWFkZTk2M2Y1YzdiN2U3ZDFjN2RjYTU=
data/lib/letter_avatar.rb CHANGED
@@ -3,8 +3,8 @@ require "letter_avatar/avatar"
3
3
 
4
4
  module LetterAvatar
5
5
 
6
- mattr_accessor :cache_path
7
- @@cache_path = ''
6
+ mattr_accessor :cache_base_path
7
+ @@cache_base_path = nil
8
8
 
9
9
  def self.setup(&block)
10
10
  yield(self)
@@ -26,7 +26,7 @@ module LetterAvatar
26
26
 
27
27
 
28
28
  def cache_path
29
- LetterAvatar.cache_path || "public/system/letter_avatars/#{VERSION}"
29
+ "#{LetterAvatar.cache_base_path || 'public/system'}/letter_avatars/#{VERSION}"
30
30
  end
31
31
 
32
32
  def generate(username, size, opts = nil)
@@ -1,3 +1,3 @@
1
1
  module LetterAvatar
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: letter_avatar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - discourse developers