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: d93844b791c4eace523d85ab45c69c6506f681e04e9aae068553ec3bb45e2852
4
- data.tar.gz: 4dfcaa3eaa3cdb722e49b830d1354a93b9e3c0ddb3aea1b6cb782c5811e5a09a
3
+ metadata.gz: fff5ffd9c147d68f0426bc74733350cfbef11acf0073762c52edb15b1a403492
4
+ data.tar.gz: 6943d789e5541baea5652247e53f1303d03d133a22dfe3a307945e3efecfd0a4
5
5
  SHA512:
6
- metadata.gz: 603cded028710c79d1982a14e2b5351602ae4d6c143f7b9f55d1eeaa2761885fa03bd84d4d242b056131101d3dbd1031b5248a12bbbfe0374e7112112ac4ec60
7
- data.tar.gz: 9a2b063c87084eea64a6caa468846fef30561f93a2605f245b10a75397aeeb03e9a38c3ac286ef1175d3f8286259a2ea0859eda84c13b2856bf15df441187562
6
+ metadata.gz: fb87b186b88b87b072ddfc686c28e2571bc907348c1b77fa3bb712914067ac6fd11b9b10f2a5509dc4d53885a98098a7490bdc95c4620fe8c41a549ccf49a8ec
7
+ data.tar.gz: d0e345b4f6860839fb27ed3cd0c1a30c7fee04fc4099c01f04331f6e1b348d34b31cf12f0fcb0a31cd0998d5818f9425a9873c3d405d258a154cc621d46590c6
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- grape-swagger-rails-themes (0.1.0)
4
+ grape-swagger-rails-themes (0.1.2)
5
5
  grape-swagger-rails
6
6
 
7
7
  GEM
@@ -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
@@ -4,6 +4,7 @@
4
4
  GrapeSwaggerRails.options.theme_version = "2.x"
5
5
 
6
6
  # Swagger UI theme options :
7
+ # - default
7
8
  # - feeling-blue
8
9
  # - flattop
9
10
  # - material
@@ -1,3 +1,3 @@
1
1
  module GrapeSwaggerRailsThemes
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  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.2
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-26 00:00:00.000000000 Z
11
+ date: 2019-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler