totrello 0.1.2 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 272fec0f178dc96c80d1c36e59369e9b644c89ba
4
- data.tar.gz: b3c3f0b44a306d7fcd8c9425460ee1cafeae4743
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZDk1MzIyODM1OTFjMWUxMTEwMTVlZTY0MDFjNzZmYTMyYmY4OWE5YQ==
5
+ data.tar.gz: !binary |-
6
+ N2NjMmEzYzgzOTk1YTczZjE1OTdmODYyNWEzZTIzNzdmNjlmMzE1YQ==
5
7
  SHA512:
6
- metadata.gz: 389ca587459d6c335a377ac8842833f1dd47c42c07d2692a06d07e9c929cef3d34747598af8a14a531f9497e58226551135b98e499ece3cb80c44c4eae4c7eab
7
- data.tar.gz: 523db31123f532458e5fee3d750ce7863720dcb9da44e340f6de484958227ab4a67bbfc4ad5ca607fc1740b31b6a667abf95a6786a2784257f91454f8c00663b
8
+ metadata.gz: !binary |-
9
+ NGZlNDI1NDE3Y2E0M2IyZmNmMGVmODVkYzBhOGIyMzg2ZTVlNGI0MjkyN2Ji
10
+ ZGExOWIxMTZiOWE4NDM5NjU0MjhiNWUwYTk3Zjg3N2M1ZTc3NzA1MWQyN2Rm
11
+ MjE0YzhlYzE5YWQwMjU0YjgwODhmNzZhNzc0NmYyODA4NmU1MjA=
12
+ data.tar.gz: !binary |-
13
+ YTZkZjEyZWEyNzgxMjhjOGMyYjRmNjE2NTk5ZTMyMzQ1ZWM5MjYxNjMwNTQx
14
+ OGFhOGIyZWE1YTY3NDgxOGRmZjkzNDc2NDQ2MTU1ZDIyNmI2MDMyYzQ4ZGMz
15
+ NmE3ODc2OTQ4ZTVjMjJlOGMxZDM0OThjN2Q0NjZkNjJhMDAzZWI=
data/.travis.yml CHANGED
@@ -1,10 +1,16 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1.2
4
- - 2.1.1
5
- - 2.0.0-p247
6
- - 1.9.3-p194
7
- # uncomment this line if your project needs to run something other than `rake`:
8
- script:
9
- gem install bundler &&
10
- bundle exec rspec test/totrello_spec.rb
3
+ - 2.1.2
4
+ - 2.1.1
5
+ - 2.0.0-p247
6
+ - 1.9.3-p194
7
+ script: gem install bundler && bundle exec rspec test/totrello_spec.rb
8
+ deploy:
9
+ provider: rubygems
10
+ api_key:
11
+ secure: A/8Ok3/ihNpklGN2s1Qn5SRA7RYTL0BZp3gP4mYRXD6DyhEQHpMv5TS0ThhqhIEvDCAeUlCRYPkhHhbjoSX11n9DNnQSvgtzBdgMjXxomgsC8AX1GYbf7NzEQF14sj7HFb7bey1osG8OdYG7W3WcO5W1qZqaNgnECth/+tDW/XU=
12
+ gem: !binary |-
13
+ G1tE
14
+ on:
15
+ tags: true
16
+ repo: whatisinternet/ToTrello
data/Gemfile CHANGED
@@ -1,4 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+
3
4
  # Specify your gem's dependencies in totrello.gemspec
4
5
  gemspec
data/lib/to_do_find.rb CHANGED
@@ -33,19 +33,21 @@ class ToDoFind
33
33
  private
34
34
  def find_todo(file)
35
35
  @out = []
36
- histories = File.readlines(file)
36
+ code_lines = File.readlines(file)
37
+ return @out unless code_lines.grep('/TODO/' || '/todo/')
38
+
37
39
  line_num = 0
38
- histories.each do |hist|
40
+ code_lines.each do |code_line|
39
41
  line_num += 1
40
- todo_location = is_todo?( hist, 'TODO' )
41
- todo_location ||= is_todo?( hist, 'TODO:' )
42
- todo_location ||= is_todo?( hist, ' TODO:' )
43
- todo_location ||= is_todo?( hist, ' TODO' )
44
- todo_location ||= is_todo?( hist, '#TODO:' )
45
- todo_location ||= is_todo?( hist, '#TODO' )
42
+ todo_location = is_todo?( code_line, 'TODO' )
43
+ todo_location ||= is_todo?( code_line, 'TODO:' )
44
+ todo_location ||= is_todo?( code_line, ' TODO:' )
45
+ todo_location ||= is_todo?( code_line, ' TODO' )
46
+ todo_location ||= is_todo?( code_line, '#TODO:' )
47
+ todo_location ||= is_todo?( code_line, '#TODO' )
46
48
  unless todo_location.nil?
47
- temp_string_array = hist.split(' ')
48
- todo = hist.split(' ')[(todo_location + 1)..((temp_string_array.length) - 1)].join(' ')
49
+ temp_string_array = code_line.split(' ')
50
+ todo = code_line.split(' ')[(todo_location + 1)..((temp_string_array.length) - 1)].join(' ')
49
51
  puts "Found! #{todo}"
50
52
  todo_and_location = {:todo => todo,
51
53
  :location => line_num}
@@ -61,7 +63,7 @@ class ToDoFind
61
63
  private
62
64
  def is_todo?( string, test_string )
63
65
  begin
64
- string.split(' ').index test_string
66
+ string.downcase.split(' ').index test_string.downcase
65
67
  rescue
66
68
  return nil
67
69
  end
@@ -1,3 +1,3 @@
1
1
  module Totrello
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.5"
3
3
  end
data/lib/totrello.rb CHANGED
@@ -41,7 +41,7 @@ module Totrello
41
41
 
42
42
 
43
43
 
44
- puts 'Taking to Trello, this is the longest part...'
44
+ puts 'Talking to Trello, this is the longest part...'
45
45
  todos[:todo_list].each do |tdl|
46
46
  tdl[:todos].each do |td|
47
47
  begin
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: totrello
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Teeter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-03 00:00:00.000000000 Z
11
+ date: 2014-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.6'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: 3.0.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: 3.0.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: ruby-trello
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: This will take the todo items in your code and turn them into trello
@@ -74,8 +74,8 @@ executables:
74
74
  extensions: []
75
75
  extra_rdoc_files: []
76
76
  files:
77
- - ".gitignore"
78
- - ".travis.yml"
77
+ - .gitignore
78
+ - .travis.yml
79
79
  - Gemfile
80
80
  - LICENSE.txt
81
81
  - README.md
@@ -98,12 +98,12 @@ require_paths:
98
98
  - lib
99
99
  required_ruby_version: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - ! '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  requirements:
106
- - - ">="
106
+ - - ! '>='
107
107
  - !ruby/object:Gem::Version
108
108
  version: '0'
109
109
  requirements: []