brah 0.1.0 → 0.3.0

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
  SHA1:
3
- metadata.gz: 4cb57c142c7761eb9306e73f8f61f885ebc288e6
4
- data.tar.gz: ebaccaeb60206f252585a7470accb43d2d691fec
3
+ metadata.gz: 05273303f78967cd80db608dd44e0c4031b530c3
4
+ data.tar.gz: 1caee6df1b3ac990d701c02534703c1133ff26a7
5
5
  SHA512:
6
- metadata.gz: 4d439d538dbedbcb92686cda16d5cc6d275c13926741bcba1f11483047d92b9e1609ccb1170622573806b910912e423a0f1c6942152bae88dea5119b8cde2c49
7
- data.tar.gz: 97601c3c9892bd237df48e6c2ea3fce6e9dd094070e805d95741ebc233bc9f83482ea4a66875686441008dfc554e9316e11ce0828b525f3012c589468ec26089
6
+ metadata.gz: ddc45ff4a965062d9103ffe1e944140b658e334af0af29d12d31dbcfab3957903737c3e9133df20dd9fd13dae694b7a1de51cccfc3cf5cefca3fbeea68c7f67a
7
+ data.tar.gz: 99775fab706fdff08407052d1e8a15f8252b8ffa643fe6ab21d9e5ea821c9b67517a97b4d8fab176c41fce7f85fcd14b4815001e397864e15eba97df640589b2
data/.gitignore CHANGED
@@ -7,3 +7,5 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ .dockerignore
11
+ /.rake_tasks*
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.3.1
data/Dockerfile ADDED
@@ -0,0 +1,12 @@
1
+ FROM ruby:2.3.1
2
+
3
+ # set up the working directory
4
+ WORKDIR /usr/src/app
5
+ ADD . /usr/src/app
6
+
7
+ # build the gem
8
+ RUN gem build brah.gemspec
9
+
10
+ # install the gem
11
+ ARG GEM_VERSION
12
+ RUN gem install "brah-$GEM_VERSION.gem"
data/Gemfile CHANGED
@@ -1,4 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ ruby '2.3.1'
4
+
3
5
  # Specify your gem's dependencies in brah.gemspec
4
6
  gemspec
data/README.md CHANGED
@@ -1,41 +1,20 @@
1
1
  # Brah
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/brah`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ [![CircleCI](https://circleci.com/gh/trayo/brah.svg?style=svg)](https://circleci.com/gh/trayo/brah)
4
+ [![Stories in Ready](https://badge.waffle.io/trayo/brah.svg?label=ready&title=Ready)](http://waffle.io/trayo/brah)
4
5
 
5
- TODO: Delete this and the text above, and describe your gem
6
+ This gem opens a webpage of your GitHub repo regardless if it's public or private, brah.
6
7
 
7
- ## Installation
8
+ ![](images/vape_naysh.jpg)
8
9
 
9
- Add this line to your application's Gemfile:
10
+ ## Installation
10
11
 
11
- ```ruby
12
- gem 'brah'
13
12
  ```
14
-
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install brah
13
+ $ gem install brah
14
+ ```
22
15
 
23
16
  ## Usage
24
17
 
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- 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).
32
-
33
- ## Contributing
34
-
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/brah.
36
-
37
-
38
- ## License
39
-
40
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
-
18
+ ```
19
+ $ brah
20
+ ```
data/Rakefile CHANGED
@@ -8,3 +8,15 @@ Rake::TestTask.new(:test) do |t|
8
8
  end
9
9
 
10
10
  task :default => :test
11
+
12
+ desc "Build the docker image"
13
+ task :docker_build do
14
+ gem_version=`cat lib/brah/version.rb`.match(/\d\.\d\.\d/)[0]
15
+ puts %x[docker build --build-arg GEM_VERSION=#{gem_version} -t brah .]
16
+ end
17
+ task :docker_build_image => :docker_build
18
+
19
+ desc "Run brah to check it's installed"
20
+ task :docker_run do
21
+ puts %x[docker run -it --rm brah brah -h]
22
+ end
data/bin/brah CHANGED
@@ -9,7 +9,7 @@ opts = Slop.parse do |o|
9
9
  o.banner = "usage: brah [OPTIONS]"
10
10
  o.bool '-h', '--help', 'displays this page'
11
11
  o.on '-v', '--version', 'displays the version' do
12
- puts VundleMigrator::VERSION
12
+ puts Brah::VERSION
13
13
  exit
14
14
  end
15
15
  end
data/brah.gemspec CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
17
  spec.bindir = "bin"
18
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
18
+ spec.executables = ["brah"]
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.12"
@@ -23,4 +23,5 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency "mocha", "~> 1.1"
24
24
  spec.add_development_dependency "rake", "~> 10.0"
25
25
  spec.add_development_dependency "slop", "~> 4.3"
26
+ spec.add_runtime_dependency "slop", "~> 4.3"
26
27
  end
Binary file
data/lib/brah/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Brah
2
- VERSION = "0.1.0"
2
+ VERSION = "0.3.0"
3
3
  end
data/lib/brah.rb CHANGED
@@ -1,5 +1,3 @@
1
- require "brah/version"
2
-
3
1
  module Brah
4
2
 
5
3
  def self.run(git_remote_output)
Binary file
Binary file
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brah
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Yoder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-20 00:00:00.000000000 Z
11
+ date: 2016-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,23 +80,46 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '4.3'
83
+ - !ruby/object:Gem::Dependency
84
+ name: slop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '4.3'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '4.3'
83
97
  description:
84
98
  email:
85
99
  - trayoda@gmail.com
86
- executables: []
100
+ executables:
101
+ - brah
87
102
  extensions: []
88
103
  extra_rdoc_files: []
89
104
  files:
90
105
  - ".gitignore"
106
+ - ".ruby-version"
91
107
  - ".travis.yml"
108
+ - Dockerfile
92
109
  - Gemfile
93
110
  - LICENSE.txt
94
111
  - README.md
95
112
  - Rakefile
96
113
  - bin/brah
97
114
  - brah.gemspec
115
+ - images/vape_naysh.jpg
98
116
  - lib/brah.rb
99
117
  - lib/brah/version.rb
118
+ - vendor/cache/metaclass-0.0.4.gem
119
+ - vendor/cache/minitest-5.9.0.gem
120
+ - vendor/cache/mocha-1.1.0.gem
121
+ - vendor/cache/rake-10.5.0.gem
122
+ - vendor/cache/slop-4.3.0.gem
100
123
  homepage: https://github.com/trayo/brah
101
124
  licenses:
102
125
  - MIT