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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c52274a43d63d062e9bcd0649ef1530cbf1d0de4
4
- data.tar.gz: ab38da2ee61e6ceb71caab37ea63c8c9a00f2ebb
3
+ metadata.gz: d050a750692a0d7575d8ace635776d83cd31f6c6
4
+ data.tar.gz: d6efc60953e32aa8eacace97ac64a07d452b9c7b
5
5
  SHA512:
6
- metadata.gz: fa1185c410002f9396dc0ea523d9b5fa2fcc935a3f6e3dd4a60e381b5a7a275273737c7f47fa04f63597ee17d95cbe4c28f05b437eaa3176efe1bae0bf031e74
7
- data.tar.gz: 9f6842fd7d112004b0e57e9fc82d8d0cad620aed7002b5824b75ba4c159753dfa7e18a59d96905f5c780888a52bda9398131c2542fb6059b0259f0417ec648b1
6
+ metadata.gz: d99d7854705f604d82aea1f6b160301033de8980a558f3ac935ff2155c334a93759ed5ea5f1c7484459c37c600c7cbf515837d89c16d53e634d4a8683bcf60bc
7
+ data.tar.gz: 6d2c31cd9718bec759d0018de7c6aa71bf6cf6dff899923547cc91acb5f0dc06be795eb44543556511b40a3590b9076f52e4af52a353391940321cca0a188822
@@ -1,4 +1,9 @@
1
1
  language: ruby
2
+
2
3
  rvm:
3
4
  - 2.3.0
4
5
  before_install: gem install bundler -v 1.11.2
6
+
7
+ addons:
8
+ code_climate:
9
+ repo_token: 8e68857c02b2124104896d9178dc6ab310e143de880e9662d8c5dd9362081c9b
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 (or, ideally, add it to your CI config):
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
- Massa::Analyzier.run!(options)
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
@@ -9,9 +9,6 @@ module Massa
9
9
 
10
10
  def tools_yaml_file
11
11
  "#{Gem::Specification.find_by_name('massa').gem_dir}/config/default_tools.yml"
12
- rescue Gem::LoadError
13
- Massa::CLI.colorize :red, "¯\\_(ツ)_/¯ 'massa' gem is not in your Gemfile."
14
- exit 1
15
12
  end
16
13
  end
17
14
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Massa
4
- VERSION = '0.0.8'
4
+ VERSION = '0.0.9'
5
5
  end
@@ -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
Binary file
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.8
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-02-29 00:00:00.000000000 Z
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