minitest-emoji 1.0.0 → 2.0.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: bd5f97999859dc1175b7659add5c4b99003269db
4
+ data.tar.gz: 3ac172fbce86068998162d3e936f4d6e6a0e1f25
5
+ SHA512:
6
+ metadata.gz: 7ea7b8b689cbc5d33b8b74b98c96bae22c520f0e50c50f291bec99efd1df972a4901acbeb5906a734d826d3eb4a11919aa4ac34f6cb04f982c344cc0ac0688e7
7
+ data.tar.gz: 18c33089d0b858047ed456fb74386cad823e411469e4840356a2ae35ec42efdf3f2bc37f5a25eeb9863609b2ad160a01e6ce4e53d91f4dc2b374131de8aae962
@@ -0,0 +1 @@
1
+ ��XLz��K��XIt����+�DA��X�o]��<�u�ܗ�$��%}C8�z��:´��<��*I�0�jEc2��)��j�(FH � q��u����Y7&�>�O)GW�bK�=�\N�h��p.J+0[�7��!��oB�ڒUa�*�`��Q ����zle6�jFM�E~,�Mv[�A:{Z�"��q�'0�@,��b�Z_���:�A/*��lN)Т�Ҷ`!~�P��?���nhS;)+,I������Uj
Binary file
@@ -1,3 +1,14 @@
1
+ === 2.0.0 / 2013-11-18
2
+
3
+ * 2 major enhancements:
4
+
5
+ * Convert to minitest plugin for minitest 5. (sentientmonkey)
6
+ * Add support for emoji themes! (sentientmonkey/zenspider)
7
+
8
+ * 1 bug fix:
9
+
10
+ * Added explicit MIT license to hoespec.
11
+
1
12
  === 1.0.0 / 2011-11-22
2
13
 
3
14
  * 1 major enhancement
@@ -4,4 +4,5 @@ Manifest.txt
4
4
  README.rdoc
5
5
  Rakefile
6
6
  lib/minitest/emoji.rb
7
+ lib/minitest/emoji_plugin.rb
7
8
  test/test_minitest_emoji.rb
data/Rakefile CHANGED
@@ -13,6 +13,7 @@ Hoe.spec 'minitest-emoji' do
13
13
  self.readme_file = 'README.rdoc'
14
14
  self.history_file = 'CHANGELOG.rdoc'
15
15
  self.extra_rdoc_files = FileList['*.rdoc']
16
+ self.license "MIT"
16
17
  end
17
18
 
18
19
  # vim: syntax=ruby
@@ -1,30 +1,4 @@
1
- module MiniTest
2
- class Emoji
3
- VERSION = '1.0.0'
1
+ require "minitest"
4
2
 
