cute_print 1.1.4 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/Gemfile +1 -17
  4. data/README.md +3 -3
  5. data/cute_print.gemspec +63 -77
  6. data/lib/cute_print/release.rb +13 -0
  7. metadata +98 -62
  8. data/.config/cucumber.yml +0 -1
  9. data/.rspec +0 -1
  10. data/.travis.yml +0 -6
  11. data/.yardopts +0 -7
  12. data/Gemfile.lock +0 -110
  13. data/VERSION +0 -1
  14. data/features/.nav +0 -10
  15. data/features/call_chain.feature +0 -96
  16. data/features/configuring/configure_output.feature +0 -21
  17. data/features/configuring/configure_position_format.feature +0 -39
  18. data/features/configuring/readme.md +0 -1
  19. data/features/configuring/reset_configuration.feature +0 -24
  20. data/features/inspect/core.feature +0 -18
  21. data/features/inspect/inspect.feature +0 -29
  22. data/features/inspect/inspect_with_location.feature +0 -54
  23. data/features/inspect/inspect_with_source.feature +0 -16
  24. data/features/inspect/readme.md +0 -1
  25. data/features/pretty_print/pretty_print.feature +0 -41
  26. data/features/pretty_print/pretty_print_with_location.feature +0 -73
  27. data/features/pretty_print/pretty_print_with_source.feature +0 -27
  28. data/features/readme.md +0 -1
  29. data/features/support/env.rb +0 -9
  30. data/features/support/helpers/example.rb +0 -52
  31. data/features/support/helpers/example_runner.rb +0 -24
  32. data/features/support/helpers/fork_example_runner.rb +0 -37
  33. data/features/support/helpers/lib_path.rb +0 -7
  34. data/features/support/helpers/shell_example_runner.rb +0 -26
  35. data/features/support/helpers/temp_dir.rb +0 -15
  36. data/features/support/step_definitions.rb +0 -49
  37. data/spec/cute_print_spec.rb +0 -54
  38. data/spec/format/inspect_spec.rb +0 -20
  39. data/spec/format/pretty_print_spec.rb +0 -36
  40. data/spec/inline_labeler_spec.rb +0 -39
  41. data/spec/irb_spec.rb +0 -25
  42. data/spec/labeler_spec.rb +0 -97
  43. data/spec/outline_labeler_spec.rb +0 -37
  44. data/spec/printer_spec.rb +0 -79
  45. data/spec/silence_warnings.rb +0 -24
  46. data/spec/spec_helper.rb +0 -21
  47. data/spec/support/captures_stderr.rb +0 -3
  48. data/tasks/cucumber.rake +0 -8
  49. data/tasks/default.rake +0 -1
  50. data/tasks/jeweler.rake +0 -39
  51. data/tasks/spec.rake +0 -5
  52. data/tasks/test.rake +0 -2
  53. data/tasks/yard.rake +0 -3
  54. data/test_support/captures_stderr.rb +0 -16
  55. data/test_support/captures_stdout.rb +0 -16
  56. data/test_support/thread_unsafe_string_io.rb +0 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 59071470529db6ddd043020fa04cbde6acf4d3b7
4
- data.tar.gz: 2b740771933f8d4790f6c414c70e7955029b236e
3
+ metadata.gz: 0d855507092404371d5759b32d04a2ad2a7f62d4
4
+ data.tar.gz: 4fbd0367d14891b9f44cc06c5a618aabaa739c30
5
5
  SHA512:
