makandra-rubocop 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,11 @@
1
+ require 'open3'
2
+
3
+ describe 'rubocop' do
4
+ it 'has no offenses' do
5
+ command = self.class.description
6
+ stdout, stderr, status = Open3.capture3('bundle', 'exec', command)
7
+ output = (stderr.size > 0) ? stderr : stdout
8
+
9
+ expect(status.success?).to eq(true), output
10
+ end
11
+ end
@@ -0,0 +1,3 @@
1
+ module MakandraRubocop
2
+ VERSION = '1.0.0'.freeze
3
+ end
@@ -0,0 +1,4 @@
1
+ require 'makandra_rubocop/version'
2
+
3
+ module MakandraRubocop
4
+ end
@@ -0,0 +1,29 @@
1
+ lib = File.expand_path('lib', __dir__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require 'makandra_rubocop/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'makandra-rubocop'
7
+ spec.version = MakandraRubocop::VERSION
8
+ spec.authors = ['Arne Hartherz', 'Emanuel Denzel']
9
+ spec.email = ['arne.hartherz@makandra.de', 'emanuel.denzel@makandra.de']
10
+
11
+ spec.summary = "makandra's default Rubocop configuration"
12
+ spec.description = 'A relaxed set of default Rubocop settings to use across makandra projects.'
13
+ spec.homepage = 'https://github.com/makandra/makandra-rubocop'
14
+ spec.license = 'MIT'
15
+
16
+ # Specify which files should be added to the gem when it is released.
17
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
18
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
19
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
+ end
21
+ spec.bindir = 'exe'
22
+ spec.executables = spec.files.grep(%r(^exe/)) { |f| File.basename(f) }
23
+ spec.require_paths = ['lib']
24
+
25
+ spec.add_dependency 'rubocop', '~> 0.62.0'
26
+
27
+ spec.add_development_dependency 'bundler', '~> 1.17'
28
+ spec.add_development_dependency 'rake', '~> 12.3'
29
+ end
metadata ADDED
@@ -0,0 +1,104 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: makandra-rubocop
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Arne Hartherz
8
+ - Emanuel Denzel
9
+ autorequire:
10
+ bindir: exe
11
+ cert_chain: []
12
+ date: 2019-01-17 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rubocop
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: 0.62.0
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: 0.62.0
28
+ - !ruby/object:Gem::Dependency
29
+ name: bundler
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '1.17'
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '1.17'
42
+ - !ruby/object:Gem::Dependency
43
+ name: rake
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '12.3'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '12.3'
56
+ description: A relaxed set of default Rubocop settings to use across makandra projects.
57
+ email:
58
+ - arne.hartherz@makandra.de
59
+ - emanuel.denzel@makandra.de
60
+ executables: []
61
+ extensions: []
62
+ extra_rdoc_files: []
63
+ files:
64
+ - ".gitignore"
65
+ - ".rubocop.yml"
66
+ - ".ruby-version"
67
+ - CHANGELOG.md
68
+ - Gemfile
69
+ - Gemfile.lock
70
+ - LICENSE.txt
71
+ - README.md
72
+ - Rakefile
73
+ - bin/console
74
+ - bin/setup
75
+ - config/default.yml
76
+ - lib/makandra_rubocop.rb
77
+ - lib/makandra_rubocop/support/rubocop_spec.rb
78
+ - lib/makandra_rubocop/version.rb
79
+ - makandra-rubocop.gemspec
80
+ homepage: https://github.com/makandra/makandra-rubocop
81
+ licenses:
82
+ - MIT
83
+ metadata: {}
84
+ post_install_message:
85
+ rdoc_options: []
86
+ require_paths:
87
+ - lib
88
+ required_ruby_version: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ required_rubygems_version: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ requirements: []
99
+ rubyforge_project:
100
+ rubygems_version: 2.7.6
101
+ signing_key:
102
+ specification_version: 4
103
+ summary: makandra's default Rubocop configuration
104
+ test_files: []