pennyworth 6.0.0 → 6.1.0

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
  SHA1:
3
- metadata.gz: 283d766316cd72ed8df9703003d311f41d5b9a2d
4
- data.tar.gz: 0f46824a8b29a6b3001893d7f77899c360964020
3
+ metadata.gz: fe95810f7d5c71e02bd5179d78d982cd7a46c976
4
+ data.tar.gz: e0910e54d1bf3974e057dccf7865dbe3ae177757
5
5
  SHA512:
6
- metadata.gz: 87440e551f8a00db76f9b16455921285b9cc010e31b31f3551e4241d449c781bd548c81b3f1881109a6ef1db481f828a17a6be8bdf3b0dc111e6fa32e2463122
7
- data.tar.gz: 92716a8e41e6b5297009c38775572098c39c865db5245b2192a350ffc0e7c16960c6d3a29ee66790e81476c80cc1d008a5b807b1f83b134b6d0c535dc4f7e7e0
6
+ metadata.gz: 65ef6a0c42a3beb1dab52741845c7aa3468e694e57bbae2c6b2862642adaa5c3d0845058a3ff073c9de54f7abfe098f9efb4f350ad6d370011d9c5ea1bfdb5ea
7
+ data.tar.gz: 8600f321e5a38c106bb24ad8ee74562970c62c6b45cca6daa5af1a2d42e3bbf4da85f13cb7cda81b47aa47e5fbc9c25f048bbc8848a2db92a94563f04714beec
data/README.md CHANGED
@@ -11,32 +11,32 @@ A command line interface that enhances and extends Alfred with Ruby support.
11
11
 
12
12
  <!-- Tocer[start]: Auto-generated, don't remove. -->
13
13
 
