ninny 0.1.9 → 0.1.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Ninny
2
4
  class UserConfig
3
5
  attr_reader :config
@@ -25,11 +27,9 @@ module Ninny
25
27
  end
26
28
 
27
29
  def read
28
- begin
29
30
  config.read unless @read
30
- rescue TTY::Config::ReadError
31
- raise MissingUserConfig.new("User config not found, run `ninny setup`")
32
- end
31
+ rescue TTY::Config::ReadError
32
+ raise MissingUserConfig, 'User config not found, run `ninny setup`'
33
33
  end
34
34
 
35
35
  def with_read
data/lib/ninny/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ninny
4
- VERSION = "0.1.9"
4
+ VERSION = '0.1.14'
5
5
  end
data/ninny.gemspec CHANGED
@@ -1,72 +1,48 @@
1
1
  # frozen_string_literal: true
2
2
 
3
-
4
- lib = File.expand_path("../lib", __FILE__)
3
+ lib = File.expand_path('lib', __dir__)
5
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
- require "ninny/version"
5
+ require 'ninny/version'
7
6
 
8
7
  Gem::Specification.new do |spec|
9
- spec.name = "ninny"
10
- spec.license = "MIT"
8
+ spec.name = 'ninny'
9
+ spec.license = 'MIT'
11
10
  spec.version = Ninny::VERSION
12
- spec.authors = ["Carl Allen"]
13
- spec.email = ["carl.allen@dispatchwithus.com"]
14
-
15
- spec.summary = "ninny (n): an foolish person, see: git"
16
- spec.description = "Ninny is a command line workflow for git"
17
- # spec.homepage = "TODO: Put your gem's website or public repo URL here."
11
+ spec.authors = ['Dispatch Engineers']
12
+ spec.email = ['engineers@dispatchit.com']
18
13
 
19
- # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
20
- # to allow pushing to a single host or delete this section to allow pushing to any host.
21
- # if spec.respond_to?(:metadata)
22
- # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
23
-
24
- # spec.metadata["homepage_uri"] = spec.homepage
25
- # spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
26
- # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
27
- # else
28
- # raise "RubyGems 2.0 or newer is required to protect against " \
29
- # "public gem pushes."
30
- # end
14
+ spec.summary = 'ninny (n): an foolish person, see: git'
15
+ spec.description = 'Ninny is a command line workflow for git with GitLab'
16
+ spec.homepage = 'https://github.com/dispatchinc/ninny'
31
17
 
32
18
  # Specify which files should be added to the gem when it is released.
33
19
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
34
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
20
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
35
21
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
36
22
  end
37
- spec.bindir = "exe"
38
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
39
- spec.require_paths = ["lib"]
40
-
41
- spec.add_dependency "tty-box", "~> 0.3.0"
42
- spec.add_dependency "tty-color", "~> 0.4"
43
- spec.add_dependency "tty-command", "~> 0.8.0"
44
- spec.add_dependency "tty-config", "~> 0.3.0"
45
- spec.add_dependency "tty-prompt", "~> 0.18.0"
46
-
47
- # spec.add_dependency "tty-cursor", "~> 0.6"
48
- # spec.add_dependency "tty-editor", "~> 0.5.0"
49
- # spec.add_dependency "tty-file", "~> 0.7.0"
50
- # spec.add_dependency "tty-font", "~> 0.2.0"
51
- # spec.add_dependency "tty-markdown", "~> 0.5.0"
52
- # spec.add_dependency "tty-pager", "~> 0.12.0"
53
- # spec.add_dependency "tty-pie", "~> 0.1.0"
54
- # spec.add_dependency "tty-platform", "~> 0.2.0"
55
- # spec.add_dependency "tty-progressbar", "~> 0.16.0"
56
- # spec.add_dependency "tty-screen", "~> 0.6"
57
- # spec.add_dependency "tty-spinner", "~> 0.9.0"
58
- # spec.add_dependency "tty-table", "~> 0.10.0"
59
- # spec.add_dependency "tty-tree", "~> 0.2.0"
60
- # spec.add_dependency "tty-which", "~> 0.4"
61
-
62
- spec.add_dependency "pastel", "~> 0.7.2"
63
- spec.add_dependency "thor", "< 2"
64
-
65
- spec.add_dependency "git", "~> 1.5.0"
66
- spec.add_dependency "gitlab", "~> 4.11"
67
23
 
