monogram 0.9.1 → 1.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 41c278c31721307b66470cc91a5e2ccfd583d1501fea154a9b4af29aa8ce76b0
4
- data.tar.gz: d8b1ae681f2ceb390cd37f6ea818fab329a1832e4fffa24eb15d23cd4868088f
3
+ metadata.gz: baf32bc8998a9fc5b2b961c26a069b35d9ae95b45cf7d08f288d8bb9d926f7fb
4
+ data.tar.gz: 4e2eca82064bdd040189929246e401ca7711a50999d7bee38d5e431fbd8a5dbb
5
5
  SHA512:
6
- metadata.gz: 8e643536245563599a7daff62350bb9416365ba328a29ec34ab4b825cac99e91f71735112a458a7123eb9cdfc621757d32bbc9b3da03cc561390b51eb3c1422e
7
- data.tar.gz: dae67e25f1d1cc310fe4c1cf1ad8bc2646509a55d23ccaf79263aaa6171329616f57a1c5737deddab70fe0f750f5e8c4ea737e9eb8516d625fd2f9c6ff107aef
6
+ metadata.gz: 796a261b52dfb17353f4da852f30ea0d6282d4830cebd409e6bbd9f4e9e6acbd2c60122985b0d7cdd1a69102bc9b19ce94c3b3ae1a8da67665cca63f96128283
7
+ data.tar.gz: 5b44a7e670aa91e5f73f64afb429d182c7c69c10bd39b4da63c3cb1a930231c1c7054d6f3109191cd26e9d3f6f8b438f6c7e5a57ecc8b6033b1a559f565ed1b3
@@ -4,7 +4,7 @@ class Monogram
4
4
  class Config
5
5
  COLOURS = %w[#B91C1C #B45309 #047857 #1D4ED8 #6D28D9].freeze
6
6
  UPPERCASE = true
7
- SHAPE = Avatar::SQUARE
7
+ SHAPE = Avatar::CIRCLE
8
8
 
9
9
  attr_accessor :colours, :uppercase, :shape
10
10
  alias colors= colours=
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Monogram
4
- VERSION = '0.9.1'
4
+ VERSION = '1.0.0'
5
5
  end
data/lib/monogram.rb CHANGED
@@ -74,8 +74,8 @@ class Monogram
74
74
  end
75
75
 
76
76
  def background_for_initials
77
- Random.srand(initials_seed)
78
- index = (rand * config.colours.length).floor
77
+ r = Random.new(initials_seed)
78
+ index = (r.rand * config.colours.length).floor
79
79
  config.colours[index]
80
80
  end
81
81
 
@@ -87,14 +87,3 @@ class Monogram
87
87
  @shape ||= config.shape
88
88
  end
89
89
  end
90
-
91
- def Object.const_missing(name)
92
- if name == :Supertramp
93
- warn '[DEPRECIATION WARNING] The Supertramp constant is deprecated and will be removed in version 1.0. '\
94
- 'Please use Monogram instead.'
95
-
96
- Monogram
97
- else
98
- super
99
- end
100
- end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monogram
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Bearman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-12 00:00:00.000000000 Z
11
+ date: 2023-12-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: