bullet_train-themes-light 1.0.0 → 1.0.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fad6057b1fea5de0e8ac75154975c7af301a6fb0af0628f4be46b0bb05695dcf
|
4
|
+
data.tar.gz: d1e746aac1a9f4876acbfae38d95208695336c99c42a71f468943f69cbd7f7ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54e8d5e784e65f10e253bda23a6e413a2281b794b12fd8490b5cae5f95c53bb96366fa8d3fa814b257576a7aa5c7faa7fef9d4db429e450be7a22104949825d6
|
7
|
+
data.tar.gz: 00ad824df188d7c0a45d244869ed9ee42c70925dc5d418e8e02f4cbf9cc6470863ac65c7cc187a7852c1d2b7f0d83a4dfe791e84baf10489d1c2fe799dfbc6c2
|
@@ -1,9 +1,10 @@
|
|
1
|
-
require_relative "path_snitch"
|
2
|
-
|
3
1
|
module BulletTrain
|
4
2
|
module Themes
|
5
3
|
module Light
|
6
4
|
class Engine < ::Rails::Engine
|
5
|
+
initializer "bullet_train.themes.light.register" do |app|
|
6
|
+
BulletTrain::Themes.themes[:light] = BulletTrain::Themes::Light::Theme.new
|
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-light
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
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-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -61,7 +61,7 @@ files:
|
|
61
61
|
- config/routes.rb
|
62
62
|
- lib/bullet_train/themes/light.rb
|
63
63
|
- lib/bullet_train/themes/light/engine.rb
|
64
|
-
- lib/bullet_train/themes/light/
|
64
|
+
- lib/bullet_train/themes/light/theme.rb
|
65
65
|
- lib/bullet_train/themes/light/version.rb
|
66
66
|
- lib/tasks/bullet_train/themes/light_tasks.rake
|
67
67
|
homepage: https://github.com/bullet-train-co/bullet_train-themes-light
|
@@ -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::Light::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
|