68
- spec.add_development_dependency "bundler", "~> 1.17"
69
- spec.add_development_dependency "rake", "~> 10.0"
70
- spec.add_development_dependency "rspec", "~> 3.0"
71
- spec.add_development_dependency "byebug"
24
+ spec.bindir = 'exe'
25
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
+ spec.require_paths = ['lib']
27
+
28
+ spec.add_dependency 'git', '~> 1.5.0'
29
+ spec.add_dependency 'gitlab', '~> 4.11'
30
+ spec.add_dependency 'pastel', '~> 0.7.2'
31
+ spec.add_dependency 'thor', '< 2'
32
+ spec.add_dependency 'tty-box', '~> 0.3.0'
33
+ spec.add_dependency 'tty-color', '~> 0.4'
34
+ spec.add_dependency 'tty-command', '~> 0.8.0'
35
+ spec.add_dependency 'tty-config', '~> 0.3.0'
36
+ spec.add_dependency 'tty-prompt', '~> 0.18.0'
37
+
38
+ spec.add_development_dependency 'bundler', '~> 1.17'
39
+ spec.add_development_dependency 'byebug', '~> 11.1'
40
+ spec.add_development_dependency 'guard-rspec', '~> 4.3'
41
+ spec.add_development_dependency 'pronto', '~> 0.11'
42
+ spec.add_development_dependency 'pronto-rubocop', '~> 0.11'
43
+ spec.add_development_dependency 'rake', '~> 13.0'
44
+ spec.add_development_dependency 'rspec', '~> 3.0'
45
+ spec.add_development_dependency 'rubocop', '~> 1.11'
46
+ spec.add_development_dependency 'rubocop-rails', '~> 2.9'
47
+ spec.add_development_dependency 'rubocop-rspec', '~> 2.2'
72
48
  end
metadata CHANGED
@@ -1,15 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ninny
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
- - Carl Allen
7
+ - Dispatch Engineers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-15 00:00:00.000000000 Z
11
+ date: 2021-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: git
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.5.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.5.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: gitlab
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '4.11'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '4.11'
41
+ - !ruby/object:Gem::Dependency
42
+ name: pastel
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.7.2
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.7.2
55
+ - !ruby/object:Gem::Dependency
56
+ name: thor
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "<"
60
+ - !ruby/object:Gem::Version
61
+ version: '2'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "<"
67
+ - !ruby/object:Gem::Version
68
+ version: '2'
13
69
  - !ruby/object:Gem::Dependency
14
70
  name: tty-box
15
71
  requirement: !ruby/object:Gem::Requirement
@@ -81,89 +137,89 @@ dependencies:
81
137
  - !ruby/object:Gem::Version
82
138
  version: 0.18.0
83
139
  - !ruby/object:Gem::Dependency
84
- name: pastel
140
+ name: bundler
85
141
  requirement: !ruby/object:Gem::Requirement
86
142
  requirements:
87
143
  - - "~>"
88
144
  - !ruby/object:Gem::Version
89
- version: 0.7.2
90
- type: :runtime
145
+ version: '1.17'
146
+ type: :development
91
147
  prerelease: false
92
148
  version_requirements: !ruby/object:Gem::Requirement
93
149
  requirements:
94
150
  - - "~>"
95
151
  - !ruby/object:Gem::Version
96
- version: 0.7.2
152
+ version: '1.17'
97
153
  - !ruby/object:Gem::Dependency
