nutrella 1.2.2 → 1.3.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: 04af83f42379618d117c1809be7d649bbdbbbed81a673c517e18803bfa0e197e
4
- data.tar.gz: b97707d72d37a96de926540b1a44317e2b7e6df5250160e0e55b70a91e4e7c63
3
+ metadata.gz: 2321108c798fd3867e8eac2a4d5ef41059bfbe335a2b8e3ee94b93da00edaab0
4
+ data.tar.gz: 933966bc0eea7d83deae162b5841375ef795ec20d2abd191b16996d4a8e43d75
5
5
  SHA512:
6
- metadata.gz: 69f16568ee289e671cd0cf75c9a54cd8f3ccd566f132d9902c826821bc7b87f0d9618e19648e9ada45f9102fdb9e3380be8c1f1563960e3f05676c811e626095
7
- data.tar.gz: bef5050b67d4fbffe14b39002a3d3c377d749e8b7da567625f2747aa1d164ad8a6cc7b072ea4d16dfa67d5e0bc494373563de435d0eba33280112247f6b96ada
6
+ metadata.gz: 44d5c1cf2f24967fc7a4f522f71afb7a690536bdee609c8e22d2ff18367757d77c14e69055575d2f8bcf99372575ac4efd0d03ca2e66356c6eaf60df83b89373
7
+ data.tar.gz: 42f308da3f88a6de0f63d1a636d93c3c007b4d3049367e2fd315cd1bf4f6538d742ff57a8e202662da5450d50cb76aa58f162bf4744efb86d15173a0b37a6935
@@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.3.1] - 2019-05-20
10
+ ### Added
11
+ - Added a configuration option to adjust the command that launches your Trello boards
12
+
13
+ ## [1.3.0] - 2019-05-20
14
+ ### Yanked
15
+
9
16
  ## [1.2.2] - 2019-04-27
10
17
  ### Added
11
18
  - Added a changelog
data/README.md CHANGED
@@ -45,7 +45,7 @@ Insert your `token` into your `~/.nutrella.yml` file.
45
45
 
46
46
  If your haven't already done so, insert your `key`, `secret`, and `token` into your `~/.nutrella.yml` file.
47
47
 
48
- The configuration file should look like the following (don't use the keys below, they won't work) :
48
+ The configuration file should look like the following (don't use the keys below, they won't work):
49
49
 
50
50
  # Trello Developer API Keys
51
51
  key: c2fc703429da08b6e7dcb0a878e35564
@@ -54,6 +54,12 @@ The configuration file should look like the following (don't use the keys below,
54
54
 
55
55
  # Optional Configuration
56
56
  organization: 542d76ac2fad4697c3e80448
57
+ launch_command: open $url$
58
+
59
+ Finally, you can adjust the launch_command to fit your needs. For example, on macOS to open your
60
+ Trello board in Firefox change the last line to:
61
+
62
+ launch_command: open -a firefox $url$
57
63
 
58
64
 
59
65
  ## Usage
@@ -23,12 +23,18 @@ module Nutrella
23
23
  url_cache.fetch(@board_name) { task_board.lookup_or_create(@board_name).url }
24
24
  end
25
25
 
26
+ def configuration_values
27
+ @configuration_values ||= Nutrella::Configuration.values(configuration_filename)
28
+ end
29
+
26
30
  def open(url)
27
- system("open #{url}")
31
+ launch_command = configuration_values.fetch(:launch_command).gsub("$url$", url)
32
+
33
+ system(launch_command)
28
34
  end
29
35
 
30
36
  def task_board
31
- Nutrella::TaskBoard.new(Nutrella::Configuration.values(configuration_filename))
37
+ Nutrella::TaskBoard.new(configuration_values)
32
38
  end
33
39
 
34
40
  def url_cache
@@ -17,6 +17,7 @@ module Nutrella
17
17
 
18
18
  # Optional Configuration
19
19
  organization: #{NULOGY_ORGANIZATION_ID}
20
+ launch_command: open $url$
20
21
  YAML
21
22
 
22
23
  attr_reader :path, :values
@@ -40,7 +41,8 @@ module Nutrella
40
41
  key: configuration.fetch("key"),
41
42
  secret: configuration.fetch("secret"),
42
43
  token: configuration.fetch("token"),
43
- organization: configuration.fetch("organization", NULOGY_ORGANIZATION_ID)
44
+ organization: configuration.fetch("organization", NULOGY_ORGANIZATION_ID),
45
+ launch_command: configuration.fetch("launch_command", "open $url$")
44
46
  }
45
47
  rescue => e
46
48
  abort "#{path} #{e}"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nutrella
4
- VERSION = "1.2.2"
4
+ VERSION = "1.3.1"
5
5
  end
@@ -30,8 +30,8 @@ Gem::Specification.new do |spec|
30
30
 
31
31
  spec.add_development_dependency "rake", "~> 12.1"
32
32
  spec.add_development_dependency "rspec", "~> 3.8"
33
- spec.add_development_dependency "rubocop", "~> 0.67"
34
- spec.add_development_dependency "rubocop-performance", "~> 1.1"
35
- spec.add_development_dependency "rubocop-rspec", "~> 1.30"
33
+ spec.add_development_dependency "rubocop", "~> 0.69"
34
+ spec.add_development_dependency "rubocop-performance", "~> 1.3"
35
+ spec.add_development_dependency "rubocop-rspec", "~> 1.33"
36
36
  spec.add_development_dependency "simplecov", "~> 0.16"
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.2.2
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alistair McKinnell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-27 00:00:00.000000000 Z
11
+ date: 2019-05-20 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: '0.67'
61
+ version: '0.69'
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: '0.67'
68
+ version: '0.69'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop-performance
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.1'
75
+ version: '1.3'
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: '1.1'
82
+ version: '1.3'
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: '1.30'
89
+ version: '1.33'
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: '1.30'
96
+ version: '1.33'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: simplecov
99
99
  requirement: !ruby/object:Gem::Requirement