devdev 0.0.9
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 +7 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +7 -0
- data/LICENSE +22 -0
- data/README.md +11 -0
- data/Rakefile +28 -0
- data/bin/devdev +14 -0
- data/devdev.gemspec +25 -0
- data/lib/devdev/tasks/rubocop/rubocop.rake +8 -0
- data/lib/devdev/version.rb +5 -0
- data/lib/devdev.rb +52 -0
- data/lib/generators/devdev/initialize_generator.rb +21 -0
- metadata +100 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a9e5e259e3119c11f65fc03f15d70e635821a3b9e20ffb1be60c0eed68c0a7f2
|
4
|
+
data.tar.gz: 7eeb6b9f2fa54abfb1d34072747dfa018e53e0aaa81ae8943a62bc57fe9e424f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1a2c67cb72953d657691b9bd799130df18a22ea41f283f824e5557de4394f0ca8e61f9da9d199d864310eb3889d307ad6f83acee8b126b9d3670c7ca271b75e2
|
7
|
+
data.tar.gz: 17f817796c0cc2093448a41cb0370fa29498cb8c30ae831baa610767555145f9b4613a0bc625a23141e88c7bdc2cce08511f8fe7921cc9f178d12f321a62b1e9
|
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2020 Lokalise team, Ilya Bodrov
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require File.expand_path('lib/devdev/version', __dir__)
|
4
|
+
|
5
|
+
GEM_NAME = 'devdev'
|
6
|
+
GEM_VERSION = DevDev::VERSION
|
7
|
+
|
8
|
+
task default: :build
|
9
|
+
|
10
|
+
task :test do
|
11
|
+
system 'rspec'
|
12
|
+
end
|
13
|
+
|
14
|
+
task :build do
|
15
|
+
system "gem build #{GEM_NAME}.gemspec"
|
16
|
+
end
|
17
|
+
|
18
|
+
task install: :build do
|
19
|
+
system "gem install #{GEM_NAME}-#{GEM_VERSION}.gem"
|
20
|
+
end
|
21
|
+
|
22
|
+
task publish: :build do
|
23
|
+
system "gem push #{GEM_NAME}-#{GEM_VERSION}.gem"
|
24
|
+
end
|
25
|
+
|
26
|
+
task :clean do
|
27
|
+
system 'rm *.gem'
|
28
|
+
end
|
data/bin/devdev
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require "devdev"
|
5
|
+
|
6
|
+
# display options: devdev
|
7
|
+
if ARGV[0].nil?
|
8
|
+
puts "WE MADE IT HERE"
|
9
|
+
end
|
10
|
+
|
11
|
+
# start build of all steps: devdev build:all
|
12
|
+
if ARGV[0] == "build:all"
|
13
|
+
DevDev.build_all
|
14
|
+
end
|
data/devdev.gemspec
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require File.expand_path('lib/devdev/version', __dir__)
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'devdev'
|
7
|
+
spec.version = DevDev::VERSION
|
8
|
+
spec.authors = ['Austin Wasson']
|
9
|
+
spec.email = ['austinpwasson@gmail.com']
|
10
|
+
spec.summary = 'Streamline your local development environment setup process.'
|
11
|
+
spec.description = 'This gem provides the tools to run and document the steps required to set up the development environments of your projects.'
|
12
|
+
spec.homepage = 'https://github.com/austinwasson/devdev'
|
13
|
+
spec.license = 'MIT'
|
14
|
+
spec.platform = Gem::Platform::RUBY
|
15
|
+
spec.required_ruby_version = '>= 2.7.0'
|
16
|
+
spec.files = Dir['README.md', 'LICENSE', 'CHANGELOG.md', 'lib/**/*.rb', 'lib/**/*.rake',
|
17
|
+
'devdev.gemspec', '.github/*.md', 'Gemfile', 'Rakefile']
|
18
|
+
spec.extra_rdoc_files = ['README.md']
|
19
|
+
spec.executables = ['devdev']
|
20
|
+
|
21
|
+
spec.add_development_dependency 'rspec', '~> 3.12.0'
|
22
|
+
spec.add_development_dependency 'rubocop', '~> 1.55'
|
23
|
+
spec.add_development_dependency 'rubocop-rspec', '~> 2.23'
|
24
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
25
|
+
end
|
data/lib/devdev.rb
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module DevDev
|
4
|
+
class << self
|
5
|
+
# build all commands
|
6
|
+
def build_all
|
7
|
+
i = 0
|
8
|
+
commands = cmd_array
|
9
|
+
commands.each do |cmd|
|
10
|
+
puts blue <<~TEXT
|
11
|
+
#{i += 1}. #{cmd[:title]}
|
12
|
+
TEXT
|
13
|
+
|
14
|
+
puts " #{cmd[:cmd]}\n\n"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
# view next command
|
19
|
+
def next; end
|
20
|
+
|
21
|
+
# skip command
|
22
|
+
def skip; end
|
23
|
+
|
24
|
+
# view command documentation
|
25
|
+
def info; end
|
26
|
+
|
27
|
+
private
|
28
|
+
|
29
|
+
# this will be built from a config created by the user
|
30
|
+
def cmd_array
|
31
|
+
@cmd_array ||= [
|
32
|
+
{
|
33
|
+
title: 'Install Gems',
|
34
|
+
cmd: 'bundle',
|
35
|
+
desc: 'Install all gems listed in the Gemfile. This will create a Gemfile.lock.',
|
36
|
+
path: false
|
37
|
+
},
|
38
|
+
{
|
39
|
+
title: 'Create Database',
|
40
|
+
cmd: 'bundle exec rails db:create',
|
41
|
+
desc: 'This command creates two PostgresQL databases: app_name_test & app_name_development.',
|
42
|
+
notes: 'Before this command runs successfully, you will need to set up your user and password.',
|
43
|
+
path: true
|
44
|
+
}
|
45
|
+
]
|
46
|
+
end
|
47
|
+
|
48
|
+
def blue(string)
|
49
|
+
"\u001b[38;5;39;1m#{string}\033[0m"
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'rails/generators/base'
|
4
|
+
|
5
|
+
module Devdev
|
6
|
+
module Generators
|
7
|
+
class InitializeGenerator < Rails::Generators::Base
|
8
|
+
source_root(__dir__)
|
9
|
+
|
10
|
+
desc 'Creates a DevDev initializer for your application.'
|
11
|
+
|
12
|
+
def create_devdev_file
|
13
|
+
create_file 'config/initializers/devdev.rb', <<~RUBY
|
14
|
+
### DEVDEV INITIALIZER ###
|
15
|
+
RUBY
|
16
|
+
|
17
|
+
template
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
metadata
ADDED
@@ -0,0 +1,100 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: devdev
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.9
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Austin Wasson
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-08-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rspec
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.12.0
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.12.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.55'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.55'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop-rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.23'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.23'
|
55
|
+
description: This gem provides the tools to run and document the steps required to
|
56
|
+
set up the development environments of your projects.
|
57
|
+
email:
|
58
|
+
- austinpwasson@gmail.com
|
59
|
+
executables:
|
60
|
+
- devdev
|
61
|
+
extensions: []
|
62
|
+
extra_rdoc_files:
|
63
|
+
- README.md
|
64
|
+
files:
|
65
|
+
- CHANGELOG.md
|
66
|
+
- Gemfile
|
67
|
+
- LICENSE
|
68
|
+
- README.md
|
69
|
+
- Rakefile
|
70
|
+
- bin/devdev
|
71
|
+
- devdev.gemspec
|
72
|
+
- lib/devdev.rb
|
73
|
+
- lib/devdev/tasks/rubocop/rubocop.rake
|
74
|
+
- lib/devdev/version.rb
|
75
|
+
- lib/generators/devdev/initialize_generator.rb
|
76
|
+
homepage: https://github.com/austinwasson/devdev
|
77
|
+
licenses:
|
78
|
+
- MIT
|
79
|
+
metadata:
|
80
|
+
rubygems_mfa_required: 'true'
|
81
|
+
post_install_message:
|
82
|
+
rdoc_options: []
|
83
|
+
require_paths:
|
84
|
+
- lib
|
85
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 2.7.0
|
90
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0'
|
95
|
+
requirements: []
|
96
|
+
rubygems_version: 3.2.3
|
97
|
+
signing_key:
|
98
|
+
specification_version: 4
|
99
|
+
summary: Streamline your local development environment setup process.
|
100
|
+
test_files: []
|