Sha256: 5d3057374b2fa82d7630b1400126ddcd1b3c7913ed6559f49b2443b78a7e44ea

Contents?: true

Size: 638 Bytes

Versions: 4

Compression:

Stored size: 638 Bytes

Contents

gsub_file Rails.root.join("app/views/layouts/application.html.erb").to_s, 
/<body>/, '<%= content_tag :body, class: specific_page_vue do %>'
gsub_file Rails.root.join("app/views/layouts/application.html.erb").to_s, 
/<\/body>/, '<% end %>'

pack_tag = <<-eos
    <%= javascript_pack_tag 'application' %>
    <%= stylesheet_pack_tag 'application' %>
eos

insert_into_file Rails.root.join("app/views/layouts/application.html.erb").to_s,
pack_tag,
before: "  </head>\n"

vue_on_rails = <<-eos
    //= vue-on-rails
eos

insert_into_file Rails.root.join("app/assets/javascripts/application.js").to_s,
vue_on_rails,
before: "//= require_tree ."

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vueonrails-1.0.0.beta3 lib/installs/spv.rb
vueonrails-1.0.0.beta2 lib/installs/spv.rb
vueonrails-1.0.0.beta1 lib/installs/specific_page_vue.rb
vueonrails-0.3.0 lib/installs/specific_page_vue.rb