5
- DEFAULT = {
6
- '.' => "\u{1f497} ",
7
- 'E' => "\u{1f525} ",
8
- 'F' => "\u{1f4a9} ",
9
- 'S' => "\u{1f633} ",
10
- }
11
-
12
- attr_reader :io, :chars
13
-
14
- def initialize io, chars = DEFAULT
15
- @io = io
16
- @chars = DEFAULT
17
- end
18
-
19
- def print o
20
- io.print(chars[o] || o)
21
- end
22
-
23
- def method_missing msg, *args
24
- return super unless io.respond_to? msg
25
- io.send(msg, *args)
26
- end
27
- end
28
- end
29
-
30
- MiniTest::Unit.output = MiniTest::Emoji.new(MiniTest::Unit.output)
3
+ Minitest.load_plugins
4
+ Minitest::Emoji.emoji!
@@ -0,0 +1,118 @@
1
+ require 'minitest'
2
+
3
+ module Minitest
4
+
5
+ def self.plugin_emoji_options opts, options # :nodoc:
6
+ opts.on "-e", "--emoji", "Show Emoji instead of dots" do
7
+ Emoji.emoji!
8
+ end
9
+
10
+ opts.on "-t", "--theme [name]", "Pick an emoji theme" do |name|
11
+ unless name
12
+ puts "Choose from these themes:"
13
+ Emoji.themes.keys.each{|theme| puts " #{theme}" }
14
+ puts "...or, 'random' for a random theme"
15
+ exit 1
16
+ end
17
+ Emoji.theme! name
18
+ end
19
+ end
20
+
21
+ def self.plugin_emoji_init options # :nodoc:
22
+ if Emoji.emoji? then
23
+ io = Emoji.new options[:io]
24
+
25
+ self.reporter.reporters.grep(Minitest::Reporter).each do |rep|
26
+ rep.io = io
27
+ end
28
+ end
29
+ end
30
+
31
+ class Emoji
32
+
33
+ VERSION = '2.0.0'
34
+
35
+ attr_reader :io, :chars
36
+
37
+ def self.emoji!
38
+ @emoji = true
39
+ end
40
+
41
+ def self.emoji?
42
+ @emoji ||= false
43
+ end
44
+
45
+ def self.theme! name
46
+ unless self.themes.include? name.to_sym
47
+ puts "Theme #{name} not found."
48
+ exit 1
49
+ end
50
+ @theme ||= self.themes[name.to_sym]
51
+ end
52
+
53
+ def self.theme
54
+ @theme ||= self.themes[:default]
55
+ end
56
+
57
+ def self.themes
58
+ @themes ||= {}
59
+ end
60
+
61
+ def self.add_theme name, chars
62
+ self.themes[name.to_sym] = chars
63
+ end
64
+
65
+ def self.add_utf_theme name, p=0x1f49a, f=0x1f4a9, e=0x1f525, s=0x1f633
66
+ p, f, e, s = [p, f, e, s].pack("U*").chars.map { |c| "#{c} " }
67
+ add_theme name, "." => p, "E" => e, "F" => f, "S" => s
68
+ end
69
+
70
+ def self.copy_theme to, from
71
+ themes[to] = themes[from]
72
+ end
73
+
74
+ add_utf_theme :default
75
+ add_utf_theme :apples, 0x1f34f, 0x1f34a, 0x1f34e, 0x1f34b
76
+ add_utf_theme :farm, 0x1f414, 0x1f42e, 0x1f437, 0x1f439
77
+ add_utf_theme :hearts, 0x1f49a, 0x1f49b, 0x1f494, 0x1f499
78
+ add_utf_theme :kitties, 0x1f63b, 0x1f640, 0x1f63f, 0x1f63d
79
+ add_utf_theme :smilies, 0x1f60d, 0x1f631, 0x1f621, 0x1f61c
80
+ add_utf_theme :weather, 0x02600, 0x026a1, 0x02614, 0x02601
81
+ add_utf_theme :xoxo, 0x02b55, 0x0274c, 0x02049, 0x02753
82
+ add_utf_theme :jan, 0x026c4
83
+ add_utf_theme :feb, 0x1f498, 0x1f494
84
+ add_utf_theme :mar, 0x1f340
85
+ add_utf_theme :apr, 0x02614, 0x026a1
86
+ add_utf_theme :may, 0x1f33b, 0x1f335
87
+ add_utf_theme :jun, 0x1f31e, 0x026c5, 0x02601, 0x026a1
88
+ add_utf_theme :jul, 0x1f386
89
+ copy_theme :aug, :jun
90
+ add_utf_theme :sep, 0x1f342
91
+ add_utf_theme :oct, 0x1f383, 0x1f47b
92
+ add_utf_theme :nov, 0x1f357
93
+ add_utf_theme :dec, 0x1f385
94
+
95
+ copy_theme :random, themes.keys.sample
96
+ copy_theme :monthly, Time.now.strftime("%b").downcase.to_sym
97
+
98
+ def self.show_all_themes
99
+ themes.each do |n, c|
100
+ puts "%10s: %s%s%s%s" % [n, c["."], c["F"], c["E"], c["S"] ]
101
+ end
102
+ end
103
+
104
+ def initialize io
105
+ @io = io
106
+ @chars = self.class.theme
107
+ end
108
+
109
+ def print o
110
+ io.print(chars[o] || o)
111
+ end
112
+
113
+ def method_missing msg, *args
114
+ return super unless io.respond_to? msg
115
+ io.send(msg, *args)
116
+ end
117
+ end
118
+ end
@@ -19,4 +19,10 @@ describe 'my amazing tests' do
19
19
  it 'skips things!!' do