98
- name: thor
154
+ name: byebug
99
155
  requirement: !ruby/object:Gem::Requirement
100
156
  requirements:
101
- - - "<"
157
+ - - "~>"
102
158
  - !ruby/object:Gem::Version
103
- version: '2'
104
- type: :runtime
159
+ version: '11.1'
160
+ type: :development
105
161
  prerelease: false
106
162
  version_requirements: !ruby/object:Gem::Requirement
107
163
  requirements:
108
- - - "<"
164
+ - - "~>"
109
165
  - !ruby/object:Gem::Version
110
- version: '2'
166
+ version: '11.1'
111
167
  - !ruby/object:Gem::Dependency
112
- name: git
168
+ name: guard-rspec
113
169
  requirement: !ruby/object:Gem::Requirement
114
170
  requirements:
115
171
  - - "~>"
116
172
  - !ruby/object:Gem::Version
117
- version: 1.5.0
118
- type: :runtime
173
+ version: '4.3'
174
+ type: :development
119
175
  prerelease: false
120
176
  version_requirements: !ruby/object:Gem::Requirement
121
177
  requirements:
122
178
  - - "~>"
123
179
  - !ruby/object:Gem::Version
124
- version: 1.5.0
180
+ version: '4.3'
125
181
  - !ruby/object:Gem::Dependency
126
- name: gitlab
182
+ name: pronto
127
183
  requirement: !ruby/object:Gem::Requirement
128
184
  requirements:
129
185
  - - "~>"
130
186
  - !ruby/object:Gem::Version
131
- version: '4.11'
132
- type: :runtime
187
+ version: '0.11'
188
+ type: :development
133
189
  prerelease: false
134
190
  version_requirements: !ruby/object:Gem::Requirement
135
191
  requirements:
136
192
  - - "~>"
137
193
  - !ruby/object:Gem::Version
138
- version: '4.11'
194
+ version: '0.11'
139
195
  - !ruby/object:Gem::Dependency
140
- name: bundler
196
+ name: pronto-rubocop
141
197
  requirement: !ruby/object:Gem::Requirement
142
198
  requirements:
143
199
  - - "~>"
144
200
  - !ruby/object:Gem::Version
145
- version: '1.17'
201
+ version: '0.11'
146
202
  type: :development
147
203
  prerelease: false
148
204
  version_requirements: !ruby/object:Gem::Requirement
149
205
  requirements:
150
206
  - - "~>"
151
207
  - !ruby/object:Gem::Version
152
- version: '1.17'
208
+ version: '0.11'
153
209
  - !ruby/object:Gem::Dependency
154
210
  name: rake
155
211
  requirement: !ruby/object:Gem::Requirement
156
212
  requirements:
157
213
  - - "~>"
158
214
  - !ruby/object:Gem::Version
159
- version: '10.0'
215
+ version: '13.0'
160
216
  type: :development
161
217
  prerelease: false
162
218
  version_requirements: !ruby/object:Gem::Requirement
163
219
  requirements:
164
220
  - - "~>"
165
221
  - !ruby/object:Gem::Version
166
- version: '10.0'
222
+ version: '13.0'
167
223
  - !ruby/object:Gem::Dependency
168
224
  name: rspec
169
225
  requirement: !ruby/object:Gem::Requirement
@@ -179,35 +235,65 @@ dependencies:
179
235
  - !ruby/object:Gem::Version
180
236
  version: '3.0'
181
237
  - !ruby/object:Gem::Dependency
