tailor 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ pkg/
15
15
  tmp/
16
16
 
17
17
  */.DS_Store
18
+ atlassian-ide-plugin.xml
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tailor (1.1.2)
4
+ tailor (1.1.3)
5
5
  log_switch (>= 0.3.0)
6
6
  term-ansicolor (>= 1.0.5)
7
7
  text-table (>= 1.2.2)
@@ -9,56 +9,59 @@ PATH
9
9
  GEM
10
10
  remote: http://rubygems.org/
11
11
  specs:
12
- aruba (0.4.11)
13
- childprocess (>= 0.2.3)
12
+ aruba (0.5.1)
13
+ childprocess (~> 0.3.6)
14
14
  cucumber (>= 1.1.1)
15
- ffi (>= 1.0.11)
16
- rspec (>= 2.7.0)
17
- builder (3.0.0)
18
- childprocess (0.3.1)
19
- ffi (~> 1.0.6)
15
+ rspec-expectations (>= 2.7.0)
16
+ builder (3.1.4)
17
+ childprocess (0.3.7)
18
+ ffi (~> 1.0, >= 1.0.6)
20
19
  code_statistics (0.2.13)
21
- cucumber (1.1.9)
20
+ cucumber (1.2.1)
22
21
  builder (>= 2.1.2)
23
- diff-lcs (>= 1.1.2)
24
- gherkin (~> 2.9.0)
22
+ diff-lcs (>= 1.1.3)
23
+ gherkin (~> 2.11.0)
25
24
  json (>= 1.4.6)
26
- term-ansicolor (>= 1.0.6)
27
25
  diff-lcs (1.1.3)
28
- fakefs (0.4.0)
29
- ffi (1.0.11)
30
- gherkin (2.9.3)
26
+ fakefs (0.4.2)
27
+ ffi (1.3.1)
28
+ ffi (1.3.1-java)
29
+ gherkin (2.11.5)
31
30
  json (>= 1.4.6)
32
- json (1.6.6)
33
- log_switch (0.3.0)
34
- multi_json (1.2.0)
35
- rake (0.9.2.2)
36
- roodi (2.1.0)
37
- ruby_parser
38
- rspec (2.9.0)
39
- rspec-core (~> 2.9.0)
40
- rspec-expectations (~> 2.9.0)
41
- rspec-mocks (~> 2.9.0)
42
- rspec-core (2.9.0)
43
- rspec-expectations (2.9.0)
31
+ gherkin (2.11.5-java)
32
+ json (>= 1.4.6)
33
+ json (1.7.6)
34
+ json (1.7.6-java)
35
+ log_switch (0.4.0)
36
+ multi_json (1.5.0)
37
+ rake (10.0.3)
38
+ roodi (2.2.0)
39
+ ruby_parser (~> 2.3.0)
40
+ rspec (2.12.0)
41
+ rspec-core (~> 2.12.0)
42
+ rspec-expectations (~> 2.12.0)
43
+ rspec-mocks (~> 2.12.0)
44
+ rspec-core (2.12.2)
45
+ rspec-expectations (2.12.1)
44
46
  diff-lcs (~> 1.1.3)
45
- rspec-mocks (2.9.0)
47
+ rspec-mocks (2.12.2)
46
48
  ruby_parser (2.3.1)
47
49
  sexp_processor (~> 3.0)
48
- sexp_processor (3.1.0)
49
- simplecov (0.6.1)
50
+ sexp_processor (3.2.0)
51
+ simplecov (0.7.1)
50
52
  multi_json (~> 1.0)
51
- simplecov-html (~> 0.5.3)
52
- simplecov-html (0.5.3)
53
+ simplecov-html (~> 0.7.1)
54
+ simplecov-html (0.7.1)
53
55
  term-ansicolor (1.0.7)
54
56
  text-table (1.2.2)
55
- yard (0.7.5)
56
- yard-cucumber (2.1.7)
57
+ yard (0.8.3)
58
+ yard-cucumber (2.2.2)
57
59
  cucumber (>= 0.7.5)
58
60
  gherkin (>= 2.2.9)
59
- yard (>= 0.7.0)
61
+ yard (>= 0.8.1)
60
62
 
61
63
  PLATFORMS
64
+ java
62
65
  ruby
63
66
 
64
67
  DEPENDENCIES