20
20
  skip "don't care!"
21
21
  end
22
+
23
+ 3.times do
24
+ it "errors" do
25
+ raise "ru roh"
26
+ end
27
+ end
22
28
  end
metadata CHANGED
@@ -1,70 +1,101 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-emoji
3
3
  version: !ruby/object:Gem::Version
4
- version: !binary |-
5
- MS4wLjA=
6
- prerelease:
4
+ version: 2.0.0
7
5
  platform: ruby
8
6
  authors:
9
7
  - Aaron Patterson
10
8
  autorequire:
11
9
  bindir: bin
12
- cert_chain: []
13
- date: 2011-11-23 00:00:00.000000000 Z
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDPjCCAiagAwIBAgIBATANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
14
+ ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
15
+ GRYDY29tMB4XDTEzMDkxNjIzMDQxMloXDTE0MDkxNjIzMDQxMlowRTETMBEGA1UE
16
+ AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
17
+ JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
18
+ b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
19
+ taCPaLmfYIaFcHHCSY4hYDJijRQkLxPeB3xbOfzfLoBDbjvx5JxgJxUjmGa7xhcT
20
+ oOvjtt5P8+GSK9zLzxQP0gVLS/D0FmoE44XuDr3iQkVS2ujU5zZL84mMNqNB1znh
21
+ GiadM9GHRaDiaxuX0cIUBj19T01mVE2iymf9I6bEsiayK/n6QujtyCbTWsAS9Rqt
22
+ qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
23
+ gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
24
+ HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBBQUAA4IB
25
+ AQCFZ7JTzoy1gcG4d8A6dmOJy7ygtO5MFpRIz8HuKCF5566nOvpy7aHhDDzFmQuu
26
+ FX3zDU6ghx5cQIueDhf2SGOncyBmmJRRYawm3wI0o1MeN6LZJ/3cRaOTjSFy6+S6
27
+ zqDmHBp8fVA2TGJtO0BLNkbGVrBJjh0UPmSoGzWlRhEVnYC33TpDAbNA+u39UrQI
28
+ ynwhNN7YbnmSR7+JU2cUjBFv2iPBO+TGuWC+9L2zn3NHjuc6tnmSYipA9y8Hv+As
29
+ Y4evBVezr3SjXz08vPqRO5YRdO3zfeMT8gBjRqZjWJGMZ2lD4XNfrs7eky74CyZw
30
+ xx3n58i0lQkBE1EpKE0lFu/y
31
+ -----END CERTIFICATE-----
32
+ date: 2013-11-18 00:00:00.000000000 Z
14
33
  dependencies:
15
34
  - !ruby/object:Gem::Dependency
16
35
  name: minitest
17
- requirement: &70187169186160 !ruby/object:Gem::Requirement
18
- none: false
36
+ requirement: !ruby/object:Gem::Requirement
19
37
  requirements:
20
38
  - - ~>
21
39
  - !ruby/object:Gem::Version
22
- version: '2.8'
40
+ version: '5.0'
23
41
  type: :development
24
42
  prerelease: false
25
- version_requirements: *70187169186160
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '5.0'
48
+ - !ruby/object:Gem::Dependency
49
+ name: rdoc
50
+ requirement: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '4.0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '4.0'
26
62
  - !ruby/object:Gem::Dependency
27
63
  name: hoe
28
- requirement: &70187169185700 !ruby/object:Gem::Requirement
29
- none: false
64
+ requirement: !ruby/object:Gem::Requirement
30
65
  requirements:
31
66
  - - ~>
