nutrella 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +20 -5
- data/.ruby-version +1 -1
- data/.travis.yml +1 -0
- data/README.md +5 -1
- data/bin/rake +13 -0
- data/bin/rspec +13 -0
- data/bin/rubocop +13 -0
- data/exe/nutrella +1 -1
- data/lib/nutrella/command.rb +3 -3
- data/lib/nutrella/version.rb +1 -1
- data/nutrella.gemspec +7 -9
- metadata +15 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5517e7eb72e7f70e87bcfc5e2fa7f9d56beeaf62
|
4
|
+
data.tar.gz: 166e04bea193e825b24e4be2c45a0ec7cd468349
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5292edbac29bd3c2ca276e245e05b3f9507a74cabec817424cde3ee983e9511a100bf5da8a7d4be3a60de7fd3478be9fa5ba2a4e035f1e1590129eceeac83360
|
7
|
+
data.tar.gz: e075a5710dd6124d8353e7741ae0c837126b286711ac19e0a51563fc371d9d4df41e1a36d9ae120491bafb6851ede08ac755e2be4656c30c515b8dc2264e1b38
|
data/.rubocop.yml
CHANGED
@@ -1,25 +1,40 @@
|
|
1
1
|
AllCops:
|
2
|
-
TargetRubyVersion: 2.
|
2
|
+
TargetRubyVersion: 2.4
|
3
3
|
|
4
4
|
Exclude:
|
5
5
|
- 'bin/**/*'
|
6
6
|
|
7
|
+
# Rubocop and I cannot agree.
|
8
|
+
Layout/MultilineMethodCallBraceLayout:
|
9
|
+
Enabled: false
|
10
|
+
|
11
|
+
Metrics/BlockLength:
|
12
|
+
Enabled: false
|
13
|
+
|
7
14
|
Metrics/LineLength:
|
8
15
|
Max: 120
|
9
16
|
|
17
|
+
# We can ignore this small performance improvement.
|
18
|
+
Style/FrozenStringLiteralComment:
|
19
|
+
Enabled: false
|
20
|
+
|
10
21
|
# We like to use the hash rocket in rake files.
|
11
22
|
Style/HashSyntax:
|
12
23
|
Exclude:
|
13
24
|
- 'Rakefile'
|
14
25
|
|
26
|
+
# No need to mention StandardError.
|
27
|
+
Style/RescueStandardError:
|
28
|
+
EnforcedStyle: implicit
|
29
|
+
|
15
30
|
# We'll just use double quotes everywhere.
|
16
31
|
Style/StringLiterals:
|
17
32
|
EnforcedStyle: double_quotes
|
18
33
|
|
19
|
-
#
|
20
|
-
Style/
|
34
|
+
# I prefer not to use %i or %I for an array of symbols.
|
35
|
+
Style/SymbolArray:
|
21
36
|
Enabled: false
|
22
37
|
|
23
|
-
#
|
24
|
-
Style/
|
38
|
+
# We are not going to optimize by freezing strings.
|
39
|
+
Style/MutableConstant:
|
25
40
|
Enabled: false
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.4.3
|
data/.travis.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
language: ruby
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[![Gem Version](http://img.shields.io/gem/v/nutrella.svg?style=flat)](https://rubygems.org/gems/nutrella)
|
4
4
|
[![Code Climate](https://codeclimate.com/github/amckinnell/nutrella/badges/gpa.svg)](https://codeclimate.com/github/amckinnell/nutrella)
|
5
|
-
[![
|
5
|
+
[![Build Status](https://travis-ci.org/amckinnell/nutrella.svg?branch=master)](https://travis-ci.org/amckinnell/nutrella)
|
6
6
|
|
7
7
|
A command line tool for associating a Trello board with the current git branch.
|
8
8
|
|
@@ -62,6 +62,10 @@ Create or open a Trello board based on the name of the current git branch:
|
|
62
62
|
|
63
63
|
$ nutrella
|
64
64
|
|
65
|
+
Create or open a named Trello board:
|
66
|
+
|
67
|
+
$ nutrella <board-name>
|
68
|
+
|
65
69
|
Note: you can invoke the `nutrella` from your project directory or from any subdirectory.
|
66
70
|
|
67
71
|
## Troubleshooting
|
data/bin/rake
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
2
4
|
#
|
3
5
|
# This file was generated by Bundler.
|
4
6
|
#
|
@@ -10,6 +12,17 @@ require "pathname"
|
|
10
12
|
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
11
13
|
Pathname.new(__FILE__).realpath)
|
12
14
|
|
15
|
+
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
16
|
+
|
17
|
+
if File.file?(bundle_binstub)
|
18
|
+
if File.read(bundle_binstub, 150) =~ /This file was generated by Bundler/
|
19
|
+
load(bundle_binstub)
|
20
|
+
else
|
21
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
22
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
13
26
|
require "rubygems"
|
14
27
|
require "bundler/setup"
|
15
28
|
|
data/bin/rspec
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
2
4
|
#
|
3
5
|
# This file was generated by Bundler.
|
4
6
|
#
|
@@ -10,6 +12,17 @@ require "pathname"
|
|
10
12
|
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
11
13
|
Pathname.new(__FILE__).realpath)
|
12
14
|
|
15
|
+
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
16
|
+
|
17
|
+
if File.file?(bundle_binstub)
|
18
|
+
if File.read(bundle_binstub, 150) =~ /This file was generated by Bundler/
|
19
|
+
load(bundle_binstub)
|
20
|
+
else
|
21
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
22
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
13
26
|
require "rubygems"
|
14
27
|
require "bundler/setup"
|
15
28
|
|
data/bin/rubocop
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
2
4
|
#
|
3
5
|
# This file was generated by Bundler.
|
4
6
|
#
|
@@ -10,6 +12,17 @@ require "pathname"
|
|
10
12
|
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
11
13
|
Pathname.new(__FILE__).realpath)
|
12
14
|
|
15
|
+
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
16
|
+
|
17
|
+
if File.file?(bundle_binstub)
|
18
|
+
if File.read(bundle_binstub, 150) =~ /This file was generated by Bundler/
|
19
|
+
load(bundle_binstub)
|
20
|
+
else
|
21
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
22
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
13
26
|
require "rubygems"
|
14
27
|
require "bundler/setup"
|
15
28
|
|
data/exe/nutrella
CHANGED
data/lib/nutrella/command.rb
CHANGED
@@ -12,7 +12,7 @@ module Nutrella
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def run
|
15
|
-
open board_url
|
15
|
+
open board_url # rubocop:disable Security/Open
|
16
16
|
end
|
17
17
|
|
18
18
|
private
|
@@ -26,11 +26,11 @@ module Nutrella
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def task_board
|
29
|
-
TaskBoard.new(Configuration.values(configuration_filename))
|
29
|
+
Nutrella::TaskBoard.new(Nutrella::Configuration.values(configuration_filename))
|
30
30
|
end
|
31
31
|
|
32
32
|
def url_cache
|
33
|
-
Cache.new(cache_filename, 5)
|
33
|
+
Nutrella::Cache.new(cache_filename, 5)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
data/lib/nutrella/version.rb
CHANGED
data/nutrella.gemspec
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
lib = File.expand_path("
|
1
|
+
lib = File.expand_path("lib", __dir__)
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
3
|
require "nutrella/version"
|
4
4
|
|
@@ -17,14 +17,12 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
|
-
spec.required_ruby_version = ">= 2.
|
20
|
+
spec.required_ruby_version = ">= 2.4"
|
21
21
|
|
22
|
-
spec.add_runtime_dependency "ruby-trello", "~> 2.
|
22
|
+
spec.add_runtime_dependency "ruby-trello", "~> 2.1"
|
23
23
|
|
24
|
-
spec.add_development_dependency "
|
25
|
-
spec.add_development_dependency "
|
26
|
-
spec.add_development_dependency "
|
27
|
-
spec.add_development_dependency "
|
28
|
-
spec.add_development_dependency "rubocop", "~> 0.49.0"
|
29
|
-
spec.add_development_dependency "simplecov", "~> 0.14"
|
24
|
+
spec.add_development_dependency "rake", "~> 12.1"
|
25
|
+
spec.add_development_dependency "rspec", "~> 3.7"
|
26
|
+
spec.add_development_dependency "rubocop", "~> 0.58.0"
|
27
|
+
spec.add_development_dependency "simplecov", "~> 0.16"
|
30
28
|
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: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alistair McKinnell
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-trello
|
@@ -16,98 +16,70 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2.
|
19
|
+
version: '2.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '2.
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: httplog
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0.3'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0.3'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: mutant-rspec
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0.8'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0.8'
|
26
|
+
version: '2.1'
|
55
27
|
- !ruby/object:Gem::Dependency
|
56
28
|
name: rake
|
57
29
|
requirement: !ruby/object:Gem::Requirement
|
58
30
|
requirements:
|
59
31
|
- - "~>"
|
60
32
|
- !ruby/object:Gem::Version
|
61
|
-
version: '12.
|
33
|
+
version: '12.1'
|
62
34
|
type: :development
|
63
35
|
prerelease: false
|
64
36
|
version_requirements: !ruby/object:Gem::Requirement
|
65
37
|
requirements:
|
66
38
|
- - "~>"
|
67
39
|
- !ruby/object:Gem::Version
|
68
|
-
version: '12.
|
40
|
+
version: '12.1'
|
69
41
|
- !ruby/object:Gem::Dependency
|
70
42
|
name: rspec
|
71
43
|
requirement: !ruby/object:Gem::Requirement
|
72
44
|
requirements:
|
73
45
|
- - "~>"
|
74
46
|
- !ruby/object:Gem::Version
|
75
|
-
version: '3.
|
47
|
+
version: '3.7'
|
76
48
|
type: :development
|
77
49
|
prerelease: false
|
78
50
|
version_requirements: !ruby/object:Gem::Requirement
|
79
51
|
requirements:
|
80
52
|
- - "~>"
|
81
53
|
- !ruby/object:Gem::Version
|
82
|
-
version: '3.
|
54
|
+
version: '3.7'
|
83
55
|
- !ruby/object:Gem::Dependency
|
84
56
|
name: rubocop
|
85
57
|
requirement: !ruby/object:Gem::Requirement
|
86
58
|
requirements:
|
87
59
|
- - "~>"
|
88
60
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
61
|
+
version: 0.58.0
|
90
62
|
type: :development
|
91
63
|
prerelease: false
|
92
64
|
version_requirements: !ruby/object:Gem::Requirement
|
93
65
|
requirements:
|
94
66
|
- - "~>"
|
95
67
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
68
|
+
version: 0.58.0
|
97
69
|
- !ruby/object:Gem::Dependency
|
98
70
|
name: simplecov
|
99
71
|
requirement: !ruby/object:Gem::Requirement
|
100
72
|
requirements:
|
101
73
|
- - "~>"
|
102
74
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0.
|
75
|
+
version: '0.16'
|
104
76
|
type: :development
|
105
77
|
prerelease: false
|
106
78
|
version_requirements: !ruby/object:Gem::Requirement
|
107
79
|
requirements:
|
108
80
|
- - "~>"
|
109
81
|
- !ruby/object:Gem::Version
|
110
|
-
version: '0.
|
82
|
+
version: '0.16'
|
111
83
|
description:
|
112
84
|
email:
|
113
85
|
- alistair.mckinnell@gmail.com
|
@@ -123,6 +95,7 @@ files:
|
|
123
95
|
- ".rspec"
|
124
96
|
- ".rubocop.yml"
|
125
97
|
- ".ruby-version"
|
98
|
+
- ".travis.yml"
|
126
99
|
- CODE_OF_CONDUCT.md
|
127
100
|
- Gemfile
|
128
101
|
- LICENSE.txt
|
@@ -157,7 +130,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
157
130
|
requirements:
|
158
131
|
- - ">="
|
159
132
|
- !ruby/object:Gem::Version
|
160
|
-
version: '2.
|
133
|
+
version: '2.4'
|
161
134
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
135
|
requirements:
|
163
136
|
- - ">="
|
@@ -165,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
138
|
version: '0'
|
166
139
|
requirements: []
|
167
140
|
rubyforge_project:
|
168
|
-
rubygems_version: 2.6.
|
141
|
+
rubygems_version: 2.6.14
|
169
142
|
signing_key:
|
170
143
|
specification_version: 4
|
171
144
|
summary: A command line tool for creating a Trello Board based on the current git
|