bullet_train 1.6.28 → 1.6.29

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: 8070b9c7e2d2851a2fd7588f50c26e49ae1fde8262df2f4ffca38e0ec35f3a9a
4
- data.tar.gz: bf06f2eda17f176caa8e7819b7e06f269677e9e5847186e6474dd9c21f4f3e69
3
+ metadata.gz: 16b060ec914c03447d1c8abcca50aa9b75c00a975ec04013173088b67d76b2ab
4
+ data.tar.gz: fa0e341a42e660cbdd889d7f4e95e517fc3b930ec24184d895271f01ae1257c2
5
5
  SHA512:
6
- metadata.gz: 9548a1c62492d692a55226f58a845d6b9db714b99f0e28816ee6c4a7e1a05d549f90f50a329552bffd843ed5ab1e02eaa709706e715ad67cec4fc1b804324de8
7
- data.tar.gz: 0abc2bb7474f9191ebf5a93cb5920003bd615abab104dade8c6a615dd3b1704a0019678aeb516e14bbc9cfa4ea0a1a53a11533d98e1fe4e12ac39644ecbcc521
6
+ metadata.gz: 5e283d6dcf94770920e558958790e32cd5f4a6f80b8a51f59e14a5ead26d9beee9d25fe50448ba78ec5163afe6fbd22b756db67d56d3440fb70f76a6ef0f7e20
7
+ data.tar.gz: adfbaf616f7a78c9052bebf187dad24d257524ecc5f32923ce6d4b267547677d1a79d157b7d05acd1260ee8f341a8f47e5c73fdd11a3ae7c50ba90c53e0ea4e7
@@ -4,6 +4,6 @@ module Account::MarkdownHelper
4
4
  extensions: {header_ids: true},
5
5
  plugins: {syntax_highlighter: {theme: "InspiredGitHub"}},
6
6
  render: {width: 120, unsafe: true}
7
- }).html_safe
7
+ }).gsub(/&lt;(\/)?script/, '<\\1script').html_safe
8
8
  end
9
9
  end
@@ -111,6 +111,12 @@
111
111
  <% end %>
112
112
  <% end %>
113
113
 
114
+ <%= render 'account/shared/menu/item', url: '/docs/stylesheets', label: 'Style Sheets' do |p| %>
115
+ <% p.icon do %>
116
+ <i class="fa-brands fa-js ti ti-brush"></i>
117
+ <% end %>
118
+ <% end %>
119
+
114
120
  <%= render 'account/shared/menu/item', url: '/docs/i18n', label: 'Internationalization' do |p| %>
115
121
  <% p.icon do %>
116
122
  <i class="fa-brands fa-js ti ti-world"></i>
@@ -63,9 +63,9 @@ Don't forget to run `bundle install` and `rails restart`.
63
63
  You can get detailed information about using Super Scaffolding to generate different types of Action Models like so:
64
64
 
65
65
  ```
66
- rails generate super_scaffold:action_model:targets_many
67
- rails generate super_scaffold:action_model:targets_one
68
- rails generate super_scaffold:action_model:targets_one_parent
66
+ rails generate super_scaffold:action_models:targets_many
67
+ rails generate super_scaffold:action_models:targets_one
68
+ rails generate super_scaffold:action_models:targets_one_parent
69
69
  ```
70
70
 
71
71
  ## Basic Example
@@ -79,7 +79,7 @@ rails generate super_scaffold Project Team name:text_field
79
79
  ### 2. Generate and scaffold an archive action for projects.
80
80
 
81
81
  ```
82
- rails generate super_scaffold:action_model:targets_many Archive Project Team
82
+ rails generate super_scaffold:action_models:targets_many Archive Project Team
83
83
  ```
84
84
 
85
85
  ### 3. Implement the action logic.
data/docs/index.md CHANGED
@@ -13,6 +13,7 @@
13
13
  - [Overriding the Framework](/docs/overriding.md)
14
14
  - [Tunneling](/docs/tunneling.md)
15
15
  - [JavaScript](/docs/javascript.md)
16
+ - [Style Sheets](/docs/stylesheets.md)
16
17
  - [Internationalization](/docs/i18n.md)
17
18
 
18
19
  ## Developer Tools
@@ -0,0 +1,16 @@
1
+ # Style Sheets
2
+ Bullet Train's stock UI theme, called “Light”, is built to use `tailwindcss` extensively, where most of the styling is defined within the `.html.erb` theme partials.
3
+
4
+ As such, there are two ways to update the styling of your app: either by modifying theme partials, or by adding your own custom CSS.
5
+
6
+ ## Modify Theme Partials
7
+
8
+ Since `tailwindcss` is used, most style changes are done by ejecting theme partials into your app's `app/views` directory, and modifying the Tailwind classes within the `.html.erb` templates.
9
+
10
+ You can eject only the theme files you wish to override or you can eject the whole UI theme for customization. You can find more information in the [indirection documentation](indirection) about using `bin/resolve` to find the theme partials to eject. Or see the [themes documentation](themes) for details on using the "Light" UI theme as a starting point for creating your own.
11
+
12
+ ## Add custom CSS
13
+
14
+ To add your own custom CSS, add to the `app/assets/stylesheets/application.css` file found in your app. In this file, you'll be able to use Tailwind `@apply` directives and add `@import` statements to include the CSS from third-party `npm` packages.
15
+
16
+ For further modifications to the theme's style sheet (for example, to change the order in which base Tailwind stylesheets are included), you can eject the theme's css by using the command `rake bullet_train:themes:light:eject_css`.
data/docs/upgrades.md CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  ## The Stepwise Upgrade Method
16
16
 
17
- This method will ensure that the version of the Bullet Train gems that your app uses will stay in sync with the appliation framework provided by the starter repo.
17
+ This method will ensure that the version of the Bullet Train gems that your app uses will stay in sync with the application framework provided by the starter repo.
18
18
  If you've ever upgraded a Rails app from version to version this process should feel fairly similar.
19
19
 
20
20
  ## Pulling Updates from the Starter Repository
@@ -151,6 +151,13 @@ module BulletTrain
151
151
  result[:package_name] = package_name
152
152
  end
153
153
  end
154
+
155
+ # If we can't find the package name, check if it's because the file path is in the root of the gem
156
+ # and not in a subdirectory like app, config or lib.
157
+ if result[:package_name].nil? && base_path.split("/").size == 3
158
+ result[:project_path] = "./#{base_path.split("/").last}"
159
+ result[:package_name] = base_path.split("/").second
160
+ end
154
161
  end
155
162
  end
156
163
  result
@@ -1,3 +1,3 @@
1
1
  module BulletTrain
2
- VERSION = "1.6.28"
2
+ VERSION = "1.6.29"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.28
4
+ version: 1.6.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-22 00:00:00.000000000 Z
11
+ date: 2024-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard
@@ -749,6 +749,7 @@ files:
749
749
  - docs/overriding.md
750
750
  - docs/permissions.md
751
751
  - docs/seeds.md
752
+ - docs/stylesheets.md
752
753
  - docs/super-scaffolding.md
753
754
  - docs/super-scaffolding/delegated-types.md
754
755
  - docs/super-scaffolding/options.md