organism-ui 0.2.13 → 0.2.14
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 +4 -4
- data/lib/ui/actionable.rb +7 -5
- data/lib/ui/list.rb +4 -0
- data/lib/ui/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 93f273285d90a758e4f76dc2edf5c9c1024868f65750f86d9a4d21a0be03e2b3
|
|
4
|
+
data.tar.gz: 8024fe03394aaad8b44904b09a5dd6c38f9552e42b01d9c2fdcf44a9352433c8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 25f414159a5bbfd726a9a7da8baeab7d2082b8294e897c4e80e870149a9872e3faa0172f65024e1513b3fb3a74e1b244a8a6ceef344e9a69f661728ab31c48be
|
|
7
|
+
data.tar.gz: 7ae976e18d782c1b025bd1ad24f64b6e4cddc43ca0b735a6cae3a11e57bfbd1d92e5d4e8cf5b4cb8394e14f2e006c8b949f2dfdfa3000e5f9d7e1101bf2832e8
|
data/lib/ui/actionable.rb
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
module Ui
|
|
2
2
|
module Actionable
|
|
3
3
|
def actions
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
content_tag(:nav, class: 'ui-actions', role: 'navigation') do
|
|
5
|
+
render_group(
|
|
6
|
+
options.fetch(:actions, Array.new).map do |action|
|
|
7
|
+
action.call(model)
|
|
8
|
+
end
|
|
9
|
+
)
|
|
10
|
+
end
|
|
9
11
|
end
|
|
10
12
|
|
|
11
13
|
def actions_length
|
data/lib/ui/list.rb
CHANGED
data/lib/ui/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: organism-ui
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nolan Tait
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-03-
|
|
11
|
+
date: 2021-03-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|