cells-rails 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: 4702ce8ee285649f10ba8b66f422ef18de70de17
4
- data.tar.gz: 4cf37c137a196505c9ce67e309bcd3667a2b20a7
3
+ metadata.gz: 06755909950f09305a6b61a0760fe0c9e6730a92
4
+ data.tar.gz: 484680613d96857e23ef830b0e61d3d44ef98c69
5
5
  SHA512:
6
- metadata.gz: 4607ac2a54c333168cd171470fe8c672421e78b3221a7c597b7380af86ee63ec7e0b854c43549451eb2d3a4cf0790ed6fce8c162e2b81666d4ed7dafb87dc7d5
7
- data.tar.gz: e3e3d5d3ec884b042d9841cffe05f2e544336d898ce5aad826be10783747c42219b0bbce13fa51ea02d3711b3720933d8d99679112e94b2c37de5574f8705a0f
6
+ metadata.gz: 9e8abbf54dd2ddca4492c6fe2a494ca0f6516006d929b1f742441b691b7b06ad1d0037b4cf52fe4f55d7cf1f3eafd64e1ad90f6402cca91f254b9b836f7eb7d0
7
+ data.tar.gz: 1909070534736ebc2ffaf378fa6054d09c16fc71b4521a0d8252632f516cc777b3e574907ed65a35ea89b7b34723431f42ed1df40519f49db168ae9d277cceec
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.0.4
2
+
3
+ * Fix `Cell::Translation`. Thanks to @zavan!
4
+
1
5
  ## 0.0.3
2
6
 
3
7
  * `Cell::Helper::AssetHelper` is now always included and fixes https://github.com/apotonick/cells/issues/214 (hopefully).
data/README.md CHANGED
@@ -4,16 +4,16 @@
4
4
 
5
5
  ## Rails Features
6
6
 
7
- * html_safe
8
- * controller in context
9
- * asset helpers Cell::Helper::AssetHelper automatically included
7
+ * All asset-related helpers are now simply delegated to the global asset helper instance. This happens by automatically including `Cell::Helper::AssetHelper` into `ViewModel`.
8
+ * The global controller is passed to all cells via the context object. It's available via `ViewModel#controller`.
9
+ * `ViewModel#call` and `Collection#call` are automatically `html_safe`ed.
10
10
 
11
11
 
12
12
  ## Installation
13
13
 
14
14
  Note that `cells-rails` is designed to work with Cells >= 4.1.
15
15
 
16
- Add this line to your application's Gemfile:
16
+ Add this line to your application's Gemfile and keep it real:
17
17
 
18
18
  ```ruby
19
19
  gem 'cells-rails'
@@ -1,4 +1,3 @@
1
- # NOTE: this will soon be moved to cells-rails.
2
1
  module Cell::Translation
3
2
  def self.included(includer)
4
3
  super
@@ -14,6 +13,6 @@ private
14
13
  # If you override this to change this path, please report it on the trailblazer/chat gitter channel,
15
14
  # so we can find out best practices.
16
15
  def translation_path
17
- self.class.translation_path or controller_path.gsub("/", ".")
16
+ self.class.translation_path or self.class.controller_path.gsub("/", ".")
18
17
  end
19
- end
18
+ end
data/lib/cells/rails.rb CHANGED
@@ -6,5 +6,6 @@ require "cell/rails"
6
6
  require "cell/railtie"
7
7
 
8
8
  module Cell
9
+ autoload :Translation, "cell/translation"
9
10
  autoload :TestCase, "cell/test_case"
10
11
  end
@@ -1,5 +1,5 @@
1
1
  module Cells
2
2
  module Rails
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cells-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-02 00:00:00.000000000 Z
11
+ date: 2016-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cells