Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #220 from watermarkchurch/middleman
Get core wcc-contentful gem working without rails
- Loading branch information
Showing
44 changed files
with
844 additions
and
276 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
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ AllCops: | |
|
||
# generated by appraisals | ||
- 'gemfiles/**/*' | ||
- '*/Gemfile' | ||
|
||
# auto generated by rails | ||
|
||
|
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,11 +1,42 @@ | ||
# frozen_string_literal: true | ||
|
||
appraise 'rails-5.2' do | ||
gem 'rails', '~> 5.2.0' | ||
gem 'railties', '~> 5.2.0' | ||
end | ||
rubies = | ||
[ | ||
'2.3.8', | ||
'2.5.7' | ||
].map { |r| Gem::Version.new(r) } | ||
|
||
rubies.each do |ruby_version| | ||
common = | ||
proc do | ||
ruby ruby_version.to_s | ||
end | ||
|
||
appraise "rails-5.2_ruby-#{ruby_version}" do | ||
gem 'rails', '~> 5.2.0' | ||
gem 'railties', '~> 5.2.0' | ||
|
||
group :test do | ||
gem 'rspec-rails', '~> 3.7' | ||
end | ||
|
||
instance_exec(&common) | ||
end | ||
|
||
appraise "rails-5.0_ruby-#{ruby_version}" do | ||
gem 'rails', '~> 5.0.0' | ||
gem 'railties', '~> 5.0.0' | ||
|
||
group :test do | ||
gem 'rspec-rails', '~> 3.7' | ||
end | ||
|
||
instance_exec(&common) | ||
end | ||
|
||
appraise "middleman-4.2_ruby-#{ruby_version}" do | ||
gem 'middleman', '~> 4.2' | ||
|
||
appraise 'rails-5.0' do | ||
gem 'rails', '~> 5.0.0' | ||
gem 'railties', '~> 5.0.0' | ||
instance_exec(&common) | ||
end | ||
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
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
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,29 @@ | ||
#! /bin/bash | ||
|
||
gemfile="$1" | ||
[[ -z "$gemfile" ]] && gemfile="$BUNDLE_GEMFILE" | ||
[[ -z "$gemfile" ]] && echo "No Gemfile specified" && exit -1; | ||
|
||
gemfile=$(cd "$(dirname "$gemfile")"; pwd -P)/$(basename "$gemfile") | ||
|
||
gems=(wcc-*) | ||
|
||
echo "Using ${gemfile} in ${gems[*]}" | ||
|
||
for gem in "${gems[@]}" | ||
do | ||
# in a subshell, CD into the directory and update the gemfile | ||
( | ||
cd $gem; | ||
cp $gemfile Gemfile | ||
echo "gemspec" >> Gemfile | ||
|
||
# does this gem depend on any others? | ||
for dep in "${gems[@]}" | ||
do | ||
if grep "spec.add_dependency '$dep'" "$gem.gemspec"; then | ||
echo "gem '$dep', path: File.expand_path('../$dep', __dir__)" >> Gemfile | ||
fi | ||
done | ||
) | ||
done |
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,22 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "https://rubygems.org" | ||
|
||
ruby "2.3.8" | ||
|
||
gem "middleman", "~> 4.2" | ||
|
||
group :development do | ||
gem "appraisal" | ||
gem "bump", "~> 0.8.0" | ||
gem "coveralls", "~> 0.8.22" | ||
gem "danger-wcc", "~> 0.0.5" | ||
gem "erb_lint", require: false | ||
gem "guard" | ||
gem "guard-rspec" | ||
gem "guard-rubocop" | ||
gem "guard-shell", "~> 0.7.1" | ||
gem "rake", "~> 13.0" | ||
gem "rubocop", "0.68", require: false | ||
gem "simplecov", "~> 0.16" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "https://rubygems.org" | ||
|
||
ruby "2.5.7" | ||
|
||
gem "middleman", "~> 4.2" | ||
|
||
group :development do | ||
gem "appraisal" | ||
gem "bump", "~> 0.8.0" | ||
gem "coveralls", "~> 0.8.22" | ||
gem "danger-wcc", "~> 0.0.5" | ||
gem "erb_lint", require: false | ||
gem "guard" | ||
gem "guard-rspec" | ||
gem "guard-rubocop" | ||
gem "guard-shell", "~> 0.7.1" | ||
gem "rake", "~> 13.0" | ||
gem "rubocop", "0.68", require: false | ||
gem "simplecov", "~> 0.16" | ||
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
Oops, something went wrong.