cute_print 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ODg0NWRlYWY0NTcwOTA2NzQyYTNkYjlkMzE1OGRmNjcwYTE0NDU1NQ==
5
- data.tar.gz: !binary |-
6
- Y2M4YTVlZjgyMThhZDhmM2M1OGM3MTkwODM2MmEyY2RjZDE4ZmIzNQ==
2
+ SHA1:
3
+ metadata.gz: 6d7aa3f8cf059eaa609109534364532671d63b2f
4
+ data.tar.gz: e815f675e69633a3bd6d686aee0589fc5e0da13a
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZGJiMzU1NGM4YmMxYWM5NTBiMzU0MTNmNWUzNDEzMmYzZGNhMWFmYTA1MDI5
10
- MTE2OTlkZmFlNTMwNWM0NGIyNzIyZjExNTRmODc5N2FiNWMzZDViMTQ4ODMy
11
- ZTc5M2Y2ZmVlN2E3NjlhYTNhNjgyNmViZmQ5ZGQ5YjNjZDJlOTE=
12
- data.tar.gz: !binary |-
13
- M2E2NWMwNjViM2MyMjliNjEwM2JmZjdiZDk3ZWJiODMwZDdiODRlZjY4ODJj
14
- NjNmNzczMDcwMDg2MGI0NDM2OWY1MWUwM2Y2Y2Y2YmY1M2VmNzlhNTRkMWU0
15
- NmNhN2VmNDMwN2FiNjJkYTMzODkzZDY3MTlmNDJlY2I5ODE3NjQ=
6
+ metadata.gz: c9d3038ae731ea89f6758280ea61ddbd8b73b9cad7fb8731181c620377ca508df59a41dc788526d9ef0ddaeb5110dca6ab1d2ace4fa4d1c09f5f5fe2e565d365
7
+ data.tar.gz: 618fbf8a7e3e26be38364eefd85f6da5d0c3c556cd2b8d45c9708fb7d04f8ba9f538a85d4749eccc42d8b491849fb854ae5aaedd9ea4a059cc4aecc3bacf85ff
data/.travis.yml CHANGED
@@ -3,3 +3,4 @@ rvm:
3
3
  - 1.9.3
4
4
  - 2.0
5
5
  - 2.1
6
+ - 2.2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 1.1.1 - 2015-11-17
2
+
3
+ * Update gems
4
+
5
+ * Fix stack trace in irb when used after function definition
6
+
1
7
  * 1.1.0 - 2015-06-13
2
8
 
3
9
  Enhancements:
data/Gemfile CHANGED
@@ -5,7 +5,6 @@ gem "ruby2ruby", "~> 2.1"
5
5
  gem "hirb", "~> 0.7"
6
6
 
7
7
  group :test do
8
- gem "bundler", "~> 1.7"
9
8
  gem "cucumber", "~> 2.0"
10
9
  gem "rake", "~> 10.4"
11
10
  gem "rspec", "~> 3.1"
data/Gemfile.lock CHANGED
@@ -3,35 +3,34 @@ GEM
3
3
  specs:
4
4
  addressable (2.3.8)
5
5
  builder (3.2.2)
6
- cucumber (2.0.0)
6
+ cucumber (2.1.0)
7
7
  builder (>= 2.1.2)
8
- cucumber-core (~> 1.1.3)
8
+ cucumber-core (~> 1.3.0)
9
9
  diff-lcs (>= 1.1.3)
10
- gherkin (~> 2.12)
10
+ gherkin3 (~> 3.1.0)
11
11
  multi_json (>= 1.7.5, < 2.0)
12
12
  multi_test (>= 0.1.2)
13
- cucumber-core (1.1.3)
14
- gherkin (~> 2.12.0)
13
+ cucumber-core (1.3.0)
14
+ gherkin3 (~> 3.1.0)
15
15
  descendants_tracker (0.0.4)
16
16
  thread_safe (~> 0.3, >= 0.3.1)
17
17
  diff-lcs (1.2.5)
18
- faraday (0.9.1)
18
+ faraday (0.9.2)
19
19
  multipart-post (>= 1.2, < 3)
20
- gherkin (2.12.2)
21
- multi_json (~> 1.3)
20
+ gherkin3 (3.1.2)
22
21
  git (1.2.9.1)
23
- github_api (0.12.3)
22
+ github_api (0.12.4)
24
23
  addressable (~> 2.3)
25
24
  descendants_tracker (~> 0.0.4)
26
25
  faraday (~> 0.8, < 0.10)
27
- hashie (>= 3.3)
26
+ hashie (>= 3.4)
28
27
  multi_json (>= 1.7.5, < 2.0)
29
- nokogiri (~> 1.6.3)
28
+ nokogiri (~> 1.6.6)
30
29
  oauth2
31
- given_core (3.7.0)
30
+ given_core (3.7.1)
32
31
  sorcerer (>= 0.3.7)
33
- hashie (3.4.2)
34
- highline (1.7.2)
32
+ hashie (3.4.3)
33
+ highline (1.7.8)
35
34
  hirb (0.7.3)