32
67
  - !ruby/object:Gem::Version
33
- version: '2.12'
68
+ version: '3.7'
34
69
  type: :development
35
70
  prerelease: false
36
- version_requirements: *70187169185700
37
- description: !binary |-
38
- UHJpbnQgb3V0IGVtb2ppIGZvciB5b3VyIHRlc3QgcGFzc2VzLCBmYWlscywg
39
- YW5kIHNraXBz
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '3.7'
76
+ description: Print out emoji for your test passes, fails, and skips
40
77
  email:
41
78
  - aaron@tenderlovemaking.com
42
79
  executables: []
43
80
  extensions: []
44
81
  extra_rdoc_files:
45
- - !binary |-
46
- TWFuaWZlc3QudHh0
47
82
  - CHANGELOG.rdoc
83
+ - Manifest.txt
48
84
  - README.rdoc
49
85
  files:
50
- - !binary |-
51
- LmF1dG90ZXN0
52
- - !binary |-
53
- Q0hBTkdFTE9HLnJkb2M=
54
- - !binary |-
55
- TWFuaWZlc3QudHh0
56
- - !binary |-
57
- UkVBRE1FLnJkb2M=
58
- - !binary |-
59
- UmFrZWZpbGU=
60
- - !binary |-
61
- bGliL21pbml0ZXN0L2Vtb2ppLnJi
62
- - !binary |-
63
- dGVzdC90ZXN0X21pbml0ZXN0X2Vtb2ppLnJi
86
+ - .autotest
87
+ - CHANGELOG.rdoc
88
+ - Manifest.txt
89
+ - README.rdoc
90
+ - Rakefile
91
+ - lib/minitest/emoji.rb
92
+ - lib/minitest/emoji_plugin.rb
93
+ - test/test_minitest_emoji.rb
64
94
  - .gemtest
65
- homepage: !binary |-
66
- aHR0cDovL2dpdGh1Yi5jb20vdGVuZGVybG92ZS9taW5pdGVzdC1lbW9qaQ==
67
- licenses: []
95
+ homepage: http://github.com/tenderlove/minitest-emoji
96
+ licenses:
97
+ - MIT
98
+ metadata: {}
68
99
  post_install_message:
69
100
  rdoc_options:
70
101
  - --main
@@ -72,24 +103,20 @@ rdoc_options:
72
103
  require_paths:
73
104
  - lib
74
105
  required_ruby_version: !ruby/object:Gem::Requirement
75
- none: false
76
106
  requirements:
77
- - - ! '>='
107
+ - - '>='
78
108
  - !ruby/object:Gem::Version
79
109
  version: '0'
80
110
  required_rubygems_version: !ruby/object:Gem::Requirement
81
- none: false
82
111
  requirements:
83
- - - ! '>='
112
+ - - '>='
84
113
  - !ruby/object:Gem::Version
85
114
  version: '0'
86
115
  requirements: []
87
116
  rubyforge_project: minitest-emoji
88
- rubygems_version: 1.8.11
117
+ rubygems_version: 2.1.10
89
118
  signing_key:
90
- specification_version: 3
91
- summary: !binary |-
92
- UHJpbnQgb3V0IGVtb2ppIGZvciB5b3VyIHRlc3QgcGFzc2VzLCBmYWlscywg
93
- YW5kIHNraXBz
119
+ specification_version: 4
120
+ summary: Print out emoji for your test passes, fails, and skips
94
121
  test_files:
95
122
  - test/test_minitest_emoji.rb
@@ -0,0 +1,3 @@
1
+ ��ͯ�a�5xhZztzqF���2�G]?2��4�{I���k/�aN
2
+ {xhcuַb�'Y� ��~�l��k��3�IG��`d4��79����#�/��Nբ� |X�%�B��C]
3
+ s������ЎS���$o����A�)���p��O�@�,ᨚ����� �� :`�g�����3�`p1���� ����s����~%����~�G'���������� Lo`�HfuL�:��?s�L�����'