grape-swagger-rails-themes 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fff5ffd9c147d68f0426bc74733350cfbef11acf0073762c52edb15b1a403492
|
4
|
+
data.tar.gz: 6943d789e5541baea5652247e53f1303d03d133a22dfe3a307945e3efecfd0a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb87b186b88b87b072ddfc686c28e2571bc907348c1b77fa3bb712914067ac6fd11b9b10f2a5509dc4d53885a98098a7490bdc95c4620fe8c41a549ccf49a8ec
|
7
|
+
data.tar.gz: d0e345b4f6860839fb27ed3cd0c1a30c7fee04fc4099c01f04331f6e1b348d34b31cf12f0fcb0a31cd0998d5818f9425a9873c3d405d258a154cc621d46590c6
|
data/Gemfile.lock
CHANGED
@@ -16,7 +16,7 @@ module GrapeSwaggerRailsThemes
|
|
16
16
|
def copy_grape_swagger_rails_templates
|
17
17
|
download = open('https://raw.githubusercontent.com/ruby-grape/grape-swagger-rails/master/app/views/grape_swagger_rails/application/index.html.erb')
|
18
18
|
create_file "app/views/grape_swagger_rails/application/index.html.erb", download.read
|
19
|
-
insert_into_file "app/views/grape_swagger_rails/application/index.html.erb", '<%= stylesheet_link_tag "swagger-ui-themes/themes/#{GrapeSwaggerRails.options.theme_version}/theme-#{::GrapeSwaggerRails.options.theme}.css" %>', after: "<%= stylesheet_link_tag 'grape_swagger_rails/application.css' %>"
|
19
|
+
insert_into_file "app/views/grape_swagger_rails/application/index.html.erb", '<%= stylesheet_link_tag "swagger-ui-themes/themes/#{GrapeSwaggerRails.options.theme_version}/theme-#{::GrapeSwaggerRails.options.theme}.css" unless ::GrapeSwaggerRails.options.theme == "default" %>', after: "<%= stylesheet_link_tag 'grape_swagger_rails/application.css' %>"
|
20
20
|
|
21
21
|
insert_into_file "config/initializers/assets.rb", "\nRails.application.config.assets.precompile += %w( swagger-ui-themes/themes/2.x/*.css swagger-ui-themes/themes/3.x/*.css )", after: "Rails.application.config.assets.paths << Rails.root.join('node_modules')"
|
22
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grape-swagger-rails-themes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yunan Helmy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|