percy-style 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 049f0b80be474177fce18aaf60c44f89e2ffdf83
4
+ data.tar.gz: ed8e0e54e141f29367ccca38bad11ed177e314d8
5
+ SHA512:
6
+ metadata.gz: 7009bddda461258a1a7cffc428f5559ef9ff32c3b0b907982f1a069c703708e1b36cca073aff62218dcd155f31dbbbc01f52879f55741e7f3aaffce7eb69b479
7
+ data.tar.gz: 33b4576d46ec526d64bdeca3797d20ff07e842acd1a554684ba41fea76be1992890661ea1423ea89ce964633abe9043d3f1eb2a3fe16fad525ea687ec74be117
data/.gitignore ADDED
@@ -0,0 +1,13 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ .DS_Store
11
+
12
+ # rspec failure tracking
13
+ .rspec_status
data/.rubocop.yml ADDED
@@ -0,0 +1 @@
1
+ inherit_from: default.yml
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify dependencies in percy-style.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017 Perceptual Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # percy-style
2
+
3
+ Percy shared style configs.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ group :test, :development do
11
+ gem 'percy-style'
12
+ end
13
+ ```
14
+
15
+ Or, for a Ruby library, add this to your gemspec:
16
+
17
+ ```ruby
18
+ spec.add_development_dependency 'percy-style'
19
+ ```
20
+
21
+ And then run:
22
+
23
+ ```bash
24
+ $ bundle install
25
+ ```
26
+
27
+ ## Usage
28
+
29
+ Create a `.rubocop.yml` with the following directives:
30
+
31
+ ```yaml
32
+ inherit_gem:
33
+ percy-style:
34
+ - default.yml
35
+ ```
36
+
37
+ Now, run:
38
+
39
+ ```bash
40
+ $ bundle exec rubocop
41
+ ```
42
+
43
+ You do not need to include rubocop directly in your application's dependences. Percy-style will include a specific version of `rubocop` and `rubocop-rspec` that is shared across all projects.
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require 'bundler/gem_tasks'
data/default.yml ADDED
@@ -0,0 +1,128 @@
1
+ require: rubocop-rspec
2
+
3
+ AllCops:
4
+ Include:
5
+ - Rakefile
6
+ - lib/**/*.rake
7
+ Exclude:
8
+ - 'vendor/**/*'
9
+ - '*.gemspec'
10
+
11
+ Bundler/OrderedGems:
12
+ Enabled: false
13
+
14
+ Layout/AlignParameters:
15
+ EnforcedStyle: with_fixed_indentation
16
+
17
+ Layout/CaseIndentation:
18
+ EnforcedStyle: end
19
+
20
+ Layout/IndentArray:
21
+ EnforcedStyle: consistent
22
+
23
+ Layout/MultilineMethodCallIndentation:
24
+ EnforcedStyle: indented
25
+
26
+ Layout/MultilineOperationIndentation:
27
+ EnforcedStyle: indented
28
+
29
+ Layout/SpaceInsideHashLiteralBraces:
30
+ EnforcedStyle: no_space
31
+
32
+ Lint/EndAlignment:
33
+ EnforcedStyleAlignWith: variable
34
+
35
+ Lint/RescueException:
36
+ Exclude:
37
+ - 'lib/tasks/*.rake'
38
+
39
+ Metrics/LineLength:
40
+ Max: 100
41
+
42
+ Style/Documentation:
43
+ Enabled: false
44
+
45
+ Metrics/AbcSize:
46
+ Enabled: false
47
+
48
+ Metrics/ClassLength:
49
+ Enabled: false
50
+
51
+ Metrics/CyclomaticComplexity:
52
+ Enabled: false
53
+
54
+ Metrics/PerceivedComplexity:
55
+ Enabled: false
56
+
57
+ Metrics/MethodLength:
58
+ Enabled: false
59
+
60
+ Metrics/ModuleLength:
61
+ Enabled: false
62
+
63
+ Metrics/ParameterLists:
64
+ Enabled: false
65
+
66
+ Metrics/BlockLength:
67
+ Enabled: false
68
+
69
+ Style/DoubleNegation:
70
+ Enabled: false
71
+
72
+ Style/FileName:
73
+ Exclude: ['Gemfile', 'Guardfile']
74
+
75
+ Style/FormatStringToken:
76
+ EnforcedStyle: template
77
+
78
+ # Disable Style/NumericLiterals so numbers don't need underscores
79
+ Style/NumericLiterals:
80
+ Enabled: false
81
+
82
+ Style/NumericPredicate:
83
+ EnforcedStyle: comparison
84
+
85
+ Style/RedundantBegin:
86
+ Enabled: false
87
+
88
+ Style/RegexpLiteral:
89
+ EnforcedStyle: slashes
90
+ AllowInnerSlashes: true
91
+ Exclude:
92
+ - 'Guardfile'
93
+
94
+ Style/SymbolArray:
95
+ Enabled: false
96
+
97
+ Style/TrailingCommaInArguments:
98
+ EnforcedStyleForMultiline: consistent_comma
99
+
100
+ Style/TrailingCommaInLiteral:
101
+ EnforcedStyleForMultiline: consistent_comma
102
+
103
+ RSpec/AnyInstance:
104
+ Enabled: false
105
+
106
+ RSpec/DescribedClass:
107
+ EnforcedStyle: explicit
108
+
109
+ RSpec/ExampleLength:
110
+ Enabled: false
111
+
112
+ RSpec/HookArgument:
113
+ EnforcedStyle: each
114
+
115
+ RSpec/MultipleExpectations:
116
+ Enabled: false
117
+
118
+ RSpec/ImplicitExpect:
119
+ EnforcedStyle: should
120
+
121
+ RSpec/MessageSpies:
122
+ EnforcedStyle: receive
123
+
124
+ RSpec/NotToNot:
125
+ EnforcedStyle: to_not
126
+
127
+ RSpec/VerifiedDoubles:
128
+ Enabled: false
@@ -0,0 +1,7 @@
1
+ require 'percy/style/version'
2
+
3
+ module Percy
4
+ module Style
5
+ # Nothing to see here.
6
+ end
7
+ end
@@ -0,0 +1,5 @@
1
+ module Percy
2
+ module Style
3
+ VERSION = '0.1.0'.freeze
4
+ end
5
+ end
@@ -0,0 +1,35 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "percy/style/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "percy-style"
8
+ spec.version = Percy::Style::VERSION
9
+ spec.authors = ["Team Percy"]
10
+ spec.email = ["team@percy.io"]
11
+
12
+ spec.summary = 'Percy style guides and shared style configs.'
13
+ spec.homepage = 'https://github.com/percy/percy-style'
14
+
15
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
16
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
17
+ if spec.respond_to?(:metadata)
18
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
19
+ else
20
+ raise "RubyGems 2.0 or newer is required to protect against " \
21
+ "public gem pushes."
22
+ end
23
+
24
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
25
+ f.match(%r{^(test|spec|features)/})
26
+ end
27
+ spec.bindir = "exe"
28
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
29
+ spec.require_paths = ["lib"]
30
+
31
+ spec.add_dependency "rubocop", "~> 0.49"
32
+ spec.add_dependency "rubocop-rspec", "~> 1.15"
33
+ spec.add_development_dependency "bundler", "~> 1.15"
34
+ spec.add_development_dependency "rake", "~> 10.0"
35
+ end
metadata ADDED
@@ -0,0 +1,110 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: percy-style
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Team Percy
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-07-04 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.49'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.49'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.15'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.15'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.15'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.15'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ description:
70
+ email:
71
+ - team@percy.io
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - ".rubocop.yml"
78
+ - Gemfile
79
+ - LICENSE
80
+ - README.md
81
+ - Rakefile
82
+ - default.yml
83
+ - lib/percy/style.rb
84
+ - lib/percy/style/version.rb
85
+ - percy-style.gemspec
86
+ homepage: https://github.com/percy/percy-style
87
+ licenses: []
88
+ metadata:
89
+ allowed_push_host: https://rubygems.org
90
+ post_install_message:
91
+ rdoc_options: []
92
+ require_paths:
93
+ - lib
94
+ required_ruby_version: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ required_rubygems_version: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ requirements: []
105
+ rubyforge_project:
106
+ rubygems_version: 2.4.8
107
+ signing_key:
108
+ specification_version: 4
109
+ summary: Percy style guides and shared style configs.
110
+ test_files: []