archaeologist 0.0.1 → 0.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: e754532a6e43d088fe8a28dd035f8f44c47ed9d7ac83bf0a1a47fbb3c612fcb3
4
- data.tar.gz: 97a4d419d7213d6e1f1e73a7626620f05993ba3353f21fa22b9d7ac5cbca3182
3
+ metadata.gz: c858619d7bf6d9c61c7ddd89354b061b93bdda756c597e315ec805c8e9c63cf9
4
+ data.tar.gz: 1d113ccc1b485bde0345e0f1941eb43ab8aee7f1c45212348ed2113459067c5b
5
5
  SHA512:
6
- metadata.gz: a3dfd228c744e129bb10b925084e7f63c3462d8c38bdd1401ba32ff5c5ceb6d8bc4aa92a50e9bf5832561b25350e7c6ba812ac49d5e7d20eaeedc77d7c7f01cb
7
- data.tar.gz: bae1e824602d0f586875905bfc733ed27851bb0c6dda795dc8951a69354cf1a2bf9a40df9a07025e8cf31a1f2b6930b1bb006d87d4b7f06cad756bd4674e9988
6
+ metadata.gz: 5d6d5f7cec3a28b3f497bd235ddb388b0fb47c1de30634bf63ba6b3aebcde4723848ee75185e9f902cd7ad99fc300fe06c9c190a66064abb6b8143947bdddd55
7
+ data.tar.gz: 9b9a851ea40681768139daa70b332b4f15a78f9d05ccd231e7250b1237c286cae885ae4219e59a2b061b660fdc23007d40c14985ab8a30bf7a6af5ddd18172f9
@@ -19,7 +19,7 @@ describe "Multi Branch" do
19
19
  lang = el[1]
20
20
  a = Archaeologist::GitStatLangAnalyser.new(c, lang)
21
21
  ar = a.analyze()
22
- { 'oid': c.oid, 'languages': ar, 'time': c.time }
22
+ { 'oid': c.oid, 'languages': ar, 'time': c.time.utc.to_i }
23
23
  }.to_json())
24
24
  expect(results).to eql JSON.parse([
25
25
  {
@@ -28,7 +28,7 @@ describe "Multi Branch" do
28
28
  "Python": { "add": 0, "del": 48 },
29
29
  "Ruby": {"add": 172, "del": 0}
30
30
  },
31
- "time": "2019-01-15 20:53:40 +0900"
31
+ "time": 1547553220
32
32
  }
33
33
  ].to_json())
34
34
  end
@@ -49,33 +49,33 @@ describe "Multi Branch" do
49
49
  lang = el[1]
50
50
  a = Archaeologist::GitStatLangAnalyser.new(c, lang)
51
51
  ar = a.analyze()
52
- { 'oid': c.oid, 'languages': ar, 'time': c.time }
52
+ { 'oid': c.oid, 'languages': ar, 'time': c.time.utc.to_i }
53
53
  }.to_json())
54
54
  expect(results).to match_array JSON.parse([
55
55
  {
56
56
  "oid": "0c7377bff42588dbb596b65bfba91977f41eb5c9",
57
57
  "languages": { "Python": { "add": 22, "del": 0 } },
58
- "time": "2019-01-15 09:34:02 +0900"
58
+ "time": 1547512442
59
59
  },
60
60
  {
61
61
  "oid": "ce2672b453c35b76b37c3beeac6b7308097a83be",
62
62
  "languages": { "Python": { "add": 34, "del": 1 } },
63
- "time": "2019-01-15 09:46:32 +0900"
63
+ "time": 1547513192
64
64
  },
65
65
  {
66
66
  "oid": "a6617fec33cd3bba4e243b467c29596c28331953",
67
67
  "languages": { "Python": { "add": 4, "del": 11 } },
68
- "time": "2019-01-15 09:46:55 +0900"
68
+ "time": 1547513215
69
69
  },
70
70
  {
71
71
  "oid": 'cddcaa40e9e160c7aec09bc79d2c2d25c3e6bb88',
72
72
  "languages": { "Python": { "add": 6, "del": 6 } },
73
- "time": "2019-01-15 10:34:59 +0900"
73
+ "time": 1547516099
74
74
  },
75
75
  {
76
76
  "oid"=>"9eb9d80f358538df8c43eb986b3c7b7047be8756",
77
77
  "languages": {},
78
- "time": "2019-01-15 19:25:35 +0900"
78
+ "time": 1547547935
79
79
  },
80
80
  {
81
81
  "oid": '9fb8d2b9dac1d76c66f93e6f0da0a267f32e0f8d',
@@ -83,7 +83,7 @@ describe "Multi Branch" do
83
83
  "Python": { "add": 0, "del": 48 },
84
84
  "Ruby": {"add": 172, "del": 0}
85
85
  },
86
- "time": "2019-01-15 20:53:40 +0900"
86
+ "time": 1547553220
87
87
  }
88
88
  ].to_json)
