mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-22 22:06:43 +00:00
Reduce depencencies to require Rails components only
This commit is contained in:
parent
519eb74cdd
commit
8f5cb1aa12
14
Gemfile
14
Gemfile
@ -2,7 +2,7 @@ source "https://rubygems.org"
|
|||||||
|
|
||||||
# Allow the rails version to come from an ENV setting so Travis can test multiple versions.
|
# Allow the rails version to come from an ENV setting so Travis can test multiple versions.
|
||||||
# See http://www.schneems.com/post/50991826838/testing-against-multiple-rails-versions/
|
# See http://www.schneems.com/post/50991826838/testing-against-multiple-rails-versions/
|
||||||
rails_version = ENV['RAILS_VERSION'] || '5.1.1'
|
rails_version = ENV['RAILS_VERSION'] || '5.1.2'
|
||||||
|
|
||||||
gem 'rails', "#{rails_version}"
|
gem 'rails', "#{rails_version}"
|
||||||
|
|
||||||
@ -15,6 +15,7 @@ end
|
|||||||
|
|
||||||
gem 'sqlite3'
|
gem 'sqlite3'
|
||||||
|
|
||||||
|
gem 'rswag-specs', path: './rswag-specs'
|
||||||
gem 'rswag-api', path: './rswag-api'
|
gem 'rswag-api', path: './rswag-api'
|
||||||
gem 'rswag-ui', path: './rswag-ui'
|
gem 'rswag-ui', path: './rswag-ui'
|
||||||
|
|
||||||
@ -27,10 +28,9 @@ group :test do
|
|||||||
gem 'generator_spec'
|
gem 'generator_spec'
|
||||||
gem 'capybara'
|
gem 'capybara'
|
||||||
gem 'capybara-webkit'
|
gem 'capybara-webkit'
|
||||||
gem 'rswag-specs', path: './rswag-specs'
|
|
||||||
end
|
|
||||||
|
|
||||||
group :assets do
|
|
||||||
gem 'uglifier'
|
|
||||||
gem 'therubyracer'
|
|
||||||
end
|
end
|
||||||
|
#
|
||||||
|
#group :assets do
|
||||||
|
# gem 'uglifier'
|
||||||
|
# gem 'therubyracer'
|
||||||
|
#end
|
||||||
|
|||||||
136
Gemfile.lock
136
Gemfile.lock
@ -2,90 +2,89 @@ PATH
|
|||||||
remote: rswag-api
|
remote: rswag-api
|
||||||
specs:
|
specs:
|
||||||
rswag-api (1.3.0)
|
rswag-api (1.3.0)
|
||||||
rails (>= 3.1, < 5.2)
|
railties (>= 3.1)
|
||||||
|
|
||||||
PATH
|
PATH
|
||||||
remote: rswag-specs
|
remote: rswag-specs
|
||||||
specs:
|
specs:
|
||||||
rswag-specs (1.3.0)
|
rswag-specs (1.3.0)
|
||||||
json (~> 1.8)
|
activesupport (>= 3.1)
|
||||||
json-schema (~> 2.2)
|
json-schema (~> 2.2)
|
||||||
rails (>= 3.1, < 5.2)
|
railties (>= 3.1)
|
||||||
rspec-rails (>= 2.14, < 4)
|
|
||||||
|
|
||||||
PATH
|
PATH
|
||||||
remote: rswag-ui
|
remote: rswag-ui
|
||||||
specs:
|
specs:
|
||||||
rswag-ui (1.3.0)
|
rswag-ui (1.3.0)
|
||||||
rails (>= 3.1, < 5.2)
|
actionpack (>= 3.1)
|
||||||
|
railties (>= 3.1)
|
||||||
|
|
||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
actioncable (5.1.1)
|
actioncable (5.1.2)
|
||||||
actionpack (= 5.1.1)
|
actionpack (= 5.1.2)
|
||||||
nio4r (~> 2.0)
|
nio4r (~> 2.0)
|
||||||
websocket-driver (~> 0.6.1)
|
websocket-driver (~> 0.6.1)
|
||||||
actionmailer (5.1.1)
|
actionmailer (5.1.2)
|
||||||
actionpack (= 5.1.1)
|
actionpack (= 5.1.2)
|
||||||
actionview (= 5.1.1)
|
actionview (= 5.1.2)
|
||||||
activejob (= 5.1.1)
|
activejob (= 5.1.2)
|
||||||
mail (~> 2.5, >= 2.5.4)
|
mail (~> 2.5, >= 2.5.4)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
actionpack (5.1.1)
|
actionpack (5.1.2)
|
||||||
actionview (= 5.1.1)
|
actionview (= 5.1.2)
|
||||||
activesupport (= 5.1.1)
|
activesupport (= 5.1.2)
|
||||||
rack (~> 2.0)
|
rack (~> 2.0)
|
||||||
rack-test (~> 0.6.3)
|
rack-test (~> 0.6.3)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
||||||
actionview (5.1.1)
|
actionview (5.1.2)
|
||||||
activesupport (= 5.1.1)
|
activesupport (= 5.1.2)
|
||||||
builder (~> 3.1)
|
builder (~> 3.1)
|
||||||
erubi (~> 1.4)
|
erubi (~> 1.4)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
||||||
activejob (5.1.1)
|
activejob (5.1.2)
|
||||||
activesupport (= 5.1.1)
|
activesupport (= 5.1.2)
|
||||||
globalid (>= 0.3.6)
|
globalid (>= 0.3.6)
|
||||||
activemodel (5.1.1)
|
activemodel (5.1.2)
|
||||||
activesupport (= 5.1.1)
|
activesupport (= 5.1.2)
|
||||||
activerecord (5.1.1)
|
activerecord (5.1.2)
|
||||||
activemodel (= 5.1.1)
|
activemodel (= 5.1.2)
|
||||||
activesupport (= 5.1.1)
|
activesupport (= 5.1.2)
|
||||||
arel (~> 8.0)
|
arel (~> 8.0)
|
||||||
activesupport (5.1.1)
|
activesupport (5.1.2)
|
||||||
concurrent-ruby (~> 1.0, >= 1.0.2)
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
||||||
i18n (~> 0.7)
|
i18n (~> 0.7)
|
||||||
minitest (~> 5.1)
|
minitest (~> 5.1)
|
||||||
tzinfo (~> 1.1)
|
tzinfo (~> 1.1)
|
||||||
addressable (2.4.0)
|
addressable (2.5.1)
|
||||||
|
public_suffix (~> 2.0, >= 2.0.2)
|
||||||
arel (8.0.0)
|
arel (8.0.0)
|
||||||
builder (3.2.3)
|
builder (3.2.3)
|
||||||
capybara (2.10.1)
|
capybara (2.13.0)
|
||||||
addressable
|
addressable
|
||||||
mime-types (>= 1.16)
|
mime-types (>= 1.16)
|
||||||
nokogiri (>= 1.3.3)
|
nokogiri (>= 1.3.3)
|
||||||
rack (>= 1.0.0)
|
rack (>= 1.0.0)
|
||||||
rack-test (>= 0.5.4)
|
rack-test (>= 0.5.4)
|
||||||
xpath (~> 2.0)
|
xpath (~> 2.0)
|
||||||
capybara-webkit (1.1.0)
|
capybara-webkit (1.14.0)
|
||||||
capybara (~> 2.0, >= 2.0.2)
|
capybara (>= 2.3.0, < 2.14.0)
|
||||||
json
|
json
|
||||||
concurrent-ruby (1.0.5)
|
concurrent-ruby (1.0.5)
|
||||||
diff-lcs (1.2.5)
|
diff-lcs (1.3)
|
||||||
erubi (1.6.0)
|
erubi (1.6.1)
|
||||||
execjs (2.7.0)
|
generator_spec (0.9.4)
|
||||||
generator_spec (0.9.3)
|
|
||||||
activesupport (>= 3.0.0)
|
activesupport (>= 3.0.0)
|
||||||
railties (>= 3.0.0)
|
railties (>= 3.0.0)
|
||||||
globalid (0.4.0)
|
globalid (0.4.0)
|
||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
i18n (0.8.4)
|
i18n (0.8.4)
|
||||||
json (1.8.6)
|
json (2.1.0)
|
||||||
json-schema (2.8.0)
|
json-schema (2.8.0)
|
||||||
addressable (>= 2.4)
|
addressable (>= 2.4)
|
||||||
libv8 (3.16.14.15)
|
|
||||||
loofah (2.0.3)
|
loofah (2.0.3)
|
||||||
nokogiri (>= 1.5.9)
|
nokogiri (>= 1.5.9)
|
||||||
mail (2.6.6)
|
mail (2.6.6)
|
||||||
@ -99,55 +98,55 @@ GEM
|
|||||||
nio4r (2.1.0)
|
nio4r (2.1.0)
|
||||||
nokogiri (1.8.0)
|
nokogiri (1.8.0)
|
||||||
mini_portile2 (~> 2.2.0)
|
mini_portile2 (~> 2.2.0)
|
||||||
power_assert (0.3.1)
|
power_assert (1.0.2)
|
||||||
|
public_suffix (2.0.5)
|
||||||
rack (2.0.3)
|
rack (2.0.3)
|
||||||
rack-test (0.6.3)
|
rack-test (0.6.3)
|
||||||
rack (>= 1.0)
|
rack (>= 1.0)
|
||||||
rails (5.1.1)
|
rails (5.1.2)
|
||||||
actioncable (= 5.1.1)
|
actioncable (= 5.1.2)
|
||||||
actionmailer (= 5.1.1)
|
actionmailer (= 5.1.2)
|
||||||
actionpack (= 5.1.1)
|
actionpack (= 5.1.2)
|
||||||
actionview (= 5.1.1)
|
actionview (= 5.1.2)
|
||||||
activejob (= 5.1.1)
|
activejob (= 5.1.2)
|
||||||
activemodel (= 5.1.1)
|
activemodel (= 5.1.2)
|
||||||
activerecord (= 5.1.1)
|
activerecord (= 5.1.2)
|
||||||
activesupport (= 5.1.1)
|
activesupport (= 5.1.2)
|
||||||
bundler (>= 1.3.0, < 2.0)
|
bundler (>= 1.3.0, < 2.0)
|
||||||
railties (= 5.1.1)
|
railties (= 5.1.2)
|
||||||
sprockets-rails (>= 2.0.0)
|
sprockets-rails (>= 2.0.0)
|
||||||
rails-dom-testing (2.0.3)
|
rails-dom-testing (2.0.3)
|
||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
nokogiri (>= 1.6)
|
nokogiri (>= 1.6)
|
||||||
rails-html-sanitizer (1.0.3)
|
rails-html-sanitizer (1.0.3)
|
||||||
loofah (~> 2.0)
|
loofah (~> 2.0)
|
||||||
railties (5.1.1)
|
railties (5.1.2)
|
||||||
actionpack (= 5.1.1)
|
actionpack (= 5.1.2)
|
||||||
activesupport (= 5.1.1)
|
activesupport (= 5.1.2)
|
||||||
method_source
|
method_source
|
||||||
rake (>= 0.8.7)
|
rake (>= 0.8.7)
|
||||||
thor (>= 0.18.1, < 2.0)
|
thor (>= 0.18.1, < 2.0)
|
||||||
rake (12.0.0)
|
rake (12.0.0)
|
||||||
ref (2.0.0)
|
|
||||||
responders (2.4.0)
|
responders (2.4.0)
|
||||||
actionpack (>= 4.2.0, < 5.3)
|
actionpack (>= 4.2.0, < 5.3)
|
||||||
railties (>= 4.2.0, < 5.3)
|
railties (>= 4.2.0, < 5.3)
|
||||||
rspec-core (3.5.4)
|
rspec-core (3.6.0)
|
||||||
rspec-support (~> 3.5.0)
|
rspec-support (~> 3.6.0)
|
||||||
rspec-expectations (3.5.0)
|
rspec-expectations (3.6.0)
|
||||||
diff-lcs (>= 1.2.0, < 2.0)
|
diff-lcs (>= 1.2.0, < 2.0)
|
||||||
rspec-support (~> 3.5.0)
|
rspec-support (~> 3.6.0)
|
||||||
rspec-mocks (3.5.0)
|
rspec-mocks (3.6.0)
|
||||||
diff-lcs (>= 1.2.0, < 2.0)
|
diff-lcs (>= 1.2.0, < 2.0)
|
||||||
rspec-support (~> 3.5.0)
|
rspec-support (~> 3.6.0)
|
||||||
rspec-rails (3.5.2)
|
rspec-rails (3.6.0)
|
||||||
actionpack (>= 3.0)
|
actionpack (>= 3.0)
|
||||||
activesupport (>= 3.0)
|
activesupport (>= 3.0)
|
||||||
railties (>= 3.0)
|
railties (>= 3.0)
|
||||||
rspec-core (~> 3.5.0)
|
rspec-core (~> 3.6.0)
|
||||||
rspec-expectations (~> 3.5.0)
|
rspec-expectations (~> 3.6.0)
|
||||||
rspec-mocks (~> 3.5.0)
|
rspec-mocks (~> 3.6.0)
|
||||||
rspec-support (~> 3.5.0)
|
rspec-support (~> 3.6.0)
|
||||||
rspec-support (3.5.0)
|
rspec-support (3.6.0)
|
||||||
sprockets (3.7.1)
|
sprockets (3.7.1)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
rack (> 1, < 3)
|
rack (> 1, < 3)
|
||||||
@ -155,22 +154,17 @@ GEM
|
|||||||
actionpack (>= 4.0)
|
actionpack (>= 4.0)
|
||||||
activesupport (>= 4.0)
|
activesupport (>= 4.0)
|
||||||
sprockets (>= 3.0.0)
|
sprockets (>= 3.0.0)
|
||||||
sqlite3 (1.3.12)
|
sqlite3 (1.3.13)
|
||||||
test-unit (3.2.1)
|
test-unit (3.2.5)
|
||||||
power_assert
|
power_assert
|
||||||
therubyracer (0.12.2)
|
|
||||||
libv8 (~> 3.16.14.0)
|
|
||||||
ref
|
|
||||||
thor (0.19.4)
|
thor (0.19.4)
|
||||||
thread_safe (0.3.6)
|
thread_safe (0.3.6)
|
||||||
tzinfo (1.2.3)
|
tzinfo (1.2.3)
|
||||||
thread_safe (~> 0.1)
|
thread_safe (~> 0.1)
|
||||||
uglifier (3.0.2)
|
|
||||||
execjs (>= 0.3.0, < 3)
|
|
||||||
websocket-driver (0.6.5)
|
websocket-driver (0.6.5)
|
||||||
websocket-extensions (>= 0.1.0)
|
websocket-extensions (>= 0.1.0)
|
||||||
websocket-extensions (0.1.2)
|
websocket-extensions (0.1.2)
|
||||||
xpath (2.0.0)
|
xpath (2.1.0)
|
||||||
nokogiri (~> 1.3)
|
nokogiri (~> 1.3)
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
@ -180,7 +174,7 @@ DEPENDENCIES
|
|||||||
capybara
|
capybara
|
||||||
capybara-webkit
|
capybara-webkit
|
||||||
generator_spec
|
generator_spec
|
||||||
rails (= 5.1.1)
|
rails (= 5.1.2)
|
||||||
responders
|
responders
|
||||||
rspec-rails
|
rspec-rails
|
||||||
rswag-api!
|
rswag-api!
|
||||||
@ -188,8 +182,6 @@ DEPENDENCIES
|
|||||||
rswag-ui!
|
rswag-ui!
|
||||||
sqlite3
|
sqlite3
|
||||||
test-unit
|
test-unit
|
||||||
therubyracer
|
|
||||||
uglifier
|
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
1.14.6
|
1.14.6
|
||||||
|
|||||||
@ -16,5 +16,5 @@ Gem::Specification.new do |s|
|
|||||||
|
|
||||||
s.files = Dir["{lib}/**/*"] + ["MIT-LICENSE", "Rakefile"]
|
s.files = Dir["{lib}/**/*"] + ["MIT-LICENSE", "Rakefile"]
|
||||||
|
|
||||||
s.add_dependency "rails", ">= 3.1", "< 5.2"
|
s.add_dependency 'railties', '>= 3.1'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -16,8 +16,7 @@ Gem::Specification.new do |s|
|
|||||||
|
|
||||||
s.files = Dir["{lib}/**/*"] + ["MIT-LICENSE", "Rakefile" ]
|
s.files = Dir["{lib}/**/*"] + ["MIT-LICENSE", "Rakefile" ]
|
||||||
|
|
||||||
s.add_dependency "rails", ">= 3.1", "< 5.2"
|
s.add_dependency 'activesupport', '>= 3.1'
|
||||||
s.add_dependency 'json', '~> 1.8'
|
s.add_dependency 'railties', '>= 3.1'
|
||||||
s.add_dependency 'json-schema', '~> 2.2'
|
s.add_dependency 'json-schema', '~> 2.2'
|
||||||
s.add_dependency 'rspec-rails', '>= 2.14', '< 4'
|
|
||||||
end
|
end
|
||||||
|
|||||||
@ -16,5 +16,6 @@ Gem::Specification.new do |s|
|
|||||||
|
|
||||||
s.files = Dir["{app,config,lib,vendor}/**/*"] + ["MIT-LICENSE", "Rakefile" ]
|
s.files = Dir["{app,config,lib,vendor}/**/*"] + ["MIT-LICENSE", "Rakefile" ]
|
||||||
|
|
||||||
s.add_dependency "rails", ">= 3.1", "< 5.2"
|
s.add_dependency 'actionpack', '>=3.1'
|
||||||
|
s.add_dependency 'railties', '>= 3.1'
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user