stimulus_reflex 2.2.3 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of stimulus_reflex might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a7933a5f33cb6c9986a8c3f0ac36817654fd5d53643056604441e04a247de33
4
- data.tar.gz: e6cd16e9664361211ca7d2fe7024ebc297271fbad8329db991aa84fa4df3003b
3
+ metadata.gz: a0e64cd9b96c4151f2108d44faae85646eb53244ed7b4a9ea8ae9bbdca61020b
4
+ data.tar.gz: 65c3cccf8bce301b7ea4220f22c50d24b3d993b64e5ddd6a0a9789cb32d117cf
5
5
  SHA512:
6
- metadata.gz: e3e700194f46dfcfeffd4a049cf7af83880ca873888cd236422191383eceafd6986c372f83e086bfe3e496076b5d44477eba6f788456c02c4e305838739b3e1c
7
- data.tar.gz: 4534f5d62f1def3a1ad51fa4174cb074234a1f2c81608c750cccfcdcece037e4096ae15e97894ca6b87a9d72cd1ec012eb67877eb5569be8592113a568bf9fae
6
+ metadata.gz: 9f78c4daf8aab4e3cb6965358485807c0cd80b60034abddf1a7c66bb0b711e7eeaecab84f408186bc037dae1d995c53f63a5d1057404d3a7ce7f60a2b47a50e5
7
+ data.tar.gz: '09c678070a0f5e901abe9d9bd7deacbfe96bc2c05e7cfc6ee00a2244e22bd917348cb331db82ae518e922d408d56a4c630642bec6ab15fb88466310520fbd8c3'
data/Gemfile.lock CHANGED
@@ -1,11 +1,11 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stimulus_reflex (2.2.3)
5
- cable_ready (>= 4.0)
4
+ stimulus_reflex (3.0.0)
5
+ cable_ready (>= 4.1)
6
6
  nokogiri
7
7
  rack
8
- rails (>= 5.2)
8
+ rails (>= 6.0)
9
9
 
10
10
  GEM
11
11
  remote: https://rubygems.org/
@@ -67,7 +67,7 @@ GEM
67
67
  zeitwerk (~> 2.2)
68
68
  ast (2.4.0)
69
69
  builder (3.2.4)
70
- cable_ready (4.0.9)
70
+ cable_ready (4.1.0)
71
71
  rails (>= 5.2)
72
72
  coderay (1.1.2)
73
73
  concurrent-ruby (1.1.6)
@@ -78,7 +78,7 @@ GEM
78
78
  i18n (1.8.2)
79
79
  concurrent-ruby (~> 1.0)
80
80
  jaro_winkler (1.5.4)
81
- loofah (2.4.0)
81
+ loofah (2.5.0)
82
82
  crass (~> 1.0.2)
83
83
  nokogiri (>= 1.5.9)
84
84
  mail (2.7.1)
@@ -94,7 +94,7 @@ GEM
94
94
  nokogiri (1.10.9)
95
95
  mini_portile2 (~> 2.4.0)
96
96
  parallel (1.19.1)
97
- parser (2.7.0.5)
97
+ parser (2.7.1.0)
98
98
  ast (~> 2.4.0)
99
99
  pry (0.12.2)
100
100
  coderay (~> 1.1.0)
@@ -132,11 +132,13 @@ GEM
132
132
  thor (>= 0.20.3, < 2.0)
133
133
  rainbow (3.0.0)
134
134
  rake (13.0.1)
135
- rubocop (0.79.0)
135
+ rexml (3.2.4)
136
+ rubocop (0.80.1)
136
137
  jaro_winkler (~> 1.5.1)
137
138
  parallel (~> 1.10)
138
139
  parser (>= 2.7.0.1)
139
140
  rainbow (>= 2.2.2, < 4.0)
141
+ rexml
140
142
  ruby-progressbar (~> 1.7)
141
143
  unicode-display_width (>= 1.4.0, < 1.7)
142
144
  rubocop-performance (1.5.2)
@@ -149,14 +151,14 @@ GEM
149
151
  actionpack (>= 4.0)
150
152
  activesupport (>= 4.0)
151
153
  sprockets (>= 3.0.0)
152
- standard (0.2.2)
153
- rubocop (~> 0.79.0)
154
- rubocop-performance (~> 1.5.1)
154
+ standard (0.2.3)
155
+ rubocop (~> 0.80.1)
156
+ rubocop-performance (~> 1.5.2)
155
157
  standardrb (1.0.0)
