pretty_feed 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: 17c30588dd58871f5a984e967e4e808d52da0acabebdf584a26c2dae1b347949
4
- data.tar.gz: a1f8d1b0a9a535c479db007b81df251a480f231a7b8748cf565a57b31f36cbb0
3
+ metadata.gz: 33dc8684562bed8df172595936b8fd7669c442e65c436dc4fca6a7c535a69c27
4
+ data.tar.gz: 2ad30b05ca9d1122336ad43056dc7fe0fcb139df671c6affc5e504da6cf97b59
5
5
  SHA512:
6
- metadata.gz: 15ed9ff39b39eec2cd158cdd4812e771b125ed07cb2c380b92063db59bc37f9600c7e85598b85a54c22478afa843574744020997647242fac4685753013eea7c
7
- data.tar.gz: d399c722f2e9c964e7214e3cb519be946ca14625e23c6098bb73e2d51f56e27ac8cc25317286a0f3d7cdbdd7c53e84b1d4fcd2bc317f939015d4a6b7f5f4bf2d
6
+ metadata.gz: 58bbaf39fb718f7c2b8f0a2d6f701cb9434e89713901dbfc5f3ab1eb47154b118c93df2ccc5ec32243e1395e7696a58b223647822aa94f354f3e8caaf9fa2ecf
7
+ data.tar.gz: b2e92fdad45349185671ebe130a1156844afb935f94d0af8e579a834d55262ad44a03e9c7bc82e6f534dd783ce1b4f1739e882615b5da5fca2de78dcb02a5656
data/CHANGELOG.md CHANGED
@@ -11,6 +11,27 @@
11
11
 
12
12
  ### Removed
13
13
 
14
+ ## [0.2.0] - 2022-03-21
15
+
16
+ ### Fixed
17
+
18
+ * Misleading documentation has been corrected
19
+
20
+
21
+ ## [0.1.1] - 2022-03-21
22
+
23
+ ### Added
24
+
25
+ * 100% test coverage
26
+
27
+ ### Changed
28
+
29
+ * Improved `warn` text when stub color methods added to instances of String.
30
+
31
+ ### Fixed
32
+
33
+ * Handling of frozen strings
34
+
14
35
 
15
36
  ## [0.1.0] - 2022-03-21
16
37
 
data/README.md CHANGED
@@ -2,8 +2,6 @@
2
2
 
3
3
  PrettyFeed is a modulizer you can include in a job, worker, class, rake task, etc, which allows for simple pass/fail logging colorization. Defaults are `truthy: 'green'` and `falsey: 'red'`.
4
4
 
5
- If `ColorizedString` (from the [`colorize` gem](https://github.com/fazibear/colorize) is defined it will use that. It is preferred because it doesn't pollute the `String` class with color methods. Alternatively, it will work with strings that respond to the colors you select as methods on the `String` instance. This means it should work with `colored2`, `awesome_print`, and many other similar gems. If your strings do not respond to color methods there will be a `warn` message printed to STDERR. Colors available depend on the gem you use to provide the color methods!
6
-
7
5
  While this gem has no direct dependencies, it won't accomplish do much for you unless you are using a "console output coloring" gem of some kind.
8
6
 
9
7
  ## Installation
@@ -23,9 +21,9 @@ namespace :scrub do
23
21
  task :blurb => :environment do |_t, _args|
24
22
  include PrettyFeed::PfTf.new(truthy: 'green', falsey: 'blue')
25
23
  pftf("this will be green", true)
26
- # => "this will be green" # in the console
24
+ # => "this will be green: true" # in the console
27
25
  pftf("this will be blue", false)
28
- # => "this will be blue" # in the console
26
+ # => "this will be blue: false" # in the console
29
27
  end
30
28
  end
31
29
  ```
@@ -37,11 +35,21 @@ namespace :scrub do
37
35
  task :blurb => :environment do |_t, someth|
38
36
  include PrettyFeed::PfTf.new(truthy: 'green', falsey: 'blue')
39
37
  pftf("might be green or blue", someth, ->(a) { a })
40
- # => the color will depend on what someth is and how the proc evaluates it.
38
+ # => "might be green or blue: #{someth}" # in the console
39
+ # NOTE: the color will depend on what someth is and whether the proc evaluates as truthy or falsey.
41
40
  end
42
41
  end
43
42
  ```
44
43
 
44
+ ### Defaults
45
+
46
+ `ColorizedString` (from the [`colorize` gem](https://github.com/fazibear/colorize)) will be used if it is `defined?`. I prefer it because it doesn't pollute the `String` class with color methods.
47
+
48
+ ### Options
49
+
50
+ It will also work with strings that respond to the colors you select as methods on the `String` instance. This means it should work with `colored2`, `awesome_print`, and many other similar gems. If your strings do not respond to color methods there will be a `warn` message printed to STDERR. Colors available depend on the gem you use to provide the color methods! The various gems do not have uniform sets of colors, nor names of colors.
51
+
52
+
45
53
  ## Development
46
54
 
47
55
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PrettyFeed
4
- VERSION = "0.1.1"
4
+ VERSION = "0.2.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pretty_feed
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
  - Peter Boling
@@ -126,10 +126,10 @@ licenses:
126
126
  - MIT
127
127
  metadata:
128
128
  homepage_uri: https://github.com/pboling/pretty_feed
129
- source_code_uri: https://github.com/pboling/pretty_feed/tree/v0.1.1
130
- changelog_uri: https://github.com/pboling/pretty_feed/blob/v0.1.1/CHANGELOG.md
129
+ source_code_uri: https://github.com/pboling/pretty_feed/tree/v0.2.0
130
+ changelog_uri: https://github.com/pboling/pretty_feed/blob/v0.2.0/CHANGELOG.md
131
131
  bug_tracker_uri: https://github.com/pboling/pretty_feed/issues
132
- documentation_uri: https://www.rubydoc.info/gems/pretty_feed/0.1.1
132
+ documentation_uri: https://www.rubydoc.info/gems/pretty_feed/0.2.0
133
133
  wiki_uri: https://github.com/pboling/pretty_feed/wiki
134
134
  rubygems_mfa_required: 'true'
135
135
  post_install_message: