mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
https://ci.appveyor.com/project/bf4/active-model-serializers/build/1144/job/rf3yi4b7vf8w4t6l
```
Build started
git clone -q --branch=fix_ci https://github.com/rails-api/active_model_serializers.git C:\projects\active-model-serializers
git checkout -qf 37d4bdc4d2
Running Install scripts
SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
ruby --version
ruby 2.0.0p648 (2015-12-16) [i386-mingw32]
gem --version
2.6.13
gem install bundler
Successfully installed bundler-1.16.0
Parsing documentation for bundler-1.16.0
Installing ri documentation for bundler-1.16.0
1 gem installed
bundler --version
Bundler version 1.16.0
bundle platform
Your platform is: i386-mingw32
Your app has gems that work on these platforms:
* x86-mingw32
Your Gemfile does not specify a Ruby version requirement.
bundle install --path=vendor/bundle --retry=3 --jobs=3
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...........................................
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
actionpack (~> 4.0.0) x86-mingw32
Could not find gem 'actionpack (~> 4.0.0)' in any of the sources.
Bundler could not find compatible versions for gem "activemodel":
In Gemfile:
activemodel (~> 4.0.0) x86-mingw32
active_model_serializers x86-mingw32 was resolved to 0.8.4, which depends on
activemodel (>= 3.0) x86-mingw32
activerecord (~> 4.0.0) x86-mingw32 was resolved to 4.0.0, which depends on
activemodel (= 4.0.0) x86-mingw32
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
activesupport (~> 4.0.0) x86-mingw32
actionpack (~> 4.0.0) x86-mingw32 was resolved to 4.0.0, which depends on
activesupport (= 4.0.0) x86-mingw32
Bundler could not find compatible versions for gem "ruby":
In Gemfile:
ruby x86-mingw32
pry x86-mingw32 was resolved to 0.11.2, which depends on
ruby (>= 1.9.3) x86-mingw32
rails (>= 3.0) x86-mingw32 was resolved to 5.1.4, which depends on
ruby (>= 2.2.2) x86-mingw32
Bundler could not find compatible versions for gem "tzinfo":
In Gemfile:
actionpack (~> 4.0.0) x86-mingw32 was resolved to 4.0.0, which depends on
activesupport (= 4.0.0) x86-mingw32 was resolved to 4.0.0, which depends
on
tzinfo (~> 0.3.37) x86-mingw32
tzinfo-data x86-mingw32 was resolved to 1.2017.3, which depends on
tzinfo (>= 1.0.0) x86-mingw32
Command exited with code 6
```
41 lines
1.2 KiB
Ruby
41 lines
1.2 KiB
Ruby
source 'https://rubygems.org'
|
|
|
|
version = ENV['RAILS_VERSION'] || '4.0'
|
|
|
|
if version == 'master'
|
|
gem 'rack', github: 'rack/rack'
|
|
gem 'arel', github: 'rails/arel'
|
|
gem 'rails', github: 'rails/rails'
|
|
git 'https://github.com/rails/rails.git' do
|
|
gem 'railties'
|
|
gem 'activesupport'
|
|
gem 'activemodel'
|
|
gem 'actionpack'
|
|
gem 'activerecord', group: :test
|
|
# Rails 5
|
|
gem 'actionview'
|
|
end
|
|
else
|
|
gem_version = "~> #{version}.0"
|
|
gem 'rails', gem_version
|
|
gem 'railties', gem_version
|
|
gem 'activesupport', gem_version
|
|
gem 'activemodel', gem_version
|
|
gem 'actionpack', gem_version
|
|
gem 'activerecord', gem_version, group: :test
|
|
end
|
|
|
|
# Specify gem dependencies in active_model_serializers.gemspec
|
|
gemspec
|
|
|
|
# https://github.com/bundler/bundler/blob/89a8778c19269561926cea172acdcda241d26d23/lib/bundler/dependency.rb#L30-L54
|
|
@windows_platforms = [:mswin, :mingw, :x64_mingw]
|
|
|
|
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
|
gem 'tzinfo-data', platforms: (@windows_platforms + [:jruby])
|
|
|
|
# JRuby versions before 9.x report their version as "1.9.x" or lower, so lock these to an older version of mime-types
|
|
if defined?(JRUBY_VERSION) and Gem::ruby_version < Gem::Version.new("2.0.0")
|
|
gem 'mime-types', '< 3'
|
|
end
|