feature_pack 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +22 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 55973cae577c2295ae4baffaef95d5416d969c8ab76afa261cdf5c38897d977c
4
- data.tar.gz: b77ab0ea523c05867e533eae860bc7227166329438c2bd96eba98f77aa08d93b
3
+ metadata.gz: 0b2b181d20483601489269c26d34f83436468036d398eb0edba87c63e63967f2
4
+ data.tar.gz: 9d92cea751de537e7728c7883980d41bbe3e555cf19cdfb6184f47b36ee31f6b
5
5
  SHA512:
6
- metadata.gz: be2356f348450d5eadbb8e554253904d1ef6388744eee2c1055c07c3cbfea0bbe6ffa1d59566a64b30f9c4b71bc45d657765446f0c6e8cf7aad5d4d68e84439c
7
- data.tar.gz: a0af2ec40af2851ebc0e88366525440096257a8027570621c353682d3000fd777555d243d805e29c6b2f11e1bfcd52657fe5d61ba03288dd0b1d1c855a65de24
6
+ metadata.gz: 98547406e8fe2b601e209a930807f725d745b9cf5bb725f79171f1bc96082d6cdbb510db9fd38e248f0807f18fc5b0c710d84a6b4458b207e5c8514b9e86f548
7
+ data.tar.gz: 121aecadd6a795ffe615b1209bd14d295ccf9bb89b466f84fc6018ac1e2ae2174aa7d56675c7b2c37619cef1742652aae548a2d543f7f992a431b01c3b232f23
data/README.md CHANGED
@@ -66,3 +66,25 @@ end
66
66
  def feature_pack_group_path(group, *params) = send("feature_pack_#{group.name}_path".to_sym, *params)
67
67
  def feature_pack_path(group, feature, *params) = send("feature_pack_#{group.name}_#{feature.name}_path".to_sym, *params)
68
68
  ```
69
+
70
+ ```ruby
71
+ # config/initializers/assets.rb
72
+
73
+ Rails.application.config.assets.precompile += FeaturePack.javascript_files_paths
74
+ ```
75
+
76
+ ```ruby
77
+ # config/importmap.rb
78
+
79
+ FeaturePack.javascript_files_paths.each do |js_file_path|
80
+ extensionless_js_file_path = js_file_path.delete_suffix('.js')
81
+ pin extensionless_js_file_path, to: extensionless_js_file_path, preload: false
82
+ end
83
+ ```
84
+
85
+ ```ruby
86
+ # config/routes.rb
87
+ namespace :feature_pack, path: nil do
88
+ draw :feature_pack_routes
89
+ end
90
+ ```
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feature_pack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gedean Dias