emoji-commit 1.1.0 → 1.1.1

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: 6e8442d08642c4a17864ba0de7f3bfde68f04692
4
- data.tar.gz: 66e96992e26606e6c396fbd190da68096c09b85c
3
+ metadata.gz: 36878bb8e3b6394cb9636dc92d806dda45fe1df0
4
+ data.tar.gz: b8825bad288835eaf64337def1229c53cf082aad
5
5
  SHA512:
6
- metadata.gz: f478065868a1b5cd43e5ca72f6336472b9b40d65eb3fa19ef67844c341673a85e162901c250b11e43398a929fc03d7fe7bd791f345689896bdaedfedbcaa8cb9
7
- data.tar.gz: 4074f2f64324c8e45b18fd731a9186e87f787398fc39e18e2b3e6a5aaffe474e155461887f075ac1db9dc323380c75cd61f8b0a3823af0c9ffadc57e468d6e9c
6
+ metadata.gz: 146b70edbe9da94d5cf6149e981a2d3097fda4bf535322685696962ca2dfe668d2f4d683234ec8b42948c89f2ad1a8dca62a2f0ce75d23afd57d2216aac19838
7
+ data.tar.gz: 1cee667b6fda2f8f5d8c403b56afe6e54bfdcf2fa706cddc4a2e1fa07486c7061ce8dab6f3c5b163c6a1dd97cb82b6abe8151d9e01ab0e7ef28a69c5590f09b3
@@ -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 claire.parker87@gmail.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # EmojiCommit
2
2
 
3
- Have you ever found your Git commit messages a little ... boring? Well they are. Just look at them! Now you can spice them up with :curry::banana::bomb: everyone's favourite characters: emojis!
3
+ Have you ever found your Git commit messages a little ... boring? Well they are. Just look at them! Now you can spice them up with :curry::banana::bomb: everyone's favourite characters: emoji!
4
4
 
5
5
  ## :wrench: Installation
6
6
 
@@ -8,7 +8,7 @@ Install on the command line with:
8
8
 
9
9
  $ gem install emoji-commit
10
10
 
11
- ## Usage :floppy_disk:
11
+ ## :floppy_disk: Usage
12
12
 
13
13
  The gem installs a special commit hook script in a repo of your choosing.
14
14
 
@@ -40,13 +40,23 @@ Or even:
40
40
 
41
41
  It is random after all.
42
42
 
43
- If your message already begins with an emoji in the format `:foobar:` then this won't be overwritten.
43
+ If your message already begins with an emoji in the format `:foobar:` then this won't be overwritten.
44
+
45
+ To remove this silly feature, in the same root directory of your project run:
46
+
47
+ $ emoji uninstall
48
+
49
+ This will delete all the files previously added, and also put the original Git commit-msg file back if this was removed.
44
50
 
45
51
  ## :books: Development
46
52
 
47
53
  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.
48
54
 
49
- 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).
55
+ To install this gem onto your local machine, run `bundle exec rake install`. To give it a test run, run `bundle exec emoji install`.
56
+
57
+ To run the tests, run `rake`.
58
+
59
+ To release a new version, update the version number in `emoji-commit-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).
50
60
 
51
61
  ## :bug: Contributing
52
62
 
@@ -54,9 +64,12 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/claire
54
64
 
55
65
  ## :lock: License
56
66
 
57
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
67
+ The gem is available as open source under the terms of the [MIT License](https://github.com/claireparker/emoji-commit/blob/master/LICENSE.txt).
68
+
69
+ ## Code of Conduct
70
+
71
+ [Here](https://github.com/claireparker/emoji-commit/blob/master/CODE_OF_CONDUCT.md) :star2::couple::sunny:
58
72
 
59
73
  ## :crystal_ball: Meta
60
74
 
61
75
  On Ruby gems: [emoji-commit](https://rubygems.org/gems/emoji-commit)
62
-
@@ -1,3 +1,3 @@
1
1
  module EmojiCommit
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
@@ -8,15 +8,17 @@ module EmojiCommit
8
8
  desc 'install', 'installs commit hook scripts'
9
9
  def install
10
10
  check_for_git
11
-
11
+
12
12
  puts 'You are about to overwrite any existing Git commit hook with the emoji script'
13
- puts 'Is that OK? (y|n)'
14
-
13
+ puts 'Is that OK? (Y|n)'
14
+
15
15
  answer = STDIN.gets.strip.downcase
16
-
16
+
17
17
  if answer == 'n'
18
18
  puts 'Fine whatever. Bye'
19
19
  exit
20
+ elsif answer == ''
21
+ puts 'Great, installing into .git/hooks'
20
22
  elsif answer != 'y'
21
23
  puts 'Pardon? Oh who cares. Bye'
22
24
  exit
@@ -30,7 +32,7 @@ module EmojiCommit
30
32
  FileUtils.cp("#{path}/#{filename}", ".git/hooks/#{filename}")
31
33
  FileUtils.chmod(0755, ".git/hooks/#{filename}")
32
34
  end
33
-
35
+
34
36
  puts 'Installed scripts successfully. Commit emoji-ful messages!'
35
37
  end
36
38
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emoji-commit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claire Parker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-13 00:00:00.000000000 Z
11
+ date: 2016-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -107,6 +107,7 @@ files:
107
107
  - ".ruby-gemset"
108
108
  - ".ruby-version"
109
109
  - ".travis.yml"
110
+ - CODE_OF_CONDUCT.md
110
111
  - Gemfile
111
112
  - LICENSE.txt
112
113
  - README.md
@@ -143,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
144
  version: '0'
144
145
  requirements: []
145
146
  rubyforge_project:
146
- rubygems_version: 2.4.6
147
+ rubygems_version: 2.4.8
147
148
  signing_key:
148
149
  specification_version: 4
149
150
  summary: Adds an emoji to your commit message