14
- # Table of Contents
15
-
16
- - [Features](#features)
17
- - [Requirements](#requirements)
18
- - [Setup](#setup)
19
- - [Usage](#usage)
20
- - [Command Line Interface (CLI)](#command-line-interface-cli)
21
- - [Customization](#customization)
22
- - [Tests](#tests)
23
- - [Versioning](#versioning)
24
- - [Code of Conduct](#code-of-conduct)
25
- - [Contributions](#contributions)
26
- - [License](#license)
27
- - [History](#history)
28
- - [Credits](#credits)
14
+ ## Table of Contents
15
+
16
+ - [Features](#features)
17
+ - [Requirements](#requirements)
18
+ - [Setup](#setup)
19
+ - [Usage](#usage)
20
+ - [Command Line Interface (CLI)](#command-line-interface-cli)
21
+ - [Customization](#customization)
22
+ - [Tests](#tests)
23
+ - [Versioning](#versioning)
24
+ - [Code of Conduct](#code-of-conduct)
25
+ - [Contributions](#contributions)
26
+ - [License](#license)
27
+ - [History](#history)
28
+ - [Credits](#credits)
29
29
 
30
30
  <!-- Tocer[finish]: Auto-generated, don't remove. -->
31
31
 
32
- # Features
32
+ ## Features
33
33
 
34
34
  - Adds Ruby support to Alfred.
35
35
  - Adds Alfred Workflow:
36
36
 
37
37
  ![Alfred Workflow](doc/alfred_workflow.png)
38
38
 
39
- # Requirements
39
+ ## Requirements
40
40
 
41
41
  0. [macOS](https://www.apple.com/macos).
42
42
  0. [Alfred](https://www.alfredapp.com) (Version 2.x.x or higher).
@@ -44,7 +44,7 @@ A command line interface that enhances and extends Alfred with Ruby support.
44
44
  0. [rbenv](https://github.com/sstephenson/rbenv).
45
45
  0. [Ruby 2.4.x](https://www.ruby-lang.org).
46
46
 
47
- # Setup
47
+ ## Setup
48
48
 
49
49
  For a secure install, type the following from the command line (recommended):
50
50
 
@@ -59,9 +59,9 @@ For an insecure install, type the following (not recommended):
59
59
  gem install pennyworth
60
60
 
61
61
 
62
- # Usage
62
+ ## Usage
63
63
 
64
- ## Command Line Interface (CLI)
64
+ ### Command Line Interface (CLI)
65
65
 
66
66
  From the command line, type: pennyworth
67
67
 
@@ -89,7 +89,7 @@ provided by each workflow instead of the CLI. Check each workflows documentation
89
89
  opening Alfred preferences and clicking on the _Workflows_ tab. Each workflow associated with this
90
90
  gem is prefixed with _Pennyworth_.
91
91
 
92
- ## Customization
92
+ ### Customization
93
93
 
94
94
  This gem can be configured via a global configuration:
95
95
 
@@ -105,13 +105,13 @@ The default configuration is as follows:
105
105
  Feel free to take this default configuration, modify, and save as your own custom
106
106
  `configuration.yml`.
107
107
 
108
- # Tests
108
+ ## Tests
109
109
 
110
110
  To test, run:
111
111
 
112
112
  bundle exec rake
113
113
 
114
- # Versioning
114
+ ## Versioning
115
115
 
116
116
  Read [Semantic Versioning](http://semver.org) for details. Briefly, it means:
117
117
 
@@ -119,25 +119,25 @@ Read [Semantic Versioning](http://semver.org) for details. Briefly, it means:
119
119
  - Minor (x.Y.z) - Incremented for new, backwards compatible, public API enhancements/fixes.
120
120
  - Patch (x.y.Z) - Incremented for small, backwards compatible, bug fixes.
121
121
 
122
- # Code of Conduct
122
+ ## Code of Conduct
123
123
 
124
124
  Please note that this project is released with a [CODE OF CONDUCT](CODE_OF_CONDUCT.md). By
125
125
  participating in this project you agree to abide by its terms.
126
126
 
127
- # Contributions
127
+ ## Contributions
128
128
 
129
129
  Read [CONTRIBUTING](CONTRIBUTING.md) for details.
130
130
 
131
- # License
131
+ ## License
132
132
 
133
133
  Copyright (c) 2012 [Alchemists](https://www.alchemists.io).
134
134
  Read [LICENSE](LICENSE.md) for details.
135
135
 
136
- # History
136
+ ## History
137
137
 
138
138
  Read [CHANGES](CHANGES.md) for details.
139
139
  Built with [Gemsmith](https://github.com/bkuhlmann/gemsmith).
140
140
 
141
- # Credits
141
+ ## Credits
142
142
 
143
143
  Developed by [Brooke Kuhlmann](https://www.alchemists.io) at [Alchemists](https://www.alchemists.io)
@@ -2,7 +2,6 @@
2
2
 
3
3
  require "thor"
4
4
  require "thor/actions"
5
- require "thor_plus/actions"
6
5
  require "refinements/strings"
7
6
  require "runcom"
8
7
 
@@ -11,7 +10,6 @@ module Pennyworth
11
10
  # rubocop:disable Metrics/ClassLength
12
11
  class CLI < Thor
13
12
  include Thor::Actions
14
- include ThorPlus::Actions
15
13
  using Refinements::Strings
16
14
 
17
15
  package_name Identity.version_label
@@ -83,7 +81,7 @@ module Pennyworth
83
81
 
84
82
  if valid_file?(alfred_settings_root, "Invalid directory for Alfred settings root")
85
83
  if yes? "Installing Alfred Workflows will destroy exiting workflows of the same name. Continue (y/n)?"
86
- info "Installing Alfred Workflows..."
84
+ say_status :info, "Installing Alfred Workflows...", :green
87
85
 
88
86
  workflows = Dir.glob File.join(self.class.source_root, "workflows", "**")
89
87
  alfred_workflows_root = File.join alfred_settings_root, "workflows"
@@ -94,12 +92,12 @@ module Pennyworth
94
92
  directory File.join("workflows", name), destination
95
93
  end
96
94
 
97
- info "Alfred Workflows installed."
95
+ say_status :info, "Alfred Workflows installed.", :green
98
96
  else
99
- info "Alfred Workflows installation cancelled."
97
+ say_status :info, "Alfred Workflows installation cancelled.", :green
100
98
  end
101
99
  else
102
- error "Invalid Alfred settings directory: #{alfred_settings_root}"
100
+ say_status :error, "Invalid Alfred settings directory: #{alfred_settings_root}", :red
103
101
  end
104
102
 
105
103
  say
@@ -118,7 +116,7 @@ module Pennyworth
118
116
  def config
119
117
  path = self.class.configuration.path
120
118
 
121
- if options.edit? then `#{editor} #{path}`
119
+ if options.edit? then `#{ENV["EDITOR"]} #{path}`
122
120
  elsif options.info?
123
121
  path ? say(path) : say("Configuration doesn't exist.")
124
122
  else help(:config)
@@ -12,7 +12,7 @@ module Pennyworth
12
12
  end
13
13
 
14
14
  def self.version
15
- "6.0.0"
15
+ "6.1.0"
16
16
  end
17
17
 
18
18
  def self.version_label
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pennyworth
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 6.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-18 00:00:00.000000000 Z
11
+ date: 2017-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -16,56 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.19'
19
+ version: '0.20'
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: '0.19'
27
- - !ruby/object:Gem::Dependency
28
- name: thor_plus
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '5.1'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '5.1'
26
+ version: '0.20'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: refinements
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
31
  - - "~>"
46
32
  - !ruby/object:Gem::Version
47
- version: '4.1'
33
+ version: '4.2'
48
34
  type: :runtime
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
38
  - - "~>"
53
39
  - !ruby/object:Gem::Version
54
- version: '4.1'
40
+ version: '4.2'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: runcom
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
45
  - - "~>"
60
46
  - !ruby/object:Gem::Version
61
- version: '1.1'
47
+ version: '1.3'
62
48
  type: :runtime
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
52
  - - "~>"
67
53
  - !ruby/object:Gem::Version
68
- version: '1.1'
54
+ version: '1.3'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: rake
71
57
  requirement: !ruby/object:Gem::Requirement
@@ -81,47 +67,47 @@ dependencies:
81
67
  - !ruby/object:Gem::Version
82
68
  version: '12.0'
83
69
  - !ruby/object:Gem::Dependency
84
- name: pry
70
+ name: gemsmith
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
73
  - - "~>"
88
74
  - !ruby/object:Gem::Version
89
- version: '0.10'
75
+ version: '10.3'
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
80
  - - "~>"
95
81
  - !ruby/object:Gem::Version
96
- version: '0.10'
82
+ version: '10.3'
97
83
  - !ruby/object:Gem::Dependency
98
- name: pry-byebug
84
+ name: pry
99
85
  requirement: !ruby/object:Gem::Requirement
100
86
  requirements:
101
87
  - - "~>"
102
88
  - !ruby/object:Gem::Version
103
- version: '3.4'
89
+ version: '0.10'
104
90
  type: :development
105
91
  prerelease: false
106
92
  version_requirements: !ruby/object:Gem::Requirement
107
93
  requirements:
108
94
  - - "~>"
109
95
  - !ruby/object:Gem::Version
110
- version: '3.4'
96
+ version: '0.10'
111
97
  - !ruby/object:Gem::Dependency
112
- name: pry-state
98
+ name: pry-byebug
113
99
  requirement: !ruby/object:Gem::Requirement
114
100
  requirements:
115
101
  - - "~>"
116
102
  - !ruby/object:Gem::Version
117
- version: '0.1'
103
+ version: '3.5'
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
107
  requirements:
122
108
  - - "~>"
123
109
  - !ruby/object:Gem::Version
124
- version: '0.1'
110
+ version: '3.5'
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: bond
127
113
  requirement: !ruby/object:Gem::Requirement
@@ -142,14 +128,14 @@ dependencies:
142
128
  requirements:
143
129
  - - "~>"
144
130
  - !ruby/object:Gem::Version
145
- version: '2.0'
131
+ version: '2.1'
146
132
  type: :development
147
133
  prerelease: false
148
134
  version_requirements: !ruby/object:Gem::Requirement
149
135
  requirements:
150
136
  - - "~>"
151
137
  - !ruby/object:Gem::Version
152
- version: '2.0'
138
+ version: '2.1'
153
139
  - !ruby/object:Gem::Dependency
154
140
  name: hirb
155
141
  requirement: !ruby/object:Gem::Requirement
@@ -170,28 +156,28 @@ dependencies:
170
156
  requirements:
171
157
  - - "~>"
172
158
  - !ruby/object:Gem::Version
173
- version: '1.7'
159
+ version: '1.8'
174
160
  type: :development
175
161
  prerelease: false
176
162
  version_requirements: !ruby/object:Gem::Requirement
177
163
  requirements:
178
164
  - - "~>"
179
165
  - !ruby/object:Gem::Version
180
- version: '1.7'
166
+ version: '1.8'
181
167
  - !ruby/object:Gem::Dependency
182
168
  name: rspec
183
169
  requirement: !ruby/object:Gem::Requirement
184
170
  requirements:
185
171
  - - "~>"
186
172
  - !ruby/object:Gem::Version
187
- version: '3.5'
173
+ version: '3.6'
188
174
  type: :development
189
175
  prerelease: false
190
176
  version_requirements: !ruby/object:Gem::Requirement
191
177
  requirements:
192
178
  - - "~>"
193
179
  - !ruby/object:Gem::Version
194
- version: '3.5'
180
+ version: '3.6'
195
181
  - !ruby/object:Gem::Dependency
196
182
  name: guard-rspec
197
183
  requirement: !ruby/object:Gem::Requirement
@@ -206,6 +192,20 @@ dependencies:
206
192
  - - "~>"
207
193
  - !ruby/object:Gem::Version
208
194
  version: '4.7'
195
+ - !ruby/object:Gem::Dependency
196
+ name: git-cop
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: '1.6'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: '1.6'
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: reek
211
211
  requirement: !ruby/object:Gem::Requirement