initial_avatar 0.1.1 → 0.2.0

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
  SHA256:
3
- metadata.gz: 2d631555bcf852456584cdeba88003811c0825583460c4fa3200a3f8f0ec7bcb
4
- data.tar.gz: 9b09bb1a1436dd0d4af08e5574df0264a15cd846c720244d52c70f9b759f694f
3
+ metadata.gz: 90e172af9dda3c950684495c590536ac0dec25f6d2591121897457cc56b52061
4
+ data.tar.gz: 991583b075afbe919d2310b4e0dfa0943d217929fd5ef27e52b404edf670ab28
5
5
  SHA512:
6
- metadata.gz: 6972ab0ecc31395b39d527b1d1b45600f7cdd864137d01f5ed28e38a2937b06117c93702178509b32d393322f25a6d690905cffddbd490bf033f34fe08a300fd
7
- data.tar.gz: 17464e1202c80a52e6dc899abd87dc69248a7fdea928bf6b834377a617356a07c5fca01ffaca9b29acf938772dc6c9221987f71e4d8780e0e67b440efab78503
6
+ metadata.gz: db81de206f56f4464c0ed8f7aa087136ff33f7fbd56ba4d36e8dabd68896263d0e02a378f10d58920e149f91ea356063880954c4a4e910b2fdcb3240a456b56e
7
+ data.tar.gz: 4933e66cc9299f8fd09bb93e610f46891ac120aa29b5c7e610dca25365fcafeedf7ce9f1b4cb4414f150fe4b0266053f80226fbe1294ef21f8eaf50936d4928f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.2.0
2
+
3
+ - Remove size from style attribute
4
+
1
5
  ## 0.1.1
2
6
 
3
7
  - Add seed option
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- initial_avatar (0.1.1)
4
+ initial_avatar (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -32,4 +32,4 @@ DEPENDENCIES
32
32
  rspec (~> 3.0)
33
33
 
34
34
  BUNDLED WITH
35
- 1.16.2
35
+ 1.17.3
data/README.md CHANGED
@@ -61,6 +61,7 @@ InitialAvatar.configure do |config|
61
61
  # config.size = 100
62
62
  # config.font_weight = 400
63
63
  # config.font_family = 'HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica, Arial,Lucida Grande, sans-serif'
64
+ # config.seed = 0
64
65
  end
65
66
  ```
66
67
 
@@ -10,7 +10,7 @@ module InitialAvatar
10
10
 
11
11
  def svg_tag
12
12
  <<~SVG
13
- <svg xmlns="http://www.w3.org/2000/svg" pointer-events="none" width="#{opts[:size]}" height="#{opts[:size]}" style="background-color: #{color}; width: #{opts[:size]}px; height: #{opts[:size]}px;">
13
+ <svg xmlns="http://www.w3.org/2000/svg" pointer-events="none" width="#{opts[:size]}" height="#{opts[:size]}" style="background-color: #{color};">
14
14
  <text text-anchor="middle" y="50%" x="50%" dy="0.35em" pointer-events="auto" fill="#{opts[:text_color]}" font-family="#{opts[:font_family]}" style="font-weight: #{opts[:font_weight]}; font-size: #{font_size}px;">#{text}</text>
15
15
  </svg>
16
16
  SVG
@@ -1,3 +1,3 @@
1
1
  module InitialAvatar
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: initial_avatar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - aki77
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-13 00:00:00.000000000 Z
11
+ date: 2019-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -95,8 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  requirements: []
98
- rubyforge_project:
99
- rubygems_version: 2.7.6
98
+ rubygems_version: 3.0.3
100
99
  signing_key:
101
100
  specification_version: 4
102
101
  summary: Create Gmail like text avatars.