massa 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -0
- data/README.md +21 -7
- data/bin/massa +11 -1
- data/lib/massa/tool.rb +0 -3
- data/lib/massa/version.rb +1 -1
- data/massa.gemspec +1 -0
- data/readme/massa-v.gif +0 -0
- data/readme/massa.gif +0 -0
- metadata +18 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d050a750692a0d7575d8ace635776d83cd31f6c6
|
4
|
+
data.tar.gz: d6efc60953e32aa8eacace97ac64a07d452b9c7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d99d7854705f604d82aea1f6b160301033de8980a558f3ac935ff2155c334a93759ed5ea5f1c7484459c37c600c7cbf515837d89c16d53e634d4a8683bcf60bc
|
7
|
+
data.tar.gz: 6d2c31cd9718bec759d0018de7c6aa71bf6cf6dff899923547cc91acb5f0dc06be795eb44543556511b40a3590b9076f52e4af52a353391940321cca0a188822
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -5,9 +5,19 @@
|
|
5
5
|
[![Coverage Status](https://img.shields.io/codeclimate/coverage/github/lucascaton/massa.svg)](https://codeclimate.com/github/lucascaton/massa)
|
6
6
|
[![Code Climate](https://codeclimate.com/github/lucascaton/massa/badges/gpa.svg)](https://codeclimate.com/github/lucascaton/massa)
|
7
7
|
|
8
|
-
It's common to see Rails projects becomming hard to maintain and less fun after a while.
|
8
|
+
It's common to see Ruby (and Rails) projects becomming hard to maintain and less fun after a while.
|
9
9
|
This gem helps you to keep its quality, good practices and security.
|
10
10
|
|
11
|
+
**Massa** can run in your CI and it will run different code analyzers tools, instead of only running your automated tests.
|
12
|
+
|
13
|
+
You can either use only the [default tools](https://github.com/lucascaton/massa/blob/master/config/default_tools.yml) or adding custom ones by using a [simple config file](https://github.com/lucascaton/massa#usage).
|
14
|
+
|
15
|
+
![massa](https://raw.githubusercontent.com/lucascaton/massa/master/readme/massa.gif)
|
16
|
+
|
17
|
+
Verbose mode:
|
18
|
+
|
19
|
+
![massa-v](https://raw.githubusercontent.com/lucascaton/massa/master/readme/massa-v.gif)
|
20
|
+
|
11
21
|
## Installation
|
12
22
|
|
13
23
|
Add the following lines to your application's Gemfile:
|
@@ -22,21 +32,25 @@ And then execute:
|
|
22
32
|
|
23
33
|
$ bundle
|
24
34
|
|
25
|
-
## About the gem name
|
26
|
-
|
27
|
-
"Massa" is a Portuguese slang which means "awesome",
|
28
|
-
so once you add it to your project, it becomes "massa"!
|
29
|
-
|
30
35
|
## Usage
|
31
36
|
|
32
37
|
Create a configuration file:
|
33
38
|
|
34
39
|
$ ... # TODO
|
35
40
|
|
36
|
-
Then, run
|
41
|
+
Then, run
|
37
42
|
|
38
43
|
$ bundle exec massa
|
39
44
|
|
45
|
+
It's recommended to use `-V` (or `--verbose`) flag when running it in a CI:
|
46
|
+
|
47
|
+
$ bundle exec massa -V
|
48
|
+
|
49
|
+
## About the gem name
|
50
|
+
|
51
|
+
"Massa" is a Portuguese slang which means "awesome",
|
52
|
+
so once you add it to your project, it becomes "massa"!
|
53
|
+
|
40
54
|
## Contributing
|
41
55
|
|
42
56
|
[Bug reports](https://github.com/lucascaton/massa/issues) and [pull requests](https://github.com/lucascaton/massa/pulls) are welcome. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
data/bin/massa
CHANGED
@@ -11,6 +11,10 @@ OptionParser.new do |opts|
|
|
11
11
|
|
12
12
|
opts.on('-h', '--help', 'Display this help') do
|
13
13
|
puts opts
|
14
|
+
puts
|
15
|
+
puts 'You can read the official documentation here:'
|
16
|
+
puts 'https://github.com/lucascaton/massa#massa'
|
17
|
+
puts
|
14
18
|
exit
|
15
19
|
end
|
16
20
|
|
@@ -26,4 +30,10 @@ OptionParser.new do |opts|
|
|
26
30
|
end.parse!
|
27
31
|
|
28
32
|
require 'massa'
|
29
|
-
|
33
|
+
|
34
|
+
begin
|
35
|
+
Massa::Analyzier.run!(options)
|
36
|
+
rescue Gem::LoadError
|
37
|
+
Massa::CLI.colorize :red, "¯\\_(ツ)_/¯ 'massa' gem is not in your Gemfile."
|
38
|
+
exit 1
|
39
|
+
end
|
data/lib/massa/tool.rb
CHANGED
data/lib/massa/version.rb
CHANGED
data/massa.gemspec
CHANGED
@@ -25,5 +25,6 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.add_development_dependency 'pry'
|
26
26
|
spec.add_development_dependency 'rubocop'
|
27
27
|
spec.add_development_dependency 'rubocop-rspec'
|
28
|
+
spec.add_development_dependency 'codeclimate-test-reporter'
|
28
29
|
# spec.add_development_dependency 'simplecov'
|
29
30
|
end
|
data/readme/massa-v.gif
ADDED
Binary file
|
data/readme/massa.gif
ADDED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: massa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lucas Caton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: codeclimate-test-reporter
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
97
111
|
description: Keep the quality, good practices and security of Rails projects.
|
98
112
|
email:
|
99
113
|
executables:
|
@@ -119,6 +133,8 @@ files:
|
|
119
133
|
- lib/massa/tool.rb
|
120
134
|
- lib/massa/version.rb
|
121
135
|
- massa.gemspec
|
136
|
+
- readme/massa-v.gif
|
137
|
+
- readme/massa.gif
|
122
138
|
homepage: http://github.com/lucascaton/massa
|
123
139
|
licenses:
|
124
140
|
- MIT
|