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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 301b2a691f3affe527a614392681f2038544d45203e0bc339fc01bc253209273
4
- data.tar.gz: c124ba84eba0dc3745bc1da337331bb58168832f670a88ba08ad1c669691fb38
3
+ metadata.gz: 72f136b2dce7c3ca79a0426efedc34e1703340a15ed5b97c8be014e5d126e476
4
+ data.tar.gz: dfa96d3ac5370886fde6c54d93ea8e4a81de25b7beaa0de1339fd42767f00476
5
5
  SHA512:
6
- metadata.gz: b9794f6f91d92c294f1b631b8666411ae7fc37c255c42a44c5b753c2498f65a6b8fcdd5c2eb064671e4b9eaaeb5ef2fa86d67e4eab6f102292dae4471caa3183
7
- data.tar.gz: b58aca98a77c6281e46ebd31c22d175557ca8c265a0a6d383d2810d2b06867da01015712a0e4724f507f0896331ecb201a4d785907104935d9574bfb71b64fb6
6
+ metadata.gz: 0e94369ca0efec59913260b62db727d42d332c190a6dc2ff3093293ace45fb805c97d8312dfb76daf19f513f7c388ea03788710e8bf0ccc00549c47e73166a8f
7
+ data.tar.gz: 8b839f76ddab288ac733d68b10b4bbecb1663706b07c56d87a54094358fd8ffe15c1e7caf468ebf5f89de87f4a46daf4238040d44a909538b72acde12fd2ca20
@@ -1,3 +1,3 @@
1
1
  module BulletTrain
2
- VERSION = "1.0.15"
2
+ VERSION = "1.0.18"
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: []
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.15
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-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
@@ -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