data/History.rdoc CHANGED
@@ -1,3 +1,9 @@
1
+ === 1.1.3 2013-01-28
2
+
3
+ * gh-121[https://github.com/turboladen/tailor/issues/121]
4
+ * Camel case methods are now detected properly when used inside of a class.
5
+ Thanks @jasonku!
6
+
1
7
  === 1.1.2 2012-06-01
2
8
 
3
9
  * gh-101[https://github.com/turboladen/tailor/issues/101]
@@ -10,12 +10,9 @@ class Tailor
10
10
 
11
11
  def ident_update(token, lexed_line, lineno, column)
12
12
  ident_index = lexed_line.event_index(column)
13
- previous_event = lexed_line.event_at(ident_index - 2)
14
- log "previous event: #{previous_event}"
13
+ find_event = lexed_line.find { |e| e[1] == :on_kw && e.last == "def" }
15
14
 
16
- return if previous_event.nil?
17
-
18
- if previous_event[1] == :on_kw && previous_event.last == "def"
15
+ if find_event && find_event.any?
19
16
  measure(token, lineno, column)
20
17
  end
21
18
  end
@@ -1,3 +1,3 @@
1
1
  class Tailor
2
- VERSION = '1.1.2'
2
+ VERSION = '1.1.3'
3
3
  end
@@ -2,5 +2,5 @@ require_relative '../../spec_helper'
2
2
  require 'tailor/version'
3
3
 
4
4
  describe Tailor::VERSION do
5
- it { should == "1.1.2" }
5
+ it { should == "1.1.3" }
6
6
  end
data/tailor.gemspec CHANGED
@@ -25,20 +25,20 @@ project, whatever style that may be.
25
25
  s.test_files = `git ls-files -- {spec,features}/*`.split("\n")
26
26
  s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
27
27
 
28
- s.add_runtime_dependency(%q<log_switch>, ">= 0.3.0")
29
- s.add_runtime_dependency(%q<term-ansicolor>, ">= 1.0.5")
30
- s.add_runtime_dependency(%q<text-table>, ">= 1.2.2")
28
+ s.add_runtime_dependency %q<log_switch>, ">= 0.3.0"
29
+ s.add_runtime_dependency %q<term-ansicolor>, ">= 1.0.5"
30
+ s.add_runtime_dependency %q<text-table>, ">= 1.2.2"
31
31
 
32
- s.add_development_dependency(%q<aruba>, ">=0")
33
- s.add_development_dependency(%q<bundler>, ">=0")
34
- s.add_development_dependency(%q<code_statistics>, ">=0")
35
- s.add_development_dependency(%q<cucumber>, ">= 1.0.2")
36
- s.add_development_dependency(%q<fakefs>, ">= 0.4.0")
37
- s.add_development_dependency(%q<rake>, ">= 0")
38
- s.add_development_dependency(%q<roodi>, ">= 2.1.0")
39
- s.add_development_dependency(%q<rspec>, ">= 2.5.0")
40
- s.add_development_dependency(%q<simplecov>, ">= 0.4.0")
41
- s.add_development_dependency(%q<yard>, ">= 0.7.0")
42
- s.add_development_dependency(%q<yard-cucumber>, ">= 2.1.7")
32
+ s.add_development_dependency %q<aruba>
33
+ s.add_development_dependency %q<bundler>
34
+ s.add_development_dependency %q<code_statistics>
35
+ s.add_development_dependency %q<cucumber>, ">= 1.0.2"
36
+ s.add_development_dependency %q<fakefs>, ">= 0.4.0"
37
+ s.add_development_dependency %q<rake>
38
+ s.add_development_dependency %q<roodi>, ">= 2.1.0"
39
+ s.add_development_dependency %q<rspec>, ">= 2.5.0"
40
+ s.add_development_dependency %q<simplecov>, ">= 0.4.0"
41
+ s.add_development_dependency %q<yard>, ">= 0.7.0"
42
+ s.add_development_dependency %q<yard-cucumber>, ">= 2.1.7"
43
43
  end
44
44
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tailor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-01 00:00:00.000000000 Z
12
+ date: 2013-01-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: log_switch
@@ -379,7 +379,6 @@ files:
379
379
  - tasks/spec.rake
380
380
  - tasks/stats.rake
381
381
  - tasks/yard.rake
382
- - uest.rb
383
382
  homepage: http://github.com/turboladen/tailor
384
383
  licenses: []
385
384
  post_install_message:
data/uest.rb DELETED
@@ -1,9 +0,0 @@
1
- begin
2
- ssh.upload source, dest
3
- @logger.info "Successfully copied the file #{source} to " +
4
- "#{@config[:scp_hostname]}:#{dest}."
5
- rescue SocketError, ArgumentError, SystemCallError,
6
- Net::SCP::Exception, Timeout::Error => ex
7
- @logger.error "Failed to copy the file #{source} to #{dest} due to " +
8
- "#{ex.message}"
9
- end