bullet_train 1.0.16 → 1.0.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bullet_train/version.rb +1 -1
- data/lib/bullet_train.rb +7 -0
- data/lib/tasks/bullet_train_tasks.rake +26 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84db0363c17c234dc20e6afc4a57e7bd64d389327ff08cb37d9de20491bf5b6d
|
4
|
+
data.tar.gz: 538308eb4a3728d072767e50fff000ab536010ecef11e50b397f8447ecb68960
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da98f3806719eaace18950b43c26b351ee0c5a3dd0d7e454ae3de5209a02a4419c0765eac847fe3aec0f76317e222d300133b4720d3c44d9e29f933d0a8f77a6
|
7
|
+
data.tar.gz: f093e07b37a6adec41c282d2060f69847460aad2ee85c7043197575d4180064a94d8fdb1df397f83af9220e65838c45c3be233512c9d0e85aaace334ef956415
|
data/lib/bullet_train/version.rb
CHANGED
data/lib/bullet_train.rb
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
require "bullet_train/version"
|
2
2
|
require "bullet_train/engine"
|
3
3
|
|
4
|
+
require "bullet_train/fields"
|
5
|
+
require "bullet_train/roles"
|
6
|
+
require "bullet_train/super_load_and_authorize_resource"
|
7
|
+
require "bullet_train/has_uuid"
|
8
|
+
require "bullet_train/scope_validator"
|
9
|
+
|
4
10
|
module BulletTrain
|
5
11
|
mattr_accessor :routing_concerns, default: []
|
12
|
+
mattr_accessor :linked_gems, default: ["bullet_train"]
|
6
13
|
end
|
@@ -1,4 +1,26 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
namespace :bullet_train do
|
2
|
+
desc "Symlink registered gems in `./tmp/gems` so their views, etc. can be inspected by Tailwind CSS."
|
3
|
+
task :link_gems => :environment do
|
4
|
+
if Dir.exists?("tmp/gems")
|
5
|
+
puts "Removing previously linked gems."
|
6
|
+
`rm -f tmp/gems/*`
|
7
|
+
else
|
8
|
+
if File.exists?("tmp/gems")
|
9
|
+
raise "A file named `tmp/gems` already exists? It has to be removed before we can create the required directory."
|
10
|
+
end
|
11
|
+
|
12
|
+
puts "Creating 'tmp/gems' directory."
|
13
|
+
`mkdir tmp/gems`
|
14
|
+
end
|
15
|
+
|
16
|
+
`touch tmp/gems/.keep`
|
17
|
+
|
18
|
+
BulletTrain.linked_gems.each do |linked_gem|
|
19
|
+
target = `bundle show #{linked_gem}`.chomp
|
20
|
+
if target.present?
|
21
|
+
puts "Linking '#{linked_gem}' to '#{target}'."
|
22
|
+
puts `ln -s #{target} tmp/gems/#{linked_gem}`
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|