bullet_train-themes 1.0.11 → 1.0.14

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: 6537d0fd0cd58471304a5a31f9be757071f2b47fc81cd2d89fe497757b48ce41
4
- data.tar.gz: a37000022723bfb1ded124c69d153dc623d84e950195fa0281985012726f2f3f
3
+ metadata.gz: bdae172d3e0f459d7313c02b5e48475656c9e0cf76ac961991a67e1fb451da06
4
+ data.tar.gz: fd53f7ca6ce8f12ff124f1cb28efedf8805ea651158f47859a797d1c55e8e530
5
5
  SHA512:
6
- metadata.gz: c1f1b46dd9ce37f16a0874e096692245dea6b4c0bea586dad3671c4bcd6b7d6792e49199407f2e413e64624ef1c72231b9014b01938e7098b8f39da1c83d71c8
7
- data.tar.gz: a079c3d2d3be9f4fba3e09f25325f326e6bcf41707d76ae5d1851c319e8cb2b8842e6a478c7d9f11eaae722b4e1122f846cf17de7df55a8b65d88752998e0e78
6
+ metadata.gz: d2a9cd466e66f165099df1444239652cbd66ea03ccf8799a5df7ca4b0ed71f8a651ddc9312da6b5ab6d3dde60374c3b05baafb47820c2757bf057fa74ff69d21
7
+ data.tar.gz: 2824161de0bc8072fde9351c2b492a308abebb4984b07ced7b166910d85823565ff63e22cc60f3956f0b809ff1f59beb4e1e8ec5b45984545408f172553117e7
data/.bt-link ADDED
File without changes
@@ -8,12 +8,6 @@ module ThemeHelper
8
8
  /^shared\//,
9
9
  ]
10
10
 
11
- def current_theme
12
- # Temporarily hardcoded. We actually don't want this to be just an `mattr_accessor` because the same application
13
- # can use multiple themes. Need to think about this a bit.
14
- :light
15
- end
16
-
17
11
  def current_theme_object
18
12
  @current_theme_object ||= "BulletTrain::Themes::#{current_theme.to_s.classify}::Theme".constantize.new
19
13
  end
@@ -7,12 +7,12 @@ options ||= {}
7
7
  options[:class] = "formatted_content trix-content #{options[:class]}"
8
8
  options[:placeholder] ||= labels.placeholder if labels.placeholder
9
9
  options[:data] ||= {}
10
- options[:data][:mentions] = ([current_team].map { |team|
10
+ options[:data][:mentions] ||= ([current_team].map { |team|
11
11
  {key: team.name, value: team.id, protocol: 'bullettrain', model: 'teams', id: team.id, label: team.name, photo: photo_for(team)}
12
12
  } + current_team.memberships.current_and_invited.map { |membership|
13
13
  {key: membership.name, value: membership.id, protocol: 'bullettrain', model: 'memberships', id: membership.id, label: membership.name, photo: membership_profile_photo_url(membership)}
14
14
  }).to_json
15
- options[:data][:topics] = []
15
+ options[:data][:topics] ||= []
16
16
  # current_team.scaffolding_things.map { |scaffolding_thing|
17
17
  # {key: scaffolding_thing.name, value: scaffolding_thing.id, protocol: 'bullettrain', model: 'scaffolding/things', id: scaffolding_thing.id, label: scaffolding_thing.name, photo: photo_for(scaffolding_thing)}
18
18
  # }.to_json
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module Themes
3
- VERSION = "1.0.11"
3
+ VERSION = "1.0.14"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-themes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: 1.0.14
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-05-17 00:00:00.000000000 Z
11
+ date: 2022-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -31,6 +31,7 @@ executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
+ - ".bt-link"
34
35
  - MIT-LICENSE
35
36
  - README.md
36
37
  - Rakefile
@@ -86,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
87
  - !ruby/object:Gem::Version
87
88
  version: '0'
88
89
  requirements: []
89
- rubygems_version: 3.3.7
90
+ rubygems_version: 3.2.22
90
91
  signing_key:
91
92
  specification_version: 4
92
93
  summary: Bullet Train Themes