156
158
  standard
157
159
  thor (1.0.1)
158
160
  thread_safe (0.3.6)
159
- tzinfo (1.2.6)
161
+ tzinfo (1.2.7)
160
162
  thread_safe (~> 0.1)
161
163
  unicode-display_width (1.6.1)
162
164
  websocket-driver (0.7.1)
data/README.md CHANGED
@@ -1,12 +1,50 @@
1
- [![Lines of Code](http://img.shields.io/badge/lines_of_code-657-brightgreen.svg?style=flat)](http://blog.codinghorror.com/the-best-code-is-no-code-at-all/)
2
- [![Maintainability](https://api.codeclimate.com/v1/badges/2b24fdbd1ae37a24bedb/maintainability)](https://codeclimate.com/github/hopsoft/stimulus_reflex/maintainability)
3
- ![Prettier-Standard](https://github.com/hopsoft/stimulus_reflex/workflows/Prettier-Standard/badge.svg)
4
- ![StandardRB](https://github.com/hopsoft/stimulus_reflex/workflows/StandardRB/badge.svg)
5
- ![Tests](https://github.com/hopsoft/stimulus_reflex/workflows/Tests/badge.svg)
6
-
7
- # StimulusReflex
8
-
9
- **You just discovered an exciting new way to build modern, reactive, real-time apps with Ruby on Rails.**
1
+ <p align="center">
2
+ <img src="assets/stimulus-reflex-logo-with-copy.png" />
3
+ <h1 align="center">Welcome to StimulusReflex 👋</h1>
4
+ <p align="center">
5
+ <img src="https://img.shields.io/gem/v/stimulus_reflex.svg?color=red" />
6
+ <img src="https://img.shields.io/npm/v/stimulus_reflex.svg?color=blue" />
7
+ <a href="https://www.npmjs.com/package/stimulus_reflex">
8
+ <img alt="downloads" src="https://img.shields.io/npm/dm/stimulus_reflex.svg?color=blue" target="_blank" />
9
+ </a>
10
+ <a href="https://github.com/hopsoft/stimulus_reflex/blob/master/LICENSE">
11
+ <img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-brightgreen.svg" target="_blank" />
12
+ </a>
13
+ <a href="http://blog.codinghorror.com/the-best-code-is-no-code-at-all/" target="_blank">
14
+ <img alt="Lines of Code" src="https://img.shields.io/badge/lines_of_code-657-brightgreen.svg?style=flat" />
15
+ </a>
16
+ <a href="https://docs.stimulusreflex.com/" target="_blank">
17
+ <img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" />
18
+ </a>
19
+ <br />
20
+ <a href="#badge">
21
+ <img alt="semantic-release" src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg">
22
+ </a>
23
+ <a href="https://github.com/testdouble/standard" target="_blank">
24
+ <img alt="Ruby Code Style" src="https://img.shields.io/badge/Ruby_Code_Style-standard-brightgreen.svg" />
25
+ </a>
26
+ <a href="https://github.com/sheerun/prettier-standard" target="_blank">
27
+ <img alt="JavaScript Code Style" src="https://img.shields.io/badge/JavaScript_Code_Style-prettier_standard-ff69b4.svg" />
28
+ </a>
29
+ <br />
30
+ <a href="https://codeclimate.com/github/hopsoft/stimulus_reflex/maintainability" target="_blank">
31
+ <img alt="Maintainability" src="https://api.codeclimate.com/v1/badges/2b24fdbd1ae37a24bedb/maintainability" />
32
+ </a>
33
+ <a target="_blank" rel="noopener noreferrer" href="https://github.com/hopsoft/stimulus_reflex/workflows/Prettier-Standard/badge.svg">
34
+ <img src="https://github.com/hopsoft/stimulus_reflex/workflows/Prettier-Standard/badge.svg" alt="Prettier-Standard" style="max-width:100%;">
35
+ </a>
36
+ <a target="_blank" rel="noopener noreferrer" href="https://github.com/hopsoft/stimulus_reflex/workflows/StandardRB/badge.svg">
37
+ <img src="https://github.com/hopsoft/stimulus_reflex/workflows/StandardRB/badge.svg" alt="StandardRB" style="max-width:100%;">
38
+ </a>
39
+ <a target="_blank" rel="noopener noreferrer" href="https://github.com/hopsoft/stimulus_reflex/workflows/Tests/badge.svg">
40
+ <img src="https://github.com/hopsoft/stimulus_reflex/workflows/Tests/badge.svg" alt="Tests">
41
+ </a>
42
+ </p>
43
+ </p>
44
+ <br />
45
+
46
+
47
+ ### 🎉 **You just discovered an exciting new way to build modern, reactive, real-time apps with Ruby on Rails.**
10
48
 
11
49
  StimulusReflex eliminates the complexity imposed by full-stack frontend frameworks.
12
50
  And, it's fast.
@@ -24,20 +62,28 @@ It works with seamlessly with the Rails tooling you already know and love.
24
62
 
25
63
  This project strives to live up to the vision outlined in [The Rails Doctrine](https://rubyonrails.org/doctrine/).
26
64
 
27
- ## Docs
65
+ ## 📚 Docs
28
66
 
29
67
  - [Official Documentation](https://docs.stimulusreflex.com)
30
68
 
31
- ## Demos
69
+ ## Demos
32
70
 
33
71
  - http://expo.stimulusreflex.com
34
72
 
35
- ## Community
73
+ ## 💙 Community
36
74
 
37
75
  - [Discourse](https://stimulus-reflex.discourse.group) - long form async communication
38
76
  - [Discord](https://discord.gg/XveN625) - chat root
39
77
 
40
- ## Contributing
78
+ ## 🚀 Install
79
+
80
+ ```sh
81
+ bundle add stimulus_reflex && yarn add stimulus_reflex
82
+ ```
83
+
84
+ Checkout the [documentation](https://docs.stimulusreflex.com) to continue!
85
+
86
+ ## 🙏 Contributing
41
87
 
42
88
  ### Code of Conduct
43
89
 
@@ -52,7 +98,7 @@ Please run `./bin/standardize` prior to submitting pull requests.
52
98
 
53
99
  View the [wiki](https://github.com/hopsoft/stimulus_reflex/wiki/Editor-Configuration) to see recommendations for configuring your editor to work best with the project.
54
100
 
55
- ### Releasing
101
+ ## 📦 Releasing
56
102
 
57
103
  1. Bump version number at `lib/stimulus_reflex/version.rb`
58
104
  1. Run `rake build`
@@ -60,7 +106,8 @@ View the [wiki](https://github.com/hopsoft/stimulus_reflex/wiki/Editor-Configura
60
106
  1. Change directories `cd ./javascript`
61
107
  1. Run `yarn publish` - NOTE: this will throw a fatal error because the tag already exists but the package will still publish
62
108
 
63
- ## License
109
+
110
+ ## 📝 License
64
111
 
65
112
  StimulusReflex is released under the [MIT License](LICENSE.txt).
66
113
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StimulusReflex
4
- VERSION = "2.2.3"
4
+ VERSION = "3.0.0"
5
5
  end
@@ -27,6 +27,14 @@ namespace :stimulus_reflex do
27
27
  lines << "StimulusReflex.initialize(application)\n" unless initialize_line
28
28
  File.open(filepath, "w") { |f| f.write lines.join }
29
29
 
30
+ filepath = Rails.root.join("config/environments/development.rb")
31
+ lines = File.open(filepath, "r") { |f| f.readlines }
32
+ unless lines.find { |line| line.include?("config.session_store") }
33
+ lines.insert 3, " config.session_store :cache_store\n\n"
34
+ File.open(filepath, "w") { |f| f.write lines.join }
35
+ end
36
+
30
37
  system "bundle exec rails generate stimulus_reflex example"
38
+ system "rails dev:cache" unless Rails.root.join("tmp", "caching-dev.txt").exist?
31
39
  end
32
40
  end
@@ -20,8 +20,8 @@ Gem::Specification.new do |gem|
20
20
 
21
21
  gem.add_dependency "rack"
22
22
  gem.add_dependency "nokogiri"
23
- gem.add_dependency "rails", ">= 5.2"
24
- gem.add_dependency "cable_ready", ">= 4.0"
23
+ gem.add_dependency "rails", ">= 6.0"
24
+ gem.add_dependency "cable_ready", ">= 4.1"
25
25
 
26
26
  gem.add_development_dependency "bundler", "~> 2.0"
27
27
  gem.add_development_dependency "rake"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stimulus_reflex
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.3
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Hopkins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-27 00:00:00.000000000 Z
11
+ date: 2020-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -44,28 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '5.2'
47
+ version: '6.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '5.2'
54
+ version: '6.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: cable_ready
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '4.0'
61
+ version: '4.1'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '4.0'
68
+ version: '4.1'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement