trestle-mobility 1.1.1 → 1.2.0

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
  SHA256:
3
- metadata.gz: cc2569edf0471dc159cb52143e1da86af8b3b3fa260a9d5fe611390cab8ddce1
4
- data.tar.gz: 95fd2a759d8988e2b18aaedda74553aac38d6d396ff13638d830e5dbda3b8b4f
3
+ metadata.gz: a1d5aa705c867a39c105fcdc6e621d783f6485d40347ca6c62ebdbe5b9cd0fe7
4
+ data.tar.gz: 958dfef164ef8b039adaa59e347644f84bdb4c341db3b6aa41a5d98381612177
5
5
  SHA512:
6
- metadata.gz: 729f35178c388ffaec7dcea6db28497f55630dbca306a437d1adf66a08ba0651747b60f2e2e5fdafbcf8e8622f5af88136c25faab7e69614bff672bbc3561298
7
- data.tar.gz: 8fcbd78f6e6d7c68ddbad9fde4751af8f5bf97da79dc34eebc24c949428b293c1a1272802dd43c2e676944d9960e57090a7b791ea09e5a1823371afe52eefb4e
6
+ metadata.gz: ad09d055e86c09e63e1b29a13e787757afd0247b99f2c5c74257c7823b5dbbbf5b2540fa3d5287011d04772c584c82d3dd7a940e0ba671273b934e2c60550e00
7
+ data.tar.gz: 40636a3d7d8763c587e04d852e83d0cb786bba4eb2757131efae349a9564d26f9446bd2d311d82636dadb67ce73b9af3e4a4a44e9c1afc2c2e9be9c0f953f258
data/CHANGELOG.md ADDED
@@ -0,0 +1,14 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [1.2.0] - 2019-08-14
10
+ ### Added
11
+ - Start documenting changes
12
+
13
+ ### Changed
14
+ - Support nested forms ([#3](https://github.com/richardvenneman/trestle-mobility/pull/3))
data/README.md CHANGED
@@ -24,7 +24,7 @@ gem 'trestle-mobility'
24
24
 
25
25
  Run `bundle install`, and then run the install generator to set up configuration options.
26
26
 
27
- $ rails generate trestle:auth:install
27
+ $ rails generate trestle:mobility:install
28
28
 
29
29
  ## Usage
30
30
 
@@ -13,8 +13,8 @@
13
13
  <% locales.each do |locale| %>
14
14
  <%=
15
15
  content_tag(:div, "#{field_name.to_s.humanize} (#{locale.upcase})", { class: "form-control mobility-checkbox mobility-field#{locale == selected ? '' : ' hidden'}", data: { locale: locale } }) do
16
- form.raw_check_box("#{field_name}_#{locale}", { class: "mobility-checkbox__input" }, "1", "0") +
17
- form.label("#{field_name}_#{locale}", "#{label} (#{locale.upcase})", class: "mobility-checkbox__label")
16
+ builder.raw_check_box("#{field_name}_#{locale}", { class: "mobility-checkbox__input" }, "1", "0") +
17
+ builder.label("#{field_name}_#{locale}", "#{label} (#{locale.upcase})", class: "mobility-checkbox__label")
18
18
  end
19
19
  %>
20
20
  <% end %>
@@ -10,7 +10,7 @@
10
10
  </ul>
11
11
  <% locales.each do |locale, index| %>
12
12
  <%=
13
- form.raw_text_area(
13
+ builder.raw_text_area(
14
14
  "#{field_name}_#{locale}",
15
15
  options.merge(
16
16
  class: "form-control mobility-field#{locale == selected ? '' : ' hidden'}",
@@ -12,7 +12,7 @@
12
12
  </div>
13
13
  <% locales.each do |locale| %>
14
14
  <%=
15
- form.raw_text_field(
15
+ builder.raw_text_field(
16
16
  "#{field_name}_#{locale}",
17
17
  options.merge(
18
18
  class: "form-control mobility-field#{locale == selected ? '' : ' hidden'}",
@@ -9,6 +9,7 @@ module Trestle
9
9
 
10
10
  @template.render partial: "trestle/mobility/check_box",
11
11
  locals: {
12
+ builder: builder,
12
13
  field_name: name,
13
14
  label: label,
14
15
  locales: locales,
@@ -14,6 +14,7 @@ module Trestle
14
14
 
15
15
  @template.render partial: "trestle/mobility/text_area",
16
16
  locals: {
17
+ builder: builder,
17
18
  options: options,
18
19
  field_name: name,
19
20
  label: label,
@@ -10,6 +10,7 @@ module Trestle
10
10
 
11
11
  @template.render partial: "trestle/mobility/text_field",
12
12
  locals: {
13
+ builder: builder,
13
14
  options: options,
14
15
  field_name: name,
15
16
  label: label,
@@ -1,5 +1,5 @@
1
1
  module Trestle
2
2
  module Mobility
3
- VERSION = "1.1.1"
3
+ VERSION = "1.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trestle-mobility
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Venneman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-20 00:00:00.000000000 Z
11
+ date: 2019-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: emoji_flag
@@ -89,6 +89,7 @@ extra_rdoc_files: []
89
89
  files:
90
90
  - ".gitignore"
91
91
  - ".travis.yml"
92
+ - CHANGELOG.md
92
93
  - Gemfile
93
94
  - LICENSE.md
94
95
  - README.md