distribuo 0.1.8 → 0.1.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: f95efbe44bc0bd312f1992deaf59fe01e30737d29a5223cc3e21f15c6db6055b
4
- data.tar.gz: e3737eaf47783bb1188000e6a19e6f4fb976677de2e344861ca7e61c21878354
3
+ metadata.gz: b35c36c9ac4979cd67baffc52f1f5c4258f010690ddc249be9cd992061b9d702
4
+ data.tar.gz: 516e16c44d9cf17247d10ec3f0200c67a143560e1784852b8057f4ccaafddc4d
5
5
  SHA512:
6
- metadata.gz: 75fd3e8831ac3ccbe25793d6ed540b398f1ce8cdd3974080b77c7bc5cc237900227b3ba51fbe8d6e78ca460c8c09336d63a12fc49dcaa97c799af4e267050ea0
7
- data.tar.gz: 1eeb0a7ef43895e0f39c9239da8a2f007ff6d1b35798cd998d411953224dad5901fac84e9ff81f1d2ec626e4eb3eae04b19274185fafa894b155bf5e2ea9297d
6
+ metadata.gz: 0c0d4c4f4bfab0b9c4fd0f79e463b463803f4b648b69e9dfc9efd9d268786e0261ec851d4186f622c51e531f01291dc80b404e3ba23f81508bb96a6e9bff9a8c
7
+ data.tar.gz: ecd1e73fc8747274a8b12b4020a8e43a4fb2ea497604c50a9a21940ae486fdb93fa1c3f43c83213d658519c7e53f49133f211f54560326f34a467bd4aabee44b
@@ -15,11 +15,11 @@ module Distribuo
15
15
  def download_url(controller, from_manifest: false)
16
16
  if app.operating_system == 'ios' && from_manifest == false
17
17
  url = controller.distribuo.app_release_manifest_url(app_id: app.id, release_id: id, host: controller.request.host,
18
- protocol: controller.request.protocol, format: :plist)
18
+ protocol: controller.request.protocol, format: :plist)
19
19
  "itms-services://?action=download-manifest&url=#{url}"
20
20
  else
21
21
  controller.distribuo.app_release_download_url(app, self, host: controller.request.host,
22
- protocol: controller.request.protocol)
22
+ protocol: controller.request.protocol)
23
23
  end
24
24
  end
25
25
 
@@ -1,6 +1,6 @@
1
1
  = sts.form_for [:admin, @app] do |f|
2
- = sts.card(title: t('.app'), menu: distribuo_app_menu, icon: 'fad fa-laptop-mobile') do |card|
3
- - card.action
2
+ = sts.card(:distribuo_admin_apps, menu: distribuo_app_menu, icon: 'fad fa-laptop-mobile') do |card|
3
+ - card.with_action
4
4
  = f.submit
5
5
 
6
6
  .grid.grid-cols-12.gap-4
@@ -1,2 +1,2 @@
1
- = sts.card title: t('.apps'), icon: 'fad fa-laptop-mobile', content_padding: false, menu: distribuo_apps_menu do |card|
2
- = sts.table :distribuo_apps
1
+ = sts.card :distribuo_admin_apps, title: t('.apps'), icon: 'fad fa-laptop-mobile', content_padding: false, menu: distribuo_apps_menu do |card|
2
+ = card.with_table:distribuo_apps, custom_views: true
@@ -1,6 +1,6 @@
1
1
  = sts.form_for([:admin, @app, @release]) do |f|
2
- = sts.card(title: t('release')) do |card|
3
- - card.action
2
+ = sts.card(:distribuo_admin_apps_releases, title: t('release')) do |card|
3
+ - card.with_action
4
4
  = f.submit
5
5
  .grid.grid-cols-12.gap-4
6
6
  .col-span-12
