bloomy 0.8.0 → 0.9.0

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: 4a147716e1b8f4ccad09501b59a7bc2ad58b38995f1aaeb4ef6f951707c35a10
4
- data.tar.gz: 6aed3b2ecf2622a802aa3e010308675175e1f5376b375208893e19483476d879
3
+ metadata.gz: 1c974efd56ac66961c3bd6bbc23cbb9132f4de67faeb6fcfb30f91c86600bda1
4
+ data.tar.gz: '083bd19e9f8a1186f4b9eb593357743fe5bb58245cf6a01ebad54333d0374996'
5
5
  SHA512:
6
- metadata.gz: b94e517996379058516393a91851d4ff6c7a3fc3cd2d6612dbe78bf9a183ce1372fac6b2ddadc63d9b296c878ba787e74e4359441b01b2c450cd985f4160ac5b
7
- data.tar.gz: 86b457f7ae1b198f8acd350e272e23a5a180875bd82da202ea246a93b03750083dde02a7ac29a18f24abd00527dd60081c782dfe73465884ad9926b4288ba969
6
+ metadata.gz: 43efae27d859f9d1f4e4e693d4ce4f9b47f085b74e6afe9a87b9869dd59fc90d26b4aee2a4f1d3b9714566a74a7687bcd40c29c24c599f9fb5b2c34f0e433e87
7
+ data.tar.gz: 7f501d471e49608f68cf748083640926c336a7fb1b005cddc4a57eac2d7277be10375e95d8a7d4641bcc4386c9f067d4a3b957d36eb1563d14466fc64f708a57
data/lib/bloomy/client.rb CHANGED
@@ -8,6 +8,7 @@ require_relative "operations/meetings"
8
8
  require_relative "operations/scorecard"
9
9
  require_relative "operations/issues"
10
10
  require_relative "operations/headlines"
11
+ require_relative "utils/plugin_loader"
11
12
 
12
13
  module Bloomy
13
14
  # The Client class is the main entry point for interacting with the Bloomy API.
@@ -43,6 +44,9 @@ module Bloomy
43
44
  @scorecard = Scorecard.new(@conn)
44
45
  @issue = Issue.new(@conn)
45
46
  @headline = Headline.new(@conn)
47
+
48
+ # Initialize plugins
49
+ Bloomy::Utilities::Plugin.apply(self)
46
50
  end
47
51
  end
48
52
  end
@@ -55,7 +55,7 @@ class Goal
55
55
  meeting_title: response["Origins"][0]["Name"],
56
56
  user_id: user_id,
57
57
  user_name: response["Owner"]["Name"],
58
- created_at: DateTime.parse(response["CreateTime"])
58
+ created_at: response["CreateTime"]
59
59
  }
60
60
  end
61
61
 
@@ -0,0 +1,28 @@
1
+ module Bloomy
2
+ module Utilities
3
+ module Plugin
4
+ # A collection of registered plugins.
5
+ @plugins = []
6
+
7
+ class << self
8
+ # Registers a plugin module.
9
+ #
10
+ # @param plugin_module [Module] The plugin module to register.
11
+ # @return [void]
12
+ def register(plugin_module)
13
+ @plugins << plugin_module
14
+ end
15
+
16
+ # Applies all registered plugins to the given client.
17
+ #
18
+ # @param client [Object] The client to which the plugins will be applied.
19
+ # @return [void]
20
+ def apply(client)
21
+ @plugins.each do |plugin|
22
+ plugin.apply(client)
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bloomy
4
- VERSION = "0.8.0"
4
+ VERSION = "0.9.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bloomy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franccesco Orozco
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-13 00:00:00.000000000 Z
11
+ date: 2024-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -67,6 +67,7 @@ files:
67
67
  - lib/bloomy/operations/todos.rb
68
68
  - lib/bloomy/operations/users.rb
69
69
  - lib/bloomy/utils/get_user_id.rb
70
+ - lib/bloomy/utils/plugin_loader.rb
70
71
  - lib/bloomy/version.rb
71
72
  - sig/bloomy.rbs
72
73
  homepage: https://github.com/franccesco/bloomy