lcgstyle 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/lcgstyle.gemspec ADDED
@@ -0,0 +1,25 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "lcgstyle/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "lcgstyle"
8
+ spec.version = Lcgstyle::VERSION
9
+ spec.authors = ["Thom May"]
10
+ spec.email = ["thom@chef.io"]
11
+
12
+ spec.summary = "Rubocop configuration for Chef's ruby projects"
13
+ spec.homepage = "https://github.com/chef/lcgstyle"
14
+ spec.license = "Apache-2.0"
15
+ spec.required_ruby_version = ">= 2.0.0"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.executables = %w{lcgstyle}
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.10"
22
+ spec.add_development_dependency "rake", "~> 10.0"
23
+ spec.add_development_dependency "rspec"
24
+ spec.add_dependency("rubocop", Lcgstyle::RUBOCOP_VERSION)
25
+ end
@@ -0,0 +1,4 @@
1
+ module Lcgstyle
2
+ VERSION = "0.0.1".freeze
3
+ RUBOCOP_VERSION = "0.39.0".freeze
4
+ end
data/lib/lcgstyle.rb ADDED
@@ -0,0 +1,29 @@
1
+ require "lcgstyle/version"
2
+
3
+ # ensure the desired target version of RuboCop is gem activated
4
+ gem "rubocop", "= #{Lcgstyle::RUBOCOP_VERSION}"
5
+ require "rubocop"
6
+
7
+ module RuboCop
8
+ class ConfigLoader
9
+ RUBOCOP_HOME.gsub!(
10
+ /^.*$/,
11
+ File.realpath(File.join(File.dirname(__FILE__), ".."))
12
+ )
13
+
14
+ DEFAULT_FILE.gsub!(
15
+ /^.*$/,
16
+ File.join(RUBOCOP_HOME, "config", "default.yml")
17
+ )
18
+ end
19
+ end
20
+
21
+ # Lcgstyle patches the RuboCop tool to set a new default configuration that
22
+ # is vendored in the Lcgstyle codebase.
23
+ module Lcgstyle
24
+ # @return [String] the absolute path to the main RuboCop configuration YAML
25
+ # file
26
+ def self.config
27
+ RuboCop::ConfigLoader::DEFAULT_FILE
28
+ end
29
+ end
metadata ADDED
@@ -0,0 +1,118 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lcgstyle
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Thom May
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-04-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.10'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.10'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 0.39.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '='
67
+ - !ruby/object:Gem::Version
68
+ version: 0.39.0
69
+ description:
70
+ email:
71
+ - thom@chef.io
72
+ executables:
73
+ - lcgstyle
74
+ extensions: []
75
+ extra_rdoc_files: []
76
+ files:
77
+ - ".gitignore"
78
+ - ".rspec"
79
+ - ".travis.yml"
80
+ - Gemfile
81
+ - LICENSE.txt
82
+ - README.md
83
+ - Rakefile
84
+ - bin/lcgstyle
85
+ - config/chefstyle.yml
86
+ - config/default.yml
87
+ - config/disable_all.yml
88
+ - config/disabled.yml
89
+ - config/enabled.yml
90
+ - config/upstream.yml
91
+ - lcgstyle.gemspec
92
+ - lib/lcgstyle.rb
93
+ - lib/lcgstyle/version.rb
94
+ homepage: https://github.com/chef/lcgstyle
95
+ licenses:
96
+ - Apache-2.0
97
+ metadata: {}
98
+ post_install_message:
99
+ rdoc_options: []
100
+ require_paths:
101
+ - lib
102
+ required_ruby_version: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: 2.0.0
107
+ required_rubygems_version: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ requirements: []
113
+ rubyforge_project:
114
+ rubygems_version: 2.6.2
115
+ signing_key:
116
+ specification_version: 4
117
+ summary: Rubocop configuration for Chef's ruby projects
118
+ test_files: []