-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
308 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
AllCops: | ||
TargetRubyVersion: 2.4 | ||
Include: | ||
- '**/Gemfile' | ||
- '**/Rakefile' | ||
- '**/rakefile' | ||
Exclude: | ||
- '_node/**/*' | ||
|
||
Metrics/LineLength: | ||
Max: 126 | ||
|
||
Layout/SpaceAroundEqualsInParameterDefault: | ||
EnforcedStyle: no_space | ||
|
||
Metrics/MethodLength: | ||
Enabled: false | ||
|
||
Metrics/AbcSize: | ||
Enabled: false | ||
|
||
Metrics/BlockLength: | ||
Enabled: false | ||
|
||
Metrics/BlockNesting: | ||
Enabled: false | ||
|
||
Metrics/CyclomaticComplexity: | ||
Enabled: false | ||
|
||
Metrics/ClassLength: | ||
Enabled: false | ||
|
||
Style/Documentation: | ||
Enabled: false | ||
|
||
Layout/IndentArray: | ||
Enabled: false | ||
|
||
Style/GuardClause: | ||
Enabled: false | ||
|
||
Metrics/PerceivedComplexity: | ||
Enabled: false | ||
|
||
Style/TernaryParentheses: | ||
Enabled: false | ||
|
||
Style/RegexpLiteral: | ||
Enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'http://rubygems.org' | ||
|
||
gem 'jekyll', :git => 'https://github.com/binaryage/jekyll.git', :branch => 'binaryage-site' | ||
gem 'rdiscount' | ||
gem 'closure-compiler' | ||
gem 'coffee-script' | ||
gem 'colored2' | ||
gem 'html_press', git: 'https://github.com/binaryage/html_press' | ||
gem 'jekyll', git: 'https://github.com/binaryage/jekyll.git', branch: 'binaryage-site' | ||
gem 'rdiscount' | ||
gem 'stylus' | ||
gem 'tilt' | ||
gem 'coffee-script' | ||
gem 'closure-compiler' | ||
gem 'html_press', :git => 'https://github.com/binaryage/html_press' | ||
gem 'yui-compressor' | ||
|
||
group :jekyll_plugins do | ||
gem 'jekyll-contentblocks' | ||
gem 'jekyll-coffeescript' | ||
gem 'jekyll-contentblocks' | ||
gem 'jekyll-redirect-from' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative 'utils.rb' | ||
|
||
# prevents git error message: | ||
# You can't push to git://github.com/darwin/site.git | ||
# Use [email protected]:darwin/site.git | ||
def get_writable_git_url | ||
def writable_git_url | ||
`git remote show origin | grep "Fetch URL:"`.strip =~ /Fetch URL:\s*(.*)/ | ||
|
||
if $1.nil? | ||
if Regexp.last_match(1).nil? | ||
puts "unable to parse: #{res} (ouput from: git remote show origin | grep \"Fetch URL:\")" | ||
exit 2 | ||
end | ||
|
||
$1.sub('git://', 'git@').sub('github.com/', 'github.com:') | ||
Regexp.last_match(1).sub('git://', 'git@').sub('github.com/', 'github.com:') | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.