limited_release 0.1.3 → 0.1.4

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: 7e19f1d9bc2a78d428472dfadd5088273e38e68997d198757829794f86fb9de3
4
- data.tar.gz: 3f921852dea6a496a7a88b448ebaa35bf43068cdcfbbf72d6bdb49e842802281
3
+ metadata.gz: d244217c2cb2e60b25b6d5daf2135054190843322b674c9b1726cb758c394dce
4
+ data.tar.gz: 2d3dc35dd2677947e70911db6ffab93ea6dd5b2a7bd399ac4178d9ae86b9f4cf
5
5
  SHA512:
6
- metadata.gz: 2fd6f299f873ff34f103f6332bb1a2596a7fc552cd72d8e1e93f94bd0a23fc797ec92749ff3e4f131638b9802a2c6aafc032c76a2385d35274259d00ba3498f5
7
- data.tar.gz: da06f5f0d806e43e9cd048a2e915ab5f7b0aaa0ff23fa01e7ba97188f499be493a8103a0fe3f2276ee0a04bad2e63ba322906c25e6cbe068b607eaeba6bcbc72
6
+ metadata.gz: fde5ff57e95d70f7ab666708e3e92dd2e0c59539ffdfc7d8dce0f25e1dcc36f150d40dd8f0e9c05751bf1643cfcfe46d1d784b9a59664ae1621de89e40ec2b9d
7
+ data.tar.gz: 5bd8aff14f28008c5c9c6b49a0a2c08892237336a80c823d5130d1c37ea804b2029ad748034312e80ed26a1b960f20a890fef34c5f8f9908a5700b18f90268d9
@@ -8,14 +8,16 @@ require 'limited_release/railtie'
8
8
 
9
9
  module LimitedRelease
10
10
  def self.features
11
- @features ||= Dir[::Rails.root.join('config', 'limited_releases', '**', '*.rb')].sort_by { |path| path.split('/').length }.map do |path|
11
+ @features ||= Dir[::Rails.root.join('config', 'limited_releases', '**', '*.rb')].sort_by { |path| path.split('/').length }.map { |path|
12
12
  name = path.gsub(/(.+limited_releases\/|\.rb\z)/, '').classify
13
13
 
14
14
  Object.send(:remove_const, name.split('::').first) if Object.const_defined?(name.split('::').first)
15
15
 
16
+ [path, name]
17
+ }.map { |path, name|
16
18
  load path
17
19
  name.constantize
18
- end
20
+ }
19
21
  end
20
22
 
21
23
  def self.reload!
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LimitedRelease
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: limited_release
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jun0kada