super_push 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c93d5edaac523cac30e0b48faa8ec861a742e952
4
- data.tar.gz: bd09c78eadf897fb20cca82c8f0e5ac7143a4e56
3
+ metadata.gz: 90b0629d25d72b5c265514e335f1366b7a6f5aca
4
+ data.tar.gz: 2613e2f8e6ec7ddb4d7f1848b36ea7fbb4f9fbad
5
5
  SHA512:
6
- metadata.gz: 505ae9970e0382a27064fbba2faf751b415ade9e3f6feedc98ddb60b42ea22c1a029b65007dbd878aeb85892cae31ead4cfadf0012ebbc4f83b2a76506932ba8
7
- data.tar.gz: 141f51ee0a441e5642a2fa1024fb92bc90f20c8d309090b61fd584abe28390987ddb7b135a13e5acbc7dd84aba1b514ee52638d4183dd932388454391b488f32
6
+ metadata.gz: 0d277aec56bb2ab4993e1289d50e1ba30cc5769e485ccda751ab7f0dd7092a5c07f91adae401b6f4df98297bb2095eee771ca420cee96f28648cf25529a0050d
7
+ data.tar.gz: 1e1907d22f56c14f5e00d032c6acd6cfef0f2e5c6bd2258351bbefd61d65b8d7c3f6e17ff5be2d6c7037311d9e38de8d13e0406798aacef9f2c9e8ba402c147c
data/.DS_Store ADDED
Binary file
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /.DS_Store
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # SuperPush
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/super_push`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ This is a very basic and naive implementation of "git status", "git commit" and "git push" based on the quick and simple workflow that we have in our studio. And because we're kind of lazy and we don't like to type more than it's necessary, we created **Super Push**.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
6
5
 
7
6
  ## Installation
8
7
 
@@ -20,22 +19,39 @@ Or install it yourself as:
20
19
 
21
20
  $ gem install super_push
22
21
 
23
- <!-- ## Usage
22
+ ## Usage
24
23
 
25
- TODO: Write usage instructions here
24
+ To start using super_push you have this options:
26
25
 
27
- ## Development
26
+ ```bash
27
+ spush "Message of your commit"
28
+ ```
29
+
30
+ Simply add all files to the commit with the passed message, and push it with "git push -u origin master".
31
+
32
+ ```bash
33
+ spush -b "Message of your commit"
34
+ ```
35
+
36
+ Add all files to the commit with the passed message, and update the branch, but this do not push the changes so we can merge it to the master in the future with "git merge <branch>".
28
37
 
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
38
+ ```bash
39
+ spush -s "Message of your commit"
40
+ ```
41
+
42
+ This command shows the current status of your git working directory, and asks you is you wanna proceed, if so it we'll behave as the first command, if not it simply exits the "process".
30
43
 
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).
44
+ ```bash
45
+ spush -s -b "Message of your commit"
46
+ ```
32
47
 
33
- ## Contributing
48
+ And finally, this usage combines the previous two.
34
49
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/super_push.
50
+
51
+ Enjoy ;)
36
52
 
37
53
 
38
54
  ## License
39
55
 
40
56
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
- -->
57
+
data/bin/spush CHANGED
@@ -17,7 +17,7 @@ Escort::App.create do |app|
17
17
  app.requires_arguments
18
18
 
19
19
  app.options do |opts|
20
- opts.opt :branch, "Branch", :short => '-b', :long => '--branch', :type => :string
20
+ opts.opt :branch, "Branch", :short => '-b', :long => '--branch', :type => :boolean
21
21
  opts.opt :status, "Status", :short => '-s', :long => '--status', :type => :boolean
22
22
  end
23
23
 
@@ -1,3 +1,3 @@
1
1
  module SuperPush
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
data/lib/super_push.rb CHANGED
@@ -28,9 +28,7 @@ module SuperPush
28
28
 
29
29
  `git commit -m "#{arguments[0]}"`
30
30
 
31
- if command_options[:branch_given]
32
- `git push -u origin #{command_options[:branch]}`
33
- else
31
+ unless command_options[:branch_given]
34
32
  `git push -u origin master`
35
33
  end
36
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: super_push
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - A–P.CO
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-13 00:00:00.000000000 Z
11
+ date: 2015-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -89,6 +89,7 @@ executables:
89
89
  extensions: []
90
90
  extra_rdoc_files: []
91
91
  files:
92
+ - ".DS_Store"
92
93
  - ".gitignore"
93
94
  - Gemfile
94
95
  - LICENSE.txt