hanami-view 0.8.0 → 1.0.0.beta1

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: c5cc4a544a3b4ef5ba8146646089888e6b4e42d8
4
- data.tar.gz: 9659178aadd6af932109df3a6e6d82cf39b28898
3
+ metadata.gz: c9d9b96f95c854ea1e077fa9eba2f0a12231a17a
4
+ data.tar.gz: 3765632751a65ae3796b713fa5ba18513c602ef9
5
5
  SHA512:
6
- metadata.gz: 53a0b197c3d9bee7dfd6f3119edd933ca1ddc2e05bf1fb3415a566fc822ca5634dca243089a463383868cdc26b12c37363c67a1ffc1418ece543698a3c0786cd
7
- data.tar.gz: c97a98d46805f637c3785355078009e8bf23b3a8732202bb5e142d587569d1c3e15ce1c01a65125e18e7c0691af9d3cb9c1f7f16fe64e8db35e72a980e7a29c4
6
+ metadata.gz: e6eb1ffb5750b24e53ad193372b96be6c3369d06d7d0320aa575e95ecad959c070c0aa70ce8821b84f0ccf7a7125daa8a8de77e3e25285c77efd663e1d99eb75
7
+ data.tar.gz: 27335f0f15b60e3c3460cb60825ff2059c1a2a26b464f9d6847e20a13d592d45ca6236e70569204a94c1d7898635e74371851442adc2974b7467753885ff65a7
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Hanami::View
2
2
  View layer for Hanami
3
3
 
4
+ ## v1.0.0.beta1 - 2017-02-14
5
+ ### Added
6
+ - [Luca Guidi] Official support for Ruby: MRI 2.4
7
+ - [Vladimir Dralo] Allow `View#initialize` to splat keyword arguments
8
+
4
9
  ## v0.8.0 - 2016-11-15
5
10
  ### Fixed
6
11
  - [Luca Guidi] Ensure `Rendering::NullLocal` to work with HAML templates
data/README.md CHANGED
@@ -94,7 +94,7 @@ Hanami::View.load!
94
94
 
95
95
  path = Hanami::View.configuration.root.join('articles/index.html.erb')
96
96
  template = Hanami::View::Template.new(path)
97
- articles = ArticleRepository.all
97
+ articles = ArticleRepository.new.all
98
98
 
99
99
  Articles::Index.new(template, articles: articles).render
100
100
  ```
@@ -121,7 +121,7 @@ end
121
121
 
122
122
  Hanami::View.load!
123
123
 
124
- articles = ArticleRepository.all
124
+ articles = ArticleRepository.new.all
125
125
 
126
126
  Articles::Index.render(format: :html, articles: articles)
127
127
  # => This will use Articles::Index
data/hanami-view.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.required_ruby_version = '>= 2.3.0'
21
21
 
22
22
  spec.add_runtime_dependency 'tilt', '~> 2.0', '>= 2.0.1'
23
- spec.add_runtime_dependency 'hanami-utils', '~> 0.9'
23
+ spec.add_runtime_dependency 'hanami-utils', '~> 1.0.0.beta1'
24
24
 
25
25
  spec.add_development_dependency 'bundler', '~> 1.5'
26
26
  spec.add_development_dependency 'minitest', '~> 5'
@@ -36,7 +36,7 @@ module Hanami
36
36
  #
37
37
  # template = Hanami::View::Template.new('index.html.erb')
38
38
  # view = IndexView.new(template, {article: article})
39
- def initialize(template, locals)
39
+ def initialize(template, **locals)
40
40
  @template = template
41
41
  @locals = locals
42
42
  @scope = Scope.new(self, @locals)
@@ -3,6 +3,6 @@ module Hanami
3
3
  # Defines the version
4
4
  #
5
5
  # @since 0.1.0
6
- VERSION = '0.8.0'.freeze
6
+ VERSION = '1.0.0.beta1'.freeze
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-view
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 1.0.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Guidi
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-11-15 00:00:00.000000000 Z
13
+ date: 2017-02-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: tilt
@@ -38,14 +38,14 @@ dependencies:
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '0.9'
41
+ version: 1.0.0.beta1
42
42
  type: :runtime
43
43
  prerelease: false
44
44
  version_requirements: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '0.9'
48
+ version: 1.0.0.beta1
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: bundler
51
51
  requirement: !ruby/object:Gem::Requirement
@@ -145,12 +145,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
145
145
  version: 2.3.0
146
146
  required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  requirements:
148
- - - ">="
148
+ - - ">"
149
149
  - !ruby/object:Gem::Version
150
- version: '0'
150
+ version: 1.3.1
151
151
  requirements: []
152
152
  rubyforge_project:
153
- rubygems_version: 2.6.4
153
+ rubygems_version: 2.6.8
154
154
  signing_key:
155
155
  specification_version: 4
156
156
  summary: View layer for Hanami, with a separation between views and templates