hyde_admin 0.0.8 → 0.0.9

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: efb3733133bc8adfcf1bfa8a365ef7a5e7d98b87f03f615b538ccc874ec76fa1
4
- data.tar.gz: 38a47d3d53dd35bae51f7673c21bcb25b85bf1f18992f9305cad83486ed46205
3
+ metadata.gz: 7b6c1b4aa57c65ae8ea48b7317b4d8c53b6dacc5162f9cf413b086213e8d16b9
4
+ data.tar.gz: e92ce331dd7fcb499084f1aff3dda0db7ac2093bb864c7a024068aa9ab29d0b1
5
5
  SHA512:
6
- metadata.gz: 32f1fa3002f7b43460f94ca833c56c4c0ea820f4db3c03552f28c042c89286a553a9b74baddb9f8ac4b38b03f0b0bcfc1aea1ec5221b9f114f88498efd87ea71
7
- data.tar.gz: 83b5a59c1a4ca153b58cff1ae58459831e6d951d954a5382b0880c3773abce88c159eb9bfecea914120add871ce34828ff211b0ef5287e1b8bae53f9688a1749
6
+ metadata.gz: 76426f6867cebd4884ab7cd5e589e3a72c0f14e7b8b5df64d16c3d98c08890c38d708cb4e55a840070604e957afcd6285818b82a7d0961375f17cf3ef5d000db
7
+ data.tar.gz: f94cb4bd9aa9d8337c5ebf7d86dc1e77ff257192bd724c84bb0fb2fd7190b9ffb2741e529d0c9ee4efe0d541f21630cba4685cefe4283df0d588252ee33854de
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 0.0.9
2
+
3
+ Hide deploy button if 'deploy_dest_address' is empty.
4
+ hyde_admin_config allow you to install the latest default config file.
5
+
1
6
  # 0.0.8
2
7
 
3
8
  Resize image at upload with ImageProcessing (MiniMagick)
data/README.md CHANGED
@@ -24,4 +24,10 @@ You can visit localhost:9292 !
24
24
  hyde_admin.yml is automatically generated in your jekyll directory.
25
25
  (you can change settings with hyde_admin ou directly)
26
26
 
27
- Hyde_admin allow ssh deployment.
27
+ Hyde_admin allow ssh deployment.
28
+
29
+ ## New version of hyde_admin ?
30
+
31
+ Just install the lastest config file (your config file will be renamed, and latest config file will be installed), run :
32
+
33
+ `hyde_admin_config`
@@ -84,12 +84,14 @@
84
84
  <%= EscapeUtils.escape_html t.overview.capitalize %>
85
85
  </a>
86
86
  </li>
87
- <li class="nav-item">
88
- <a class="nav-link active" aria-current="page" href="/deploy" id="btn-deploy">
89
- <span data-feather="home" class="fas fa-cloud-upload-alt"></span>
90
- <%= EscapeUtils.escape_html t.deploy.capitalize %>
91
- </a>
92
- </li>
87
+ <% if !@hyde_parameters['deploy_dest_address'].blank? %>
88
+ <li class="nav-item">
89
+ <a class="nav-link active" aria-current="page" href="/deploy" id="btn-deploy">
90
+ <span data-feather="home" class="fas fa-cloud-upload-alt"></span>
91
+ <%= EscapeUtils.escape_html t.deploy.capitalize %>
92
+ </a>
93
+ </li>
94
+ <% end %>
93
95
  </ul>
94
96
  <p class="text-center text-muted"><br><br><em>Hyde Admin V.<%= HydeAdmin::VERSION %></em>&nbsp;&nbsp;&nbsp;<a href="https://github.com/rivsc/hyde_admin" class="link-secondary"><i class="fab fa-github"></i></a></p>
95
97
  </div>
@@ -0,0 +1,16 @@
1
+ #!/bin/env ruby
2
+
3
+ require 'fileutils'
4
+
5
+ local_config_file = File.join(Dir.pwd, 'hyde_admin.yml')
6
+ old_filename = "hyde_admin_old_#{Time.now.strftime('%Y_%m_%d')}.yml"
7
+
8
+ # Backup actual config file
9
+ if File.exist?(local_config_file)
10
+ FileUtils.mv(local_config_file, old_filename)
11
+ end
12
+
13
+ # Copy the default config file
14
+ FileUtils.copy(File.join(File.expand_path(File.dirname(__FILE__)), 'hyde_admin.yml'), local_config_file)
15
+
16
+ puts "#{local_config_file} copied, you can find your old config file here : #{old_filename} !"
data/bin/i18n/en.yml CHANGED
@@ -103,7 +103,7 @@ images: images
103
103
  load_images: load images
104
104
  resize_format: jpg
105
105
  help_resize_format: jpg or png
106
- resize_size: 1500x1000
106
+ resize_size: "size to fit, example : 1500x1000"
107
107
  help_resize_size: Downsize to fit to the specified size (resize preserve ratio), example 1500x1000
108
- resize_enable: true
108
+ resize_enable: Enable resizing for images
109
109
  help_resize_enable: enable feature resize image at upload
data/bin/i18n/fr.yml CHANGED
@@ -103,7 +103,7 @@ images: images
103
103
  load_images: charger images
104
104
  resize_format: jpg
105
105
  help_resize_format: jpg ou png
106
- resize_size: 1500x1000
106
+ resize_size: "Recadrer en (example : 1500x1000)"
107
107
  help_resize_size: Réduit les image pour coller à la taille spécifiée (le redimensionnement préserve le ratio), exemple 1500x1000
108
- resize_enable: true
108
+ resize_enable: activer redimensionnement
109
109
  help_resize_enable: active la fonctionnalité de redimensionnement d'image à l'upload
data/hyde_admin.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
11
11
  all_files = `git ls-files`.split("\n").reject{ |filepath| filepath.start_with? 'test/' }
12
12
  s.files = all_files
13
13
 
14
- s.executables = ['hyde_admin']
14
+ s.executables = ['hyde_admin','hyde_admin_config']
15
15
  s.bindir = "bin"
16
16
  s.require_paths = ["lib"]
17
17
 
@@ -1,3 +1,3 @@
1
1
  module HydeAdmin
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyde_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvain Claudel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-09 00:00:00.000000000 Z
11
+ date: 2021-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: roda
@@ -98,6 +98,7 @@ description: A Jekyll admin interface
98
98
  email: claudel.sylvain@gmail.com
99
99
  executables:
100
100
  - hyde_admin
101
+ - hyde_admin_config
101
102
  extensions: []
102
103
  extra_rdoc_files: []
103
104
  files:
@@ -127,6 +128,7 @@ files:
127
128
  - bin/hyde_admin
128
129
  - bin/hyde_admin.ru
129
130
  - bin/hyde_admin.yml
131
+ - bin/hyde_admin_config
130
132
  - bin/hyde_assets/hyde_admin.css
131
133
  - bin/hyde_assets/hyde_admin.js
132
134
  - bin/i18n/en.yml