github-pages 62 → 63
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 +4 -4
- data/.rubocop.yml +135 -0
- data/lib/github-pages.rb +3 -0
- data/lib/github-pages/dependencies.rb +1 -1
- data/lib/github-pages/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eec8eb3f5f2c0482a572bd774d91328736e139bf
|
4
|
+
data.tar.gz: f0a4cfd6fd03f86ceee735a77f11e532cf4577cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cf0984e783a44c831b635dca3e004df649214defed3d9cf416544df746acc5e82eadf34f4bab5da60d7372723e820add68a1b40e3abeeca5f048227f61154ae
|
7
|
+
data.tar.gz: 91e6060b33733e417184d49d52807e52f1e5322095346978daa0a1797eeccc29c011871cd561b424dbc53436a85da7502c7a061b27daafaf74ebcedd0480cb87
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,135 @@
|
|
1
|
+
# Ruby linting configuration.
|
2
|
+
# See https://github.com/styleguide/ruby for the Ruby style guide
|
3
|
+
|
4
|
+
# We only worry about two kinds of issues: 'error' and anything less than that.
|
5
|
+
# Error is not about severity, but about taste. Simple style choices that
|
6
|
+
# never have a great excuse to be broken, such as 1.9 JSON-like hash syntax,
|
7
|
+
# are errors. Choices that tend to have good exceptions in practice, such as
|
8
|
+
# line length, are warnings.
|
9
|
+
|
10
|
+
# If you'd like to make changes, a full list of available issues is at
|
11
|
+
# https://github.com/bbatsov/rubocop/blob/master/config/enabled.yml
|
12
|
+
#
|
13
|
+
# A list of configurable issues is at:
|
14
|
+
# https://github.com/bbatsov/rubocop/blob/master/config/default.yml
|
15
|
+
#
|
16
|
+
# If you disable a check, document why.
|
17
|
+
|
18
|
+
AllCops:
|
19
|
+
Exclude:
|
20
|
+
- 'bin/**/*'
|
21
|
+
- 'script/**/*'
|
22
|
+
- 'vendor/**/*'
|
23
|
+
|
24
|
+
Lint/EndAlignment:
|
25
|
+
Severity: error
|
26
|
+
|
27
|
+
Lint/RescueException:
|
28
|
+
Exclude:
|
29
|
+
- lib/pages_jekyll.rb
|
30
|
+
|
31
|
+
Lint/UnreachableCode:
|
32
|
+
Severity: error
|
33
|
+
|
34
|
+
Lint/AmbiguousRegexpLiteral:
|
35
|
+
Exclude:
|
36
|
+
- 'features/step_definitions/pages_steps.rb'
|
37
|
+
|
38
|
+
Style/StringLiterals:
|
39
|
+
EnforcedStyle: double_quotes
|
40
|
+
Severity: error
|
41
|
+
|
42
|
+
Style/StringLiteralsInInterpolation:
|
43
|
+
EnforcedStyle: double_quotes
|
44
|
+
|
45
|
+
Style/HashSyntax:
|
46
|
+
EnforcedStyle: hash_rockets
|
47
|
+
Severity: error
|
48
|
+
|
49
|
+
Style/AlignHash:
|
50
|
+
SupportedLastArgumentHashStyles: always_ignore
|
51
|
+
|
52
|
+
Style/AlignParameters:
|
53
|
+
Enabled: false # This is usually true, but we often want to roll back to
|
54
|
+
# the start of a line.
|
55
|
+
|
56
|
+
Style/Attr:
|
57
|
+
Enabled: false # We have no styleguide guidance here, and it seems to be
|
58
|
+
# in frequent use.
|
59
|
+
|
60
|
+
Style/ClassAndModuleChildren:
|
61
|
+
Enabled: false # module X<\n>module Y is just as good as module X::Y.
|
62
|
+
|
63
|
+
Style/Documentation:
|
64
|
+
Exclude:
|
65
|
+
- !ruby/regexp /spec\/.*.rb$/
|
66
|
+
- !ruby/regexp /features\/.*.rb$/
|
67
|
+
|
68
|
+
Metrics/ClassLength:
|
69
|
+
Exclude:
|
70
|
+
- !ruby/regexp /spec\/.*.rb$/
|
71
|
+
- !ruby/regexp /features\/.*.rb$/
|
72
|
+
|
73
|
+
Style/PercentLiteralDelimiters:
|
74
|
+
PreferredDelimiters:
|
75
|
+
'%w': '{}'
|
76
|
+
'%r': '{}'
|
77
|
+
|
78
|
+
Metrics/LineLength:
|
79
|
+
Max: 90
|
80
|
+
Severity: warning
|
81
|
+
Exclude:
|
82
|
+
- !ruby/regexp /spec\/.*.rb/
|
83
|
+
- !ruby/regexp /features\/.*.rb/
|
84
|
+
|
85
|
+
Style/MultilineTernaryOperator:
|
86
|
+
Severity: error
|
87
|
+
|
88
|
+
Style/AndOr:
|
89
|
+
Severity: error
|
90
|
+
|
91
|
+
Style/IndentationWidth:
|
92
|
+
Severity: error
|
93
|
+
|
94
|
+
Metrics/MethodLength:
|
95
|
+
CountComments: false # count full line comments?
|
96
|
+
Max: 20
|
97
|
+
Severity: error
|
98
|
+
Exclude:
|
99
|
+
- lib/github-pages.rb # Exclude the dependency hash method
|
100
|
+
|
101
|
+
Style/Alias:
|
102
|
+
Enabled: false # We have no guidance on alias vs alias_method
|
103
|
+
|
104
|
+
Style/RedundantSelf:
|
105
|
+
Enabled: false # Sometimes a self.field is a bit more clear
|
106
|
+
|
107
|
+
Style/IfUnlessModifier:
|
108
|
+
Enabled: false
|
109
|
+
|
110
|
+
Style/FileName: #Rubocop doesn't like the Git*H*ub namespace
|
111
|
+
Enabled: false
|
112
|
+
|
113
|
+
Metrics/CyclomaticComplexity: { Max: 8 }
|
114
|
+
Metrics/PerceivedComplexity: { Max: 8 }
|
115
|
+
Metrics/ParameterLists: { Max: 4 }
|
116
|
+
Metrics/AbcSize: { Max: 20 }
|
117
|
+
|
118
|
+
Style/IndentHash: { EnforcedStyle: consistent }
|
119
|
+
Style/SignalException: { EnforcedStyle: only_raise }
|
120
|
+
Style/MultilineMethodCallIndentation: { EnforcedStyle: indented }
|
121
|
+
Style/MultilineOperationIndentation: { EnforcedStyle: indented }
|
122
|
+
Style/FirstParameterIndentation: { EnforcedStyle: consistent }
|
123
|
+
Style/StringLiterals: { EnforcedStyle: double_quotes }
|
124
|
+
Style/IndentArray: { EnforcedStyle: consistent }
|
125
|
+
Style/ExtraSpacing: { AllowForAlignment: true }
|
126
|
+
|
127
|
+
Style/PercentLiteralDelimiters:
|
128
|
+
PreferredDelimiters:
|
129
|
+
'%q': '{}'
|
130
|
+
'%Q': '{}'
|
131
|
+
'%r': '{}'
|
132
|
+
'%s': '()'
|
133
|
+
'%w': '()'
|
134
|
+
'%W': '()'
|
135
|
+
'%x': '()'
|
data/lib/github-pages.rb
CHANGED
@@ -5,12 +5,15 @@ require "jekyll"
|
|
5
5
|
module GitHubPages
|
6
6
|
autoload :Configuration, "github-pages/configuration"
|
7
7
|
autoload :Dependencies, "github-pages/dependencies"
|
8
|
+
autoload :VERSION, "github-pages/version"
|
8
9
|
|
9
10
|
def self.versions
|
10
11
|
Dependencies.versions
|
11
12
|
end
|
12
13
|
end
|
13
14
|
|
15
|
+
Jekyll.logger.debug "GitHub Pages:", "github-pages v#{GitHubPages::VERSION}"
|
16
|
+
Jekyll.logger.debug "GitHub Pages:", "jekyll v#{Jekyll::VERSION}"
|
14
17
|
Jekyll::Hooks.register :site, :after_reset do |site|
|
15
18
|
GitHubPages::Configuration.set(site)
|
16
19
|
end
|
data/lib/github-pages/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github-pages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '
|
4
|
+
version: '63'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub, Inc.
|
@@ -170,14 +170,14 @@ dependencies:
|
|
170
170
|
requirements:
|
171
171
|
- - '='
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: 0.
|
173
|
+
version: 0.10.0
|
174
174
|
type: :runtime
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - '='
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: 0.
|
180
|
+
version: 0.10.0
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: jekyll-sitemap
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -353,6 +353,7 @@ executables:
|
|
353
353
|
extensions: []
|
354
354
|
extra_rdoc_files: []
|
355
355
|
files:
|
356
|
+
- ".rubocop.yml"
|
356
357
|
- bin/github-pages
|
357
358
|
- lib/github-pages.rb
|
358
359
|
- lib/github-pages/configuration.rb
|
@@ -384,7 +385,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
384
385
|
version: '0'
|
385
386
|
requirements: []
|
386
387
|
rubyforge_project:
|
387
|
-
rubygems_version: 2.
|
388
|
+
rubygems_version: 2.2.5
|
388
389
|
signing_key:
|
389
390
|
specification_version: 4
|
390
391
|
summary: Track GitHub Pages dependencies.
|