-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hanami 2 #199
Closed
Closed
Hanami 2 #199
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
bdf9560
Make the specs to build again
jodosha dddcaec
Move `Hanami::Helpers::RoutingHelper` to `hanami` as `Hanami::Helpers…
jodosha 38c940f
Port `Hanami::Helpers::NumberFormattingHelper` to Hanami 2
jodosha d78bf5e
Removed empty file
jodosha 88ef4cb
`Hanami::Helpers::NumberFormattingHelper` API docs and minor enhancem…
jodosha b712e0f
Only include helpers that have been ported to Hanami 2
jodosha 2606095
Temporarily disable integration tests
jodosha 6664ea2
Make `Hanami::Helpers::NumberFormattingHelper#format_number` a public…
jodosha ac8c477
Partially port `Hanami::Helpers::HtmlHelper` to 2.0
jodosha 16d96b8
First draft of new implementation of HTMLBuilder
jodosha 0324caa
Done with new implementation of `Hanami::Helpers::HtmlHelper::HtmlBui…
jodosha 4625ccc
Remove unnecessary code under `Hanami::Helpers::HtmlHelper` namespace
jodosha 537c6cb
Ported `Hanami::Helpers::LinkToHelper`
jodosha 97ed532
Fix Rubocop. Remove file committed accidentally.
jodosha 54a34a0
First draft to port `Hanami::Helpers::FormHelper` to Hanami 2
jodosha df40ce1
More work on Form builder
jodosha 83ce540
Moar work on form builder
jodosha e4c4755
Even moar work on form builder
jodosha b6bdaea
Form helper, ya know..
jodosha 71609a6
Yet more work on form builder
jodosha 9fb4865
Still working on form helper
jodosha d94e1cf
Small work on form builder
jodosha 60c3ee0
Ported more form helper methods
jodosha 185960b
Remove no longer necessary class
jodosha acb79b1
Use `dry-inflector` for form label humanization
jodosha dc8575a
First pass of form builder cleanup
jodosha c4c14ce
Second pass of form helper cleanup
jodosha 82bd172
Optimize the default case of HTML input `value` calculation
jodosha e9ebf71
`Hanami::Helpers::FormHelper::Values` remove from `case` statement `H…
jodosha 50f2d47
Form builder API docs
jodosha fd542af
Include all the helpers when including `Hanami::Helpers`
jodosha 2e5d7a8
CHANGELOG
jodosha 72c38f1
Move `Hanami::Helpers::FormHelper` into `hanami`
jodosha c9861d7
`Hanami::Helpers::HtmlHelper::HtmlBuilder#clear`
jodosha 03219f4
Point to the right branch for dry-rb/dry-core
jodosha d2b828c
Rubocop
jodosha File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# frozen_string_literal: true | ||
|
||
module Hanami | ||
module Helpers | ||
# @api public | ||
# @since 2.0.0 | ||
class Error < ::StandardError | ||
end | ||
|
||
# @api public | ||
# @since 2.0.0 | ||
class CoercionError < Error | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# frozen_string_literal: true | ||
|
||
require "temple/utils" | ||
require "temple/html/safe" | ||
require "escape_utils" | ||
|
||
module Hanami | ||
module Helpers | ||
module Escape | ||
def self.call(string) | ||
Temple::Utils.escape_html_safe(string) | ||
end | ||
|
||
def self.safe_string(string) | ||
Temple::HTML::SafeString.new(string.to_s) | ||
end | ||
|
||
def self.uri(string) | ||
::EscapeUtils.escape_uri(string) | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was this intentional?