rubocop-stamped 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: e2555de394ee6b61d16bcd2d0659aa96f1da9978600d76167844c29ceac7ee75
4
+ data.tar.gz: 813db8c29689768d012a7fc6699b71eee502f4d37e4b7a50a41c27c4ca57302c
5
+ SHA512:
6
+ metadata.gz: 73710dd785f64d69b7c7c7df1e5edce4749821f4fb585d16953ac5c462c706af4499a78005638d5a149efeb1530b5a384afa2f01f38090e018fcff9f8429f0b1
7
+ data.tar.gz: 8d2a80721b16a17b325076e480c0a7dbce9dd89e6f970cd47b729ed80897456fd5eb738ba69bf715a3d503c5935772a059878731eeeb1abc9d132949d40ea5d1
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.5.1
data/Gemfile ADDED
@@ -0,0 +1,14 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem 'rubocop', '~> 0.52', require: false
4
+ gem 'rubocop-github', '~> 0.10'
5
+ gem 'rubocop-airbnb', '~> 1.0'
6
+ gem 'rubocop-rspec', '~> 1.22'
7
+
8
+ group :development do
9
+ gem "shoulda", ">= 0"
10
+ gem "rdoc", "~> 3.12"
11
+ gem "bundler", "~> 1.0"
12
+ gem "juwelier", "~> 2.1.0"
13
+ gem "simplecov", ">= 0"
14
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,112 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ activesupport (5.2.0)
5
+ concurrent-ruby (~> 1.0, >= 1.0.2)
6
+ i18n (>= 0.7, < 2)
7
+ minitest (~> 5.1)
8
+ tzinfo (~> 1.1)
9
+ addressable (2.5.2)
10
+ public_suffix (>= 2.0.2, < 4.0)
11
+ ast (2.4.0)
12
+ builder (3.2.3)
13
+ concurrent-ruby (1.0.5)
14
+ descendants_tracker (0.0.4)
15
+ thread_safe (~> 0.3, >= 0.3.1)
16
+ docile (1.3.0)
17
+ faraday (0.12.2)
18
+ multipart-post (>= 1.2, < 3)
19
+ git (1.3.0)
20
+ github_api (0.18.2)
21
+ addressable (~> 2.4)
22
+ descendants_tracker (~> 0.0.4)
23
+ faraday (~> 0.8)
24
+ hashie (~> 3.5, >= 3.5.2)
25
+ oauth2 (~> 1.0)
26
+ hashie (3.5.7)
27
+ highline (1.7.10)
28
+ i18n (1.0.1)
29
+ concurrent-ruby (~> 1.0)
30
+ json (1.8.6)
31
+ juwelier (2.1.3)
32
+ builder
33
+ bundler (>= 1.13)
34
+ git (>= 1.2.5)
35
+ github_api
36
+ highline (>= 1.6.15)
37
+ nokogiri (>= 1.5.10)
38
+ rake
39
+ rdoc
40
+ semver
41
+ jwt (1.5.6)
42
+ mini_portile2 (2.3.0)
43
+ minitest (5.11.3)
44
+ multi_json (1.13.1)
45
+ multi_xml (0.6.0)
46
+ multipart-post (2.0.0)
47
+ nokogiri (1.8.2)
48
+ mini_portile2 (~> 2.3.0)
49
+ oauth2 (1.4.0)
50
+ faraday (>= 0.8, < 0.13)
51
+ jwt (~> 1.0)
52
+ multi_json (~> 1.3)
53
+ multi_xml (~> 0.5)
54
+ rack (>= 1.2, < 3)
55
+ parallel (1.12.1)
56
+ parser (2.5.1.0)
57
+ ast (~> 2.4.0)
58
+ powerpack (0.1.1)
59
+ public_suffix (3.0.2)
60
+ rack (2.0.4)
61
+ rainbow (3.0.0)
62
+ rake (12.3.1)
63
+ rdoc (3.12.2)
64
+ json (~> 1.4)
65
+ rubocop (0.52.1)
66
+ parallel (~> 1.10)
67
+ parser (>= 2.4.0.2, < 3.0)
68
+ powerpack (~> 0.1)
69
+ rainbow (>= 2.2.2, < 4.0)
70
+ ruby-progressbar (~> 1.7)
71
+ unicode-display_width (~> 1.0, >= 1.0.1)
72
+ rubocop-airbnb (1.0.0)
73
+ rubocop (= 0.52.1)
74
+ rubocop-rspec (= 1.22.1)
75
+ rubocop-github (0.10.0)
76
+ rubocop (~> 0.51)
77
+ rubocop-rspec (1.22.1)
78
+ rubocop (>= 0.52.1)
79
+ ruby-progressbar (1.9.0)
80
+ semver (1.0.1)
81
+ shoulda (3.5.0)
82
+ shoulda-context (~> 1.0, >= 1.0.1)
83
+ shoulda-matchers (>= 1.4.1, < 3.0)
84
+ shoulda-context (1.2.2)
85
+ shoulda-matchers (2.8.0)
86
+ activesupport (>= 3.0.0)
87
+ simplecov (0.16.1)
88
+ docile (~> 1.1)
89
+ json (>= 1.8, < 3)
90
+ simplecov-html (~> 0.10.0)
91
+ simplecov-html (0.10.2)
92
+ thread_safe (0.3.6)
93
+ tzinfo (1.2.5)
94
+ thread_safe (~> 0.1)
95
+ unicode-display_width (1.3.2)
96
+
97
+ PLATFORMS
98
+ ruby
99
+
100
+ DEPENDENCIES
101
+ bundler (~> 1.0)
102
+ juwelier (~> 2.1.0)
103
+ rdoc (~> 3.12)
104
+ rubocop (~> 0.52)
105
+ rubocop-airbnb (~> 1.0)
106
+ rubocop-github (~> 0.10)
107
+ rubocop-rspec (~> 1.22)
108
+ shoulda
109
+ simplecov
110
+
111
+ BUNDLED WITH
112
+ 1.16.1
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2018 Philippe Dionne
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # RuboCop Stamped
2
+
3
+ [RuboCop](https://github.com/bbatsov/rubocop) configuration for use on Stamped open source and internal Ruby projects.
4
+
5
+ ## Installation
6
+
7
+ ### Gemfile
8
+ ```ruby
9
+ gem 'rubocop-stamped'
10
+ ```
11
+
12
+ ### .rubocop.yml
13
+
14
+ ```yaml
15
+ inherit_gem:
16
+ rubocop-stamped:
17
+ - config/default.yml
18
+ - config/rails.yml
19
+ - config/rspec.yml
20
+ ```
21
+
22
+ ## Ruby
23
+
24
+ Inspired from:
25
+
26
+ - [@bbatsov](https://github.com/bbatsov/ruby-style-guide)
27
+ - [Airbnb](https://github.com/airbnb/ruby)
28
+ - [GitHub](https://github.com/github/rubocop-github)
29
+
30
+ ## Rails
31
+
32
+ Inspired from:
33
+
34
+ - [@bbatsov](https://github.com/bbatsov/rails-style-guide)
35
+ - [Airbnb](https://github.com/airbnb/ruby/blob/master/rubocop-airbnb/config/rubocop-rails.yml)
36
+ - [GitHub](https://github.com/github/rubocop-github/blob/master/config/rails.yml)
37
+
38
+ ## RSpec
39
+
40
+ Inspired from:
41
+
42
+ - [Airbnb](https://github.com/airbnb/ruby/blob/master/rubocop-airbnb/config/rubocop-rspec.yml)
43
+ - [RuboCop RSpec](https://github.com/rubocop-rspec/rubocop-rspec)
44
+
45
+ ## License
46
+
47
+ [MIT](LICENSE.txt)
data/Rakefile ADDED
@@ -0,0 +1,50 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+ require 'juwelier'
14
+ Juwelier::Tasks.new do |gem|
15
+ # gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
16
+ gem.name = "rubocop-stamped"
17
+ gem.homepage = "http://github.com/stampedai/rubocop-stamped"
18
+ gem.license = "MIT"
19
+ gem.summary = %Q{Code style checking for Stamped Ruby repositories}
20
+ gem.description = %Q{Code style checking for Stamped Ruby repositories, based on RuboCop}
21
+ gem.email = "engineering@stamped.ai"
22
+ gem.authors = ["Stamped"]
23
+
24
+ # dependencies defined in Gemfile
25
+ end
26
+ Juwelier::RubygemsDotOrgTasks.new
27
+ require 'rake/testtask'
28
+ Rake::TestTask.new(:test) do |test|
29
+ test.libs << 'lib' << 'test'
30
+ test.pattern = 'test/**/test_*.rb'
31
+ test.verbose = true
32
+ end
33
+
34
+ desc "Code coverage detail"
35
+ task :simplecov do
36
+ ENV['COVERAGE'] = "true"
37
+ Rake::Task['test'].execute
38
+ end
39
+
40
+ task :default => :test
41
+
42
+ require 'rdoc/task'
43
+ Rake::RDocTask.new do |rdoc|
44
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
45
+
46
+ rdoc.rdoc_dir = 'rdoc'
47
+ rdoc.title = "rubocop-stamped #{version}"
48
+ rdoc.rdoc_files.include('README*')
49
+ rdoc.rdoc_files.include('lib/**/*.rb')
50
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.1
@@ -0,0 +1,5 @@
1
+ inherit_gem:
2
+ rubocop-github:
3
+ - config/default.yml
4
+ # rubocop-airbnb:
5
+ # - config/default.yml
data/config/rails.yml ADDED
@@ -0,0 +1,8 @@
1
+ inherit_gem:
2
+ rubocop-github:
3
+ - config/rails.yml
4
+ rubocop-airbnb:
5
+ - config/rails.yml
6
+
7
+ Rails:
8
+ Enabled: true
data/config/rspec.yml ADDED
@@ -0,0 +1 @@
1
+ require: rubocop-rspec
File without changes
@@ -0,0 +1,77 @@
1
+ # Generated by juwelier
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+ # stub: rubocop-stamped 0.0.1 ruby lib
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = "rubocop-stamped".freeze
9
+ s.version = "0.0.1"
10
+
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib".freeze]
13
+ s.authors = ["Stamped".freeze]
14
+ s.date = "2018-04-23"
15
+ s.description = "Code style checking for Stamped Ruby repositories, based on RuboCop".freeze
16
+ s.email = "engineering@stamped.ai".freeze
17
+ s.extra_rdoc_files = [
18
+ "LICENSE.txt",
19
+ "README.md"
20
+ ]
21
+ s.files = [
22
+ ".document",
23
+ ".ruby-version",
24
+ "Gemfile",
25
+ "Gemfile.lock",
26
+ "LICENSE.txt",
27
+ "README.md",
28
+ "Rakefile",
29
+ "VERSION",
30
+ "config/default.yml",
31
+ "config/rails.yml",
32
+ "config/rspec.yml",
33
+ "lib/rubocop-stamped.rb",
34
+ "rubocop-stamped.gemspec"
35
+ ]
36
+ s.homepage = "http://github.com/stampedai/rubocop-stamped".freeze
37
+ s.licenses = ["MIT".freeze]
38
+ s.rubygems_version = "2.7.6".freeze
39
+ s.summary = "Code style checking for Stamped Ruby repositories".freeze
40
+
41
+ if s.respond_to? :specification_version then
42
+ s.specification_version = 4
43
+
44
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
45
+ s.add_runtime_dependency(%q<rubocop>.freeze, ["~> 0.52"])
46
+ s.add_runtime_dependency(%q<rubocop-github>.freeze, ["~> 0.10"])
47
+ s.add_runtime_dependency(%q<rubocop-airbnb>.freeze, ["~> 1.0"])
48
+ s.add_runtime_dependency(%q<rubocop-rspec>.freeze, ["~> 1.22"])
49
+ s.add_development_dependency(%q<shoulda>.freeze, [">= 0"])
50
+ s.add_development_dependency(%q<rdoc>.freeze, ["~> 3.12"])
51
+ s.add_development_dependency(%q<bundler>.freeze, ["~> 1.0"])
52
+ s.add_development_dependency(%q<juwelier>.freeze, ["~> 2.1.0"])
53
+ s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
54
+ else
55
+ s.add_dependency(%q<rubocop>.freeze, ["~> 0.52"])
56
+ s.add_dependency(%q<rubocop-github>.freeze, ["~> 0.10"])
57
+ s.add_dependency(%q<rubocop-airbnb>.freeze, ["~> 1.0"])
58
+ s.add_dependency(%q<rubocop-rspec>.freeze, ["~> 1.22"])
59
+ s.add_dependency(%q<shoulda>.freeze, [">= 0"])
60
+ s.add_dependency(%q<rdoc>.freeze, ["~> 3.12"])
61
+ s.add_dependency(%q<bundler>.freeze, ["~> 1.0"])
62
+ s.add_dependency(%q<juwelier>.freeze, ["~> 2.1.0"])
63
+ s.add_dependency(%q<simplecov>.freeze, [">= 0"])
64
+ end
65
+ else
66
+ s.add_dependency(%q<rubocop>.freeze, ["~> 0.52"])
67
+ s.add_dependency(%q<rubocop-github>.freeze, ["~> 0.10"])
68
+ s.add_dependency(%q<rubocop-airbnb>.freeze, ["~> 1.0"])
69
+ s.add_dependency(%q<rubocop-rspec>.freeze, ["~> 1.22"])
70
+ s.add_dependency(%q<shoulda>.freeze, [">= 0"])
71
+ s.add_dependency(%q<rdoc>.freeze, ["~> 3.12"])
72
+ s.add_dependency(%q<bundler>.freeze, ["~> 1.0"])
73
+ s.add_dependency(%q<juwelier>.freeze, ["~> 2.1.0"])
74
+ s.add_dependency(%q<simplecov>.freeze, [">= 0"])
75
+ end
76
+ end
77
+
metadata ADDED
@@ -0,0 +1,184 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubocop-stamped
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Stamped
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-04-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rubocop
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.52'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.52'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-github
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.10'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.10'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop-airbnb
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop-rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.22'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.22'
69
+ - !ruby/object:Gem::Dependency
70
+ name: shoulda
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rdoc
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.12'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3.12'
97
+ - !ruby/object:Gem::Dependency
98
+ name: bundler
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: juwelier
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 2.1.0
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 2.1.0
125
+ - !ruby/object:Gem::Dependency
126
+ name: simplecov
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ description: Code style checking for Stamped Ruby repositories, based on RuboCop
140
+ email: engineering@stamped.ai
141
+ executables: []
142
+ extensions: []
143
+ extra_rdoc_files:
144
+ - LICENSE.txt
145
+ - README.md
146
+ files:
147
+ - ".document"
148
+ - ".ruby-version"
149
+ - Gemfile
150
+ - Gemfile.lock
151
+ - LICENSE.txt
152
+ - README.md
153
+ - Rakefile
154
+ - VERSION
155
+ - config/default.yml
156
+ - config/rails.yml
157
+ - config/rspec.yml
158
+ - lib/rubocop-stamped.rb
159
+ - rubocop-stamped.gemspec
160
+ homepage: http://github.com/stampedai/rubocop-stamped
161
+ licenses:
162
+ - MIT
163
+ metadata: {}
164
+ post_install_message:
165
+ rdoc_options: []
166
+ require_paths:
167
+ - lib
168
+ required_ruby_version: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ version: '0'
173
+ required_rubygems_version: !ruby/object:Gem::Requirement
174
+ requirements:
175
+ - - ">="
176
+ - !ruby/object:Gem::Version
177
+ version: '0'
178
+ requirements: []
179
+ rubyforge_project:
180
+ rubygems_version: 2.7.6
181
+ signing_key:
182
+ specification_version: 4
183
+ summary: Code style checking for Stamped Ruby repositories
184
+ test_files: []