pult 0.0.17 → 0.0.18

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: c9f1bcde4e6702f684b1d23bbb99e759027b39de1eac7b04d3a85d55ac16d2fc
4
- data.tar.gz: b6ff29cc06748be7f82502506c0f897805a4455d9ac644fe54e6b74a944981b9
3
+ metadata.gz: 7a79b3113df43698717167613cc77109ef94a5fbd35d87aefd270bc3f03e09c7
4
+ data.tar.gz: 6cb2e79d84b0e3d976cacdf7ea98c02f23f5bf522c5e05a318057041248dbbb8
5
5
  SHA512:
6
- metadata.gz: bea18e532c25a0866376ff008d931dd8c2ae63a3df35e6eddadaa758767aed0402bc2b441bfb28cc354500150f21df1bdb4ec98f9918d38a8c5769ff0f4480e1
7
- data.tar.gz: 5da5043e7e5acaf42daccb519efbafe58502b75e35b945d5bd9d226781fa6d7c2122318937248fcafb8ed953143cc6aea4f9fa0a07bcc3fc2a2f1052a0c2e7d1
6
+ metadata.gz: 514cd5ef3e569aeefe7ff2df86ba9aa586a3579074a0147678dab7e02081a6eed785c8fafbe1f72aa4e7848346ccf6a80ef11bb4d5ae789be63cebb84380a146
7
+ data.tar.gz: 59dc140e8228b5dc7f92b986b93f57bf45f9b4240b25f146de103a8da52de4a2e3cd49342a14fee0ab51a04e775f4a46bc8dbd7707c8a650ea83f20a2e88e5f1
data/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.0.16] - 2019-23-09
8
+ ### Status
9
+ - Dev version
10
+
11
+ ### Updates
12
+ - Fix panel compile when `.pult.yml` has only appname
13
+ - Fix `rake` provider (merge in current panel app)
14
+
7
15
  ## [0.0.16] - 2019-22-09
8
16
  ### Status
9
17
  - Dev version
data/README.md CHANGED
@@ -1,15 +1,15 @@
1
1
  # Pult
2
2
 
3
- **UNDER CUNSTRUCTION!** This is **Dev** version (0.0.*x*)
3
+ ```diff
4
+ - UNDER CUNSTRUCTION! This is Dev version (0.0.x) -
5
+
6
+ ! TODO: Update README (new concept and features) !
7
+ ```
4
8
 
5
9
  Development progress can be reached at [CHANGELOG](./CHANGELOG.md)
6
10
 
7
11
  Ruby *>= 2.3.0* require
8
12
 
9
- ```diff
10
- - **TODO**: Refactor README (new concept, new feature)
11
- ```
12
-
13
13
  # What is Pult?
14
14
 
15
15
  Universal API service for manage your appications and system tasks via Ruby or HTTP.
@@ -5,6 +5,7 @@ module Pult::Panel::App
5
5
 
6
6
  dir = Pathname.new(path).dirname.to_s
7
7
 
8
+ app_hash[app_name] = {} if ! app_hash[app_name]
8
9
  config = (app_hash[app_name]['config'] ||= {})
9
10
 
10
11
  config['dir'] ||= dir
@@ -16,6 +16,6 @@ module Pult::Panel::Provider::Pult
16
16
  end
17
17
 
18
18
  def self.pult_hash file
19
- YAML.load_file(file)
19
+ File.exists?(file) ? YAML.load_file(file) : {}
20
20
  end
21
21
  end
@@ -9,12 +9,12 @@ module Pult::Panel::Provider::Rake
9
9
  rake_files = Pult::Panel::Provider.files(FILE, panel._root)
10
10
 
11
11
  Dir[rake_files].each do |rake_file|
12
-
13
12
  hash = pult_hash rake_file
14
13
 
15
14
  Pult::Panel::App.config_dir! hash, rake_file
16
15
 
17
- panel.merge! hash
16
+ # merge in app
17
+ panel[app_name(rake_file)]&.merge! hash
18
18
  end
19
19
  end
20
20
 
@@ -46,4 +46,15 @@ module Pult::Panel::Provider::Rake
46
46
  # temp ignore params
47
47
  tasks.map{ |t| t.sub /\[.+/, '' }
48
48
  end
49
+
50
+ # tmp; await for refactoring mixins in panel.rb
51
+ def self.app_name file
52
+ app_dir = Pathname.new(file).dirname.to_s
53
+ pult_file = Pult::Panel::Provider::Pult::FILE
54
+
55
+ pult_hash = \
56
+ Pult::Panel::Provider::Pult.pult_hash("#{app_dir}/#{pult_file}")
57
+
58
+ pult_hash.keys&.first
59
+ end
49
60
  end
data/lib/pult/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pult
2
- VERSION = "0.0.17"
2
+ VERSION = "0.0.18"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pult
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - dmitryck
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-22 00:00:00.000000000 Z
11
+ date: 2019-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler