bullet_train-themes-base 1.0.0 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e90135f0124afb3b6e54f767de858928e986e1de7ffba7a527e7f7cc87883c1c
4
- data.tar.gz: 178c5f64666f56144702963ba16b1a95a8a798b29071aba47bb0759c7ad8a05c
3
+ metadata.gz: d17f744ebdc835478054784655407a0895e85af633e0a190acba5a29c91af268
4
+ data.tar.gz: 4c5427d17ef03dbf896783bb633d8272a07e64c3580ecfe9681bf276e5a609eb
5
5
  SHA512:
6
- metadata.gz: 48aaaa404ea44ad4bb3d2bd4493b28e8f87c785d0a96274903d9c4ad3305dcff298550eb127177f29651cd78e6fb5019d1d2b85f9eb30c78dc55322d32e4ab3e
7
- data.tar.gz: 3d6ff4f5d793e2927e542052f051543bdb3a5bbbf202040460c77d49d55233de096200731ee8c97b2baa5107e872a60a6e6e1aa82931d956ac8ebd9b38cbe8ee
6
+ metadata.gz: c1376a0389a6332676b1410bf366fc877b560177636a30ccb4f1e589924be61bd9a5a4cc028340c1bf4516dc1b3082f90193caf3223eed64634bfebfd754fb85
7
+ data.tar.gz: 80ab93bcafbd67ece0a45cf953d35975b84146d78c7a31769e8aa4d9178aa61660345c70d5d1a0b133bb1949c164a6656bf1c9ee76bcdab03db1a8d24630a0c7
@@ -2,4 +2,4 @@
2
2
  <% strategy ||= current_attributes_strategy || :none %>
3
3
  <% url ||= nil %>
4
4
 
5
- <%= cloudinary_image_tag @tangible_thing.send(attribute), height: 200 %>
5
+ <%= cloudinary_image_tag object.send(attribute), height: 200 %>
@@ -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
@@ -0,0 +1,11 @@
1
+ module BulletTrain
2
+ module Themes
3
+ module Base
4
+ class Theme
5
+ def directory_order
6
+ ['base']
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,7 +1,7 @@
1
1
  module BulletTrain
2
2
  module Themes
3
3
  module Base
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.3"
5
5
  end
6
6
  end
7
7
  end
@@ -1,10 +1,10 @@
1
1
  require "bullet_train/themes/base/version"
2
2
  require "bullet_train/themes/base/engine"
3
+ require "bullet_train/themes/base/theme"
3
4
 
4
5
  module BulletTrain
5
6
  module Themes
6
7
  module Base
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-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.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-01-24 00:00:00.000000000 Z
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/path_snitch.rb
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