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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8286d4b7e2b48f01b4e30595bbcd36e13a34e4ab73d97001e7ad45271af7cefb
4
- data.tar.gz: ef6a38bddb0a0c40a812d7ffc66750072771d12377dcf63518eaab43472b42ae
3
+ metadata.gz: '09003bdfd4899328767437ec22a7bdd7cfd1b9189577f85f456acfaad20b0139'
4
+ data.tar.gz: 9756b51db5c99b451dcd73369c490ac0105b09efa3eaedd335adaa8fdd62a345
5
5
  SHA512:
6
- metadata.gz: 5db672453f1c471840a0d3eee7df1af36a58f1639b3d8351741c3c0d884fb44552472f1b999b0dac1f5bd2e0d77323a17844dca0148eebbb7d8e407f400ada97
7
- data.tar.gz: fabecbfaa7e9a906479edeae8f29e49e14facc3eeceed148c9c04e15780b978891514e4b1c80f3690bfaf0106721fd8dad5547d50f54145f9378d54ee23ee292
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,3 @@
1
+ # Configuration Component
2
+
3
+ [ChatGPT conversation](https://chatgpt.com/g/g-4dMsIRK3E-ruby-script-assistant/c/d8ea5960-071b-48aa-9fd9-554ca302c7dd)
@@ -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
- # Specific configuration classes
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
- # class GptContextConfig < ConfigBase
17
- # def initialize
18
- # super('gpt_context')
19
- # end
20
- # end
12
+ def set(key, value)
13
+ data[key] = value
14
+ end
21
15
 
22
- # class ImageMoverConfig < ConfigBase
23
- # def initialize
24
- # super('image_mover')
25
- # end
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Appydave
4
4
  module Tools
5
- VERSION = '0.3.0'
5
+ VERSION = '0.3.1'
6
6
  end
7
7
  end
@@ -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.0",
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.0",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appydave-tools",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "AppyDave YouTube Automation Tools",
5
5
  "scripts": {
6
6
  "release": "semantic-release"
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.0
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