rosette 0.3.4 → 0.3.5

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: 7a6d97a97a755feb6b3d7a69bb1059ca61a4d13775feee044bd984bd2d676c9a
4
- data.tar.gz: ac18c0186280744399171f29f64a2f63e36b027c9e2147227dfac4690d1387a7
3
+ metadata.gz: 2f5e9de641beaf943b18722eed062c46382496f9f072c1e5644b9305c5a6f076
4
+ data.tar.gz: 3613ed401f7300bcba2462c30622906bc1906d9d181cf0eb631b81b7fb8d7a05
5
5
  SHA512:
6
- metadata.gz: a3fc87c9790ff2227446db2c29b91b238b7b9de9c25a172e98afc4663f291977301dc0dd66d70f35ceff0eee0adc5a6e14864ec1b7dca1e5a0009951308b6065
7
- data.tar.gz: 8f5fa5333bde31e318d9d1da5f3cd73889073d0210c08185c0380caa909aec93c00d390be151274ce38c6a56e81f321e24c7b777c8cbbb9076ab828c582a3dd0
6
+ metadata.gz: 380428feedbdc69a2454f891d1092be6e4246d29baee674693668b5fe76bf942d5c88ad6d3392204fc747e4524be4a401fa42d1a9c67bfb156f5c53cd6152783
7
+ data.tar.gz: 5600c9057b1f8bb73acf19d1e37919d6c36b6a45df493f23caa1dd1d636bf7db93f1c74fa3b87319264579b8d6f286ffc2c1c35a78ae61e3712a51eef8bd2676
data/README.md CHANGED
@@ -23,6 +23,14 @@ Make sure your app raises error for missing translations in development:
23
23
  config.i18n.raise_on_missing_translations = true
24
24
  ```
25
25
 
26
+ and that you explicitly set the available locales:
27
+
28
+ ```ruby
29
+ # config/application.rb
30
+
31
+ config.i18n.available_locales = [:fr, :en]
32
+ ```
33
+
26
34
  Whether you currently use or are interested in starting to use [i18n-task to normalize](https://github.com/glebm/i18n-tasks#normalize-data) your locales files, add this initializer:
27
35
 
28
36
  ```ruby
@@ -5,7 +5,7 @@
5
5
  <%= csrf_meta_tags %>
6
6
  <%= csp_meta_tag %>
7
7
 
8
- <%= stylesheet_link_tag "rosette/application", 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 += ["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"
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rosette
4
4
 
5
- VERSION = "0.3.4"
5
+ VERSION = "0.3.5"
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.4
4
+ version: 0.3.5
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/application.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