6
- metadata.gz: 45791325088fb58293a0cee97248457f339c576e247728ad5c3469b94635559bbcf2505fc02fd0a0ad997a32a09682e90b6172c804a27a12c345083f96519848
7
- data.tar.gz: f5209d8d9294d439ed3d0b63c340b3257bfe114909669a6ce5e212ee10e6f4e51ab94f7ba1630e2c8adf7ecf96d51f9729d4ceb76b15cc59a1511a4503cf89f1
6
+ metadata.gz: 54b25a6c26cb97acc2e294aa46121c0a2884ac1e25fcff8e39a37b22adc801d3300ccd4711f03bd514877261b9eb3f69b13d61f0791effe2f9f906c2ee4ecd11
7
+ data.tar.gz: eec06862739df60c376cbd6a7a087e3d11f078fd4eecd5a6a1ebee576ff8d5b3268b9ed5bf98a246a73e649ea511bd35216052c69349991cd9f1d29c5a85e42c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 1.1.5 - 2017-07-25
2
+
3
+ * Remove jeweler gem as a development dependency
4
+ * Added CutePrint::Release with version and release date constants
5
+ * Update gems
6
+
1
7
  # 1.1.4 - 2016-06-15
2
8
 
3
9
  * Update gems
data/Gemfile CHANGED
@@ -1,18 +1,2 @@
1
1
  source "http://rubygems.org"
