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 +13 -5
- data/.travis.yml +14 -8
- data/Gemfile +1 -0
- data/lib/to_do_find.rb +13 -11
- data/lib/totrello/version.rb +1 -1
- data/lib/totrello.rb +1 -1
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZDk1MzIyODM1OTFjMWUxMTEwMTVlZTY0MDFjNzZmYTMyYmY4OWE5YQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
N2NjMmEzYzgzOTk1YTczZjE1OTdmODYyNWEzZTIzNzdmNjlmMzE1YQ==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
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
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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
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
|
-
|
36
|
+
code_lines = File.readlines(file)
|
37
|
+
return @out unless code_lines.grep('/TODO/' || '/todo/')
|
38
|
+
|
37
39
|
line_num = 0
|
38
|
-
|
40
|
+
code_lines.each do |code_line|
|
39
41
|
line_num += 1
|
40
|
-
todo_location = is_todo?(
|
41
|
-
todo_location ||= is_todo?(
|
42
|
-
todo_location ||= is_todo?(
|
43
|
-
todo_location ||= is_todo?(
|
44
|
-
todo_location ||= is_todo?(
|
45
|
-
todo_location ||= is_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 =
|
48
|
-
todo =
|
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
|
data/lib/totrello/version.rb
CHANGED
data/lib/totrello.rb
CHANGED
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.
|
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-
|
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
|
-
-
|
78
|
-
-
|
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: []
|