Skip to content

Commit 22d5bb7

Browse files
authored
Merge pull request #1274 from square/ray/upgrade-ruby-mdl
Upgrade validate-documentation.yml deps; ruby 3.4.5, mdl 0.13.0
2 parents e1eb35c + b15c50a commit 22d5bb7

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/validate-documentation.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ jobs:
3434
runs-on: ubuntu-latest
3535
steps:
3636
- uses: actions/checkout@v3
37-
- name: Set up Ruby 2.7
37+
- name: Set up Ruby 3.4.5
3838
uses: ruby/setup-ruby@v1
3939
with:
40-
ruby-version: 2.7
40+
ruby-version: 3.4.5
4141
- name: Install dependencies
42-
run: gem install mdl -v 0.12.0
42+
run: gem install mdl -v 0.13.0
4343
- name: Lint docs
4444
run: ./lint_docs.sh

docs/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ architectural differences which we can see briefly in the following table:
2424
| **Modularity** | `Component` | `Module`s for code organization, but not 'composable' in the same way. | A `Workflow` is analogous to React's `Component` |
2525
| **State** | Each `Component` has a `state` property that is read directly and updated via a `setState` method. | State is called `Model` in Elm. | `Workflow`s have an associated state type. The state can only be updated when the props change, or with a `WorkflowAction`. |
2626
| **Views** | `Component`s have a `render` method that returns a tree of elements. | Elm applications have a `view` function that returns a tree of elements. | Since workflows are not tied to any particular UI view layer, they can have an arbitrary rendering type. The `render()` method returns this type. |
27-
| **Injected Dependencies** | React allows parent components to pass "props" down to their children. | N/A | In Swift, `Workflow`s are often structs that need to be initialized with their dependencies and configuration data from their parent. In Kotlin, they have a separate type parameter (`PropsT`) that is always passed down from the parent. `Workflow` instances can also inject dependencies, and play nicely with dependency injection frameworks.
27+
| **Injected Dependencies** | React allows parent components to pass "props" down to their children. | N/A | In Swift, `Workflow`s are often structs that need to be initialized with their dependencies and configuration data from their parent. In Kotlin, they have a separate type parameter (`PropsT`) that is always passed down from the parent. `Workflow` instances can also inject dependencies, and play nicely with dependency injection frameworks. |
2828
| **Composability** | `Component`s are composed of other `Component`s. | N/A | `Workflow`s can have children; they control their lifecycle and can choose to incorporate child renderings into their own. |
2929
| **Event Handling** | DOM event listeners are hooked up to functions on the `Component`. | The `update` function takes a `Msg` to modify state based on events. | `action` can be sent to the `Sink` to update `State`. |
3030

0 commit comments

Comments
 (0)