rails_hotreload 0.1.0 → 0.1.1

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: 1b8d3ad2ecb83d63ffe91f99a7cd7d7029390557372a3f3c24499b24b22a1346
4
- data.tar.gz: 06cb7737098ce18004281217a912ae6715c71970c5e288c6cde8ffc12437f1b5
3
+ metadata.gz: 77b77f1636381592f5f6bb38fd5a4dc27828334f7199508cc101eb5039c51627
4
+ data.tar.gz: 3f554fa167136aac6e05a01940ccd0cd8df86ec86827cc8616d9e88fa481c40d
5
5
  SHA512:
6
- metadata.gz: 9307bf9a5ce9e303b3c967f6aa17eb378da34fc44885a4ff50592a0d3d78bd22919a246b3286bd376d9774c19eee824de9dbbe69c5241459af0fe16f78981a04
7
- data.tar.gz: 505f5fedba775e09c811c3a1997146b236622b1879706b0b67d2abaa4d3bab3aa1dcfed48f3fde00fbb8fbc6a91df50edb20fcffe896bfca967d7491d08f9338
6
+ metadata.gz: 4518ee9c387178705cbb28f6a6777537382b2f80cf1902ed264bfa0cf41b2d5a4fdc614559f913df91d17765000287266913a75c39f5fbcf22dc686dad7aabe4
7
+ data.tar.gz: 8e0f6f3a68e1246631dc0bc5fa60d2e3966de80fde3e884a1129e91a1e6dd16753aca7904203ec1e70b35ddb11895e20aa726ec5142e09c9194f717e10534fad
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  This gem adds hot reloading feature to Rails applications that contains hotwire. The application is automatically reloaded when:
4
4
  - Any file has changed (added, updated or deleted) in `app/assets/builds`
5
- - Any app view was changed (added, updated or deleted) in `app/views`
5
+ - Any app view has changed (added, updated or deleted) in `app/views`
6
6
 
7
7
  ## Dependencies
8
8
  - This Gem depends on (turbo-rails)[https://github.com/hotwired/turbo-rails] to automatically stream reload message when file changes were detected
@@ -11,20 +11,20 @@ This gem adds hot reloading feature to Rails applications that contains hotwire.
11
11
  ## Installation
12
12
  - Add this line to your application's Gemfile:
13
13
  ```ruby
14
- group :development, :test do
14
+ group :development do
15
15
  gem "rails_hotreload"
16
16
  end
17
17
  ```
18
18
  - And then execute:
19
19
  ```bash
20
- $ bundle
20
+ $ bundle install
21
21
  ```
22
22
  - Include this template in your layout
23
23
  ```ruby
24
- = render '/rails_hotreload/stream'
24
+ = render '/rails_hotreload/stream' if Rails.env.development?
25
25
  ```
26
26
 
27
- - Start the file watcher
27
+ - Start the file watcher (Rake task)
28
28
  ```
29
29
  bin/rails rails_hotreload:start
30
30
  ```
@@ -32,7 +32,7 @@ Note: If your project is using Procfile.dev (Foreman), then you can add:
32
32
  ```
33
33
  rails_hotreload: bin/rails rails_hotreload:start
34
34
  ```
35
- - Start your rails application and
35
+ - Start your rails application and try editing your views or stylesheets or js files to see immediate changes in your browser
36
36
 
37
37
  ## Configuration
38
38
  - This gem by default is watching changes in: `app/assets/builds,app/views/`. This can be customized as the following:
@@ -41,16 +41,17 @@ bin/rails rails_hotreload:start app/javascripts,app/stylesheets,app/views/
41
41
  ```
42
42
  - The hot reloader UI can be customized as the following:
43
43
  ```
44
- = render '/rails_hotreload/stream', custom_style: 'right: 20px; top: 20px;'
44
+ = render '/rails_hotreload/stream', custom_style: 'left: 20px; bottom: 20px;'
45
45
  ```
46
46
 
47
47
  ## Contributing
48
48
  Bug reports and pull requests are welcome on GitHub at https://github.com/owen2345/pub_sub_model_sync. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
49
- You can run the tests with: `docker-compose run test bash`
49
+
50
+ You can run the tests with: `docker-compose run test`
50
51
 
51
52
  ## License
52
53
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
53
54
 
54
55
  ## **Code of Conduct**
55
56
 
56
- Everyone interacting in the PubSubModelSync project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/pub_sub_model_sync/blob/master/CODE_OF_CONDUCT.md).
57
+ Everyone interacting in the PubSubModelSync project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/pub_sub_model_sync/blob/master/CODE_OF_CONDUCT.md).
@@ -6,7 +6,7 @@ module RailsHotreload
6
6
  railtie_name :rails_hotreload
7
7
 
8
8
  rake_tasks do
9
- load 'rails_hotreload/lib/tasks/rails_hotreload_tasks.rake'
9
+ load 'tasks/rails_hotreload_tasks.rake'
10
10
  end
11
11
 
12
12
  config.before_initialize do |app|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsHotreload
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_hotreload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Owen Peredo Diaz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-04 00:00:00.000000000 Z
11
+ date: 2022-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: listen
@@ -52,7 +52,7 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- description: Auto reloads Rails 7+ applications when assets or views have changed
55
+ description: Auto reloads Rails applications when assets or views have changed
56
56
  email:
57
57
  - owenperedo@gmail.com
58
58
  executables: []
@@ -90,5 +90,5 @@ requirements: []
90
90
  rubygems_version: 3.1.2
91
91
  signing_key:
92
92
  specification_version: 4
93
- summary: Auto reloads Rails 7+ applications when assets or views have changed
93
+ summary: Auto reloads Rails applications when assets or views have changed
94
94
  test_files: []