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: 8bb52ca8b4e3add6017bf1b1c1c88e4c417410606137812102fb701f9804930b
4
- data.tar.gz: c15ac4eaeea216a632931b6448320dea43054973503fa644521e2e9194f1b724
3
+ metadata.gz: fad6057b1fea5de0e8ac75154975c7af301a6fb0af0628f4be46b0bb05695dcf
4
+ data.tar.gz: d1e746aac1a9f4876acbfae38d95208695336c99c42a71f468943f69cbd7f7ae
5
5
  SHA512:
6
- metadata.gz: 02cd8ee4c8888fa030ba0c3b70e08d34896cfc121b9be6c7263c2e0f999a40d81bf94cadb2cedbeee5fe87cbc501744db3d2c9a2f97590d0e99814eb41098051
7
- data.tar.gz: 7aef527ab20970e98bae6e3b23526e4b4063b22f1a491058d7a5cccc2c5dbc013fda5cf228ce92385d84d89396d8e294139b62883fb4fc83c06442538b2f91be
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
@@ -0,0 +1,13 @@
1
+ require "bullet_train/themes/tailwind_css"
2
+
3
+ module BulletTrain
4
+ module Themes
5
+ module Light
6
+ class Theme < TailwindCss::Theme
7
+ def directory_order
8
+ ['light'] + super
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -1,7 +1,7 @@
1
1
  module BulletTrain
2
2
  module Themes
3
3
  module Light
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
6
6
  end
7
7
  end
@@ -1,10 +1,10 @@
1
1
  require "bullet_train/themes/light/version"
2
2
  require "bullet_train/themes/light/engine"
3
+ require "bullet_train/themes/light/theme"
3
4
 
4
5
  module BulletTrain
5
6
  module Themes
6
7
  module Light
7
- # Your code goes here...
8
8
  end
9
9
  end
10
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.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-01-24 00:00:00.000000000 Z
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/path_snitch.rb
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