mosaico 1.0.1 → 1.0.2

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
  SHA1:
3
- metadata.gz: 9745cff1ce378fe19a1e152083183fb4225bd71d
4
- data.tar.gz: ea000e07d475ff19cf8332c34d9c6db7b9bb818b
3
+ metadata.gz: 523f7c7c2046cbb22aff8fb0082d63ea8c190cf8
4
+ data.tar.gz: c84810397a71f5a70921dd8af93be50ad9e1a5aa
5
5
  SHA512:
6
- metadata.gz: a62bb44ed7c2474d2ff01bb9d00208fb78beaa14ed1ab90891a88eea0ee6d67de15a91b32c8d8508333a09e24f5a429bdf73d6685b8b85f0b1af4d87e18cc8d2
7
- data.tar.gz: 636879b67aaea0d9b12fae1851e762a63c7ae199c2d36fb5b04f53b608134225d3b7bb4370f4e3ad5eab1aff8626c6f605b5a38fb7046a2d0c3f7dd63d7c20cb
6
+ metadata.gz: e9eed2ab26761c822c8a1b2ec7ce8531bf7fc7560482999620ad9db272483227e7db2ac8965604d6521223cf3473592198e471d603cc63d9b90057e373c94c9f
7
+ data.tar.gz: 3341bc156ca3117b26194fb66b1b028580cd3537a80915f4c322784d7b972562b98ae25de7079faeb47330b62435d3deae2a913e6518a1365c028af341ddfd3c
@@ -1,3 +1,8 @@
1
+ 1.0.2
2
+ ===
3
+ - Fix autoload order bug causing NoMethodError when calling `translations_include_tag`.
4
+ This bug was only reproducible a) on first boot, b) when navigating to a Mosaico controller from a controller _outside_ the Mosaico engine, and c) on a completely clean checkout of the repository. I believe this happened because of how Rails autoloads constants. The Mosaico engine defines an `ApplicationController` inside the `Mosaico` module. Most host rails apps will also define an `ApplicationController` at the top-level. It appears rails loads the host app's `ApplicationController` when accessing the outside route, then fails to load the engine's `ApplicationController` when a subsequent request is made to an engine route. The fix was to inherit from `::Mosaico::ApplicationController`, which is an altogether different constant.
5
+
1
6
  1.0.1
2
7
  ===
3
8
  - Fixed a bug in Mosaico's CSS that was causing a Sass parser error when attempting to precompile assets in the production environment.
@@ -1,6 +1,6 @@
1
1
  module Mosaico
2
2
  class ApplicationController < ActionController::Base
3
- helper ApplicationHelper
3
+ helper ::Mosaico::ApplicationHelper
4
4
  before_action :set_locale
5
5
 
6
6
  private
@@ -1,7 +1,7 @@
1
1
  require 'mini_magick'
2
2
 
3
3
  module Mosaico
4
- class ImagesController < ApplicationController
4
+ class ImagesController < ::Mosaico::ApplicationController
5
5
  def create
6
6
  files = params[:files].map do |file|
7
7
  dest_file = File.basename(file.tempfile.path)
@@ -1,5 +1,5 @@
1
1
  module Mosaico
2
- class ProjectsController < ApplicationController
2
+ class ProjectsController < ::Mosaico::ApplicationController
3
3
  layout 'mosaico/application'
4
4
 
5
5
  def new
@@ -1,5 +1,5 @@
1
1
  module Mosaico
2
- class TemplatesController < ApplicationController
2
+ class TemplatesController < ::Mosaico::ApplicationController
3
3
  def show
4
4
  template = Mosaico.find_template(params[:template_name])
5
5
  render inline: template.template_content
@@ -1,4 +1,4 @@
1
1
  module Mosaico
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  MOSAICO_VERSION = '0.16.0'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mosaico
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Dutro