bullet_train-themes 1.0.13 → 1.0.16

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: cc879c19916c893eaf301d96d22752c768f5de77e9b3f9900edf825639083ea5
4
- data.tar.gz: 20a29f7de7ec6365ce57571bde29bdcc8ef43a848a37a5f0f7f53cebc9971e5e
3
+ metadata.gz: ddeee9af23fa75c999d7d38040998ec689cc206639f895f69222e0ed50956109
4
+ data.tar.gz: 26818ca49ac9da86e291b1f626e033f1fbb17b2558dd25aaa29209cc88c44a24
5
5
  SHA512:
6
- metadata.gz: 06b89bc4e91cef52a4dbf44d47476d6949567dfd95279a08ea9e9c05c387bd8513b3e3dbc1ca0edafaf047b04d8aecafbf9a80f536cf51b1e0f92ec6900e335d
7
- data.tar.gz: 7e448dd68f7dbfbde0362fc9be18520605ba48686b200d8d58aab8ba6009f3961a1b7a62e9563d10b65b48dba5fe64befdc91b6cccb368e8223592f6549b083d
6
+ metadata.gz: 3e29e207a667b7477207429251d6d9f622e860ddb6028c1b159e76fdfe5f75f3c03b3f604a97228617443fd565e1e97702be95a5541883a97007007d3053714c
7
+ data.tar.gz: 73606ae27fa14274a9b490b34330b4c2675fdcf5be934b1654b07a20c50ffc69476b439e83aae2aae7d480c5ba002e2697982dc04323ac344b9ae70fc55559fc
@@ -4,6 +4,6 @@
4
4
 
5
5
  <% if object.send(attribute).present? %>
6
6
  <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
7
- <%= display_date(object.send(attribute)) %>
7
+ <%= display_date(object.send(attribute), local_assigns[:date_format]) %>
8
8
  <% end %>
9
9
  <% end %>
@@ -4,6 +4,6 @@
4
4
 
5
5
  <% if object.send(attribute).present? %>
6
6
  <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
7
- <%= display_date_and_time(object.send(attribute)) %>
7
+ <%= display_date_and_time(object.send(attribute), local_assigns[:date_format], local_assigns[:time_format]) %>
8
8
  <% end %>
9
9
  <% 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,9 +1,6 @@
1
1
  module BulletTrain
2
2
  module Themes
3
3
  class Engine < ::Rails::Engine
4
- initializer "bullet_train.themes.register" do |app|
5
- BulletTrain.linked_gems << "bullet_train-themes"
6
- end
7
4
  end
8
5
  end
9
6
  end
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module Themes
3
- VERSION = "1.0.13"
3
+ VERSION = "1.0.16"
4
4
  end
5
5
  end
@@ -10,7 +10,7 @@ module BulletTrain
10
10
  module Base
11
11
  class Theme
12
12
  def directory_order
13
- ['base']
13
+ ["base"]
14
14
  end
15
15
  end
16
16
  end
metadata CHANGED
@@ -1,29 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-themes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.13
4
+ version: 1.0.16
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-27 00:00:00.000000000 Z
11
+ date: 2022-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: standard
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: rails
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
31
  - - ">="
18
32
  - !ruby/object:Gem::Version
19
- version: 7.0.0
33
+ version: 6.0.0
20
34
  type: :runtime
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
38
  - - ">="
25
39
  - !ruby/object:Gem::Version
26
- version: 7.0.0
40
+ version: 6.0.0
27
41
  description: Bullet Train Themes
28
42
  email:
29
43
  - andrew.culver@gmail.com