pastel 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/pastel.rb +1 -6
- data/lib/pastel/ansi.rb +1 -1
- data/lib/pastel/color.rb +3 -0
- data/lib/pastel/color_parser.rb +2 -0
- data/lib/pastel/color_resolver.rb +2 -0
- data/lib/pastel/decorator_chain.rb +2 -0
- data/lib/pastel/delegator.rb +6 -0
- data/lib/pastel/detached.rb +2 -0
- data/lib/pastel/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aaa5adc3e15580e13bb1a6e6408c4ae861291eae
|
4
|
+
data.tar.gz: 29d6776a836796d28f8512c90fa2dfcd3e4d5483
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f778303c03d07dfedabdb2f7b8d79c8b8e3aca7cd03d9c25a27af616794267305648079841deea03390f56e84867e868edc1146452f247ca89f2d721bd27691a
|
7
|
+
data.tar.gz: a20b24d879adb603257444a760dbe8a23c797be93e2c483634ccd49df4a9d0c7d718e470cb705ab21bd7c114ee81e9e5be318961f0988d70f3213467211b2ad2
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Change log
|
2
2
|
|
3
|
+
## [v0.7.1] - 2017-01-09
|
4
|
+
|
5
|
+
### Changed
|
6
|
+
* Change to load specfic files when needed
|
7
|
+
* Change to freeze ANSI attributes
|
8
|
+
* Change to directly assign enabled attribute
|
9
|
+
|
3
10
|
## [v0.7.0] - 2016-12-27
|
4
11
|
|
5
12
|
### Changed
|
@@ -95,6 +102,7 @@
|
|
95
102
|
* Change gemspec to include equatable as dependency
|
96
103
|
* Change Delegator to stop creating instances and improve performance
|
97
104
|
|
105
|
+
[v0.7.1]: https://github.com/peter-murach/pastel/compare/v0.7.0...v0.7.1
|
98
106
|
[v0.7.0]: https://github.com/peter-murach/pastel/compare/v0.6.1...v0.7.0
|
99
107
|
[v0.6.1]: https://github.com/peter-murach/pastel/compare/v0.6.0...v0.6.1
|
100
108
|
[v0.6.0]: https://github.com/peter-murach/pastel/compare/v0.5.3...v0.6.0
|
data/lib/pastel.rb
CHANGED
@@ -1,16 +1,11 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
-
require 'forwardable'
|
4
|
-
require 'equatable'
|
5
3
|
require 'tty-color'
|
6
4
|
|
7
|
-
require 'pastel/ansi'
|
8
5
|
require 'pastel/alias_importer'
|
9
6
|
require 'pastel/color'
|
10
|
-
require 'pastel/color_parser'
|
11
7
|
require 'pastel/color_resolver'
|
12
8
|
require 'pastel/delegator'
|
13
|
-
require 'pastel/detached'
|
14
9
|
require 'pastel/decorator_chain'
|
15
10
|
require 'pastel/version'
|
16
11
|
|
@@ -31,7 +26,7 @@ module Pastel
|
|
31
26
|
# @api public
|
32
27
|
def new(options = {})
|
33
28
|
unless options.key?(:enabled)
|
34
|
-
options
|
29
|
+
options[:enabled] = (TTY::Color.windows? || TTY::Color.color?)
|
35
30
|
end
|
36
31
|
color = Color.new(options)
|
37
32
|
importer = AliasImporter.new(color, ENV)
|
data/lib/pastel/ansi.rb
CHANGED
data/lib/pastel/color.rb
CHANGED
data/lib/pastel/color_parser.rb
CHANGED
data/lib/pastel/delegator.rb
CHANGED
data/lib/pastel/detached.rb
CHANGED
data/lib/pastel/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pastel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Murach
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: equatable
|