seeing_is_believing 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -292,6 +292,7 @@ Feature: Using flags
292
292
  """
293
293
 
294
294
 
295
+ @not-implemented
295
296
  Scenario: --clean on an invalid file will clean
296
297
  When I run 'seeing_is_believing --clean -e "1+ # => lkj"'
297
298
  Then stderr is empty
@@ -33,10 +33,10 @@ class SeeingIsBelieving
33
33
 
34
34
  def remove_whitespace_preceeding_comments
35
35
  lambda do |buffer, rewriter|
36
- comments[:result].each { |comment| remove_whitespace_before comment.location.begin_pos, buffer, rewriter, false }
37
- comments[:exception].each { |comment| remove_whitespace_before comment.location.begin_pos, buffer, rewriter, true }
38
- comments[:stdout].each { |comment| remove_whitespace_before comment.location.begin_pos, buffer, rewriter, true }
39
- comments[:stderr].each { |comment| remove_whitespace_before comment.location.begin_pos, buffer, rewriter, true }
36
+ comments[:result].each { |comment| remove_whitespace_before comment.location.expression.begin_pos, buffer, rewriter, false }
37
+ comments[:exception].each { |comment| remove_whitespace_before comment.location.expression.begin_pos, buffer, rewriter, true }
38
+ comments[:stdout].each { |comment| remove_whitespace_before comment.location.expression.begin_pos, buffer, rewriter, true }
39
+ comments[:stderr].each { |comment| remove_whitespace_before comment.location.expression.begin_pos, buffer, rewriter, true }
40
40
  end
41
41
  end
42
42
 
@@ -16,7 +16,7 @@ class SeeingIsBelieving
16
16
  end
17
17
 
18
18
  RemoveInlineComments.call code, additional_rewrites: nonleading_comments do |comment|
19
- ranges << comment.location
19
+ ranges << comment.location.expression
20
20
  false
21
21
  end
22
22
  end
@@ -36,7 +36,7 @@ class SeeingIsBelieving
36
36
  ast, comments = parser.parse_with_comments(buffer)
37
37
  comments.select { |comment| comment.type == :inline }
38
38
  .select { |comment| selector.call comment }
39
- .each { |comment| rewriter.remove comment.location }
39
+ .each { |comment| rewriter.remove comment.location.expression }
40
40
  additional_rewrites.call buffer, rewriter
41
41
  rewriter.process
42
42
  rescue Parser::SyntaxError => e
@@ -1,3 +1,3 @@
1
1
  class SeeingIsBelieving
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  s.require_paths = ["lib"]
21
21
 
22
- s.add_dependency "parser", "~> 2.0.0.pre1"
22
+ s.add_dependency "parser", "= 2.0.0.pre6"
23
23
 
24
24
  s.add_development_dependency "haiti", "~> 0.0.3"
25
25
  s.add_development_dependency "rake", "~> 10.0.3"
metadata CHANGED
@@ -1,99 +1,112 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seeing_is_believing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ prerelease:
5
+ version: 1.0.1
5
6
  platform: ruby
6
7
  authors:
7
8
  - Josh Cheek
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-07-19 00:00:00.000000000 Z
12
+ date: 2013-08-13 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
- name: parser
15
- requirement: !ruby/object:Gem::Requirement
15
+ version_requirements: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.0.0.pre1
19
+ version: 2.0.0.pre6
20
+ none: false
21
+ name: parser
20
22
  type: :runtime
21
23
  prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
24
+ requirement: !ruby/object:Gem::Requirement
23
25
  requirements:
24
- - - ~>
26
+ - - '='
25
27
  - !ruby/object:Gem::Version
26
- version: 2.0.0.pre1
28
+ version: 2.0.0.pre6
29
+ none: false
27
30
  - !ruby/object:Gem::Dependency
28
- name: haiti
29
- requirement: !ruby/object:Gem::Requirement
31
+ version_requirements: !ruby/object:Gem::Requirement
30
32
  requirements:
31
33
  - - ~>
32
34
  - !ruby/object:Gem::Version
33
35
  version: 0.0.3
36
+ none: false
37
+ name: haiti
34
38
  type: :development
35
39
  prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
40
+ requirement: !ruby/object:Gem::Requirement
37
41
  requirements:
38
42
  - - ~>
39
43
  - !ruby/object:Gem::Version
40
44
  version: 0.0.3
45
+ none: false
41
46
  - !ruby/object:Gem::Dependency
42
- name: rake
43
- requirement: !ruby/object:Gem::Requirement
47
+ version_requirements: !ruby/object:Gem::Requirement
44
48
  requirements:
45
49
  - - ~>
46
50
  - !ruby/object:Gem::Version
47
51
  version: 10.0.3
52
+ none: false
53
+ name: rake
48
54
  type: :development
49
55
  prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
56
+ requirement: !ruby/object:Gem::Requirement
51
57
  requirements:
52
58
  - - ~>
53
59
  - !ruby/object:Gem::Version
54
60
  version: 10.0.3
61
+ none: false
55
62
  - !ruby/object:Gem::Dependency
56
- name: rspec
57
- requirement: !ruby/object:Gem::Requirement
63
+ version_requirements: !ruby/object:Gem::Requirement
58
64
  requirements:
59
65
  - - ~>
60
66
  - !ruby/object:Gem::Version
61
67
  version: 2.12.0
68
+ none: false
69
+ name: rspec
62
70
  type: :development
63
71
  prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
72
+ requirement: !ruby/object:Gem::Requirement
65
73
  requirements:
66
74
  - - ~>
67
75
  - !ruby/object:Gem::Version
68
76
  version: 2.12.0
77
+ none: false
69
78
  - !ruby/object:Gem::Dependency
70
- name: cucumber
71
- requirement: !ruby/object:Gem::Requirement
79
+ version_requirements: !ruby/object:Gem::Requirement
72
80
  requirements:
73
81
  - - ~>
74
82
  - !ruby/object:Gem::Version
75
83
  version: 1.2.1
84
+ none: false
85
+ name: cucumber
76
86
  type: :development
77
87
  prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
88
+ requirement: !ruby/object:Gem::Requirement
79
89
  requirements:
80
90
  - - ~>
81
91
  - !ruby/object:Gem::Version
82
92
  version: 1.2.1
93
+ none: false
83
94
  - !ruby/object:Gem::Dependency
84
- name: ichannel
85
- requirement: !ruby/object:Gem::Requirement
95
+ version_requirements: !ruby/object:Gem::Requirement
86
96
  requirements:
87
97
  - - ~>
88
98
  - !ruby/object:Gem::Version
89
99
  version: 5.1.1
100
+ none: false
101
+ name: ichannel
90
102
  type: :development
91
103
  prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
104
+ requirement: !ruby/object:Gem::Requirement
93
105
  requirements:
94
106
  - - ~>
95
107
  - !ruby/object:Gem::Version
96
108
  version: 5.1.1
109
+ none: false
97
110
  description: Records the results of every line of code in your file (intended to be
98
111
  like xmpfilter), inspired by Bret Victor's JavaScript example in his talk "Inventing
99
112
  on Principle"
@@ -154,26 +167,27 @@ files:
154
167
  homepage: https://github.com/JoshCheek/seeing_is_believing
155
168
  licenses:
156
169
  - WTFPL
157
- metadata: {}
158
170
  post_install_message:
159
171
  rdoc_options: []
160
172
  require_paths:
161
173
  - lib
162
174
  required_ruby_version: !ruby/object:Gem::Requirement
163
175
  requirements:
164
- - - '>='
176
+ - - ! '>='
165
177
  - !ruby/object:Gem::Version
166
178
  version: '0'
179
+ none: false
167
180
  required_rubygems_version: !ruby/object:Gem::Requirement
168
181
  requirements:
169
- - - '>='
182
+ - - ! '>='
170
183
  - !ruby/object:Gem::Version
171
184
  version: '0'
185
+ none: false
172
186
  requirements: []
173
187
  rubyforge_project: seeing_is_believing
174
- rubygems_version: 2.0.5
188
+ rubygems_version: 1.8.23
175
189
  signing_key:
176
- specification_version: 4
190
+ specification_version: 3
177
191
  summary: Records results of every line of code in your file
178
192
  test_files:
179
193
  - features/errors.feature
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: dd476d63d1de8b5fced222b2d26b906a19b4cb5f
4
- data.tar.gz: ce1c44ebecbe7c565f47131a554d368299078319
5
- SHA512:
6
- metadata.gz: ee60234e1717c3cde6319b2930ead345af9e94723edfef4784ee479584476041bcaf87d2c896bb247c98b48a38a05062a71767f2bb86102fedcc4d009604b1a1
7
- data.tar.gz: 8839249d298c32500fab42c3501eb4dc1705981c01b05932ff12ac94ab30a7e8df5924d39e895b0d971cae19ca7c4620c0caa0ad7ec941bb780057fd4b16e445