devinator 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 046f88a18615ff14000b6152870bc84c8e8f7eedfd827a9c8a24d1c001f5fb9a
4
- data.tar.gz: d22ff6f57a13d3c6166cc61665f26bd40f3da09c4af11e1aa8bb37ce043c262b
3
+ metadata.gz: 5f17530cb7dd29207ae5eb905c34ed38324b138a0929c096ac3abe323548c3af
4
+ data.tar.gz: 877045f49e6ea278b69e474b51c68c7185ef7f74af622ced5b71bb39f8bfe784
5
5
  SHA512:
6
- metadata.gz: 8df565e8abfe627a0092227af9d393242c5e906bc85279ea5ff09147e5a64a3e98c81d5d7b7b17776058df9b486fbdd8a08bf9e7e7ea6d19f6696fc98538e55d
7
- data.tar.gz: 14f6a8f20a1109135bf49acea9f5139a51524efc3828e9124445af3067bc78fbdeb216a94cc93a25ef9d71cd09af3ee70c6b80a3ee639275f686079489746a2f
6
+ metadata.gz: 5b4da0686c9c96371fd8c16d2473610f86457f43b793366128491f8e7cfc9531db59db8e2966f010159119d89bd8693a5e60d1222849547cd12f8f759f81f0ba
7
+ data.tar.gz: f22476dd8fc09263fff82b3e242110e97e2c1e9e5963ec8bce30130adfac8b29e0795caf4cc0cce45041c0dbcb632a42f795ca20aedc42a261ec575d82a584e9
data/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
1
  source "https://rubygems.org" do
2
- gem "tty-command"
2
+ gemspec
3
3
 
4
4
  group :development do
5
5
  gem "standardrb"
data/Gemfile.lock CHANGED
@@ -1,20 +1,29 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ devinator (0.0.2)
5
+ tty-command
6
+
1
7
  GEM
2
8
  specs:
9
+ pastel (0.8.0)
10
+ tty-color (~> 0.5)
11
+ tty-color (0.6.0)
12
+ tty-command (0.10.1)
13
+ pastel (~> 0.8)
3
14
 
4
15
  GEM
5
16
  remote: https://rubygems.org/
6
17
  specs:
7
18
  ast (2.4.3)
8
19
  diff-lcs (1.6.2)
9
- json (2.15.1)
20
+ json (2.15.2)
10
21
  language_server-protocol (3.17.0.5)
11
22
  lint_roller (1.1.0)
12
23
  parallel (1.27.0)
13
24
  parser (3.3.9.0)
14
25
  ast (~> 2.4.1)
15
26
  racc
16
- pastel (0.8.0)
17
- tty-color (~> 0.5)
18
27
  prism (1.6.0)
19
28
  racc (1.8.1)
20
29
  rainbow (3.1.1)
@@ -65,9 +74,6 @@ GEM
65
74
  rubocop-performance (~> 1.25.0)
66
75
  standardrb (1.0.1)
67
76
  standard
68
- tty-color (0.6.0)
69
- tty-command (0.10.1)
70
- pastel (~> 0.8)
71
77
  unicode-display_width (3.2.0)
72
78
  unicode-emoji (~> 4.1)
73
79
  unicode-emoji (4.1.0)
@@ -77,9 +83,9 @@ PLATFORMS
77
83
  x86_64-linux
78
84
 
79
85
  DEPENDENCIES
86
+ devinator!
80
87
  rspec!
81
88
  standardrb!
82
- tty-command!
83
89
 
84
90
  BUNDLED WITH
85
91
  2.7.2
data/Makefile CHANGED
@@ -1,7 +1,13 @@
1
- .PHONY: setup_hooks pretty build
1
+ .PHONY: setup_hooks pretty build clean deploy
2
+ clean:
3
+ rm *.gem
4
+
2
5
  build:
3
6
  gem build
4
7
 
8
+ deploy: clean build
9
+ gem push devinator-*.gem
10
+
5
11
  setup_hooks:
6
12
  git config core.hooksPath ./.git-hooks
7
13
 
data/README.md CHANGED
@@ -8,9 +8,59 @@ opinionated but can be twisted to your will.
8
8
  Simply `cd` to your project and run `devinator`. It will do several things for
9
9
  you in this order:
10
10
 
11
+ 1. `bin/setup`
12
+ 2. launch your editor
13
+ 3. start `tmux`
14
+ 4. run the commands in `Procfile.dev` or `bin/dev`
15
+
16
+ ### With a dx setup
17
+
18
+ If you have some extra files they will be used to run your project in the dx
19
+ environment. So running it would look more like:
20
+
11
21
  1. `dx/build`
12
22
  2. `dx/start`
13
- 3. `bin/setup` or `bin/setup`
14
- 4. start your multiplexer
23
+ 3. `dx/exec bin/setup`
15
24
  5. launch your editor
16
- 6. run the commands in `Procfile.dev` or `bin/dev`
25
+ 4. start `tmux`
26
+ 6. run the commands in `Procfile.dev` prefixed with `dx/exec` or `dx/exec bin/dev`
27
+
28
+ ## Installation for Linux/OSX
29
+
30
+ 1. run `ruby --version` to confirm it's installed
31
+ 2. `gem install devinator`
32
+ 3. `which devinator` to confirm it installed and is in your `$PATH`
33
+
34
+ ## Configuration
35
+
36
+ Open `~/.config/devinator.rb` with your editor of choice and add the following
37
+ content:
38
+
39
+ ```ruby
40
+ Devinator::Config.configure do |config|
41
+ # Use this to run any personal commands before the usual culprits, this is
42
+ # useful for loading secrets and the like.
43
+ config.setup_commands = []
44
+
45
+ # If your editor is run in as :first_command or :last_command then this is the
46
+ # title that tmux will get for that window.
47
+ config.editor.title = "editor"
48
+
49
+ # This is your editor command, if you're running it with a timing of
50
+ # :end_of_setup then you will want to make sure this isn't foregrounded. I
51
+ # belive `code` by default will go into the background, so that's a good setup
52
+ # if you use VSCode.
53
+ config.editor.command = ENV["EDITOR"]
54
+
55
+ # This is when you want your editor command to run, the valid options are:
56
+ # - :end_of_setup
57
+ # - :first_command
58
+ # - :last_command
59
+ #
60
+ # :end_of_setup will call it as the last setup command before tmux is
61
+ # launched.
62
+ # :first_command will call it in the first window of tmux
63
+ # :last_command will call it in the last window of tmux
64
+ config.editor.timing = :first_command
65
+ end
66
+ ```
data/devinator.gemspec CHANGED
@@ -18,4 +18,6 @@ Gem::Specification.new do |gem|
18
18
  gem.executables = [
19
19
  "devinator"
20
20
  ]
21
+
22
+ gem.add_dependency "tty-command"
21
23
  end
@@ -1,3 +1,3 @@
1
1
  class Devinator
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,28 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devinator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Earle
8
8
  bindir: bin
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
11
- dependencies: []
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: tty-command
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '0'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '0'
12
26
  description: |2
13
27
  A little tool to help you get your development
14
28
  environment up and running with a single command.