devbin 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 6122cb01b698481193232726057771f445c1d13e584c96bff5615569d2ce311e
4
+ data.tar.gz: 78ad22eb148758a580f6493d4e2af87d038312565f0cf7efb9be5045b02615ab
5
+ SHA512:
6
+ metadata.gz: 50735ad47756d0616ebf0ae37ad2cacdd04de4c507034914e6c39b0e9673e00fc31728c77ac8a634aba672b51569bdc3ecba5613ef816e7aad547d94a863666c
7
+ data.tar.gz: 8dc2487c98e53f1dbde4c33dbff71870537be6dc358af0f54a0610856502b807cab5c89910ff064d0605f92dbcb12c5b92a82bc3d112fed02884b2fe04e269e8
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,8 @@
1
+ require: rubocop-rspec
2
+ inherit_gem:
3
+ rubocop-github:
4
+ - config/default.yml
5
+ - config/rails.yml
6
+ AllCops:
7
+ Exclude:
8
+ - pkg/
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.0
7
+ before_install: gem install bundler -v 1.17.2
@@ -0,0 +1,74 @@
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 yeuem1vannam@users.noreply.github.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/
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in devbin.gemspec
6
+ gemspec
7
+
8
+
9
+ group :development do
10
+ gem "rubocop-github", require: false
11
+ gem "rubocop-rspec", require: false
12
+ end
@@ -0,0 +1,170 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ devbin (0.0.0)
5
+ docker-sync
6
+ pastel (~> 0.7.2)
7
+ thor (~> 0.20.0)
8
+ tty-box (~> 0.3.0)
9
+ tty-color (~> 0.4)
10
+ tty-command (~> 0.8.0)
11
+ tty-config (~> 0.3.0)
12
+ tty-cursor (~> 0.6)
13
+ tty-editor (~> 0.5.0)
14
+ tty-file (~> 0.7.0)
15
+ tty-font (~> 0.2.0)
16
+ tty-markdown (~> 0.5.0)
17
+ tty-pager (~> 0.12.0)
18
+ tty-pie (~> 0.1.0)
19
+ tty-platform (~> 0.2.0)
20
+ tty-progressbar (~> 0.16.0)
21
+ tty-prompt (~> 0.18.0)
22
+ tty-screen (~> 0.6)
23
+ tty-spinner (~> 0.9.0)
24
+ tty-table (~> 0.10.0)
25
+ tty-tree (~> 0.2.0)
26
+ tty-which (~> 0.4)
27
+
28
+ GEM
29
+ remote: https://rubygems.org/
30
+ specs:
31
+ ast (2.4.0)
32
+ backticks (1.0.2)
33
+ daemons (1.3.1)
34
+ diff-lcs (1.3)
35
+ docker-compose (1.1.10)
36
+ backticks (~> 1.0)
37
+ docker-sync (0.5.9)
38
+ daemons (~> 1.2, >= 1.2.3)
39
+ docker-compose (~> 1.1, >= 1.1.7)
40
+ dotenv (~> 2.1, >= 2.1.1)
41
+ gem_update_checker (~> 0.2.0, >= 0.2.0)
42
+ os
43
+ terminal-notifier (= 2.0.0)
44
+ thor (~> 0.20, >= 0.20.0)
45
+ dotenv (2.6.0)
46
+ equatable (0.5.0)
47
+ gem_update_checker (0.2.0)
48
+ jaro_winkler (1.5.2)
49
+ kramdown (1.16.2)
50
+ necromancer (0.4.0)
51
+ os (1.0.0)
52
+ parallel (1.12.1)
53
+ parser (2.5.3.0)
54
+ ast (~> 2.4.0)
55
+ pastel (0.7.2)
56
+ equatable (~> 0.5.0)
57
+ tty-color (~> 0.4.0)
58
+ powerpack (0.1.2)
59
+ rainbow (3.0.0)
60
+ rake (10.5.0)
61
+ rouge (3.3.0)
62
+ rspec (3.8.0)
63
+ rspec-core (~> 3.8.0)
64
+ rspec-expectations (~> 3.8.0)
65
+ rspec-mocks (~> 3.8.0)
66
+ rspec-core (3.8.0)
67
+ rspec-support (~> 3.8.0)
68
+ rspec-expectations (3.8.2)
69
+ diff-lcs (>= 1.2.0, < 2.0)
70
+ rspec-support (~> 3.8.0)
71
+ rspec-mocks (3.8.0)
72
+ diff-lcs (>= 1.2.0, < 2.0)
73
+ rspec-support (~> 3.8.0)
74
+ rspec-support (3.8.0)
75
+ rubocop (0.62.0)
76
+ jaro_winkler (~> 1.5.1)
77
+ parallel (~> 1.10)
78
+ parser (>= 2.5, != 2.5.1.1)
79
+ powerpack (~> 0.1)
80
+ rainbow (>= 2.2.2, < 4.0)
81
+ ruby-progressbar (~> 1.7)
82
+ unicode-display_width (~> 1.4.0)
83
+ rubocop-github (0.12.0)
84
+ rubocop (~> 0.59)
85
+ rubocop-rspec (1.31.0)
86
+ rubocop (>= 0.60.0)
87
+ ruby-progressbar (1.10.0)
88
+ strings (0.1.4)
89
+ strings-ansi (~> 0.1.0)
90
+ unicode-display_width (~> 1.4.0)
91
+ unicode_utils (~> 1.4.0)
92
+ strings-ansi (0.1.0)
93
+ terminal-notifier (2.0.0)
94
+ thor (0.20.3)
95
+ timers (4.2.0)
96
+ tty-box (0.3.0)
97
+ pastel (~> 0.7.2)
98
+ strings (~> 0.1.4)
99
+ tty-cursor (~> 0.6.0)
100
+ tty-color (0.4.3)
101
+ tty-command (0.8.2)
102
+ pastel (~> 0.7.0)
103
+ tty-config (0.3.0)
104
+ tty-cursor (0.6.0)
105
+ tty-editor (0.5.0)
106
+ tty-prompt (~> 0.18)
107
+ tty-which (~> 0.4)
108
+ tty-file (0.7.0)
109
+ diff-lcs (~> 1.3)
110
+ pastel (~> 0.7.2)
111
+ tty-prompt (~> 0.18)
112
+ tty-font (0.2.0)
113
+ tty-markdown (0.5.0)
114
+ kramdown (~> 1.16.2)
115
+ pastel (~> 0.7.2)
116
+ rouge (~> 3.3)
117
+ strings (~> 0.1.4)
118
+ tty-color (~> 0.4)
119
+ tty-screen (~> 0.6)
120
+ tty-pager (0.12.0)
121
+ strings (~> 0.1.4)
122
+ tty-screen (~> 0.6)
123
+ tty-which (~> 0.4)
124
+ tty-pie (0.1.0)
125
+ pastel (~> 0.7.2)
126
+ tty-cursor (~> 0.6.0)
127
+ tty-platform (0.2.0)
128
+ tty-progressbar (0.16.0)
129
+ strings-ansi (~> 0.1.0)
130
+ tty-cursor (~> 0.6.0)
131
+ tty-screen (~> 0.6.4)
132
+ unicode-display_width (~> 1.3)
133
+ tty-prompt (0.18.1)
134
+ necromancer (~> 0.4.0)
135
+ pastel (~> 0.7.0)
136
+ timers (~> 4.0)
137
+ tty-cursor (~> 0.6.0)
138
+ tty-reader (~> 0.5.0)
139
+ tty-reader (0.5.0)
140
+ tty-cursor (~> 0.6.0)
141
+ tty-screen (~> 0.6.4)
142
+ wisper (~> 2.0.0)
143
+ tty-screen (0.6.5)
144
+ tty-spinner (0.9.0)
145
+ tty-cursor (~> 0.6.0)
146
+ tty-table (0.10.0)
147
+ equatable (~> 0.5.0)
148
+ necromancer (~> 0.4.0)
149
+ pastel (~> 0.7.2)
150
+ strings (~> 0.1.0)
151
+ tty-screen (~> 0.6.4)
152
+ tty-tree (0.2.0)
153
+ tty-which (0.4.0)
154
+ unicode-display_width (1.4.1)
155
+ unicode_utils (1.4.0)
156
+ wisper (2.0.0)
157
+
158
+ PLATFORMS
159
+ ruby
160
+
161
+ DEPENDENCIES
162
+ bundler (~> 1.17)
163
+ devbin!
164
+ rake (~> 10.0)
165
+ rspec (~> 3.0)
166
+ rubocop-github
167
+ rubocop-rspec
168
+
169
+ BUNDLED WITH
170
+ 1.17.2
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 p.hoai.le
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,37 @@
1
+ # devbin
2
+
3
+ Working in multiple containerized environment seamlessly. Within the application folder, type one command, give the name of other application, then it should work.
4
+
5
+ ## Motivation
6
+ When working in a multiple containerized environment, it gets boring to repeatedly make `cd` back and forth between application's folders to execute some commands.
7
+ The Convention-Over-Configuration pattern is quite popular this day, we all name our containers, arrange folders base on some predictable rules, then make some command alias for faster integrate with other containers. **devbin** will help us to bootstrapping + managing our environment seamlessly. The idea is: just remember the application name + the command you want to execute, **devbin** do all other boring things.
8
+
9
+ ## Installation
10
+
11
+ Install gem as as:
12
+
13
+ $ gem install devbin
14
+
15
+ ## Usage
16
+ TL; DR;
17
+
18
+ $ devbin help
19
+
20
+
21
+ ## Development
22
+
23
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
24
+
25
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
26
+
27
+ ## Contributing
28
+
29
+ Bug reports and pull requests are welcome on GitHub at https://github.com/yeuem1vannam/devbin. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
30
+
31
+ ## Code of Conduct
32
+
33
+ Everyone interacting in the Devbin project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/devbin/blob/master/CODE_OF_CONDUCT.md).
34
+
35
+ ## Copyright
36
+
37
+ Copyright (c) 2019 Phuong 'J' Le H. See [MIT License](LICENSE.txt) for further details.
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task default: :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "devbin"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,65 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "devbin/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "devbin"
8
+ spec.license = "MIT"
9
+ spec.version = Devbin::VERSION
10
+ spec.authors = ["Phuong 'J' Le H."]
11
+ spec.email = ["yeuem1vannam@users.noreply.github.com"]
12
+
13
+ spec.summary = %q{Seamlessly control your containerized workspace}
14
+ spec.description = %q{Power up the containerized workspace with docker + docker-sync. Run command anywhere in your workspace}
15
+ spec.homepage = "https://github.com/yeuem1vannam/devbin"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
21
+
22
+ spec.metadata["homepage_uri"] = spec.homepage
23
+ spec.metadata["source_code_uri"] = "https://github.com/yeuem1vannam/devbin"
24
+ # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
25
+ else
26
+ raise "RubyGems 2.0 or newer is required to protect against " \
27
+ "public gem pushes."
28
+ end
29
+
30
+ # Specify which files should be added to the gem when it is released.
31
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
32
+ spec.files = Dir.chdir(File.expand_path("..", __FILE__)) do
33
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
34
+ end
35
+ spec.bindir = "exe"
36
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
37
+ spec.require_paths = ["lib"]
38
+
39
+ spec.add_dependency "tty-box", "~> 0.3.0"
40
+ spec.add_dependency "tty-color", "~> 0.4"
41
+ spec.add_dependency "tty-command", "~> 0.8.0"
42
+ spec.add_dependency "tty-config", "~> 0.3.0"
43
+ spec.add_dependency "tty-cursor", "~> 0.6"
44
+ spec.add_dependency "tty-editor", "~> 0.5.0"
45
+ spec.add_dependency "tty-file", "~> 0.7.0"
46
+ spec.add_dependency "tty-font", "~> 0.2.0"
47
+ spec.add_dependency "tty-markdown", "~> 0.5.0"
48
+ spec.add_dependency "tty-pager", "~> 0.12.0"
49
+ spec.add_dependency "tty-pie", "~> 0.1.0"
50
+ spec.add_dependency "tty-platform", "~> 0.2.0"
51
+ spec.add_dependency "tty-progressbar", "~> 0.16.0"
52
+ spec.add_dependency "tty-prompt", "~> 0.18.0"
53
+ spec.add_dependency "tty-screen", "~> 0.6"
54
+ spec.add_dependency "tty-spinner", "~> 0.9.0"
55
+ spec.add_dependency "tty-table", "~> 0.10.0"
56
+ spec.add_dependency "tty-tree", "~> 0.2.0"
57
+ spec.add_dependency "tty-which", "~> 0.4"
58
+ spec.add_dependency "pastel", "~> 0.7.2"
59
+ spec.add_dependency "thor", "~> 0.20.0"
60
+ spec.add_dependency "docker-sync"
61
+
62
+ spec.add_development_dependency "bundler", "~> 1.17"
63
+ spec.add_development_dependency "rake", "~> 10.0"
64
+ spec.add_development_dependency "rspec", "~> 3.0"
65
+ end