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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71d67fbd048f30e77d9ff70b257a5e3153cbf8275991b5a83b7b0e154714180e
4
- data.tar.gz: 064047dae91036cac7605b8b27837879f47ae2fc78a2c38ff0ba7bf05ba20c69
3
+ metadata.gz: 84db0363c17c234dc20e6afc4a57e7bd64d389327ff08cb37d9de20491bf5b6d
4
+ data.tar.gz: 538308eb4a3728d072767e50fff000ab536010ecef11e50b397f8447ecb68960
5
5
  SHA512:
6
- metadata.gz: 6c9b8b919f7e1f06fb2be51b4a26d560ffb9f21971f813c8f3a378522bae2db0d3f6da4d02fd47f6788b8e2c7edfc7cb305a7b8bfa0a2c0078659b19d6530e09
7
- data.tar.gz: 5e4bff3ef6a86d1928b010092e3fa852bd054e34f5c6a7c83450caab8f0c2d461d59ae5c7f3575de55a6e5da628b1fd8089624fc360f688f3b01a289276148c6
6
+ metadata.gz: da98f3806719eaace18950b43c26b351ee0c5a3dd0d7e454ae3de5209a02a4419c0765eac847fe3aec0f76317e222d300133b4720d3c44d9e29f933d0a8f77a6
7
+ data.tar.gz: f093e07b37a6adec41c282d2060f69847460aad2ee85c7043197575d4180064a94d8fdb1df397f83af9220e65838c45c3be233512c9d0e85aaace334ef956415
@@ -1,3 +1,3 @@
1
1
  module BulletTrain
2
- VERSION = "1.0.16"
2
+ VERSION = "1.0.19"
3
3
  end
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
- # desc "Explaining what the task does"
2
- # task :bullet_train do
3
- # # Task goes here
4
- # end
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.16
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-16 00:00:00.000000000 Z
11
+ date: 2022-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails