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 +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +2 -2
- data/hanami-view.gemspec +1 -1
- data/lib/hanami/view/rendering.rb +1 -1
- data/lib/hanami/view/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9d9b96f95c854ea1e077fa9eba2f0a12231a17a
|
4
|
+
data.tar.gz: 3765632751a65ae3796b713fa5ba18513c602ef9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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)
|
data/lib/hanami/view/version.rb
CHANGED
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.
|
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:
|
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:
|
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:
|
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:
|
150
|
+
version: 1.3.1
|
151
151
|
requirements: []
|
152
152
|
rubyforge_project:
|
153
|
-
rubygems_version: 2.6.
|
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
|