36
35
  jeweler (2.0.1)
37
36
  builder
@@ -42,14 +41,13 @@ GEM
42
41
  nokogiri (>= 1.5.10)
43
42
  rake
44
43
  rdoc
45
- json (1.8.3)
46
- jwt (1.5.0)
44
+ jwt (1.5.2)
47
45
  mini_portile (0.6.2)
48
- multi_json (1.11.1)
46
+ multi_json (1.11.2)
49
47
  multi_test (0.1.2)
50
48
  multi_xml (0.5.5)
51
49
  multipart-post (2.0.0)
52
- nokogiri (1.6.6.2)
50
+ nokogiri (1.6.6.3)
53
51
  mini_portile (~> 0.6.0)
54
52
  oauth2 (1.0.0)
55
53
  faraday (>= 0.8, < 0.10)
@@ -57,31 +55,30 @@ GEM
57
55
  multi_json (~> 1.3)
58
56
  multi_xml (~> 0.5)
59
57
  rack (~> 1.2)
60
- rack (1.6.1)
58
+ rack (1.6.4)
61
59
  rake (10.4.2)
62
60
  rdoc (4.2.0)
63
- json (~> 1.4)
64
- redcarpet (3.3.1)
65
- rspec (3.3.0)
66
- rspec-core (~> 3.3.0)
67
- rspec-expectations (~> 3.3.0)
68
- rspec-mocks (~> 3.3.0)
69
- rspec-core (3.3.0)
70
- rspec-support (~> 3.3.0)
71
- rspec-expectations (3.3.0)
61
+ redcarpet (3.3.3)
62
+ rspec (3.4.0)
63
+ rspec-core (~> 3.4.0)
64
+ rspec-expectations (~> 3.4.0)
65
+ rspec-mocks (~> 3.4.0)
66
+ rspec-core (3.4.0)
67
+ rspec-support (~> 3.4.0)
68
+ rspec-expectations (3.4.0)
72
69
  diff-lcs (>= 1.2.0, < 2.0)
73
- rspec-support (~> 3.3.0)
74
- rspec-given (3.7.0)
75
- given_core (= 3.7.0)
70
+ rspec-support (~> 3.4.0)
71
+ rspec-given (3.7.1)
72
+ given_core (= 3.7.1)
76
73
  rspec (>= 2.14.0)
77
- rspec-mocks (3.3.0)
74
+ rspec-mocks (3.4.0)
78
75
  diff-lcs (>= 1.2.0, < 2.0)
79
- rspec-support (~> 3.3.0)
80
- rspec-support (3.3.0)
76
+ rspec-support (~> 3.4.0)
77
+ rspec-support (3.4.0)
81
78
  ruby2ruby (2.2.0)
82
79
  ruby_parser (~> 3.1)
83
80
  sexp_processor (~> 4.0)
84
- ruby_parser (3.7.0)
81
+ ruby_parser (3.7.2)
85
82
  sexp_processor (~> 4.1)
86
83
  sexp_processor (4.6.0)
87
84
  sorcerer (1.0.2)
@@ -92,7 +89,6 @@ PLATFORMS
92
89
  ruby
93
90
 
94
91
  DEPENDENCIES
95
- bundler (~> 1.7)
96
92
  cucumber (~> 2.0)
97
93
  hirb (~> 0.7)
98
94
  jeweler (~> 2.0)
@@ -105,4 +101,4 @@ DEPENDENCIES
105
101
  yard (~> 0.8.7)
106
102
 
107
103
  BUNDLED WITH
108
- 1.10.3
104
+ 1.10.6
data/README.md CHANGED
@@ -189,8 +189,9 @@ The "tap" methods are not available when using CutePrint this way.
189
189
  This gem is known to work with these Rubies:
190
190
 
191
191
  * ruby-1.9.3
192
- * ruby-2.0.0
193
- * ruby-2.1.2
192
+ * ruby-2.0
193
+ * ruby-2.1
194
+ * ruby-2.2
194
195
 
195
196
  ## Platforms supported
196
197
 
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rubygems'
3
3
  require 'bundler'
4
4
 
5
5
  begin
6
- Bundler.setup(:default, :development)
6
+ Bundler.setup(:default, :development, :test)
7
7
  rescue Bundler::BundlerError => e
8
8
  $stderr.puts e.message
9
9
  $stderr.puts 'Run `bundle install` to install missing gems'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
data/cute_print.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: cute_print 1.1.0 ruby lib
5
+ # stub: cute_print 1.1.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "cute_print"
9
- s.version = "1.1.0"
9
+ s.version = "1.1.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Wayne Conrad"]
14
- s.date = "2015-06-13"
14
+ s.date = "2015-11-18"
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
16
  s.email = "wconrad@yagni.com"
17
17
  s.extra_rdoc_files = [
@@ -110,7 +110,7 @@ Gem::Specification.new do |s|
110
110
  ]
111
111
  s.homepage = "http://github.com/wconrad/cute_print"
