bullet_train 1.3.9 → 1.3.11

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: 2a592a4bc498de3b8d6b8259ddd5b78c53ea3372bd7f7e2935e2c57f93ea2e55
4
- data.tar.gz: d6a902dc8ccb449058809cbc5d991dc1f202f20af458a6253e84177d7958c5da
3
+ metadata.gz: 3e978873b55ca6a15b2b500915937a0eaa092d9bc5a8a8b2f8dc1f10d6ac27f7
4
+ data.tar.gz: 8756fd456af1bc3f70429c78234175e00d28fbefe04fa9253182831fefb084a3
5
5
  SHA512:
6
- metadata.gz: 0a7e8e9478edc9783010fb1b4b15f9a422fe40e3516652a606b47a20e7d9cc7cdedc090dac1f216a8374ab96ec7b05afaaa2371049ee2ddde60ebddb7b266536
7
- data.tar.gz: beddc2048f31611075a3a37c5087a1ddbd5201b8755cc78893d922b42c06bdc4cfaa21bd9dddd8d840047163edb5ab3a8426fcca5128fd5ca4c8ff70828aafaa
6
+ metadata.gz: 9988ba16cd8b3c98161e4ba478e97f93b87152211592c93b62f4ba898fd6131e3a6abfd3190e0975a9e7ab1bef9fb53b3c0e783d481823dd0e37423fa44f4845
7
+ data.tar.gz: 42f98d7b289251a81263282265b307e4f3901e8e5379c7b95f4ba4451318e1aa4b9f9b99a1b96a75c0e9aa4ee3cd2afd5c4b82896705e3542bbe63d13b9a0f01
@@ -20,6 +20,8 @@ module Records::Base
20
20
  include QuestionMethodsFromScopes
21
21
  end
22
22
 
23
+ include BulletTrain::Api::Attributes
24
+
23
25
  include CableReady::Updatable
24
26
  enable_cable_ready_updates
25
27
 
@@ -76,21 +78,5 @@ module Records::Base
76
78
  Rake::Task.task_defined?("db:seed") && Rake::Task["db:seed"].already_invoked
77
79
  end
78
80
 
79
- # TODO This should really be in the API package and included from there.
80
- if defined?(BulletTrain::Api)
81
- # We default this to the current version of the API, but developers can request a specific version.
82
- def to_api_json(api_version = BulletTrain::Api.current_version_numeric)
83
- controller = "Api::V#{api_version}::ApplicationController".constantize.new
84
- # TODO We need to fix host names here.
85
- controller.request = ActionDispatch::Request.new({})
86
- local_class_key = self.class.name.underscore.split("/").last.to_sym
87
-
88
- # Returns a hash, not string.
89
- JbuilderTemplate.new(controller.view_context) do |json|
90
- json.partial! "api/#{BulletTrain::Api.current_version}/#{self.class.name.underscore.pluralize}/#{local_class_key}", local_class_key => self
91
- end.attributes!
92
- end
93
- end
94
-
95
81
  ActiveSupport.run_load_hooks :bullet_train_records_base, self
96
82
  end
@@ -22,21 +22,49 @@ en:
22
22
  destroy_own: Are you sure you want to remove yourself from %{team_name}? You won't be able to undo this.
23
23
  reinvite: Are you sure you want to re-invite %{membership_name} to %{team_name}?
24
24
  fields: &fields
25
+ id:
26
+ _: &id Membership ID
27
+ label: *id
28
+ heading: *id
29
+ user_id:
30
+ name: &user_id User ID
31
+ heading: *user_id
32
+ team_id:
33
+ name: &team_id Team ID
34
+ heading: *team_id
35
+ invitation_id:
36
+ name: &invitation_id Invitation ID
37
+ heading: *invitation_id
25
38
  name:
26
- _: &name Full Name
39
+ name: &name Full Name
27
40
  heading: *name
28
41
  user_first_name:
29
42
  name: &user_first_name First Name
30
43
  label: *user_first_name
44
+ heading: *user_first_name
31
45
  user_last_name:
32
46
  name: &user_last_name Last Name
33
47
  label: *user_last_name
48
+ heading: *user_last_name
34
49
  user_profile_photo_id:
35
50
  name: &user_profile_photo_id Profile Photo
36
51
  label: *user_profile_photo_id
37
52
  user_profile_photo:
38
53
  name: &user_profile_photo Profile Photo
39
54
  label: *user_profile_photo
55
+ heading: *user_profile_photo_id
56
+ user_email:
57
+ name: &user_email User Email
58
+ heading: *user_email
59
+ added_by_id:
60
+ name: &added_by_id Added by User ID
61
+ heading: *added_by_id
62
+ platform_agent_of_id:
63
+ name: &platform_agent_of_id Platform Agent of ID
64
+ heading: *platform_agent_of_id
65
+ platform_agent:
66
+ name: &platform_agent Platform Agent
67
+ heading: *platform_agent
40
68
  role_ids:
41
69
  name: &roles Special Privileges
42
70
  label: *roles
@@ -52,6 +80,12 @@ en:
52
80
  label: Editor
53
81
  description: Can edit all resources on this team and allow others to do the same.
54
82
  none: Viewer
83
+ created_at:
84
+ _: &created_at Created At
85
+ heading: *created_at
86
+ updated_at:
87
+ _: &updated_at Updated At
88
+ heading: *updated_at
55
89
  index:
56
90
  section: "%{team_name} Team Members"
57
91
  contexts:
@@ -13,5 +13,6 @@ The following configuration options are available for your Bullet Train applicat
13
13
  | `OPENAI_ACCESS_TOKEN` | Enable OpenAI-powered UX improvements | `sk-Tnko8PI15i6du03KkxVExTz3lbkFJV...` | `openai_enabled?` |
14
14
  | `REDOCLY_ORGANIZATION_ID` | Enable Redocly-powered API documentation | `your-organization-name` | |
15
15
  | `REDOCLY_API_KEY` | Enable Redocly-powered API documentation |`orgsk_lfyrXAAym8nbSrar9b8wvTN+...`| |
16
+ | `DISABLE_DEVELOPER_MENU` | Disable the `developer` tab in the navigation bar | `true` | disable_developer_menu? |
16
17
 
17
- <sup><a name="footnote-1"></a>1</sup> Any credentials listed here aren't real, but we wanted you to know what each looks like so you can recognize the correct value from each provider.
18
+ <sup><a name="footnote-1"></a>1</sup> Any credentials listed here aren't real, but we wanted you to know what each looks like so you can recognize the correct value from each provider.
@@ -1,3 +1,3 @@
1
1
  module BulletTrain
2
- VERSION = "1.3.9"
2
+ VERSION = "1.3.11"
3
3
  end
data/lib/bullet_train.rb CHANGED
@@ -166,3 +166,7 @@ end
166
166
  def openai_organization_exists?
167
167
  ENV["OPENAI_ORGANIZATION_ID"]
168
168
  end
169
+
170
+ def disable_developer_menu?
171
+ ENV["DISABLE_DEVELOPER_MENU"].present?
172
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.9
4
+ version: 1.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver