bullet_train 1.0.15 → 1.0.18
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 +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72f136b2dce7c3ca79a0426efedc34e1703340a15ed5b97c8be014e5d126e476
|
4
|
+
data.tar.gz: dfa96d3ac5370886fde6c54d93ea8e4a81de25b7beaa0de1339fd42767f00476
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e94369ca0efec59913260b62db727d42d332c190a6dc2ff3093293ace45fb805c97d8312dfb76daf19f513f7c388ea03788710e8bf0ccc00549c47e73166a8f
|
7
|
+
data.tar.gz: 8b839f76ddab288ac733d68b10b4bbecb1663706b07c56d87a54094358fd8ffe15c1e7caf468ebf5f89de87f4a46daf4238040d44a909538b72acde12fd2ca20
|
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: []
|
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.18
|
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
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 7.0.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bullet_train-fields
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: bullet_train-roles
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|