next_rails 1.4.7 → 1.5.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: 572221ca6f18d4f8f71c51828b55d2d1b492c4c4726f41492f368cabdb0b700a
4
- data.tar.gz: ac0726a74c0123f222cd0f97670e53bd211a589194118e236235379897234a5a
3
+ metadata.gz: a5a701cf48bef3ed14539987e1bad23b85972578c0f9db2194a7a073679d44ac
4
+ data.tar.gz: 0bbb57bb3f628b4638e61e1ec40ba84365142ba236f520dbb39bfa879009623c
5
5
  SHA512:
6
- metadata.gz: 1250d6b62572799abf1ba41dfd44fce17457576288342365cd60de543780cc9e1ec1eb8cb177daa2c0de297b69ec69d015d99ff324430ec92ff59e484a3bc720
7
- data.tar.gz: 1fd84275eebf85ea59907f4e197288196a8e4bedf1acfc1a325e404bd19a1fe02faf78dec803d72dd6c858b1774356276efdc83a5f4e79df70d3ca0cc702415b
6
+ metadata.gz: c879317b36a0afe079c194700fc2007b0fb7a3d4e5a68fa22c75c12f04dbc457dd0883e2641543e8a474fec3a795176d2cba0e4f39afbc9d728fb459096d911f
7
+ data.tar.gz: 17bb529e77fc546e39916c9264d7b02a6d51f21586aefd2aee26e2d6815ae5bb5ebb7ad79a33653add34e32158a79887e747949853271e2af0cc4541b818b9bf
data/CHANGELOG.md CHANGED
@@ -1,9 +1,17 @@
1
- # main [(unreleased)](https://github.com/fastruby/next_rails/compare/v1.4.7...main)
1
+ # main [(unreleased)](https://github.com/fastruby/next_rails/compare/v1.5.0...main)
2
2
 
3
3
  - [BUGFIX: example](https://github.com/fastruby/next_rails/pull/<number>)
4
4
 
5
5
  * Your changes/patches go here.
6
6
 
7
+ # v1.5.0 / 2026-04-01 [(commits)](https://github.com/fastruby/next_rails/compare/v1.4.8...v1.5.0)
8
+
9
+ - [FEATURE: Add `NextRails.current?` as the inverse of `NextRails.next?`](https://github.com/fastruby/next_rails/pull/174)
10
+
11
+ # v1.4.8 / 2026-03-23 [(commits)](https://github.com/fastruby/next_rails/compare/v1.4.7...v1.4.8)
12
+
13
+ - [BUGFIX: Do not require "byebug" in any of the library code](https://github.com/fastruby/next_rails/pull/171)
14
+
7
15
  # v1.4.7 / 2026-03-19 [(commits)](https://github.com/fastruby/next_rails/compare/v1.4.6...v1.4.7)
8
16
 
9
17
  - [CHORE: Create an entry point for the BundleReport command](https://github.com/fastruby/next_rails/pull/154)
@@ -3,7 +3,6 @@
3
3
  require "optparse"
4
4
  require "next_rails"
5
5
  require "next_rails/bundle_report"
6
- require "byebug"
7
6
 
8
7
  class NextRails::BundleReport::CLI
9
8
  def initialize(argv)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NextRails
4
- VERSION = "1.4.7"
4
+ VERSION = "1.5.0"
5
5
  end
data/lib/next_rails.rb CHANGED
@@ -23,6 +23,14 @@ module NextRails
23
23
  @@next_bundle_gemfile = File.exist?(ENV["BUNDLE_GEMFILE"]) && File.basename(ENV["BUNDLE_GEMFILE"]) == "Gemfile.next"
24
24
  end
25
25
 
26
+ # This method is the inverse of `NextRails.next?`. It returns true when your
27
+ # application is running with the current set of dependencies.
28
+ #
29
+ # @return [Boolean]
30
+ def self.current?
31
+ !next?
32
+ end
33
+
26
34
  # This method will reset the @@next_bundle_gemfile variable. Then next time
27
35
  # you call `NextRails.next?` it will check the environment once again.
28
36
  def self.reset_next_bundle_gemfile
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: next_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.7
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernesto Tagwerker
8
8
  - Luis Sagastume
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-03-19 00:00:00.000000000 Z
11
+ date: 2026-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rainbow