signore 0.5.0 → 0.6.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: c1a5292cb375e7c9e5a675459999789ef30c0dfd
4
- data.tar.gz: b8c56a2de499328fd5eda249ba20f88f2ddb89db
3
+ metadata.gz: 89502aa06cad37d7834baf70be3c8721f2836819
4
+ data.tar.gz: 0b1eff879e6481e1b6a9fe5d649c8bffc07ac355
5
5
  SHA512:
6
- metadata.gz: bb841f115b6c3368e4c26871e98873dfb344f708f81a7cdf644cd0a8a098559ed702e744ffd8938b748d7ba6e4db74d459124a8ecfbdec27f77a94b10861300a
7
- data.tar.gz: 1c5e087bd48151c54c9c118c1d7e44f42c1f8f20abdf6f79e230d98c0de27aedbdee6f6419952d06d829365692e525f28c82283ae9b5a2cdfa0dd8507eaf3e77
6
+ metadata.gz: 7b63d9935c384eb27522c0759f1bd380a24ae3c06590a2561b2cc36345015603925710de79007065a4bf59b19fc15f04eb79cb402505bb6ee628b678100f2035
7
+ data.tar.gz: 3d1df2ec0ba886c86c0d06231bb001931009ee442aa944b152b84044ae0e195a373ac055a5e3f8225a0660043a1646dd3851b8ac6cba94308d50d1386f0f8aa2
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1 @@
1
- +9bfS���Y������?�N��i�򤆭+>p����㇈mM��5@�.��5,y�d��'����*w�Rg�^�㌵� zYx/�q]�/|�� A�������>`�����ޡb�!��T��hV��JN/ U7�ST`vv�B�_*��68�G��->��\������fs��f��mJ;���s� �^"i�:�^Ca*��@��5 5j!ύu[�vn�2�*P��(���
1
+ ��ٽ�}1�/��8�>+�t�&x��/hǯ����Qj{)�)��Ǻ���R�&Yw5{>b��.�MƞqQ�&�(3��Q�z%UY�H�^� ��͑���TT95��c��fH�;6�T��F$ �*���`o�k+�I[\|��x����b~-x�9�}��ڡ~����f�`W }+��ASeLd��V��@.����ŮOrr��/N���A�*.P��xJx���ݬM#�/��Ĝ�'u�_�N1e����2
@@ -5,8 +5,6 @@ matrix:
5
5
  allow_failures:
6
6
  - rvm: ruby-head
7
7
  rvm:
8
- - ruby-2.1
9
- - ruby-2.2
10
8
  - ruby-2.3.0
11
9
  - ruby-head
12
10
  sudo: false
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- signore (0.4.2)
4
+ signore (0.6.0)
5
5
  lovely_rufus (~> 1.0)
6
6
 
7
7
  GEM
@@ -22,40 +22,29 @@ GEM
22
22
  descendants_tracker (0.0.4)
23
23
  thread_safe (~> 0.3, >= 0.3.1)
24
24
  equalizer (0.0.11)
25
- ffi (1.9.14)
26
25
  ice_nine (0.11.2)
27
- listen (3.1.5)
28
- rb-fsevent (~> 0.9, >= 0.9.4)
29
- rb-inotify (~> 0.9, >= 0.9.7)
30
- ruby_dep (~> 1.2)
31
26
  lovely_rufus (1.0.1)
32
- minitest (5.9.0)
27
+ minitest (5.9.1)
33
28
  minitest-focus (1.1.2)
34
29
  minitest (>= 4, < 6)
35
- parser (2.3.1.2)
30
+ parser (2.3.1.4)
36
31
  ast (~> 2.2)
37
32
  powerpack (0.1.1)
38
33
  rainbow (2.1.0)
39
- rake (11.2.2)
40
- rb-fsevent (0.9.7)
41
- rb-inotify (0.9.7)
42
- ffi (>= 0.5.0)
43
- reek (4.4.0)
34
+ rake (11.3.0)
35
+ reek (4.4.2)
44
36
  codeclimate-engine-rb (~> 0.3.1)
45
37
  parser (~> 2.3.1, >= 2.3.1.2)
46
38
  rainbow (~> 2.0)
47
- rerun (0.11.0)
48
- listen (~> 3.0)
49
- rubocop (0.42.0)
39
+ rubocop (0.43.0)
50
40
  parser (>= 2.3.1.1, < 3.0)
51
41
  powerpack (~> 0.1)
52
42
  rainbow (>= 1.99.1, < 3.0)
53
43
  ruby-progressbar (~> 1.7)
54
44
  unicode-display_width (~> 1.0, >= 1.0.1)
55
45
  ruby-progressbar (1.8.1)
56
- ruby_dep (1.4.0)
57
46
  thread_safe (0.3.5)
58
- unicode-display_width (1.1.0)
47
+ unicode-display_width (1.1.1)
59
48
  virtus (1.0.5)
60
49
  axiom-types (~> 0.1)
61
50
  coercible (~> 1.0)
@@ -71,8 +60,7 @@ DEPENDENCIES
71
60
  minitest-focus (~> 1.1)
72
61
  rake (~> 11.0)
73
62
  reek (~> 4.0)
74
- rerun (~> 0.11.0)
75
- rubocop (~> 0.42.0)
63
+ rubocop (~> 0.43.0)
76
64
  signore!
77
65
 
78
66
  BUNDLED WITH
@@ -24,14 +24,18 @@ module Signore
24
24
 
25
25
  attr_reader :input, :tags
26
26
 
27
- Params = Struct.new(*%i(text author subject source))
27
+ Params = Struct.new(:text, :author, :subject, :source)
28
28
 
29
29
  def get_param(param)
30
+ return get_text if param == :text
31
+ puts
30
32
  puts "#{param}?"
31
- param == :text ? multiline : input.gets.strip
33
+ input.gets.strip
32
34
  end
33
35
 
34
- def multiline
36
+ # :reek:FeatureEnvy
37
+ def get_text # rubocop:disable AccessorMethodName
38
+ puts 'text?'
35
39
  value = ''
36
40
  value += input.gets until value.lines.to_a.last == "\n"
37
41
  value.strip
@@ -3,7 +3,7 @@
3
3
  require 'lovely_rufus'
4
4
 
5
5
  module Signore
6
- Signature = Struct.new(*%i(text author source subject tags)) do
6
+ Signature = Struct.new(:text, :author, :source, :subject, :tags) do
7
7
  def initialize(author: '', source: '', subject: '', tags: [], text: '')
8
8
  super text, author, source, subject, tags
9
9
  end
@@ -12,9 +12,9 @@ Gem::Specification.new do |gem|
12
12
  gem.license = 'AGPL-3.0'
13
13
  gem.name = 'signore'
14
14
  gem.summary = 'signore: an email signature manager/randomiser'
15
- gem.version = '0.5.0'
15
+ gem.version = '0.6.0'
16
16
 
17
- gem.required_ruby_version = '~> 2.1'
17
+ gem.required_ruby_version = '~> 2.3'
18
18
 
19
19
  gem.files = `git ls-files -z`.split "\0"
20
20
  gem.executables = gem.files.grep(%r{^bin/}).map { |path| File.basename(path) }
@@ -32,6 +32,5 @@ Gem::Specification.new do |gem|
32
32
  gem.add_development_dependency 'minitest-focus', '~> 1.1'
33
33
  gem.add_development_dependency 'rake', '~> 11.0'
34
34
  gem.add_development_dependency 'reek', '~> 4.0'
35
- gem.add_development_dependency 'rerun', '~> 0.11.0'
36
- gem.add_development_dependency 'rubocop', '~> 0.42.0'
35
+ gem.add_development_dependency 'rubocop', '~> 0.43.0'
37
36
  end
@@ -70,8 +70,11 @@ module Signore
70
70
  out = capture_io { CLI.new(args, repo: repo).run input: input }.first
71
71
  _(out).must_equal <<-end.dedent
72
72
  text?
73
+
73
74
  author?
75
+
74
76
  subject?
77
+
75
78
  source?
76
79
  The Wikipedia page on ADHD is like 20 pages long. That’s just cruel.
77
80
  [Mark Pilgrim]
@@ -94,8 +97,11 @@ module Signore
94
97
  io = capture_io { CLI.new(['pronto'], repo: repo).run input: input }
95
98
  _(io.first).must_equal <<-end.dedent
96
99
  text?
100
+
97
101
  author?
102
+
98
103
  subject?
104
+
99
105
  source?
100
106
  ‘You’ve got an interesting accent. Subtle. I can’t place it.’
101
107
  ‘It’s text-to-speech… I was raised by smartphones.’
@@ -11,8 +11,11 @@ module Signore
11
11
  io = capture_io { SigFromStream.sig_from StringIO.new("\n\n\n\n") }
12
12
  _(io.first).must_equal <<-end.dedent
13
13
  text?
14
+
14
15
  author?
16
+
15
17
  subject?
18
+
16
19
  source?
17
20
  end
18
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: signore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Szotkowski
@@ -30,7 +30,7 @@ cert_chain:
30
30
  srwnZ6g5uTvNbd0I1SnvnCJJ5y5iPvJIBlnGb3QZ77y2XXCOy3Yc0rjK7A8bQt5t
31
31
  xOlyYMPKhWx2IqEip+J7PBpBwMnxIPhTcNlFOj8mSa0=
32
32
  -----END CERTIFICATE-----
33
- date: 2016-09-04 00:00:00.000000000 Z
33
+ date: 2016-10-08 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: lovely_rufus
@@ -116,34 +116,20 @@ dependencies:
116
116
  - - "~>"
117
117
  - !ruby/object:Gem::Version
118
118
  version: '4.0'
119
- - !ruby/object:Gem::Dependency
120
- name: rerun
121
- requirement: !ruby/object:Gem::Requirement
122
- requirements:
123
- - - "~>"
124
- - !ruby/object:Gem::Version
125
- version: 0.11.0
126
- type: :development
127
- prerelease: false
128
- version_requirements: !ruby/object:Gem::Requirement
129
- requirements:
130
- - - "~>"
131
- - !ruby/object:Gem::Version
132
- version: 0.11.0
133
119
  - !ruby/object:Gem::Dependency
134
120
  name: rubocop
135
121
  requirement: !ruby/object:Gem::Requirement
136
122
  requirements:
137
123
  - - "~>"
138
124
  - !ruby/object:Gem::Version
139
- version: 0.42.0
125
+ version: 0.43.0
140
126
  type: :development
141
127
  prerelease: false
142
128
  version_requirements: !ruby/object:Gem::Requirement
143
129
  requirements:
144
130
  - - "~>"
145
131
  - !ruby/object:Gem::Version
146
- version: 0.42.0
132
+ version: 0.43.0
147
133
  description: signore helps manage email signatures and select random ones based on
148
134
  their tags
149
135
  email: chastell@chastell.net
@@ -198,7 +184,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
198
184
  requirements:
199
185
  - - "~>"
200
186
  - !ruby/object:Gem::Version
201
- version: '2.1'
187
+ version: '2.3'
202
188
  required_rubygems_version: !ruby/object:Gem::Requirement
203
189
  requirements:
204
190
  - - ">="
metadata.gz.sig CHANGED
Binary file