@@ -1,2 +1,2 @@
1
- = sts.card title: t('.releases'), icon: 'fad fa-ship', content_padding: false, menu: distribuo_app_releases_menu do |card|
2
- = sts.table 'distribuo/releases', parameters: {app_id: @app.id}
1
+ = sts.card :distribuo_admin_apps_releases, title: t('.releases'), icon: 'fad fa-ship', content_padding: false, menu: distribuo_app_releases_menu do |card|
2
+ = card.with_table'distribuo/releases', parameters: {app_id: @app.id}, custom_views: true
@@ -1,4 +1,4 @@
1
- = sts.card title: t('.apps') do |card|
1
+ = sts.card :distribuo_apps do |card|
2
2
  .grid.grid-cols-12.gap-4
3
3
  .col-span-12
4
4
  - for app in @apps do
@@ -7,12 +7,12 @@
7
7
  = app.name
8
8
 
9
9
  = sts.info class: "grid grid-cols-1 gap-4 sm:grid-cols-3" do |info|
10
- = info.item :icon, class: "sm:col-span-1"
10
+ = info.with_item :icon, class: "sm:col-span-1"
11
11
  - if app.icon.attached?
12
12
  = image_tag(main_app.url_for(app.icon.variant(resize_to_limit: [48, 48])))
13
13
 
14
- = info.item :operating_system, content: app.operating_system, class: "sm:col-span-1"
15
- = info.item :release_type, content: app.release_type, class: "sm:col-span-1"
14
+ = info.with_item :operating_system, content: app.operating_system, class: "sm:col-span-1"
15
+ = info.with_item :release_type, content: app.release_type, class: "sm:col-span-1"
16
16
 
17
17
  - if app.latest_release
18
18
  .col-span-4
@@ -20,9 +20,9 @@
20
20
  = t('.latest_release')
21
21
  = sts.info class: "grid grid-cols-1 gap-4 sm:grid-cols-3" do |info|
22
22
 
23
- = info.item :version, content: app.latest_release.version, class: "sm:col-span-1"
24
- = info.item :build_number, content: app.latest_release.build_number, class: "sm:col-span-1"
25
- = info.item :notes, content: app.latest_release.notes, class: "sm:col-span-3"
26
- = info.item :download, class: "sm:col-span-1"
23
+ = info.with_item :version, content: app.latest_release.version, class: "sm:col-span-1"
24
+ = info.with_item :build_number, content: app.latest_release.build_number, class: "sm:col-span-1"
25
+ = info.with_item :notes, content: app.latest_release.notes, class: "sm:col-span-3"
26
+ = info.with_item :download, class: "sm:col-span-1"
27
27
  = link_to(app.latest_release.download_url(self), data: { turbo: false }) do
28
28
  i.fal.fa-cloud-arrow-down.fa-2x
@@ -8,13 +8,5 @@ module Distribuo
8
8
  end
9
9
  route && route.path
10
10
  end
11
-
12
- initializer :append_migrations do |app|
13
- unless app.root.to_s.match? root.to_s
14
- config.paths['db/migrate'].expanded.each do |expanded_path|
15
- app.config.paths['db/migrate'] << expanded_path
16
- end
17
- end
18
- end
19
11
  end
20
12
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Distribuo
4
- VERSION = '0.1.8'
4
+ VERSION = "0.1.16"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: distribuo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom de Grunt
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-14 00:00:00.000000000 Z
11
+ date: 2024-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: acts_as_list
@@ -157,7 +157,7 @@ homepage: https://code.entropydecelerator.com/components/distribuo
157
157
  licenses:
158
158
  - MIT
159
159
  metadata: {}
160
- post_install_message:
160
+ post_install_message:
161
161
  rdoc_options: []
162
162
  require_paths:
163
163
  - lib
@@ -172,8 +172,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  requirements: []
175
- rubygems_version: 3.3.7
176
- signing_key:
175
+ rubygems_version: 3.4.10
176
+ signing_key:
177
177
  specification_version: 4
178
178
  summary: Simple mobile app distribution
179
179
  test_files: []