twdeps 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65b68c72f4cafcddc81c0367bade993f8f5dd732c8cea3b6efc2c68d23df8513
4
- data.tar.gz: d104bad10e31d9882e3b311a171c36c93cf0d6cfa6e3a42359f7d434163d88b7
3
+ metadata.gz: 02ba155ab3b383b038d5e2c4df847450dd105467d32a6d85210c077a1d9e409b
4
+ data.tar.gz: 03360def6b47864ac9f31983597d35de084ae11be770a227a49261a2ce57703e
5
5
  SHA512:
6
- metadata.gz: ce3e46286bd1b886c6d167051a9cd76751fb557acc08724eff3fd2f06864fa3cc62505605c803a7c44caf28b3dae86dcf438b45bc180d50f30bb6aa8ff578731
7
- data.tar.gz: 8b34146ef9953445448e411b78afbd6fce340c9c7b79a414376da6afe91b2826e32e80e8feca30885b6e6489d3fbd2b691170335872349bb1f8d940924f8d137
6
+ metadata.gz: bede1f117238591b1c9f54935cbd8cbecddc250f731533635e074b21d479ec967cfdcdc4dbc752e7edb1d31426fe68040a14d1dd7e240fabda300933a54eec6f
7
+ data.tar.gz: 833e77bc779e3fb92440691c7c8d513660b24948e2d5077d15f2f931ce8eee65406ac04a05455562e5e31a59ed91b33a0aeb9ff96a7a5d58d1f04bceb29e8bfb
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.1
1
+ 2.5.3
data/.travis.yml CHANGED
@@ -11,3 +11,6 @@ before_install:
11
11
  - sudo apt-get update
12
12
  - sudo apt-get install task
13
13
  - sudo apt-get install graphviz
14
+
15
+ # https://github.com/travis-ci/travis-ci/issues/8978#issuecomment-377680126
16
+ - gem install bundler
data/Gemfile.lock CHANGED
@@ -1,26 +1,26 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- twdeps (1.0.1)
4
+ twdeps (1.0.2)
5
+ optimist
5
6
  ruby-graphviz
6
7
  taskwarrior (~> 1.0.0)
7
- trollop
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activemodel (5.1.6)
13
- activesupport (= 5.1.6)
14
- activesupport (5.1.6)
12
+ activemodel (5.2.1)
13
+ activesupport (= 5.2.1)
14
+ activesupport (5.2.1)
15
15
  concurrent-ruby (~> 1.0, >= 1.0.2)
16
16
  i18n (>= 0.7, < 2)
17
17
  minitest (~> 5.1)
18
18
  tzinfo (~> 1.1)
19
19
  coderay (1.1.2)
20
- concurrent-ruby (1.0.5)
21
- ffi (1.9.23)
20
+ concurrent-ruby (1.1.3)
21
+ ffi (1.9.25)
22
22
  formatador (0.2.5)
23
- guard (2.14.2)
23
+ guard (2.15.0)
24
24
  formatador (>= 0.2.4)
25
25
  listen (>= 2.7, < 4.0)
26
26
  lumberjack (>= 1.0.12, < 2.0)
@@ -37,34 +37,34 @@ GEM
37
37
  guard-minitest (2.4.6)
38
38
  guard-compat (~> 1.2)
39
39
  minitest (>= 3.0)
40
- i18n (1.0.0)
40
+ i18n (1.1.1)
41
41
  concurrent-ruby (~> 1.0)
42
42
  listen (3.1.5)
43
43
  rb-fsevent (~> 0.9, >= 0.9.4)
44
44
  rb-inotify (~> 0.9, >= 0.9.7)
45
45
  ruby_dep (~> 1.2)
46
46
  lumberjack (1.0.13)
47
- method_source (0.9.0)
47
+ method_source (0.9.2)
48
48
  minitest (5.11.3)
49
49
  nenv (0.3.0)
50
50
  notiffany (0.1.1)
51
51
  nenv (~> 0.1)
52
52
  shellany (~> 0.0)
53
- pry (0.11.3)
53
+ optimist (3.0.0)
54
+ pry (0.12.2)
54
55
  coderay (~> 1.1.0)
