rosette 0.3.6 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aecb5dd40f0007e6db2bfa8a69340b43b92c818c19911f299cc08f1d1fe04046
4
- data.tar.gz: 85727dc5d771295f162d99e23085193bb0766457b43a61a7a87de73759f1aad1
3
+ metadata.gz: 119e688ed5f44a13eab915bc89cd69ace2415024838f0f928b5de4cdc561b292
4
+ data.tar.gz: 86b1ccd2e446d8d73090ac44cbe11c095aa17323340ff9808d743af3667e7d02
5
5
  SHA512:
6
- metadata.gz: e94f7a6dccf328c60d5f14ba69eae58b5b522100df5663041590fd6dbe45c91dea995918a32eb089bb81f4efc3118a253be9913e18f9212e9c8ca0d104b51379
7
- data.tar.gz: 6516c001722f950ed36647a2145fdb379cf92d15d8b79ff5d8c64b806981ecbe76cb34182d5bf937cb0be479bc4b93d67f3e616936353b0c2c8c8c522b3eed06
6
+ metadata.gz: 6527a0df8ea7ae365b02f736a15dc89b24d9e00fbee16819d9e0c7a6559979bd57dbf865646172c58440e589fe60bd0c47d5ccbe5a297f508142f0b87a468a24
7
+ data.tar.gz: cc0e619f84b0548a752a9dcc0a36fdb2ec9ab92d7fec303613f0d2d9ce9984b98ea3a8a30a519879957bdbcba586d5092ba61dcb7be424183e631ad597550870
@@ -5,7 +5,7 @@
5
5
  <%= csrf_meta_tags %>
6
6
  <%= csp_meta_tag %>
7
7
 
8
- <%= stylesheet_link_tag "rosette", media: "all" %>
8
+ <%= stylesheet_link_tag "rosette/style", media: "all" %>
9
9
  </head>
10
10
  <body>
11
11
 
@@ -5,6 +5,10 @@ module Rosette
5
5
 
6
6
  isolate_namespace Rosette
7
7
 
8
+ initializer "rosette.assets.precompile" do |app|
9
+ app.config.assets.precompile += ["rosette/style.css"]
10
+ end
11
+
8
12
  config.after_initialize do |app|
9
13
  app.routes.prepend do
10
14
  mount Rosette::Engine, at: "/rosette"
@@ -11,7 +11,7 @@ class Manager
11
11
  end
12
12
 
13
13
  def self.normalize!
14
- I18n::Tasks::CLI.start(["normalize"]) if Rosette.normalize
14
+ I18n::Tasks::CLI.start(["normalize"])
15
15
  end
16
16
 
17
17
  private
@@ -31,14 +31,14 @@ class Manager
31
31
  updated_translations = deep_merge(stored_translations, new_translation)
32
32
  persist(updated_translations)
33
33
 
34
- Manager.normalize!
34
+ Manager.normalize! if Rosette.normalize
35
35
  end
36
36
 
37
37
  def delete
38
38
  updated_translations = delete_translation(stored_translations, @keys)
39
39
  persist(updated_translations)
40
40
 
41
- Manager.normalize!
41
+ Manager.normalize! if Rosette.normalize
42
42
  end
43
43
 
44
44
  def delete_translation(translations, keys)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rosette
4
4
 
5
- VERSION = "0.3.6"
5
+ VERSION = "0.3.8"
6
6
 
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rosette
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandre Platteeuw
@@ -78,7 +78,7 @@ files:
78
78
  - README.md
79
79
  - Rakefile
80
80
  - app/assets/config/rosette_manifest.js
81
- - app/assets/stylesheets/rosette.css
81
+ - app/assets/stylesheets/rosette/style.css
82
82
  - app/controllers/rosette/application_controller.rb
83
83
  - app/controllers/rosette/translations_controller.rb
84
84
  - app/helpers/rosette/application_helper.rb