appydave-tools 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/appydave/tools/configuration/_doc.md +3 -0
- data/lib/appydave/tools/configuration/settings_config copy.xrb +29 -0
- data/lib/appydave/tools/configuration/settings_config.rb +8 -15
- data/lib/appydave/tools/version.rb +1 -1
- data/lib/appydave/tools.rb +1 -1
- data/package-lock.json +2 -2
- data/package.json +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09003bdfd4899328767437ec22a7bdd7cfd1b9189577f85f456acfaad20b0139'
|
4
|
+
data.tar.gz: 9756b51db5c99b451dcd73369c490ac0105b09efa3eaedd335adaa8fdd62a345
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcc9d6983c76063bd4c26546ceefae814c8eaf704b098a36bdb5b6dc112394c8f9f0eb595df78fdf3e66d6a2b026f4b50687acf157fc5e951c7b512d64ad9da4
|
7
|
+
data.tar.gz: 557b0bd08e184cc23d16820a0ac65746307c560621e998c69c2f78dcc3ab08b1fff3a302bca4207b2fad6b9c6c8efb28260b360e6cb0b80e13d7cd5b358d6533
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# [0.3.0](https://github.com/klueless-io/appydave-tools/compare/v0.2.0...v0.3.0) (2024-05-16)
|
2
|
+
|
3
|
+
|
4
|
+
### Features
|
5
|
+
|
6
|
+
* configuration component ([2bf26f6](https://github.com/klueless-io/appydave-tools/commit/2bf26f690da17b651977eab79e7a3cd37ed2a3b5))
|
7
|
+
|
1
8
|
# [0.2.0](https://github.com/klueless-io/appydave-tools/compare/v0.1.0...v0.2.0) (2024-05-14)
|
2
9
|
|
3
10
|
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'json'
|
4
|
+
require 'fileutils'
|
5
|
+
|
6
|
+
module Appydave
|
7
|
+
module Tools
|
8
|
+
module Configuration
|
9
|
+
# Specific configuration classes
|
10
|
+
class SettingsConfig < ConfigBase
|
11
|
+
def initialize
|
12
|
+
super('settings')
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
# class GptContextConfig < ConfigBase
|
17
|
+
# def initialize
|
18
|
+
# super('gpt_context')
|
19
|
+
# end
|
20
|
+
# end
|
21
|
+
|
22
|
+
# class ImageMoverConfig < ConfigBase
|
23
|
+
# def initialize
|
24
|
+
# super('image_mover')
|
25
|
+
# end
|
26
|
+
# end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -1,29 +1,22 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'json'
|
4
|
-
require 'fileutils'
|
5
|
-
|
6
3
|
module Appydave
|
7
4
|
module Tools
|
8
5
|
module Configuration
|
9
|
-
#
|
6
|
+
# Global settings that can be referenced by other configurations or tools
|
10
7
|
class SettingsConfig < ConfigBase
|
11
8
|
def initialize
|
12
9
|
super('settings')
|
13
10
|
end
|
14
|
-
end
|
15
11
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
# end
|
20
|
-
# end
|
12
|
+
def set(key, value)
|
13
|
+
data[key] = value
|
14
|
+
end
|
21
15
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
# end
|
16
|
+
def get(key, default = nil)
|
17
|
+
data.fetch(key, default)
|
18
|
+
end
|
19
|
+
end
|
27
20
|
end
|
28
21
|
end
|
29
22
|
end
|
data/lib/appydave/tools.rb
CHANGED
@@ -10,8 +10,8 @@ require 'appydave/tools/version'
|
|
10
10
|
require 'appydave/tools/gpt_context/file_collector'
|
11
11
|
|
12
12
|
require 'appydave/tools/configuration/config_base'
|
13
|
-
require 'appydave/tools/configuration/settings_config'
|
14
13
|
require 'appydave/tools/configuration/config'
|
14
|
+
require 'appydave/tools/configuration/settings_config'
|
15
15
|
|
16
16
|
module Appydave
|
17
17
|
module Tools
|
data/package-lock.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "appydave-tools",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.1",
|
4
4
|
"lockfileVersion": 3,
|
5
5
|
"requires": true,
|
6
6
|
"packages": {
|
7
7
|
"": {
|
8
8
|
"name": "appydave-tools",
|
9
|
-
"version": "0.3.
|
9
|
+
"version": "0.3.1",
|
10
10
|
"devDependencies": {
|
11
11
|
"@klueless-js/semantic-release-rubygem": "github:klueless-js/semantic-release-rubygem",
|
12
12
|
"@semantic-release/changelog": "^6.0.3",
|
data/package.json
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appydave-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Cruwys
|
@@ -48,8 +48,10 @@ files:
|
|
48
48
|
- bin/gpt_context.rb
|
49
49
|
- bin/setup
|
50
50
|
- lib/appydave/tools.rb
|
51
|
+
- lib/appydave/tools/configuration/_doc.md
|
51
52
|
- lib/appydave/tools/configuration/config.rb
|
52
53
|
- lib/appydave/tools/configuration/config_base.rb
|
54
|
+
- lib/appydave/tools/configuration/settings_config copy.xrb
|
53
55
|
- lib/appydave/tools/configuration/settings_config.rb
|
54
56
|
- lib/appydave/tools/gpt_context/file_collector.rb
|
55
57
|
- lib/appydave/tools/version.rb
|