182
- name: byebug
238
+ name: rubocop
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - "~>"
242
+ - !ruby/object:Gem::Version
243
+ version: '1.11'
244
+ type: :development
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - "~>"
249
+ - !ruby/object:Gem::Version
250
+ version: '1.11'
251
+ - !ruby/object:Gem::Dependency
252
+ name: rubocop-rails
253
+ requirement: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - "~>"
256
+ - !ruby/object:Gem::Version
257
+ version: '2.9'
258
+ type: :development
259
+ prerelease: false
260
+ version_requirements: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - "~>"
263
+ - !ruby/object:Gem::Version
264
+ version: '2.9'
265
+ - !ruby/object:Gem::Dependency
266
+ name: rubocop-rspec
183
267
  requirement: !ruby/object:Gem::Requirement
184
268
  requirements:
185
- - - ">="
269
+ - - "~>"
186
270
  - !ruby/object:Gem::Version
187
- version: '0'
271
+ version: '2.2'
188
272
  type: :development
189
273
  prerelease: false
190
274
  version_requirements: !ruby/object:Gem::Requirement
191
275
  requirements:
192
- - - ">="
276
+ - - "~>"
193
277
  - !ruby/object:Gem::Version
194
- version: '0'
195
- description: Ninny is a command line workflow for git
278
+ version: '2.2'
279
+ description: Ninny is a command line workflow for git with GitLab
196
280
  email:
197
- - carl.allen@dispatchwithus.com
281
+ - engineers@dispatchit.com
198
282
  executables:
199
283
  - ninny
200
284
  extensions: []
201
285
  extra_rdoc_files: []
202
286
  files:
287
+ - ".github/pull_request_template.md"
288
+ - ".github/workflows/main.yml"
289
+ - ".github/workflows/scheduled.yml"
203
290
  - ".gitignore"
204
291
  - ".rspec"
292
+ - ".rubocop.yml"
205
293
  - ".ruby-gemset"
206
294
  - ".ruby-version"
207
- - ".travis.yml"
208
- - CODE_OF_CONDUCT.md
209
295
  - Gemfile
210
- - Gemfile.lock
296
+ - Guardfile
211
297
  - LICENSE.txt
212
298
  - README.md
213
299
  - Rakefile
@@ -217,7 +303,6 @@ files:
217
303
  - lib/ninny.rb
218
304
  - lib/ninny/cli.rb
219
305
  - lib/ninny/command.rb
220
- - lib/ninny/commands/.gitkeep
221
306
  - lib/ninny/commands/create_dated_branch.rb
222
307
  - lib/ninny/commands/new_staging.rb
223
308
  - lib/ninny/commands/output_dated_branch.rb
@@ -229,7 +314,6 @@ files:
229
314
  - lib/ninny/project_config.rb
230
315
  - lib/ninny/repository/gitlab.rb
231
316
  - lib/ninny/repository/pull_request.rb
232
- - lib/ninny/templates/.gitkeep
233
317
  - lib/ninny/templates/new_staging/.gitkeep
234
318
  - lib/ninny/templates/setup/.gitkeep
235
319
  - lib/ninny/templates/stage_up/.gitkeep
@@ -237,7 +321,7 @@ files:
237
321
  - lib/ninny/user_config.rb
238
322
  - lib/ninny/version.rb
239
323
  - ninny.gemspec
240
- homepage:
324
+ homepage: https://github.com/dispatchinc/ninny
241
325
  licenses:
242
326
  - MIT
243
327
  metadata: {}
@@ -256,7 +340,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
256
340
  - !ruby/object:Gem::Version
257
341
  version: '0'
258
342
  requirements: []
259
- rubygems_version: 3.0.8
343
+ rubygems_version: 3.1.4
260
344
  signing_key:
261
345
  specification_version: 4
262
346
  summary: 'ninny (n): an foolish person, see: git'
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
- rvm:
6
- - 2.6.3
7
- before_install: gem install bundler -v 1.17.2
data/CODE_OF_CONDUCT.md DELETED
@@ -1,74 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at carl.allen@dispatchwithus.com. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [http://contributor-covenant.org/version/1/4][version]
72
-
73
- [homepage]: http://contributor-covenant.org
74
- [version]: http://contributor-covenant.org/version/1/4/