Skip to content

Commit

Permalink
Bump version, fix specs, clean stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
arielj committed Nov 24, 2021
1 parent 76228cc commit 91d0eb2
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 18 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ If you are using Sprockets, just require the js
If you use Webpacker, add the package also (gem is required for the helper methods) using:

```sh
yarn add arielj/vanilla-nested
yarn add vanilla-nested
```

And then use it in your application.js as:
Expand Down Expand Up @@ -488,10 +488,16 @@ link_to_add_nested(form, :order_items, '#order-items', tag: 'button', tag_attrib
- you can set any valid html attribute accepted by [`content_tag`](https://apidock.com/rails/ActionView/Helpers/TagHelper/content_tag)
> Remember to update both gem and package https://github.com/arielj/vanilla-nested#update
# Version 1.5.0 Changes
#### Added Integration with the `turbo` Gem
The JavaScript part of the gem now plays nicely with the `turbo` gem by initializing the needed events when the `turbo:load` event is fired.
# Version 1.5.1 Changes
#### Yarn/NPM Packages
Node package can be installed using npm or yarn without using the GitHub repo. This improves the size of the bundle and allows version flags.
> Remember to update both gem and package https://github.com/arielj/vanilla-nested#update
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"name": "vanilla-nested",
"version": "1.5.0",
"version": "1.5.1",
"description": "Dynamic nested form for Ruby On Rails",
"main": "app/assets/javascripts/vanilla_nested.js",
"repository": "git@github.com:arielj/vanilla-nested.git",
"author": "Ariel Juodziukynas <arieljuod@gmail.com>",
"license": "MIT",
"private": false,
"prepare": "echo ''",
"files": [
"app/"
]
Expand Down
3 changes: 0 additions & 3 deletions test/VanillaNestedTests/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,9 @@
# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep

# Ignore uploaded files in development.
/storage/*
!/storage/.keep

/public/assets
.byebug_history
Expand Down
1 change: 1 addition & 0 deletions test/VanillaNestedTests/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ gem 'webpacker', '~> 4.0'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
gem 'hotwire-rails'
gem 'turbo-rails', '~> 0.8'

# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.7'
Expand Down
17 changes: 9 additions & 8 deletions test/VanillaNestedTests/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ../..
specs:
vanilla_nested (1.5.0)
vanilla_nested (1.5.1)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -91,7 +91,7 @@ GEM
rails (>= 6.0.0)
stimulus-rails
turbo-rails
i18n (1.8.10)
i18n (1.8.11)
concurrent-ruby (~> 1.0)
jbuilder (2.11.2)
activesupport (>= 5.0.0)
Expand Down Expand Up @@ -175,16 +175,16 @@ GEM
sprockets (4.0.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.2)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets-rails (3.4.1)
actionpack (>= 5.2)
activesupport (>= 5.2)
sprockets (>= 3.0.0)
sqlite3 (1.4.2)
stimulus-rails (0.7.1)
stimulus-rails (0.7.2)
rails (>= 6.0.0)
thor (1.1.0)
tilt (2.0.10)
turbo-rails (7.1.1)
turbo-rails (0.8.3)
rails (>= 6.0.0)
turbolinks (5.2.1)
turbolinks-source (~> 5.2)
Expand All @@ -209,7 +209,7 @@ GEM
websocket-extensions (0.1.5)
xpath (3.2.0)
nokogiri (~> 1.8)
zeitwerk (2.4.2)
zeitwerk (2.5.1)

PLATFORMS
x86_64-linux
Expand All @@ -229,6 +229,7 @@ DEPENDENCIES
spring
spring-watcher-listen (~> 2.0.0)
sqlite3 (~> 1.4)
turbo-rails (~> 0.8)
turbolinks (~> 5)
tzinfo-data
vanilla_nested!
Expand Down
2 changes: 1 addition & 1 deletion test/VanillaNestedTests/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7454,7 +7454,7 @@ validate-npm-package-license@^3.0.1:
spdx-expression-parse "^3.0.0"

"vanilla-nested@file:../..":
version "1.5.0"
version "1.5.1"

vary@~1.1.2:
version "1.1.2"
Expand Down
2 changes: 1 addition & 1 deletion vanilla_nested.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'vanilla_nested'
s.version = '1.5.0'
s.version = '1.5.1'
s.authors = ['Ariel Juodziukynas <arieljuod@gmail.com>']
s.email = 'arieljuod@gmail.com'
s.date = '2019-04-10'
Expand Down

0 comments on commit 91d0eb2

Please sign in to comment.