trellodon 0.2.0 → 0.2.1

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: 9de6b483c5d9dd4a4dc5a669a4ce6d3ba56cac3575e9d9174ae8603e7f6adf9a
4
- data.tar.gz: 834fbc2e3c2da99e0b69d5989da18d476976d6e4912077579d04898c24ab6f7b
3
+ metadata.gz: 9931b6c34e6a8fc7c74261de329037838ac5fc098b5436e146f3c6a38068ec09
4
+ data.tar.gz: a81d60ff2a430f2dd23a7ae7d4ca0ddb958f47e1539ffa16fb9f2ca298ad3301
5
5
  SHA512:
6
- metadata.gz: ced2b722b7a3f8536a0fbf958b3e3dfdb9e71921d7658c31f69c1b817b0cc88b4d25d5ccd7c94dd7db7d97e0109fceba574c96c51a2ed7910f74645225f51442
7
- data.tar.gz: 99b59ce531022d3f341d0c97306bb24cec800d5bfd6590b7342b16bc8c138bab853a8007203b382f5ccedd94cb060dd0f459a28502b394e687ab3ce57086934d
6
+ metadata.gz: 3831a6d818d121e245b6a6f87ab11eb80f58ac7814e4fd10423b59d131a2e3a52234ed724b25aeb5f98de5473a1350d67f330d95faeff1f9e05025ca2e379d0e
7
+ data.tar.gz: 0adca9ec2bef56ae020c840e912a3a4276c9da1b5eefb66f294215232b994c52e8bb148c896ff292eac683c824a9b9cfbaf6bee3725948523be1375e2dde5f8c
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## [master]
4
4
 
5
+ ## [0.2.1] - 2022-04-12 🚀
6
+
7
+ - Misc changes.
8
+
5
9
  ## [0.2.0] - 2022-04-12
6
10
 
7
11
  - Store Trello API creds locally for avoid asking it before execution ([@fargelus][]).
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Build](https://github.com/evilmartians/trellodon/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/evilmartians/trellodon/actions/workflows/main.yml)
1
+ ![Build](https://github.com/evilmartians/trellodon/workflows/Build/badge.svg)
2
2
  [![Gem Version](https://badge.fury.io/rb/trellodon.svg)](https://rubygems.org/gems/trellodon)
3
3
 
4
4
  # Trellodon
@@ -8,14 +8,22 @@ module Trellodon
8
8
  class Concurrent < Base
9
9
  using RubyNext
10
10
 
11
- MAX_THREADS = 50
11
+ DEFAULT_MAX_THREADS = 50
12
+
13
+ attr_reader :max_threads
14
+
15
+ def initialize(threads_count = DEFAULT_MAX_THREADS)
16
+ @max_threads = threads_count
17
+ end
12
18
 
13
19
  def post(&block)
14
20
  ::Concurrent::Future.execute(executor: executor, &block)
15
21
  end
16
22
 
17
- private def executor
18
- ::Concurrent::FixedThreadPool.new(MAX_THREADS)
23
+ private
24
+
25
+ def executor
26
+ ::Concurrent::FixedThreadPool.new(max_threads)
19
27
  end
20
28
  end
21
29
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Trellodon
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trellodon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - fargelus
@@ -68,6 +68,20 @@ dependencies:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
+ - !ruby/object:Gem::Dependency
72
+ name: ruby-next-core
73
+ requirement: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: 0.15.0
78
+ type: :runtime
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: 0.15.0
71
85
  description: "\n The main purpose of Trellodon is to make it possible to backup
72
86
  Trello boards to file system in a human-readable form (e.g., Markdown files).\n
73
87
  \ "
@@ -110,7 +124,6 @@ files:
110
124
  - lib/trellodon/schedulers/concurrent.rb
111
125
  - lib/trellodon/schedulers/inline.rb
112
126
  - lib/trellodon/schedulers/threaded.rb
113
- - lib/trellodon/trello.rb
114
127
  - lib/trellodon/version.rb
115
128
  - sig/trellodon.rbs
116
129
  homepage: https://github.com/evilmartians/trellodon
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "trello"
4
- require "logger"
5
-
6
- module Trello
7
- # Nullify Trello client API logger
8
- def self.logger
9
- Logger.new(nil)
10
- end
11
- end