89
89
  end
@@ -21,13 +21,13 @@ describe "Single Branch" do
21
21
  lang = el[1]
22
22
  a = Archaeologist::GitStatLangAnalyser.new(c, lang)
23
23
  ar = a.analyze()
24
- { 'oid': c.oid, 'languages': ar, 'time': c.time }
24
+ { 'oid': c.oid, 'languages': ar, 'time': c.time.utc.to_i }
25
25
  }.to_json())
26
26
  expect(results).to eql JSON.parse([
27
27
  {
28
28
  "oid": 'cddcaa40e9e160c7aec09bc79d2c2d25c3e6bb88',
29
29
  "languages": { "Python": { "add": 6, "del": 6 } },
30
- "time": "2019-01-15 10:34:59 +0900"
30
+ "time": 1547516099
31
31
  }
32
32
  ].to_json())
33
33
  end
@@ -48,33 +48,33 @@ describe "Single Branch" do
48
48
  lang = el[1]
49
49
  a = Archaeologist::GitStatLangAnalyser.new(c, lang)
50
50
  ar = a.analyze()
51
- { 'oid': c.oid, 'languages': ar, 'time': c.time }
51
+ { 'oid': c.oid, 'languages': ar, 'time': c.time.utc.to_i }
52
52
  }.to_json())
53
53
  expect(results).to match_array JSON.parse([
54
54
  {
55
55
  "oid": "0c7377bff42588dbb596b65bfba91977f41eb5c9",
56
56
  "languages": { "Python": { "add": 22, "del": 0 } },
57
- "time": "2019-01-15 09:34:02 +0900"
57
+ "time": 1547512442
58
58
  },
59
59
  {
60
60
  "oid": "ce2672b453c35b76b37c3beeac6b7308097a83be",
61
61
  "languages": { "Python": { "add": 34, "del": 1 } },
62
- "time": "2019-01-15 09:46:32 +0900"
62
+ "time": 1547513192
63
63
  },
64
64
  {
65
65
  "oid": "a6617fec33cd3bba4e243b467c29596c28331953",
66
66
  "languages": { "Python": { "add": 4, "del": 11 } },
67
- "time": "2019-01-15 09:46:55 +0900"
67
+ "time": 1547513215
68
68
  },
69
69
  {
70
70
  "oid": 'cddcaa40e9e160c7aec09bc79d2c2d25c3e6bb88',
71
71
  "languages": { "Python": { "add": 6, "del": 6 } },
72
- "time": "2019-01-15 10:34:59 +0900"
72
+ "time": 1547516099
73
73
  },
74
74
  {
75
75
  "oid"=>"9eb9d80f358538df8c43eb986b3c7b7047be8756",
76
76
  "languages": {},
77
- "time": "2019-01-15 19:25:35 +0900"
77
+ "time": 1547547935
78
78
  }
79
79
  ].to_json)
80
80
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: archaeologist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroaki Yamamoto
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  - !ruby/object:Gem::Version
107
107
  version: '0'
108
108
  requirements: []
109
- rubygems_version: 3.0.2
109
+ rubygems_version: 3.0.1
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: Language detector for git