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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0119dff67dc1b586119287ea69e4e5535e630773ab4539269a9f15a441ca564b'
4
- data.tar.gz: 92b3f3b789a463eecd807a36f6a300023fb43360a335faed90eb3f2f6a5a73ff
3
+ metadata.gz: 8aef001b09c25175c8f2aae339a296026350d230c28ccf124130fd25c3f39434
4
+ data.tar.gz: 9ab991a97f6ea25b32c864a86d1b3e81783685d81f3a10e72cea9758bc0c44b5
5
5
  SHA512:
6
- metadata.gz: bf65cc481b2ff4bc7a817bc9403fb1a5da580b42ff7b9d7f0bab175b88aafb29626b65ade500e931f748571e0dbb10cbd73557011b1259036503d7b7c3e969fa
7
- data.tar.gz: ca0d42d9dd2427c89e0a3824df433ddf41519c7822edb47eb01dac5738abf2806f9f05d296eff4f624b23a9e5a2c24905a01e301ce16b3158647d5d3dd74afff
6
+ metadata.gz: 8ba9e63ae06461aa0161d2b73a41623111a744197a79bbc381cdc2c90ebfaefb3ccb5a7168b5c55ebb38f29604a124e070c4d68ab0819807a7bda0d857951649
7
+ data.tar.gz: 4604ef148b3ef45124eda0ce0b5ccb3d1555c0e0e23ae523871d0205f505847f7c0a4e4d790cb40f3714a4aa884a3ef8df7262b6b3483640fb013c50ffb4d4b7
data/.rubocop.yml CHANGED
@@ -1,3 +1,6 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.5
3
+
1
4
  Layout/IndentationWidth:
2
5
  Width: 4
3
6
 
data/.travis.yml CHANGED
@@ -1,29 +1,24 @@
1
1
  matrix:
2
2
  include:
3
3
  - language: ruby
4
- name: Bundler (rvm 2.4 & bundler 1.17.3)
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 -v 2.0.1
7
+ - gem install bundler
18
8
  - language: ruby
19
- name: Bundler (rvm 2.6 & bundler 2.0.1)
9
+ name: Bundler (rvm 2.6 & bundler)
20
10
  rvm: 2.6
21
11
  before_install:
22
- - gem install bundler -v 2.0.1
12
+ - gem install bundler
23
13
  - language: ruby
24
- name: Rubocop (rvm 2.4)
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.4
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.5)
29
+ name: Rubocop (rvm 2.6)
35
30
  env: SKIP_INTERPRETER=true
36
- rvm: 2.5
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.6)
39
+ name: Rubocop (rvm 2.7)
45
40
  env: SKIP_INTERPRETER=true
46
- rvm: 2.6
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.6)
55
- rvm: 2.6
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
@@ -4,4 +4,4 @@
4
4
 
5
5
  # These owners will be the default owners for everything in
6
6
  # the repo. Unless a later match takes precedence,
7
- * @WolfSoftware/reviewers
7
+ * @WSRubyGems/reviewers
data/Gemfile CHANGED
@@ -1,4 +1,5 @@
1
1
  source 'https://rubygems.org'
2
+ ruby '>= 2.5.0'
2
3
 
3
4
  git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
5
 
data/README.md CHANGED
@@ -1,21 +1,25 @@
1
- [![Build Status](https://img.shields.io/travis/WolfSoftware/cmessages/master?style=for-the-badge&logo=travis)](https://travis-ci.org/WolfSoftware/cmessages)
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/WolfSoftware/cmessages?color=blue&style=for-the-badge&logo=github&label=Latest%20Release)](https://github.com/WolfSoftware/cmessages/releases/latest)
4
- [![Last Release](https://img.shields.io/github/release-date/WolfSoftware/cmessages?color=blue&style=for-the-badge&logo=github)](https://github.com/WolfSoftware/cmessages/releases/latest)
5
- [![Github commits (since latest release)](https://img.shields.io/github/commits-since/WolfSoftware/cmessages/latest?color=blue&style=for-the-badge&logo=github)](https://github.com/WolfSoftware/cmessages/commits)
6
- [![Last Commit](https://img.shields.io/github/last-commit/WolfSoftware/cmessages?color=blue&style=for-the-badge&logo=github)](https://github.com/WolfSoftware/cmessages/commits/master)
7
- [![WolfSoftware](https://img.shields.io/badge/Released%20By-Wolf%20Software%20Ltd.-blue?style=for-the-badge)](https://github.com/WolfSoftware)
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. The module has 4 main functions.
11
+ A simple gem for outputting console errors/warnings/success/info messages.
12
12
 
13
- * Error - Display an error message - Default light red text with an ```[ Error ]``` prefix.
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
- It is possible to disable colour, disable prefixed, define custom colours and custom prefixes.
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( { use_prefixes => false } )
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( { use_prefixes => false } )
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/WolfSoftware/cmessages'
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.add_development_dependency 'bundler', '>= 1.17', '< 3.0'
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'
@@ -1,3 +1,3 @@
1
1
  class Cmessages
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '1.0.0'.freeze
3
3
  end
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: 0.1.0
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-03 00:00:00.000000000 Z
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: '3.0'
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: '3.0'
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/WolfSoftware/cmessages
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: '0'
125
+ version: '2.5'
130
126
  required_rubygems_version: !ruby/object:Gem::Requirement
131
127
  requirements:
132
128
  - - ">="