bullet_train-themes-base 1.0.0 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/themes/base/attributes/_image.html.erb +1 -1
- data/lib/bullet_train/themes/base/engine.rb +3 -2
- data/lib/bullet_train/themes/base/theme.rb +11 -0
- data/lib/bullet_train/themes/base/version.rb +1 -1
- data/lib/bullet_train/themes/base.rb +1 -1
- metadata +3 -3
- data/lib/bullet_train/themes/base/path_snitch.rb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d17f744ebdc835478054784655407a0895e85af633e0a190acba5a29c91af268
|
4
|
+
data.tar.gz: 4c5427d17ef03dbf896783bb633d8272a07e64c3580ecfe9681bf276e5a609eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1376a0389a6332676b1410bf366fc877b560177636a30ccb4f1e589924be61bd9a5a4cc028340c1bf4516dc1b3082f90193caf3223eed64634bfebfd754fb85
|
7
|
+
data.tar.gz: 80ab93bcafbd67ece0a45cf953d35975b84146d78c7a31769e8aa4d9178aa61660345c70d5d1a0b133bb1949c164a6656bf1c9ee76bcdab03db1a8d24630a0c7
|
@@ -1,9 +1,10 @@
|
|
1
|
-
require_relative "path_snitch"
|
2
|
-
|
3
1
|
module BulletTrain
|
4
2
|
module Themes
|
5
3
|
module Base
|
6
4
|
class Engine < ::Rails::Engine
|
5
|
+
initializer "bullet_train.themes.light.register" do |app|
|
6
|
+
BulletTrain.linked_gems << "bullet_train-themes-base"
|
7
|
+
end
|
7
8
|
end
|
8
9
|
end
|
9
10
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train-themes-base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
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-
|
11
|
+
date: 2022-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -62,7 +62,7 @@ files:
|
|
62
62
|
- config/routes.rb
|
63
63
|
- lib/bullet_train/themes/base.rb
|
64
64
|
- lib/bullet_train/themes/base/engine.rb
|
65
|
-
- lib/bullet_train/themes/base/
|
65
|
+
- lib/bullet_train/themes/base/theme.rb
|
66
66
|
- lib/bullet_train/themes/base/version.rb
|
67
67
|
- lib/tasks/bullet_train/themes/base_tasks.rake
|
68
68
|
homepage: https://github.com/bullet-train-co/bullet_train-themes-base
|
@@ -1,9 +0,0 @@
|
|
1
|
-
# TODO This is my best attempt at allowing us to figure out where theme partials might be getting served from.
|
2
|
-
# We can only inspect the source location of a class (not a module), and this gem has no other classes, so we need this.
|
3
|
-
# See https://stackoverflow.com/questions/13012109/get-class-location-from-class-object for context.
|
4
|
-
class BulletTrain::Themes::Base::PathSnitch
|
5
|
-
def self.confess
|
6
|
-
# This method allows us to call `BulletTrain::Themes::PathSnitch.method(:confess).source_location` and see where
|
7
|
-
# this gem is being served from... which allows us to check it's `view/themes` directory for partials.
|
8
|
-
end
|
9
|
-
end
|