nutrella 1.5.3 → 1.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/CHANGELOG.md +6 -0
- data/README.md +8 -0
- data/lib/nutrella/command.rb +5 -1
- data/lib/nutrella/configuration.rb +4 -2
- data/lib/nutrella/version.rb +1 -1
- data/nutrella.gemspec +3 -3
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24e66cfc7e3e0b2cf58e7ecb47d16d2689c417e60f4c499bf7ecf777a6e08015
|
4
|
+
data.tar.gz: 53d417160b545b06988e41c1d6b434d0d61822e04cb54dd7482d725e11e450a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44e1e12f2f85e870b7d48324450e6d42fa109d606760b31b8a5f0ff70b22b4109a4b304bd00eb765f69b0dc8f40db1ee2571e60014346ea509cf0573cfa4beea
|
7
|
+
data.tar.gz: 874d0d22d8fc5a51fc27712226927363a3e1c0883b029d0dd449f2b245c4a47073c64f98ad25a45a08ec150fb36bea16b473d43c08ac146d4c063adb5ac903fd
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.7.4
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [1.5.4] - 2021-07-29
|
10
|
+
|
11
|
+
#### New Features
|
12
|
+
|
13
|
+
- Added a configuration option to adjust the cache capacity
|
14
|
+
|
9
15
|
## [1.5.3] - 2021-02-18
|
10
16
|
|
11
17
|
- Update ruby-trello
|
data/README.md
CHANGED
@@ -57,6 +57,8 @@ The configuration file should look like the following (don't use the keys below,
|
|
57
57
|
organization: 542d76ac2fad4697c3e80448
|
58
58
|
launch_command: open $url$
|
59
59
|
enable_trello_app: false
|
60
|
+
enable_logging: true
|
61
|
+
cache_capacity: 5
|
60
62
|
```
|
61
63
|
|
62
64
|
**Step 6**: Adjust configuration file (Optional)
|
@@ -81,6 +83,12 @@ Adjust the `enable_logging` configuration to start logging diagnostics:
|
|
81
83
|
enable_logging: true
|
82
84
|
```
|
83
85
|
|
86
|
+
Adjust the `cache_capacity` configuration to increase the capacity of the cache (see `~/.nutrella.cache.yml`):
|
87
|
+
|
88
|
+
```yaml
|
89
|
+
cache_capacity: 15
|
90
|
+
```
|
91
|
+
|
84
92
|
|
85
93
|
## Usage
|
86
94
|
|
data/lib/nutrella/command.rb
CHANGED
@@ -37,6 +37,10 @@ module Nutrella
|
|
37
37
|
url
|
38
38
|
end
|
39
39
|
|
40
|
+
def cache_capacity
|
41
|
+
@_cache_capacity ||= configuration_values.fetch(:cache_capacity)
|
42
|
+
end
|
43
|
+
|
40
44
|
def cached_url
|
41
45
|
@_cached_url ||= url_cache.fetch(@board_name) { task_board.lookup_or_create(@board_name).url }
|
42
46
|
end
|
@@ -66,7 +70,7 @@ module Nutrella
|
|
66
70
|
end
|
67
71
|
|
68
72
|
def url_cache
|
69
|
-
Nutrella::Cache.new(cache_filename,
|
73
|
+
Nutrella::Cache.new(cache_filename, cache_capacity)
|
70
74
|
end
|
71
75
|
end
|
72
76
|
end
|
@@ -20,6 +20,7 @@ module Nutrella
|
|
20
20
|
launch_command: open $url$
|
21
21
|
enable_trello_app: false
|
22
22
|
enable_logging: false
|
23
|
+
cache_capacity: 5
|
23
24
|
YAML
|
24
25
|
|
25
26
|
attr_reader :path, :values
|
@@ -36,7 +37,7 @@ module Nutrella
|
|
36
37
|
|
37
38
|
private
|
38
39
|
|
39
|
-
def load_configuration # rubocop:disable Metrics/MethodLength
|
40
|
+
def load_configuration # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
|
40
41
|
@values = {
|
41
42
|
key: configuration.fetch("key"),
|
42
43
|
secret: configuration.fetch("secret"),
|
@@ -44,7 +45,8 @@ module Nutrella
|
|
44
45
|
organization: configuration.fetch("organization", NULOGY_ORGANIZATION_ID),
|
45
46
|
launch_command: configuration.fetch("launch_command", "open $url$"),
|
46
47
|
enable_trello_app: configuration.fetch("enable_trello_app", "false"),
|
47
|
-
enable_logging: configuration.fetch("enable_logging", "false")
|
48
|
+
enable_logging: configuration.fetch("enable_logging", "false"),
|
49
|
+
cache_capacity: configuration.fetch("cache_capacity", 5)
|
48
50
|
}
|
49
51
|
rescue => e
|
50
52
|
abort "#{path} #{e}"
|
data/lib/nutrella/version.rb
CHANGED
data/nutrella.gemspec
CHANGED
@@ -30,8 +30,8 @@ Gem::Specification.new do |spec|
|
|
30
30
|
|
31
31
|
spec.add_development_dependency "rake", "~> 13.0"
|
32
32
|
spec.add_development_dependency "rspec", "~> 3.10"
|
33
|
-
spec.add_development_dependency "rubocop", "~> 1.
|
34
|
-
spec.add_development_dependency "rubocop-rake", "~> 0.
|
35
|
-
spec.add_development_dependency "rubocop-rspec", "~> 2.
|
33
|
+
spec.add_development_dependency "rubocop", "~> 1.18"
|
34
|
+
spec.add_development_dependency "rubocop-rake", "~> 0.6"
|
35
|
+
spec.add_development_dependency "rubocop-rspec", "~> 2.4"
|
36
36
|
spec.add_development_dependency "simplecov", "~> 0.21"
|
37
37
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nutrella
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alistair McKinnell
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-trello
|
@@ -58,42 +58,42 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '1.
|
61
|
+
version: '1.18'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '1.
|
68
|
+
version: '1.18'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rubocop-rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0.
|
75
|
+
version: '0.6'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0.
|
82
|
+
version: '0.6'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rubocop-rspec
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '2.
|
89
|
+
version: '2.4'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '2.
|
96
|
+
version: '2.4'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: simplecov
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,7 +108,7 @@ dependencies:
|
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0.21'
|
111
|
-
description:
|
111
|
+
description:
|
112
112
|
email:
|
113
113
|
- alistair.mckinnell@gmail.com
|
114
114
|
executables:
|
@@ -155,7 +155,7 @@ metadata:
|
|
155
155
|
changelog_uri: https://github.com/amckinnell/nutrella/blob/master/CHANGELOG.md
|
156
156
|
source_code_uri: https://github.com/amckinnell/nutrella
|
157
157
|
bug_tracker_uri: https://github.com/amckinnell/nutrella/issues
|
158
|
-
post_install_message:
|
158
|
+
post_install_message:
|
159
159
|
rdoc_options: []
|
160
160
|
require_paths:
|
161
161
|
- lib
|
@@ -170,8 +170,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
170
|
- !ruby/object:Gem::Version
|
171
171
|
version: '0'
|
172
172
|
requirements: []
|
173
|
-
rubygems_version: 3.2.
|
174
|
-
signing_key:
|
173
|
+
rubygems_version: 3.2.24
|
174
|
+
signing_key:
|
175
175
|
specification_version: 4
|
176
176
|
summary: A command line tool for creating a Trello Board based on the current git
|
177
177
|
branch.
|