calvatar 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d764df237673083fe0c74155ed30e6c3832aebc624aec86208b8bf99e27bf41
4
- data.tar.gz: a3d4b3740471069082e384e20d568f934c5e6ec993c8d8fd5340f251a3712b32
3
+ metadata.gz: e19664a6fdb99eb02aadbe900dc0b0cd58e5386d2e149199a79df19866068af5
4
+ data.tar.gz: f6573349fce95430ff476a6c60253386c9f4e05b11aac90661203c3decb357bf
5
5
  SHA512:
6
- metadata.gz: d77b1c8e4ec13d15e9d7dedd01b524beb90b7b601fe257638399df94edd26c8a82aa5e83b99c60045eeb03214c760e5a49469afeae171552bd872bf3b3915e2f
7
- data.tar.gz: 815fbd86b10370c77a3b5025d294ee85068faec7fe0f9f9c2347699ab2a718c53c2b6da5d5ba0b0959815bd462d52fcb8e56b00d655688ad9e4f669b08bbe618
6
+ metadata.gz: 348806daae68aa1d82d19083574e15038f3c0aca5b482833a011abe934d2521a4d27427290cc29b2d4121010b7e6e5a517e1dead24671c3589883bc8c64c2b23
7
+ data.tar.gz: df8382832f550c500ffd78437b17809f9b6e41ed358a456b71b1abd32c466c3b2e0ec2d16d67ebb7807ecacf7a146e54d79155889fb9b30dca3f89d3e4596f2c
Binary file
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Calvatar
4
+ class Engine < ::Rails::Engine
5
+ isolate_namespace Calvatar
6
+
7
+ initializer 'calvatar.helper' do
8
+ ActionView::Base.include CalvatarHelper
9
+ end
10
+ end
11
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Calvatar
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
data/lib/calvatar.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative 'calvatar/version'
4
+ require 'calvatar_helper'
4
5
 
5
6
  module Calvatar
6
7
  class Avatar
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CalvatarHelper
4
+ def calvatar_for(name)
5
+ Calvatar::Avatar.generate_avatar(name)
6
+ end
7
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calvatar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vitória Calvi Meinerz
@@ -23,8 +23,11 @@ files:
23
23
  - LICENSE.txt
24
24
  - README.md
25
25
  - Rakefile
26
+ - calvatar-0.1.0.gem
26
27
  - lib/calvatar.rb
28
+ - lib/calvatar/engine.rb
27
29
  - lib/calvatar/version.rb
30
+ - lib/calvatar_helper.rb
28
31
  - sig/calvatar.rbs
29
32
  homepage: https://github.com/calvitoria/calvatar
30
33
  licenses: