big_stash 0.3.0 → 0.4.0

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: 9e8a6d8cc8e7a1cedf6c7f657859d189fece1535
4
- data.tar.gz: 7ef0205106d187134f1821f626d887cbe0c4c65d
3
+ metadata.gz: 6bedd23c37bbde845f2ec258222756a9702688e3
4
+ data.tar.gz: bc6b99127b9ac2da97382f3bc64e4f0bc2e49844
5
5
  SHA512:
6
- metadata.gz: 4669cd689b0383ff349d91ea6d135226462c3285cc31b46571e2de36c00705bca3b7e8678c22efc976d5d3d6a923114cb57000f9599f1780b323b259f5b4de5f
7
- data.tar.gz: 2325d07c68a081fa7ccb041636d91e5c75acfbafafbc2a9487ceaa8a7cf008d23695f465ac3976e8ddeddefc03b851bc3f5b5dd3dc6da7c46fa733b22f7beb53
6
+ metadata.gz: 0d497ba2fb957e9772dcae04ae8c5240c6f5a1c34c2535cf89b9b9e23854160a51f7d96a2056baf78719d787d9c7335bfd32552c793ee162f91c485a0f640c2e
7
+ data.tar.gz: 711eaf09cc6851f63f94d2e0b2a0fe9b69a0d3581f3fbea8ebf566463d1ed272ba643d517d70f11f5e747994557d21cebc5bb4ba5df7d02f3644b93a68c66930
@@ -0,0 +1,20 @@
1
+ ### Check List
2
+
3
+ Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.
4
+
5
+ - [ ] I have read the [README.md](https://github.com/BigKeeper/big-stash/blob/master/README.md), but there is no information I need.
6
+ - [ ] I have searched in [existing issues](https://github.com/BigKeeper/big-stash/issues?utf8=%E2%9C%93&q=is%3Aissue), but did find a same one.
7
+
8
+ ### Issue Description
9
+
10
+ #### Description
11
+
12
+ [Tell us about the issue]
13
+
14
+ #### Reproduce
15
+
16
+ [The steps to reproduce this issue. What are the parameters, where did you put your code, etc.]
17
+
18
+ #### Other Comment
19
+
20
+ [Add anything else here]
data/.travis.yml ADDED
@@ -0,0 +1,19 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - 2.4.1
5
+ - 2.3.4
6
+ - 2.2.7
7
+ - 2.1.10
8
+ - 2.0.0
9
+
10
+ before_install:
11
+ - gem update --remote bundler
12
+ - gem update --system
13
+
14
+ sudo: false
15
+
16
+ bundler_args: --without=guard
17
+
18
+ notifications:
19
+ disabled: true
@@ -0,0 +1,46 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ ## Our Standards
8
+
9
+ Examples of behavior that contributes to creating a positive environment include:
10
+
11
+ * Using welcoming and inclusive language
12
+ * Being respectful of differing viewpoints and experiences
13
+ * Gracefully accepting constructive criticism
14
+ * Focusing on what is best for the community
15
+ * Showing empathy towards other community members
16
+
17
+ Examples of unacceptable behavior by participants include:
18
+
19
+ * The use of sexualized language or imagery and unwelcome sexual attention or advances
20
+ * Trolling, insulting/derogatory comments, and personal or political attacks
21
+ * Public or private harassment
22
+ * Publishing others' private information, such as a physical or electronic address, without explicit permission
23
+ * Other conduct which could reasonably be considered inappropriate in a professional setting
24
+
25
+ ## Our Responsibilities
26
+
27
+ Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28
+
29
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30
+
31
+ ## Scope
32
+
33
+ This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34
+
35
+ ## Enforcement
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at mmoaay@sina.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38
+
39
+ Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40
+
41
+ ## Attribution
42
+
43
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44
+
45
+ [homepage]: http://contributor-covenant.org
46
+ [version]: http://contributor-covenant.org/version/1/4/
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,70 @@
1
+ # Contributing Guidelines
2
+
3
+ This document contains information and guidelines about contributing to this project.
4
+ Please read it before you start participating.
5
+
6
+ **Topics**
7
+
8
+ * [Asking Questions](#asking-questions)
9
+ * [Reporting Issues](#reporting-issues)
10
+ * [Developers Certificate of Origin](#developers-certificate-of-origin)
11
+
12
+ ## Asking Questions
13
+
14
+ We don't use GitHub as a support forum.
15
+ For any usage questions that are not specific to the project itself,
16
+ please ask on [Stack Overflow](https://stackoverflow.com) instead.
17
+ By doing so, you'll be more likely to quickly solve your problem,
18
+ and you'll allow anyone else with the same question to find the answer.
19
+ This also allows maintainers to focus on improving the project for others.
20
+
21
+ ## Reporting Issues
22
+
23
+ A great way to contribute to the project
24
+ is to send a detailed issue when you encounter an problem.
25
+ We always appreciate a well-written, thorough bug report.
26
+
27
+ Check that the project issues database
28
+ doesn't already include that problem or suggestion before submitting an issue.
29
+ If you find a match, add a quick "+1" or "I have this problem too."
30
+ Doing this helps prioritize the most common problems and requests.
31
+
32
+ When reporting issues, please include the following:
33
+
34
+ * The version of Xcode you're using
35
+ * The version of iOS or macOS you're targeting
36
+ * The full output of any stack trace or compiler error
37
+ * A code snippet that reproduces the described behavior, if applicable
38
+ * Any other details that would be useful in understanding the problem
39
+
40
+ This information will help us review and fix your issue faster.
41
+
42
+ ## Developer's Certificate of Origin
43
+
44
+ By making a contribution to this project, I certify that:
45
+
46
+ - (a) The contribution was created in whole or in part by me and I
47
+ have the right to submit it under the open source license
48
+ indicated in the file; or
49
+
50
+ - (b) The contribution is based upon previous work that, to the best
51
+ of my knowledge, is covered under an appropriate open source
52
+ license and I have the right under that license to submit that
53
+ work with modifications, whether created in whole or in part
54
+ by me, under the same open source license (unless I am
55
+ permitted to submit under a different license), as indicated
56
+ in the file; or
57
+
58
+ - (c) The contribution was provided directly to me by some other
59
+ person who certified (a), (b) or (c) and I have not modified
60
+ it.
61
+
62
+ - (d) I understand and agree that this project and the contribution
63
+ are public and that a record of the contribution (including all
64
+ personal information I submit with it, including my sign-off) is
65
+ maintained indefinitely and may be redistributed consistent with
66
+ this project or the open source license(s) involved.
67
+
68
+ ---
69
+
70
+ *Some of the ideas and wording for the statements above were based on work by the [Alamofire](https://github.com/Alamofire/Alamofire/blob/master/CONTRIBUTING.md) communities. We commend them for their efforts to facilitate collaboration in their projects.*
data/Gemfile CHANGED
@@ -1,6 +1,10 @@
1
- source "https://ruby.taobao.org"
1
+ source "https://gems.ruby-china.org/"
2
2
 
3
3
  git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
4
 
5
5
  # Specify your gem's dependencies in big_stash.gemspec
6
6
  gemspec
7
+
8
+ group :test do
9
+ gem 'rake'
10
+ end
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2017 mmoaay
3
+ Copyright (c) 2017 BigKeeper.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,9 +1,18 @@
1
1
  # BigStash
2
2
 
3
- ![](https://github.com/BigKeeper/big-stash/blob/master/resources/demo.png)
3
+ [![Build Status](https://travis-ci.org/BigKeeper/big-stash.svg?branch=master)](https://travis-ci.org/BigKeeper/big-stash)
4
+ [![Maintainability](https://api.codeclimate.com/v1/badges/5f0f2238df6d7f3908bf/maintainability)](https://codeclimate.com/github/BigKeeper/big-stash/maintainability)
5
+ [![Gem Version](https://badge.fury.io/rb/big_stash.svg)](https://rubygems.org/gems/big_stash)
6
+ [![Language: Ruby](https://img.shields.io/badge/language-Ruby-da212f.svg)](https://www.ruby-lang.org/)
7
+ [![License](https://img.shields.io/badge/license-MIT-000000.svg)](https://github.com/BigKeeper/big-stash/blob/master/LICENSE)
8
+ [![Gitter](https://img.shields.io/gitter/room/BigKeeper/BigKeeper.svg)](https://gitter.im/Big-Keeper/Lobby)
4
9
 
5
10
  big-stash is an enhancement for `git stash` command, you can use it to add and apply a stash with the name you have specified before.
6
11
 
12
+ ## Preview
13
+
14
+ ![](https://github.com/BigKeeper/big-stash/blob/master/resources/demo.png)
15
+
7
16
  ## Installation
8
17
 
9
18
  Add this line to your application's Gemfile:
@@ -68,4 +77,6 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/BigKee
68
77
 
69
78
  ## License
70
79
 
80
+ ![](https://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/License_icon-mit-88x31-2.svg/128px-License_icon-mit-88x31-2.svg.png)
81
+
71
82
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile CHANGED
@@ -1,2 +1,3 @@
1
1
  require "bundler/gem_tasks"
2
+
2
3
  task :default => :spec
@@ -40,7 +40,7 @@ module BigStash
40
40
 
41
41
  def apply_stash(name)
42
42
  if @stashes[name]
43
- p `cd #{@path}; git stash apply #{stash}`
43
+ p `cd #{@path}; git stash apply #{name}`
44
44
  else
45
45
  p %(Nothing to apply, can not find the stash with name '#{name}', continue...)
46
46
  end
@@ -48,7 +48,7 @@ module BigStash
48
48
 
49
49
  def pop_stash(name)
50
50
  if @stashes[name]
51
- p `cd #{@path}; git stash pop #{stash}`
51
+ p `cd #{@path}; git stash pop #{name}`
52
52
  else
53
53
  p %(Nothing to pop, can not find the stash with name '#{name}', continue...)
54
54
  end
@@ -1,3 +1,3 @@
1
1
  module BigStash
2
- VERSION = '0.3.0'.freeze
2
+ VERSION = '0.4.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: big_stash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mmoaay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-02 00:00:00.000000000 Z
11
+ date: 2017-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli
@@ -75,9 +75,13 @@ executables:
75
75
  extensions: []
76
76
  extra_rdoc_files: []
77
77
  files:
78
+ - ".github/ISSUE_TEMPLATE.md"
78
79
  - ".gitignore"
80
+ - ".travis.yml"
81
+ - CODE_OF_CONDUCT.md
82
+ - CONTRIBUTING.md
79
83
  - Gemfile
80
- - LICENSE.txt
84
+ - LICENSE
81
85
  - README.md
82
86
  - Rakefile
83
87
  - big_stash.gemspec