breezy 0.16.0 → 0.17.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b193311779ccb9dac50e6ee50b63ee9e9570229313f4833bf774f8cd14ba3407
4
- data.tar.gz: 1e96ee5494262706b10bf7a17b33d252093c2df0fe242c79ee75be667454bda2
3
+ metadata.gz: d7330701e3bc71f9bd97e83874ff1eb427a8ec494a7ef24c81eccda4c0185ea2
4
+ data.tar.gz: 8bf94cc1111dddfe77d72179a3a3ae7b830e509ef9674aeccc0fd0feb56415e9
5
5
  SHA512:
6
- metadata.gz: 325d8ac7365ff80bc9ac1f8e68e9d54b6166270b5bbda27ea5901f505b47db8f756d2ec4664ab327f3fc90b6669f915fd6fdd41d8c2e73bcd617633d460b961d
7
- data.tar.gz: e09647226d582ea7171e40dd4596d1ab264b42944d21d72680fc704b5e15928a42ad921a9af23025e541f46602afaa749008069dc03378285ddd4e2b6519120b
6
+ metadata.gz: c749976efa29d40abba76909bdac819e297a03cf42ad6e1ad3b3f4bb3456dd325be9d699602c718e0c4f2db5782b15a9c9fc3d0878993126619ce4ba8b7a36b1
7
+ data.tar.gz: 29243408e2b5a451343d95f98a8e4da3f2393bfd3990abff661c908853f4262f9748051bbf0814f6f4b914f8071fe24b39251865b67b74bcc5229fd7fff5776f
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
2
  import {mapStateToProps, mapDispatchToProps} from '@jho406/breezy'
3
3
  import {connect} from 'react-redux'
4
- import RailsTag from '@jho406/breezy/dist/RailsTag'
4
+ import RailsTag from '@jho406/breezy/components/RailsTag'
5
5
  import * as applicationActionCreators from 'javascript/packs/action_creators'
6
6
 
7
7
  class <%= plural_table_name.camelize %>Edit extends React.Component {
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
2
  import {mapStateToProps, mapDispatchToProps} from '@jho406/breezy'
3
3
  import {connect} from 'react-redux'
4
- import RailsTag from '@jho406/breezy/dist/RailsTag'
4
+ import RailsTag from '@jho406/breezy/components/RailsTag'
5
5
  import * as applicationActionCreators from 'javascript/packs/action_creators'
6
6
 
7
7
  class <%= plural_table_name.camelize %>New extends React.Component {
@@ -6,8 +6,8 @@ import { Provider } from 'react-redux'
6
6
  import { render } from 'react-dom'
7
7
  import { createBrowserHistory, createMemoryHistory } from 'history'
8
8
  import { start } from '@jho406/breezy'
9
- import Nav from '@jho406/breezy/dist/NavComponent'
10
- import ujsHandlers from '@jho406/breezy/dist/utils/ujs'
9
+ import Nav from '@jho406/breezy/components/NavComponent'
10
+ import { ujsHandlers } from '@jho406/breezy/utils'
11
11
  import { persistStore, persistReducer } from 'redux-persist'
12
12
  import storage from 'redux-persist/lib/storage'
13
13
  import { applicationRootReducer, applicationPagesReducer } from './reducer'
@@ -1,4 +1,4 @@
1
- import { visit, remote } from '@jho406/breezy/dist/action_creators'
1
+ import { visit, remote } from '@jho406/breezy/action_creators'
2
2
 
3
3
  export function buildVisitAndRemote(ref, store) {
4
4
  const appRemote = (...args) => {
@@ -56,10 +56,13 @@ say "Adding required member methods to ApplicationRecord"
56
56
  add_member_methods
57
57
 
58
58
  say "Installing React, Redux, and Breezy"
59
- run "yarn add babel-plugin-module-resolver babel-preset-react history@\"^4\" html-react-parser@\"^0.13\" prop-types react-redux redux-thunk redux redux-persist reduce-reducers react react-dom immer @jho406/breezy --save"
59
+ run "yarn add babel-plugin-module-resolver history@\"^4\" html-react-parser@\"^0.13\" react-redux redux-thunk redux redux-persist reduce-reducers immer @jho406/breezy --save"
60
60
 
61
61
  say "Updating webpack config to include .jsx file extension and resolved_paths"
62
62
  insert_into_file Webpacker.config.config_path, " - .jsx\n", after: /extensions:\n/
63
+ # For newer webpacker
64
+ insert_into_file Webpacker.config.config_path, "'app/views', 'app/components'", after: /additional_paths: \[/
65
+ # For older webpacker
63
66
  insert_into_file Webpacker.config.config_path, "'app/views', 'app/components'", after: /resolved_paths: \[/
64
67
 
65
68
  say "Webpacker now supports breezy.js 🎉", :green
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: breezy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johny Ho
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-25 00:00:00.000000000 Z
11
+ date: 2021-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.16.0
33
+ version: 0.17.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.16.0
40
+ version: 0.17.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: webpacker
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -210,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  - !ruby/object:Gem::Version
211
211
  version: '0'
212
212
  requirements: []
213
- rubygems_version: 3.0.3
213
+ rubygems_version: 3.1.2
214
214
  signing_key:
215
215
  specification_version: 4
216
216
  summary: Rails integration for BreezyJS