polariscope 0.1.2 → 0.1.3

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: 9c6930c7f97f32b109b00b9102007f65bd3b24f6bc30d7ff1d3b59519a644fad
4
- data.tar.gz: ed51721ba0daadcb33d7ac7cc03ac113382cd96609a63715a79733adeb68ded5
3
+ metadata.gz: ca212ea26786fe08b35c20df001624cbf7d5ade85f4e886f134ec148cd56ebe8
4
+ data.tar.gz: 749017d687096257534e62d7c6a1302ce999ed4cc5bb80010c78f60911927279
5
5
  SHA512:
6
- metadata.gz: ebbdef092ab5188bde6959fcfb425b4b96f1c0b3f670e8b88c69e5a669d0c9a438db25c9af27b73fe753898a368ac8420244206fcfea7facd0a3848ffe7aa6f8
7
- data.tar.gz: 4d55488e221899b6c07cc19beb961f54956ba4f7c8e374550e5772fba38f31d3603e669be932a7c4fa111d075747a5bf1753ab85c664aab667bb8da006105054
6
+ metadata.gz: 83af0de56791f4482451f46ad24f60cee32b8b406627d94ef6dc7c64356108db9dcf38dd37797422b3f9dac9e14b8eba72645932f338673b6553445178e692c0
7
+ data.tar.gz: eadb0cd4ccd33997dae72b93017ec35571f9ea91426b330c433ab2bce45f2680a71531a765c2f233f9dd9e6cc1cff987d1cf857f68a84a8e77a5bfdd07bcae80
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.3] - 2024-08-12
4
+
5
+ - Remove color#hsl feature
6
+
3
7
  ## [0.1.2] - 2024-08-08
4
8
 
5
9
  - Fix issue when no Gemfile found in project & reach 100% coverage with tests
data/README.md CHANGED
@@ -55,14 +55,6 @@ The return value will indicate how healthy your project is on a scale from 0 to
55
55
 
56
56
  #### Additional features
57
57
 
58
- ##### Score color
59
-
60
- Get the score color for a score:
61
-
62
- ```ruby
63
- Polariscope.score_color(60.75)
64
- ```
65
-
66
58
  ##### Gem versions
67
59
 
68
60
  Get the released or latest version of gems with:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Polariscope
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
data/lib/polariscope.rb CHANGED
@@ -4,7 +4,6 @@ require_relative 'polariscope/version'
4
4
  require_relative 'polariscope/scanner/codebase_health_score'
5
5
  require_relative 'polariscope/scanner/gem_versions'
6
6
  require_relative 'polariscope/file_content'
7
- require_relative 'polariscope/color/hsl'
8
7
 
9
8
  module Polariscope
10
9
  Error = Class.new(StandardError)
@@ -18,10 +17,6 @@ module Polariscope
18
17
  ).health_score
19
18
  end
20
19
 
21
- def score_color(score)
22
- Color::Hsl.for(score)
23
- end
24
-
25
20
  def gem_versions(dependency_names, spec_type: :released)
26
21
  Scanner::GemVersions.new(dependency_names, spec_type: spec_type)
27
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polariscope
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rails team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-08 00:00:00.000000000 Z
11
+ date: 2024-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -55,7 +55,6 @@ files:
55
55
  - Rakefile
56
56
  - exe/polariscope
57
57
  - lib/polariscope.rb
58
- - lib/polariscope/color/hsl.rb
59
58
  - lib/polariscope/file_content.rb
60
59
  - lib/polariscope/scanner/codebase_health_score.rb
61
60
  - lib/polariscope/scanner/gem_health_score.rb
@@ -1,37 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Polariscope
4
- module Color
5
- class Hsl
6
- MAX_HUE = 120
7
-
8
- class << self
9
- def for(score)
10
- new(score).hsl
11
- end
12
- end
13
-
14
- def initialize(score)
15
- @score = score
16
- end
17
-
18
- def hsl
19
- return '' unless score
20
-
21
- "hsl(#{hue}, 100%, 45%)"
22
- end
23
-
24
- private
25
-
26
- attr_reader :score
27
-
28
- def hue
29
- (MAX_HUE * (rounded_score / 100.0)).round
30
- end
31
-
32
- def rounded_score
33
- (score / 5).round * 5
34
- end
35
- end
36
- end
37
- end