55
56
  method_source (~> 0.9.0)
56
57
  rake (12.3.1)
57
58
  rb-fsevent (0.10.3)
58
59
  rb-inotify (0.9.10)
59
60
  ffi (>= 0.5.0, < 2)
60
- ruby-graphviz (1.2.3)
61
+ ruby-graphviz (1.2.4)
61
62
  ruby_dep (1.5.0)
62
63
  shellany (0.0.1)
63
- taskwarrior (1.0.0)
64
+ taskwarrior (1.0.2)
64
65
  activemodel
65
- thor (0.20.0)
66
+ thor (0.20.3)
66
67
  thread_safe (0.3.6)
67
- trollop (2.1.2)
68
68
  twtest (1.0.1)
69
69
  minitest
70
70
  tzinfo (1.2.5)
@@ -82,4 +82,4 @@ DEPENDENCIES
82
82
  twtest
83
83
 
84
84
  BUNDLED WITH
85
- 1.16.1
85
+ 1.17.1
data/bin/twdeps CHANGED
@@ -3,7 +3,7 @@
3
3
  require 'rubygems'
4
4
  require 'bundler/setup'
5
5
  require 'twdeps'
6
- require 'trollop'
6
+ require 'optimist'
7
7
 
8
8
  def log(msg)
9
9
  STDERR.puts "#{File.basename($0)}: #{msg}"
@@ -17,7 +17,7 @@ end
17
17
  include TaskWarrior
18
18
  include TaskWarrior::Dependencies
19
19
 
20
- opts = Trollop::options do
20
+ opts = Optimist::options do
21
21
  version "#{File.basename($0)} v#{VERSION} (c) 2012-#{Time.now.year} Nicolas E. Rabenau"
22
22
  banner <<-EOS
23
23
  Visualizes dependencies between TaskWarrior tasks.
@@ -33,7 +33,7 @@ EOS
33
33
  opt :trace, "Enable trace output", :default => false
34
34
  end
35
35
 
36
- Trollop::die :format, "must be one of #{Graph.formats.join(', ')}" unless Graph.formats.include?(opts[:format])
36
+ Optimist::die :format, "must be one of #{Graph.formats.join(', ')}" unless Graph.formats.include?(opts[:format])
37
37
 
38
38
  begin
39
39
  repo = Repository.new(ARGF.read)
data/lib/twdeps/graph.rb CHANGED
@@ -49,8 +49,8 @@ module TaskWarrior
49
49
  project = task_or_project
50
50
  cluster = Graph.new(presenter(project))
51
51
 
52
- project.tasks.each do |task|
53
- cluster << task
52
+ project.tasks.each do |t|
53
+ cluster << t
54
54
  end
55
55
 
56
56
  # add all nodes and edges from cluster as a subgraph to @graph
@@ -6,6 +6,6 @@ module TaskWarrior
6
6
  self.attributes = {:label => 'Unknown', :fontcolor => 'red'}
7
7
  end
8
8
  end
9
- end
10
- end
11
-
9
+ end
10
+ end
11
+
@@ -17,9 +17,9 @@ module TaskWarrior
17
17
  @id
18
18
  end
19
19
 
20
- protected
20
+ protected
21
21
  attr_writer :id, :attributes
22
22
  end
23
- end
24
- end
25
-
23
+ end
24
+ end
25
+
@@ -1,5 +1,5 @@
1
1
  module TaskWarrior
2
2
  module Dependencies
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.2'
4
4
  end
5
5
  end
data/twdeps.gemspec CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
15
15
  gem.version = TaskWarrior::Dependencies::VERSION
16
16
 
17
17
  gem.add_dependency 'ruby-graphviz'
18
- gem.add_dependency 'trollop'
18
+ gem.add_dependency 'optimist'
19
19
  gem.add_dependency 'taskwarrior', '~> 1.0.0'
20
20
  gem.add_development_dependency 'minitest'
21
21
  gem.add_development_dependency 'twtest'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twdeps
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas E. Rabenau
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-31 00:00:00.000000000 Z
11
+ date: 2018-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-graphviz
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: trollop
28
+ name: optimist
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="