emoji-commit 1.0.2 → 1.0.3

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: 31ffaaf1576e1c772b2d860394f2e09971190845
4
- data.tar.gz: 5e6e35cae299c2869189ee3861d80b414a309741
3
+ metadata.gz: f6ee20b1713fd3bf250bc6ddcd07df1c476faa7d
4
+ data.tar.gz: 9dcbd947d3a3129e3c7c35eb968bfb512e1b0abf
5
5
  SHA512:
6
- metadata.gz: 7c6d355d269246f98193b68c0330b4f81a728f69650b98942c329ee171b06939f7c4d1d67db27ef26208d2d2094ea1cf21bc1fbea049737ae87b52e37f73e8b6
7
- data.tar.gz: 2de6f08554e67c89334d606ec21c626c85852a0737949315a0d89a1bfc4470daa80c3b7d57695ce3980dff7033ef05a6d7ea66131e13cddb1b0fee4d114a4662
6
+ metadata.gz: b78f2cc5bd4e825100f789cf43696f63c89fe976f8d61b2c9630af45de2fdb7056c0c343e94e73fa68c10f6b409958862bbb53e0e770fcbe414a2747caaafb80
7
+ data.tar.gz: 84d708157b4257e2935899d179cf80ea70ac34fe2d15b3005bbdaf75fb6b9a95589cf9d861d6cdcb4608bb69e7104ebb8da1f681613e00679fc1db1dc1e4cccc
@@ -0,0 +1 @@
1
+ emoji-commit
@@ -0,0 +1 @@
1
+ ruby-2.2.3
data/README.md CHANGED
@@ -2,56 +2,57 @@
2
2
 
3
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!
4
4
 
5
- ## Installation
5
+ ## :wrench: Installation
6
6
 
7
7
  Install on the command line with:
8
8
 
9
9
  $ gem install emoji-commit
10
10
 
11
- ## Usage
11
+ ## Usage :floppy_disk:
12
12
 
13
13
  The gem installs a special commit hook script in a repo of your choosing.
14
14
 
15
15
  Make sure you're in the root directory of a Git initialised repo (it will have the `.git` hidden folder in it, check it's there with `ls -a`). Then execute:
16
16
 
17
- ```shell
18
17
  $ emoji install
19
- ```
20
18
 
21
19
  It will prompt to confirm you want to install, hit `y`. Now every time you write a commit message, a random emoji from [this](http://www.emoji-cheat-sheet.com/) list will be prefixed to it.
22
20
 
23
- `$ git commit -m 'Some boring message'`
21
+ $ git commit -m 'Some boring message'
24
22
 
25
23
  Will be added to your repo as:
26
24
 
27
- `:kimono: Some boring message`
25
+ :kimono: Some boring message
26
+
28
27
  :kimono: Some boring message
29
28
 
30
29
  Or:
31
30
 
32
- `:sheep: Some boring message`
31
+ :sheep: Some boring message
32
+
33
33
  :sheep: Some boring message
34
34
 
35
35
  Or even:
36
36
 
37
- `:lock_with_ink_pen: Some boring message`
37
+ :lock_with_ink_pen: Some boring message
38
+
38
39
  :lock_with_ink_pen: Some boring message
39
40
 
40
41
  It is random after all.
41
42
 
42
43
  If your message already begins with an emoji in the format `:foobar:` then this won't be overwritten.
43
44
 
44
- ## Development
45
+ ## :books: Development
45
46
 
46
47
  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.
47
48
 
48
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).
49
50
 
50
- ## Contributing
51
+ ## :bug: Contributing
51
52
 
52
53
  Bug reports and pull requests are welcome on GitHub at https://github.com/claireparker/emoji-commit.
53
54
 
54
- ## License
55
+ ## :lock: License
55
56
 
56
57
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
57
58
 
@@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ['lib']
21
21
 
22
22
  spec.add_dependency 'thor'
23
+ spec.add_dependency 'json', '~> 1.8.1'
23
24
 
24
25
  spec.add_development_dependency 'bundler', '~> 1.10'
25
26
  spec.add_development_dependency 'rake', '~> 10.0'
@@ -1,4 +1,3 @@
1
- #!/usr/bin/ruby
2
1
  require 'json'
3
2
 
4
3
  module EmojiCommit
@@ -1,3 +1,3 @@
1
1
  module EmojiCommit
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
@@ -1,4 +1,4 @@
1
- #!/usr/bin/ruby
1
+ #!/usr/bin/env ruby
2
2
  require 'emoji-commit-msg'
3
3
 
4
4
  EmojiCommit::Msg.new(ARGV[0]).edit_commit_msg
@@ -1,4 +1,4 @@
1
- #!/usr/bin/ruby
1
+ #!/usr/bin/env ruby
2
2
  require 'fileutils'
3
3
  require 'Thor'
4
4
 
metadata CHANGED
@@ -1,69 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emoji-commit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
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-08 00:00:00.000000000 Z
11
+ date: 2015-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: json
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.8.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.8.1
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: bundler
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - ~>
45
+ - - "~>"
32
46
  - !ruby/object:Gem::Version
33
47
  version: '1.10'
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - ~>
52
+ - - "~>"
39
53
  - !ruby/object:Gem::Version
40
54
  version: '1.10'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rake
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - ~>
59
+ - - "~>"
46
60
  - !ruby/object:Gem::Version
47
61
  version: '10.0'
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - ~>
66
+ - - "~>"
53
67
  - !ruby/object:Gem::Version
54
68
  version: '10.0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rspec
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
- - - '>='
73
+ - - ">="
60
74
  - !ruby/object:Gem::Version
61
75
  version: '0'
62
76
  type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
- - - '>='
80
+ - - ">="
67
81
  - !ruby/object:Gem::Version
68
82
  version: '0'
69
83
  description: Prefixes Git commit messages with a random GitHub-friendly emoji.
@@ -74,9 +88,11 @@ executables:
74
88
  extensions: []
75
89
  extra_rdoc_files: []
76
90
  files:
77
- - .gitignore
78
- - .rspec
79
- - .travis.yml
91
+ - ".gitignore"
92
+ - ".rspec"
93
+ - ".ruby-gemset"
94
+ - ".ruby-version"
95
+ - ".travis.yml"
80
96
  - Gemfile
81
97
  - LICENSE.txt
82
98
  - README.md
@@ -102,17 +118,17 @@ require_paths:
102
118
  - lib
103
119
  required_ruby_version: !ruby/object:Gem::Requirement
104
120
  requirements:
105
- - - '>='
121
+ - - ">="
106
122
  - !ruby/object:Gem::Version
107
123
  version: '0'
108
124
  required_rubygems_version: !ruby/object:Gem::Requirement
109
125
  requirements:
110
- - - '>='
126
+ - - ">="
111
127
  - !ruby/object:Gem::Version
112
128
  version: '0'
113
129
  requirements: []
114
130
  rubyforge_project:
115
- rubygems_version: 2.0.14
131
+ rubygems_version: 2.4.6
116
132
  signing_key:
117
133
  specification_version: 4
118
134
  summary: Adds an emoji to your commit message