vanity-source 0.12 → 0.13
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.
- data/CHANGELOG +5 -1
- data/lib/vanity/sources/github.rb +1 -1
- data/test/cassettes/github.yml +5 -5
- data/test/github_test.rb +1 -1
- data/test/test.log +42 -0
- data/vanity-source.gemspec +2 -1
- metadata +18 -5
data/CHANGELOG
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
-
2010-08-
|
1
|
+
2010-08-31 v0.13 Github data source merges related commits
|
2
|
+
|
3
|
+
Now it does.
|
4
|
+
|
5
|
+
2010-08-31 v0.12 Github data source merges related commits
|
2
6
|
|
3
7
|
Github data source merges related commits (same committer/time) into single
|
4
8
|
activity and shows first line of all commit messages.
|
@@ -54,7 +54,7 @@ module Vanity
|
|
54
54
|
new_ones = commits.take_while { |commit| commit["id"] != last_seen_id }
|
55
55
|
merged = new_ones.inject([]) do |all, commit|
|
56
56
|
last = all.last.last unless all.empty?
|
57
|
-
if last && last["committer"]["email"] == commit["committer"]["email"]
|
57
|
+
if last && last["committer"]["email"] == commit["committer"]["email"]
|
58
58
|
all.last << commit
|
59
59
|
else
|
60
60
|
all << [commit]
|
data/test/cassettes/github.yml
CHANGED
@@ -108,19 +108,19 @@
|
|
108
108
|
"committer": { "name": "Assaf Arkin", "login": "assaf", "email": "assaf@labnotes.org" } },
|
109
109
|
{ "url": "http://github.com/assaf/vanity/commit/dd154a9fdd2ac534b62b55b8acac2fd092d6543b",
|
110
110
|
"id": "dd156a9fdd2ac534b62b55b8acac2fd092d6543b",
|
111
|
-
"committed_date": "2010-08-06T00:
|
111
|
+
"committed_date": "2010-08-06T00:21:01-07:00",
|
112
112
|
"message": "Not most recent commit",
|
113
113
|
"committer": { "name": "Assaf Arkin", "login": "assaf", "email": "assaf@labnotes.org" } },
|
114
114
|
{ "url": "http://github.com/assaf/vanity/commit/dd154a9fdd2ac534b62b55b8acac2fd092d6543a",
|
115
115
|
"id": "ee156a9fdd2ac534b62b55b8acac2fd092d6543a",
|
116
|
-
"committed_date": "2010-08-06T00:
|
117
|
-
"message": "
|
116
|
+
"committed_date": "2010-08-06T00:20:01-07:00",
|
117
|
+
"message": "Context change",
|
118
118
|
"committer": { "name": "Assaf Arkin", "login": "assaf", "email": "not.assaf@labnotes.org" } },
|
119
119
|
{ "url": "http://github.com/assaf/vanity/commit/dd154a9fdd2ac534b62b55b8acac2fd092d6543a",
|
120
120
|
"id": "ff156a9fdd2ac534b62b55b8acac2fd092d6543a",
|
121
121
|
"committed_date": "2010-08-06T00:15:01-07:00",
|
122
|
-
"message": "
|
123
|
-
"committer": { "name": "Assaf Arkin", "login": "assaf", "email": "
|
122
|
+
"message": "Separate activity",
|
123
|
+
"committer": { "name": "Assaf Arkin", "login": "assaf", "email": "assaf@labnotes.org" } }
|
124
124
|
]
|
125
125
|
}
|
126
126
|
|
data/test/github_test.rb
CHANGED
@@ -191,7 +191,7 @@ test Vanity::Source::Github do
|
|
191
191
|
end
|
192
192
|
end
|
193
193
|
|
194
|
-
context "
|
194
|
+
context "sequential commits" do
|
195
195
|
setup do
|
196
196
|
interaction = interactions.select { |i| i.uri =~ /commits\/list/ }.last
|
197
197
|
stub_request(:get, interaction.uri).to_return :body=>interaction.response.body
|
data/test/test.log
CHANGED
@@ -688,3 +688,45 @@ Backtweets: 200
|
|
688
688
|
Backtweets: 500
|
689
689
|
RubyGems: 200
|
690
690
|
RubyGems: 500
|
691
|
+
Backtweets: 500
|
692
|
+
Backtweets: 200
|
693
|
+
Backtweets: 200
|
694
|
+
Backtweets: 500
|
695
|
+
RubyGems: 200
|
696
|
+
RubyGems: 500
|
697
|
+
Backtweets: 500
|
698
|
+
Backtweets: 200
|
699
|
+
Backtweets: 200
|
700
|
+
Backtweets: 500
|
701
|
+
RubyGems: 200
|
702
|
+
RubyGems: 500
|
703
|
+
Backtweets: 500
|
704
|
+
Backtweets: 200
|
705
|
+
Backtweets: 200
|
706
|
+
Backtweets: 500
|
707
|
+
RubyGems: 200
|
708
|
+
RubyGems: 500
|
709
|
+
Backtweets: 500
|
710
|
+
Backtweets: 200
|
711
|
+
Backtweets: 200
|
712
|
+
Backtweets: 500
|
713
|
+
RubyGems: 200
|
714
|
+
RubyGems: 500
|
715
|
+
Backtweets: 500
|
716
|
+
Backtweets: 200
|
717
|
+
Backtweets: 200
|
718
|
+
Backtweets: 500
|
719
|
+
RubyGems: 200
|
720
|
+
RubyGems: 500
|
721
|
+
Backtweets: 500
|
722
|
+
Backtweets: 200
|
723
|
+
Backtweets: 200
|
724
|
+
Backtweets: 500
|
725
|
+
RubyGems: 200
|
726
|
+
RubyGems: 500
|
727
|
+
Backtweets: 500
|
728
|
+
Backtweets: 200
|
729
|
+
Backtweets: 200
|
730
|
+
Backtweets: 500
|
731
|
+
RubyGems: 200
|
732
|
+
RubyGems: 500
|
data/vanity-source.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "vanity-source"
|
3
|
-
spec.version = "0.
|
3
|
+
spec.version = "0.13"
|
4
4
|
spec.author = "Assaf Arkin"
|
5
5
|
spec.email = "assaf@labnotes.org"
|
6
6
|
spec.homepage = "http://vanitydash.com"
|
@@ -16,6 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.required_ruby_version = '>= 1.8.7'
|
17
17
|
spec.add_dependency "activesupport"
|
18
18
|
spec.add_dependency "json"
|
19
|
+
spec.add_dependency "nokogiri"
|
19
20
|
spec.add_dependency "rack"
|
20
21
|
spec.add_dependency "i18n"
|
21
22
|
end
|
metadata
CHANGED
@@ -4,8 +4,8 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
version: "0.
|
7
|
+
- 13
|
8
|
+
version: "0.13"
|
9
9
|
platform: ruby
|
10
10
|
authors:
|
11
11
|
- Assaf Arkin
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
type: :runtime
|
44
44
|
version_requirements: *id002
|
45
45
|
- !ruby/object:Gem::Dependency
|
46
|
-
name:
|
46
|
+
name: nokogiri
|
47
47
|
prerelease: false
|
48
48
|
requirement: &id003 !ruby/object:Gem::Requirement
|
49
49
|
none: false
|
@@ -56,7 +56,7 @@ dependencies:
|
|
56
56
|
type: :runtime
|
57
57
|
version_requirements: *id003
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
|
-
name:
|
59
|
+
name: rack
|
60
60
|
prerelease: false
|
61
61
|
requirement: &id004 !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
@@ -68,6 +68,19 @@ dependencies:
|
|
68
68
|
version: "0"
|
69
69
|
type: :runtime
|
70
70
|
version_requirements: *id004
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: i18n
|
73
|
+
prerelease: false
|
74
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
75
|
+
none: false
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
segments:
|
80
|
+
- 0
|
81
|
+
version: "0"
|
82
|
+
type: :runtime
|
83
|
+
version_requirements: *id005
|
71
84
|
description:
|
72
85
|
email: assaf@labnotes.org
|
73
86
|
executables: []
|
@@ -115,7 +128,7 @@ licenses: []
|
|
115
128
|
post_install_message:
|
116
129
|
rdoc_options:
|
117
130
|
- --title
|
118
|
-
- Vanity::Source 0.
|
131
|
+
- Vanity::Source 0.13
|
119
132
|
- --main
|
120
133
|
- README.rdoc
|
121
134
|
- --webcvs
|