tracco 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +5 -0
- data/Gemfile.lock +19 -19
- data/lib/tracco/tracked_card.rb +2 -1
- data/lib/tracco/version.rb +1 -1
- data/spec/tracked_card_spec.rb +17 -0
- metadata +2 -2
data/CHANGELOG
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
0.0.14 / 2013-02-27
|
2
|
+
==================
|
3
|
+
* TrackedCard#contains_effort? is considering all the card's efforts, even the muted ones, so that a muted effort won't be re-added from Trello to Tracco
|
4
|
+
* updating dependencies gems
|
5
|
+
|
1
6
|
0.0.13 / 2013-02-27
|
2
7
|
==================
|
3
8
|
* adding muted status on Effort to be able to 'turn off' a card's specific effort
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
tracco (0.0.
|
4
|
+
tracco (0.0.14)
|
5
5
|
bson_ext
|
6
6
|
chronic
|
7
7
|
google_drive
|
@@ -24,20 +24,20 @@ GEM
|
|
24
24
|
bson_ext (1.8.2)
|
25
25
|
bson (~> 1.8.2)
|
26
26
|
builder (3.0.4)
|
27
|
-
chronic (0.9.
|
27
|
+
chronic (0.9.1)
|
28
28
|
columnize (0.3.6)
|
29
29
|
database_cleaner (0.9.1)
|
30
|
-
debugger (1.3.
|
30
|
+
debugger (1.3.3)
|
31
31
|
columnize (>= 0.3.1)
|
32
32
|
debugger-linecache (~> 1.1.1)
|
33
|
-
debugger-ruby_core_source (~> 1.
|
33
|
+
debugger-ruby_core_source (~> 1.2.0)
|
34
34
|
debugger-linecache (1.1.2)
|
35
35
|
debugger-ruby_core_source (>= 1.1.1)
|
36
|
-
debugger-ruby_core_source (1.
|
37
|
-
diff-lcs (1.1
|
36
|
+
debugger-ruby_core_source (1.2.0)
|
37
|
+
diff-lcs (1.2.1)
|
38
38
|
factory_girl (4.2.0)
|
39
39
|
activesupport (>= 3.0.0)
|
40
|
-
faraday (0.8.
|
40
|
+
faraday (0.8.6)
|
41
41
|
multipart-post (~> 1.1)
|
42
42
|
google_drive (0.3.3)
|
43
43
|
nokogiri (>= 1.4.4, != 1.5.2, != 1.5.1)
|
@@ -45,12 +45,12 @@ GEM
|
|
45
45
|
oauth2 (>= 0.5.0)
|
46
46
|
highline (1.6.15)
|
47
47
|
httpauth (0.2.0)
|
48
|
-
i18n (0.6.
|
48
|
+
i18n (0.6.2)
|
49
49
|
json (1.7.7)
|
50
50
|
jwt (0.1.5)
|
51
51
|
multi_json (>= 1.0)
|
52
52
|
mime-types (1.21)
|
53
|
-
mongoid (3.1.
|
53
|
+
mongoid (3.1.2)
|
54
54
|
activemodel (~> 3.2)
|
55
55
|
moped (~> 1.4.2)
|
56
56
|
origin (~> 1.0)
|
@@ -62,10 +62,10 @@ GEM
|
|
62
62
|
moped (1.4.2)
|
63
63
|
multi_json (1.6.1)
|
64
64
|
multi_xml (0.5.3)
|
65
|
-
multipart-post (1.
|
65
|
+
multipart-post (1.2.0)
|
66
66
|
nokogiri (1.5.6)
|
67
67
|
oauth (0.4.7)
|
68
|
-
oauth2 (0.9.
|
68
|
+
oauth2 (0.9.1)
|
69
69
|
faraday (~> 0.8)
|
70
70
|
httpauth (~> 0.1)
|
71
71
|
jwt (~> 0.1.4)
|
@@ -78,14 +78,14 @@ GEM
|
|
78
78
|
rake (10.0.3)
|
79
79
|
rest-client (1.6.7)
|
80
80
|
mime-types (>= 1.16)
|
81
|
-
rspec (2.
|
82
|
-
rspec-core (~> 2.
|
83
|
-
rspec-expectations (~> 2.
|
84
|
-
rspec-mocks (~> 2.
|
85
|
-
rspec-core (2.
|
86
|
-
rspec-expectations (2.
|
87
|
-
diff-lcs (
|
88
|
-
rspec-mocks (2.
|
81
|
+
rspec (2.13.0)
|
82
|
+
rspec-core (~> 2.13.0)
|
83
|
+
rspec-expectations (~> 2.13.0)
|
84
|
+
rspec-mocks (~> 2.13.0)
|
85
|
+
rspec-core (2.13.0)
|
86
|
+
rspec-expectations (2.13.0)
|
87
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
88
|
+
rspec-mocks (2.13.0)
|
89
89
|
ruby-trello (0.5.1)
|
90
90
|
activemodel
|
91
91
|
addressable (~> 2.3)
|
data/lib/tracco/tracked_card.rb
CHANGED
@@ -76,7 +76,7 @@ class TrackedCard
|
|
76
76
|
end
|
77
77
|
|
78
78
|
def contains_effort?(effort)
|
79
|
-
efforts.any? { |e| e.tracking_notification_id == effort.tracking_notification_id }
|
79
|
+
efforts.unscoped.any? { |e| e.tracking_notification_id == effort.tracking_notification_id }
|
80
80
|
end
|
81
81
|
|
82
82
|
def contains_estimate?(estimate)
|
@@ -127,6 +127,7 @@ class TrackedCard
|
|
127
127
|
end
|
128
128
|
|
129
129
|
def trello_notifications
|
130
|
+
# TODO select all efforts, even the muted ones?
|
130
131
|
notification_ids = efforts.map(&:tracking_notification_id) | estimates.map(&:tracking_notification_id)
|
131
132
|
notification_ids.map { |id| Trello::Notification.find(id) rescue nil }.compact.sort_by(&:date)
|
132
133
|
end
|
data/lib/tracco/version.rb
CHANGED
data/spec/tracked_card_spec.rb
CHANGED
@@ -416,6 +416,23 @@ describe TrackedCard do
|
|
416
416
|
end
|
417
417
|
end
|
418
418
|
|
419
|
+
describe "#contains_effort?" do
|
420
|
+
it "counts regular efforts" do
|
421
|
+
effort = build(:effort, amount: 1, muted: false)
|
422
|
+
card.efforts << effort
|
423
|
+
|
424
|
+
card.contains_effort?(effort).should be_true
|
425
|
+
end
|
426
|
+
|
427
|
+
it "counts even muted efforts" do
|
428
|
+
muted_effort = build(:effort, amount: 1, muted: true)
|
429
|
+
card.efforts << muted_effort
|
430
|
+
|
431
|
+
card.contains_effort?(muted_effort).should be_true
|
432
|
+
end
|
433
|
+
|
434
|
+
end
|
435
|
+
|
419
436
|
describe "#to_s" do
|
420
437
|
it "describes the card as a string" do
|
421
438
|
card = TrackedCard.new(name: "A Story Name")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tracco
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -318,7 +318,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
318
318
|
version: '0'
|
319
319
|
segments:
|
320
320
|
- 0
|
321
|
-
hash:
|
321
|
+
hash: -1097737159014714198
|
322
322
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
323
323
|
none: false
|
324
324
|
requirements:
|