2
-
3
- gem "ruby_parser", "~> 3.6"
4
- gem "ruby2ruby", "~> 2.1"
5
- gem "hirb", "~> 0.7"
6
-
7
- group :test do
8
- gem "cucumber", "~> 2.0"
9
- gem "rake", "~> 11.2"
10
- gem "rspec", "~> 3.1"
11
- gem "rspec-given", "~> 3.5"
12
- end
13
-
14
- group :develop do
15
- gem "jeweler", "~> 2.0"
16
- gem "redcarpet", "~> 3.2"
17
- gem "yard", "~> 0.8.7"
18
- end
2
+ gemspec
data/README.md CHANGED
@@ -4,9 +4,9 @@
4
4
  [![Build Status](https://travis-ci.org/wconrad/cute_print.png)](https://travis-ci.org/wconrad/cute_print)
5
5
  [![Code Climate](https://codeclimate.com/github/wconrad/cute_print.png)](https://codeclimate.com/github/wconrad/cute_print)
6
6
 
7
- Write debug output to stderr. Optionally print the source filename
8
- and line number, or the source of the debug statement. Easily inspect
9
- the middle of a call chain.
7
+ cute_print writes debug output to stderr. Optionally prints the
8
+ source filename and line number, or the source of the debug statement.
9
+ Easily inspect the middle of a call chain.
10
10
 
11
11
  ## Why?
12
12
 
data/cute_print.gemspec CHANGED
@@ -1,59 +1,72 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
1
  # -*- encoding: utf-8 -*-
5
- # stub: cute_print 1.1.4 ruby lib
2
+ # frozen_string_literal: true
3
+
4
+ require File.join(File.dirname(__FILE__), "lib/cute_print/release")
5
+
6
+ class Readme
7
+
8
+ def description
9
+ readme = File.open(README_PATH, "r", &:read)
10
+ description = readme[/^# cute_print.*\n+((?:.*\n)+?)\n*##/i, 1]
11
+ unless description
12
+ raise "Unable to extract description from readme"
13
+ end
14
+ description = remove_badges(description)
15
+ description = remove_markdown_link(description)
16
+ description = join_lines(description)
17
+ description
18
+ end
19
+
20
+ private
21
+
22
+ README_PATH = File.expand_path("README.md", File.dirname(__FILE__))
23
+ private_constant :README_PATH
24
+
25
+ def remove_markdown_link(description)
26
+ regex = %r{
27
+ \[
28
+ ([^\]]+)
29
+ \]
30
+ (
31
+ \[\d+\] |
32
+ \([^)]+\)
33
+ )
34
+ }x
35
+ description.gsub(regex, '\1')
36
+ end
37
+
38
+ def remove_badges(description)
39
+ description.gsub(/^\[!.*\n/, "")
40
+ end
41
+
42
+ def join_lines(description)
43
+ description.gsub(/\n/, " ").strip
44
+ end
45
+
46
+ end
47
+
48
+ readme = Readme.new
6
49
 
7
50
  Gem::Specification.new do |s|
8
51
  s.name = "cute_print"
9
- s.version = "1.1.4"
10
-
11
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
52
+ s.version = CutePrint::Release::VERSION
53
+ s.required_rubygems_version = Gem::Requirement.new(">= 0")
12
54
  s.require_paths = ["lib"]
13
55
  s.authors = ["Wayne Conrad"]
14
- s.date = "2016-06-15"
15
- s.description = "Write debug output to stderr. Optionally print the source filename and line number, or the source of the debug statement. Easily inspect the middle of a call chain."
16
- s.email = "wconrad@yagni.com"
56
+ s.date = CutePrint::Release::DATE
57
+ s.description = readme.description
58
+ s.email = "kf7qga@gmail.com"
17
59
  s.extra_rdoc_files = [
18
60
  "LICENSE",
19
61
  "README.md"
20
62
  ]
21
63
  s.files = [
22
- ".config/cucumber.yml",
23
- ".rspec",
24
- ".travis.yml",
25
- ".yardopts",
26
64
  "CHANGELOG.md",
27
65
  "Gemfile",
28
- "Gemfile.lock",
29
66
  "LICENSE",
30
67
  "README.md",
31
68
  "Rakefile",
32
- "VERSION",
33
69
  "cute_print.gemspec",
34
- "features/.nav",
35
- "features/call_chain.feature",
36
- "features/configuring/configure_output.feature",
37
- "features/configuring/configure_position_format.feature",
38
- "features/configuring/readme.md",
39
- "features/configuring/reset_configuration.feature",
40
- "features/inspect/core.feature",
41
- "features/inspect/inspect.feature",
42
- "features/inspect/inspect_with_location.feature",
43
- "features/inspect/inspect_with_source.feature",
44
- "features/inspect/readme.md",
45
- "features/pretty_print/pretty_print.feature",
46
- "features/pretty_print/pretty_print_with_location.feature",
47
- "features/pretty_print/pretty_print_with_source.feature",
48
- "features/readme.md",
49
- "features/support/env.rb",
50
- "features/support/helpers/example.rb",
51
- "features/support/helpers/example_runner.rb",
52
- "features/support/helpers/fork_example_runner.rb",
53
- "features/support/helpers/lib_path.rb",
54
- "features/support/helpers/shell_example_runner.rb",
55
- "features/support/helpers/temp_dir.rb",
56
- "features/support/step_definitions.rb",
57
70
  "lib/cute_print.rb",
58
71
  "lib/cute_print/configure.rb",
59
72
  "lib/cute_print/core.rb",
@@ -87,48 +100,21 @@ Gem::Specification.new do |s|
87
100
  "lib/cute_print/term_width/detected.rb",
88
101
  "lib/cute_print/term_width/static.rb",
89
102
  "lib/cute_print/values.rb",
90
- "spec/cute_print_spec.rb",
91
- "spec/format/inspect_spec.rb",
92
- "spec/format/pretty_print_spec.rb",
93
- "spec/inline_labeler_spec.rb",
94
- "spec/irb_spec.rb",
95
- "spec/labeler_spec.rb",
96
- "spec/outline_labeler_spec.rb",
97
- "spec/printer_spec.rb",
98
- "spec/silence_warnings.rb",
99
- "spec/spec_helper.rb",
100
- "spec/support/captures_stderr.rb",
101
- "tasks/cucumber.rake",
102
- "tasks/default.rake",
103
- "tasks/jeweler.rake",
104
- "tasks/spec.rake",
105
- "tasks/test.rake",
106
- "tasks/yard.rake",
107
- "test_support/captures_stderr.rb",
108
- "test_support/captures_stdout.rb",
109
- "test_support/thread_unsafe_string_io.rb"
110
103
  ]
104
+ s.files += Dir["lib/**/*.rb"]
111
105
  s.homepage = "http://github.com/wconrad/cute_print"
112
106
  s.licenses = ["MIT"]
113
107
  s.rubygems_version = "2.5.1"
114
108
  s.summary = "print debug to stderr, with flair"
115
-
116
- if s.respond_to? :specification_version then
117
- s.specification_version = 4
118
-
119
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
120
- s.add_runtime_dependency(%q<ruby_parser>, ["~> 3.6"])
121
- s.add_runtime_dependency(%q<ruby2ruby>, ["~> 2.1"])
122
- s.add_runtime_dependency(%q<hirb>, ["~> 0.7"])
123
- else
124
- s.add_dependency(%q<ruby_parser>, ["~> 3.6"])
125
- s.add_dependency(%q<ruby2ruby>, ["~> 2.1"])
126
- s.add_dependency(%q<hirb>, ["~> 0.7"])
127
- end
128
- else
129
- s.add_dependency(%q<ruby_parser>, ["~> 3.6"])
130
- s.add_dependency(%q<ruby2ruby>, ["~> 2.1"])
131
- s.add_dependency(%q<hirb>, ["~> 0.7"])
132
- end
109
+ s.specification_version = 4
110
+ s.add_development_dependency("cucumber", "~> 2.0")
111
+ s.add_development_dependency("rake", "~> 12.0")
112
+ s.add_development_dependency("redcarpet", "~> 3.2")
113
+ s.add_development_dependency("rspec", "~> 3.1")
114
+ s.add_development_dependency("rspec-given", "~> 3.5")
115
+ s.add_development_dependency("yard", "~> 0.9.9")
116
+ s.add_runtime_dependency("hirb", "~> 0.7")
117
+ s.add_runtime_dependency("ruby2ruby", "~> 2.1")
118
+ s.add_runtime_dependency("ruby_parser", "~> 3.6")
133
119
  end
134
120
 
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CutePrint
4
+
5
+ # Release information. This is used by the gemspec, and optionally
6
+ # by the library as well.
7
+ module Release
8
+
9
+ VERSION = "1.2.0"
10
+ DATE = "2017-07-25"
11
+
12
+ end
13
+ end
metadata CHANGED
@@ -1,29 +1,113 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cute_print
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wayne Conrad
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-15 00:00:00.000000000 Z
11
+ date: 2017-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: ruby_parser
14
+ name: cucumber
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.6'
19
+ version: '2.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '12.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '12.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: redcarpet
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.2'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.2'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.1'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.1'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec-given
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.5'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.5'
83
+ - !ruby/object:Gem::Dependency
84
+ name: yard
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.9.9
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.9.9
97
+ - !ruby/object:Gem::Dependency
98
+ name: hirb
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.7'
20
104
  type: :runtime
21
105
  prerelease: false
22
106
  version_requirements: !ruby/object:Gem::Requirement
23
107
  requirements:
24
108
  - - "~>"
25
109
  - !ruby/object:Gem::Version
26
- version: '3.6'
110
+ version: '0.7'
27
111
  - !ruby/object:Gem::Dependency
28
112
  name: ruby2ruby
29
113
  requirement: !ruby/object:Gem::Requirement
@@ -39,64 +123,35 @@ dependencies:
39
123
  - !ruby/object:Gem::Version
40
124
  version: '2.1'
41
125
  - !ruby/object:Gem::Dependency
42
- name: hirb
126
+ name: ruby_parser
43
127
  requirement: !ruby/object:Gem::Requirement
44
128
  requirements:
45
129
  - - "~>"
46
130
  - !ruby/object:Gem::Version
47
- version: '0.7'
131
+ version: '3.6'
48
132
  type: :runtime
49
133
  prerelease: false
50
134
  version_requirements: !ruby/object:Gem::Requirement
51
135
  requirements:
52
136
  - - "~>"
53
137
  - !ruby/object:Gem::Version
54
- version: '0.7'
55
- description: Write debug output to stderr. Optionally print the source filename and
56
- line number, or the source of the debug statement. Easily inspect the middle of
57
- a call chain.
58
- email: wconrad@yagni.com
138
+ version: '3.6'
139
+ description: cute_print writes debug output to stderr. Optionally prints the source
140
+ filename and line number, or the source of the debug statement. Easily inspect the
141
+ middle of a call chain.
142
+ email: kf7qga@gmail.com
59
143
  executables: []
60
144
  extensions: []
61
145
  extra_rdoc_files:
62
146
  - LICENSE
63
147
  - README.md
64
148
  files:
65
- - ".config/cucumber.yml"
66
- - ".rspec"
67
- - ".travis.yml"
68
- - ".yardopts"
69
149
  - CHANGELOG.md
70
150
  - Gemfile
71
- - Gemfile.lock
72
151
  - LICENSE
73
152
  - README.md
74
153
  - Rakefile
75
- - VERSION
76
154
  - cute_print.gemspec
77
- - features/.nav
78
- - features/call_chain.feature
79
- - features/configuring/configure_output.feature
80
- - features/configuring/configure_position_format.feature
81
- - features/configuring/readme.md
82
- - features/configuring/reset_configuration.feature
83
- - features/inspect/core.feature
84
- - features/inspect/inspect.feature
85
- - features/inspect/inspect_with_location.feature
86
- - features/inspect/inspect_with_source.feature
87
- - features/inspect/readme.md
88
- - features/pretty_print/pretty_print.feature
89
- - features/pretty_print/pretty_print_with_location.feature
90
- - features/pretty_print/pretty_print_with_source.feature
91
- - features/readme.md
92
- - features/support/env.rb
93
- - features/support/helpers/example.rb
94
- - features/support/helpers/example_runner.rb
95
- - features/support/helpers/fork_example_runner.rb
96
- - features/support/helpers/lib_path.rb
97
- - features/support/helpers/shell_example_runner.rb
98
- - features/support/helpers/temp_dir.rb
99
- - features/support/step_definitions.rb
100
155
  - lib/cute_print.rb
101
156
  - lib/cute_print/configure.rb
102
157
  - lib/cute_print/core.rb
@@ -118,6 +173,7 @@ files:
118
173
  - lib/cute_print/mixin.rb
119
174
  - lib/cute_print/outline_labeler.rb
120
175
  - lib/cute_print/printer.rb
176
+ - lib/cute_print/release.rb
121
177
  - lib/cute_print/ruby_generator.rb
122
178
  - lib/cute_print/ruby_parser.rb
123
179
  - lib/cute_print/ruby_parser/block.rb
@@ -130,26 +186,6 @@ files:
130
186
  - lib/cute_print/term_width/detected.rb
131
187
  - lib/cute_print/term_width/static.rb
132
188
  - lib/cute_print/values.rb
133
- - spec/cute_print_spec.rb
134
- - spec/format/inspect_spec.rb
135
- - spec/format/pretty_print_spec.rb
136
- - spec/inline_labeler_spec.rb
137
- - spec/irb_spec.rb
138
- - spec/labeler_spec.rb
139
- - spec/outline_labeler_spec.rb
140
- - spec/printer_spec.rb
141
- - spec/silence_warnings.rb
142
- - spec/spec_helper.rb
143
- - spec/support/captures_stderr.rb
144
- - tasks/cucumber.rake
145
- - tasks/default.rake
146
- - tasks/jeweler.rake
147
- - tasks/spec.rake
148
- - tasks/test.rake
149
- - tasks/yard.rake
150
- - test_support/captures_stderr.rb
151
- - test_support/captures_stdout.rb
152
- - test_support/thread_unsafe_string_io.rb
153
189
  homepage: http://github.com/wconrad/cute_print
154
190
  licenses:
155
191
  - MIT
@@ -170,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
206
  version: '0'
171
207
  requirements: []
172
208
  rubyforge_project:
173
- rubygems_version: 2.5.1
209
+ rubygems_version: 2.4.8
174
210
  signing_key:
175
211
  specification_version: 4
176
212
  summary: print debug to stderr, with flair