cmessages 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/.travis.yml +17 -22
- data/CHANGELOG.md +25 -0
- data/CODEOWNERS +1 -1
- data/Gemfile +1 -0
- data/README.md +18 -14
- data/VERSION.txt +1 -0
- data/cmessages.gemspec +4 -2
- data/lib/cmessages/version.rb +1 -1
- metadata +10 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8aef001b09c25175c8f2aae339a296026350d230c28ccf124130fd25c3f39434
|
4
|
+
data.tar.gz: 9ab991a97f6ea25b32c864a86d1b3e81783685d81f3a10e72cea9758bc0c44b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ba9e63ae06461aa0161d2b73a41623111a744197a79bbc381cdc2c90ebfaefb3ccb5a7168b5c55ebb38f29604a124e070c4d68ab0819807a7bda0d857951649
|
7
|
+
data.tar.gz: 4604ef148b3ef45124eda0ce0b5ccb3d1555c0e0e23ae523871d0205f505847f7c0a4e4d790cb40f3714a4aa884a3ef8df7262b6b3483640fb013c50ffb4d4b7
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
@@ -1,29 +1,24 @@
|
|
1
1
|
matrix:
|
2
2
|
include:
|
3
3
|
- language: ruby
|
4
|
-
name: Bundler (rvm 2.
|
5
|
-
rvm: 2.4
|
6
|
-
before_install:
|
7
|
-
- gem install bundler -v 1.17.3
|
8
|
-
- language: ruby
|
9
|
-
name: Bundler (rvm 2.4 & bundler 2.0.1)
|
10
|
-
rvm: 2.4
|
11
|
-
before_install:
|
12
|
-
- gem install bundler -v 2.0.1
|
13
|
-
- language: ruby
|
14
|
-
name: Bundler (rvm 2.5 & bundler 2.0.1)
|
4
|
+
name: Bundler (rvm 2.5 & bundler)
|
15
5
|
rvm: 2.5
|
16
6
|
before_install:
|
17
|
-
- gem install bundler
|
7
|
+
- gem install bundler
|
18
8
|
- language: ruby
|
19
|
-
name: Bundler (rvm 2.6 & bundler
|
9
|
+
name: Bundler (rvm 2.6 & bundler)
|
20
10
|
rvm: 2.6
|
21
11
|
before_install:
|
22
|
-
- gem install bundler
|
12
|
+
- gem install bundler
|
23
13
|
- language: ruby
|
24
|
-
name:
|
14
|
+
name: Bundler (rvm 2.7 & bundler)
|
15
|
+
rvm: 2.7
|
16
|
+
before_install:
|
17
|
+
- gem install bundler
|
18
|
+
- language: ruby
|
19
|
+
name: Rubocop (rvm 2.5)
|
25
20
|
env: SKIP_INTERPRETER=true
|
26
|
-
rvm: 2.
|
21
|
+
rvm: 2.5
|
27
22
|
before_install:
|
28
23
|
- git clone https://github.com/TravisToolbox/rubocop-travis.git
|
29
24
|
install:
|
@@ -31,9 +26,9 @@ matrix:
|
|
31
26
|
script:
|
32
27
|
- "./rubocop-travis/scan.sh"
|
33
28
|
- language: ruby
|
34
|
-
name: Rubocop (rvm 2.
|
29
|
+
name: Rubocop (rvm 2.6)
|
35
30
|
env: SKIP_INTERPRETER=true
|
36
|
-
rvm: 2.
|
31
|
+
rvm: 2.6
|
37
32
|
before_install:
|
38
33
|
- git clone https://github.com/TravisToolbox/rubocop-travis.git
|
39
34
|
install:
|
@@ -41,9 +36,9 @@ matrix:
|
|
41
36
|
script:
|
42
37
|
- "./rubocop-travis/scan.sh"
|
43
38
|
- language: ruby
|
44
|
-
name: Rubocop (rvm 2.
|
39
|
+
name: Rubocop (rvm 2.7)
|
45
40
|
env: SKIP_INTERPRETER=true
|
46
|
-
rvm: 2.
|
41
|
+
rvm: 2.7
|
47
42
|
before_install:
|
48
43
|
- git clone https://github.com/TravisToolbox/rubocop-travis.git
|
49
44
|
install:
|
@@ -51,8 +46,8 @@ matrix:
|
|
51
46
|
script:
|
52
47
|
- "./rubocop-travis/scan.sh"
|
53
48
|
- language: ruby
|
54
|
-
name: Link Checking (rvm 2.
|
55
|
-
rvm: 2.
|
49
|
+
name: Link Checking (rvm 2.7)
|
50
|
+
rvm: 2.7
|
56
51
|
env:
|
57
52
|
- WHITELIST="https://img.shields.io"
|
58
53
|
- EXCLUDE_FILES="CHANGELOG.md"
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
|
5
|
+
|
6
|
+
This changelog was automatically generated using [Caretaker](https://github.com/WSRubyGems/cmessages.git) by [Wolf Software](https://github.com/WolfSoftware)
|
7
|
+
|
8
|
+
### [v1.0.0](https://github.com/WSRubyGems/cmessages.git/compare/v0.1.0...v1.0.0)
|
9
|
+
|
10
|
+
> Released on March, 12th 2020
|
11
|
+
|
12
|
+
- Update the gem version.rb [`[3984e59]`](https://github.com/WSRubyGems/cmessages.git/commit/3984e59750d8ccc53831d45369305c180357c3e7) [`[TGWolf]`](https://github.com/TGWolf)
|
13
|
+
|
14
|
+
- Update the README and tag for release [`[5e35b9f]`](https://github.com/WSRubyGems/cmessages.git/commit/5e35b9f10bba1b5125ddd7b6ec58029e2ba6f454) [`[TGWolf]`](https://github.com/TGWolf)
|
15
|
+
|
16
|
+
- Remove Ruby 2.4 support and add 2.7, also change the organisation [`[4ac44c9]`](https://github.com/WSRubyGems/cmessages.git/commit/4ac44c9ae9409f1feb436a04029fcdb8f7bf267b) [`[TGWolf]`](https://github.com/TGWolf)
|
17
|
+
|
18
|
+
### [v0.1.0](https://github.com/WSRubyGems/cmessages.git/releases/v0.1.0)
|
19
|
+
|
20
|
+
> Released on March, 3rd 2020
|
21
|
+
|
22
|
+
- Update the README to include the valid colour names [`[d947cee]`](https://github.com/WSRubyGems/cmessages.git/commit/d947cee322cbe16da819b6cd0b4ff5432aef96dd) [`[TGWolf]`](https://github.com/TGWolf)
|
23
|
+
|
24
|
+
- Initial push [`[0c9abc0]`](https://github.com/WSRubyGems/cmessages.git/commit/0c9abc03283147140df28ec8719927b5150ba9fb) [`[TGWolf]`](https://github.com/TGWolf)
|
25
|
+
|
data/CODEOWNERS
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,21 +1,25 @@
|
|
1
|
-
[![Build Status](https://img.shields.io/travis/
|
1
|
+
[![Build Status](https://img.shields.io/travis/WSRubyGems/cmessages/master?style=for-the-badge&logo=travis)](https://travis-ci.org/WSRubyGems/cmessages)
|
2
2
|
[![Software License](https://img.shields.io/badge/license-MIT-blue?style=for-the-badge)](LICENSE.md)
|
3
|
-
[![Release](https://img.shields.io/github/release/
|
4
|
-
[![Last Release](https://img.shields.io/github/release-date/
|
5
|
-
[![Github commits (since latest release)](https://img.shields.io/github/commits-since/
|
6
|
-
[![Last Commit](https://img.shields.io/github/last-commit/
|
7
|
-
[![
|
3
|
+
[![Release](https://img.shields.io/github/release/WSRubyGems/cmessages?color=blue&style=for-the-badge&logo=github&label=Latest%20Release)](https://github.com/WSRubyGems/cmessages/releases/latest)
|
4
|
+
[![Last Release](https://img.shields.io/github/release-date/WSRubyGems/cmessages?color=blue&style=for-the-badge&logo=github)](https://github.com/WSRubyGems/cmessages/releases/latest)
|
5
|
+
[![Github commits (since latest release)](https://img.shields.io/github/commits-since/WSRubyGems/cmessages/latest?color=blue&style=for-the-badge&logo=github)](https://github.com/WSRubyGems/cmessages/commits)
|
6
|
+
[![Last Commit](https://img.shields.io/github/last-commit/WSRubyGems/cmessages?color=blue&style=for-the-badge&logo=github)](https://github.com/WSRubyGems/cmessages/commits/master)
|
7
|
+
[![WSRubyGems](https://img.shields.io/badge/Released%20By-Wolf%20Software%20Ltd.-blue?style=for-the-badge)](https://github.com/WSRubyGems)
|
8
8
|
|
9
9
|
# Cmessages
|
10
10
|
|
11
|
-
A simple gem for outputting console errors/warnings/success/info messages.
|
11
|
+
A simple gem for outputting console errors/warnings/success/info messages.
|
12
12
|
|
13
|
-
|
14
|
-
* Warning - Display a warning message - Default light yellow text with an ```[ Warning ]``` prefix.
|
15
|
-
* Success - Display a success message - Default light green text with an ```[ Success ]``` prefix.
|
16
|
-
* Info - Display an info message - Default light cyan text with an ```[ Info ]``` prefix.
|
13
|
+
The gem has 4 key exposed functions.
|
17
14
|
|
18
|
-
|
15
|
+
| Function | Purpose | Default |
|
16
|
+
| ---- | ------- | ------- |
|
17
|
+
| error | Display an error message | light red text with an ```[ Error ]``` prefix |
|
18
|
+
| warning | Display a warning message | light yellow text with an ```[ Warning ]``` prefix |
|
19
|
+
| success | Display a success message | light green text with an ```[ Success ]``` prefix |
|
20
|
+
| info | Display an info message | light cyan text with an ```[ Info ]``` prefix |
|
21
|
+
|
22
|
+
> It is possible to disable colour, disable prefixed, define custom colours and custom prefixes.
|
19
23
|
|
20
24
|
## Installation
|
21
25
|
|
@@ -62,7 +66,7 @@ message.error
|
|
62
66
|
It is possible to pass configuration when creating a new instance of cmessages.
|
63
67
|
|
64
68
|
```
|
65
|
-
cm = Cmessages.new(
|
69
|
+
cm = Cmessages.new(use_prefixes => false)
|
66
70
|
cm.error('This is an error with no prefix')
|
67
71
|
```
|
68
72
|
|
@@ -70,7 +74,7 @@ or
|
|
70
74
|
|
71
75
|
```
|
72
76
|
message='This is an error message'
|
73
|
-
message.error(
|
77
|
+
message.error(use_prefixes => false)
|
74
78
|
```
|
75
79
|
|
76
80
|
### Configuration Options
|
data/VERSION.txt
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.0
|
data/cmessages.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
|
11
11
|
spec.summary = 'A simple gem for outputting console errors/warnings/success/info messages.'
|
12
12
|
spec.description = 'A simple gem for outputting console errors/warnings/success/info messages.'
|
13
|
-
spec.homepage = 'https://github.com/
|
13
|
+
spec.homepage = 'https://github.com/WSRubyGems/cmessages'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
@@ -19,7 +19,9 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
|
-
spec.
|
22
|
+
spec.required_ruby_version = '>= 2.5'
|
23
|
+
|
24
|
+
spec.add_development_dependency 'bundler', '~> 2'
|
23
25
|
spec.add_development_dependency 'colorize', '~> 0.8.0'
|
24
26
|
spec.add_development_dependency 'rake', '~> 13.0'
|
25
27
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
data/lib/cmessages/version.rb
CHANGED
metadata
CHANGED
@@ -1,35 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cmessages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Gurney aka Wolf
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.17'
|
20
|
-
- - "<"
|
17
|
+
- - "~>"
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
19
|
+
version: '2'
|
23
20
|
type: :development
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- - "
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '1.17'
|
30
|
-
- - "<"
|
24
|
+
- - "~>"
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
26
|
+
version: '2'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: colorize
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -98,12 +92,14 @@ files:
|
|
98
92
|
- ".rspec"
|
99
93
|
- ".rubocop.yml"
|
100
94
|
- ".travis.yml"
|
95
|
+
- CHANGELOG.md
|
101
96
|
- CODEOWNERS
|
102
97
|
- CONTRIBUTING.md
|
103
98
|
- Gemfile
|
104
99
|
- LICENSE.md
|
105
100
|
- README.md
|
106
101
|
- Rakefile
|
102
|
+
- VERSION.txt
|
107
103
|
- bin/console
|
108
104
|
- bin/setup
|
109
105
|
- cmessages.gemspec
|
@@ -114,7 +110,7 @@ files:
|
|
114
110
|
- spec/cmessages_spec.rb
|
115
111
|
- spec/spec_helper.rb
|
116
112
|
- stale.yml
|
117
|
-
homepage: https://github.com/
|
113
|
+
homepage: https://github.com/WSRubyGems/cmessages
|
118
114
|
licenses:
|
119
115
|
- MIT
|
120
116
|
metadata: {}
|
@@ -126,7 +122,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
126
122
|
requirements:
|
127
123
|
- - ">="
|
128
124
|
- !ruby/object:Gem::Version
|
129
|
-
version: '
|
125
|
+
version: '2.5'
|
130
126
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
127
|
requirements:
|
132
128
|
- - ">="
|