112
112
  s.licenses = ["MIT"]
113
- s.rubygems_version = "2.4.8"
113
+ s.rubygems_version = "2.4.6"
114
114
  s.summary = "print debug to stderr, with flair"
115
115
 
116
116
  if s.respond_to? :specification_version then
@@ -1,4 +1,5 @@
1
- # Taken, and then modified, from the _wrong_ gem:
1
+ # Taken and then
2
+ # modified from the _wrong_ gem:
2
3
  # https://github.com/sconover/wrong/blob/30475fc5ac9d0f73135d229b1b44c045156a7e7a/lib/wrong/irb.rb
3
4
  # Thanks for showing the way
4
5
 
@@ -14,11 +15,11 @@ if defined? IRB
14
15
 
15
16
  # Save every line that is evaluated. This gives cute_print a
16
17
  # way to get the source when it is run in irb.
17
- define_method :evaluate do |line, line_no|
18
+ define_method :evaluate do |src, line_no|
18
19
  @all_lines ||= []
19
20
  @all_lines += ["\n"] * (line_no - @all_lines.size - 1)
20
- @all_lines[line_no - 1] = line
21
- original_evaluate.bind(self).call line, line_no
21
+ @all_lines += src.lines.to_a
22
+ original_evaluate.bind(self).call src, line_no
22
23
  end
23
24
 
24
25
  end
data/spec/irb_spec.rb CHANGED
@@ -13,6 +13,8 @@ describe CutePrint do
13
13
  _stdout_output, stderr_output =
14
14
  Open3.popen3("irb") do |stdin, stdout, stderr, wait_thr|
15
15
  stdin.puts "require #{lib_path.inspect}"
16
+ stdin.puts "def foo"
17
+ stdin.puts "end"
16
18
  stdin.puts "q {1 + 2}"
17
19
  stdin.close
18
20
  [stdout.read, stderr.read]
metadata CHANGED
@@ -1,57 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cute_print
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
  - Wayne Conrad
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-13 00:00:00.000000000 Z
11
+ date: 2015-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby_parser
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: !binary |-
20
- My42
19
+ version: '3.6'
21
20
  type: :runtime
22
21
  prerelease: false
23
22
  version_requirements: !ruby/object:Gem::Requirement
24
23
  requirements:
25
- - - ~>
24
+ - - "~>"
26
25
  - !ruby/object:Gem::Version
27
- version: !binary |-
28
- My42
26
+ version: '3.6'
29
27
  - !ruby/object:Gem::Dependency
30
28
  name: ruby2ruby
31
29
  requirement: !ruby/object:Gem::Requirement
32
30
  requirements:
33
- - - ~>
31
+ - - "~>"
34
32
  - !ruby/object:Gem::Version
35
33
  version: '2.1'
36
34
  type: :runtime
37
35
  prerelease: false
38
36
  version_requirements: !ruby/object:Gem::Requirement
39
37
  requirements:
40
- - - ~>
38
+ - - "~>"
41
39
  - !ruby/object:Gem::Version
42
40
  version: '2.1'
43
41
  - !ruby/object:Gem::Dependency
44
42
  name: hirb
45
43
  requirement: !ruby/object:Gem::Requirement
46
44
  requirements:
47
- - - ~>
45
+ - - "~>"
48
46
  - !ruby/object:Gem::Version
49
47
  version: '0.7'
50
48
  type: :runtime
51
49
  prerelease: false
52
50
  version_requirements: !ruby/object:Gem::Requirement
53
51
  requirements:
54
- - - ~>
52
+ - - "~>"
55
53
  - !ruby/object:Gem::Version
56
54
  version: '0.7'
57
55
  description: Write debug output to stderr. Optionally print the source filename and
@@ -64,10 +62,10 @@ extra_rdoc_files:
64
62
  - LICENSE
65
63
  - README.md
66
64
  files:
67
- - .config/cucumber.yml
68
- - .rspec
69
- - .travis.yml
70
- - .yardopts
65
+ - ".config/cucumber.yml"
66
+ - ".rspec"
67
+ - ".travis.yml"
68
+ - ".yardopts"
71
69
  - CHANGELOG.md
72
70
  - Gemfile
73
71
  - Gemfile.lock
@@ -162,17 +160,17 @@ require_paths:
162
160
  - lib
163
161
  required_ruby_version: !ruby/object:Gem::Requirement
164
162
  requirements:
165
- - - ! '>='
163
+ - - ">="
166
164
  - !ruby/object:Gem::Version
167
165
  version: '0'
168
166
  required_rubygems_version: !ruby/object:Gem::Requirement
169
167
  requirements:
170
- - - ! '>='
168
+ - - ">="
171
169
  - !ruby/object:Gem::Version
172
170
  version: '0'
173
171
  requirements: []
174
172
  rubyforge_project:
175
- rubygems_version: 2.4.8
173
+ rubygems_version: 2.4.6
176
174
  signing_key:
177
175
  specification_version: 4
178
176
  summary: print debug to stderr, with flair