cid 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cid/helpers/github.rb +1 -1
- data/lib/cid/version.rb +1 -1
- data/spec/datapackage_spec.rb +2 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a650014d0d2a82c2d3426e9d9f0ba4b037595755
|
4
|
+
data.tar.gz: 7acf3492622ec5d725b99b6fa1f50c586520d0a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a96b0626ef40947282b8ed42bd977090ab973bc67b491eb88cb7a416cd97f46bdd7230bafc01a22bb742195e19376430d0a818438d88f2125f6d4763cbe9b2a
|
7
|
+
data.tar.gz: ee7428fdf1fa5d1e6fe424ccac98b678ac09731cf17bce72ef99dde3922d60d86165fa32cfc0f1f55ba86a0cbaaac67a2356050c19cc8f6dac433c861272e539
|
data/lib/cid/helpers/github.rb
CHANGED
@@ -77,7 +77,7 @@ module Cid::Helpers::Github
|
|
77
77
|
|
78
78
|
def commit(sha)
|
79
79
|
parent = latest_commit(default_branch)
|
80
|
-
commit = github.git_data.commits.create user, repo, "message" => "Updated datapackage.json",
|
80
|
+
commit = github.git_data.commits.create user, repo, "message" => "Updated datapackage.json [ci skip]",
|
81
81
|
"parents" => [parent],
|
82
82
|
"tree" => sha
|
83
83
|
commit['sha']
|
data/lib/cid/version.rb
CHANGED
data/spec/datapackage_spec.rb
CHANGED
@@ -16,12 +16,8 @@ describe Cid::Datapackage do
|
|
16
16
|
package = JSON.parse(datapackage.json)
|
17
17
|
|
18
18
|
package["resources"].count.should == 2
|
19
|
-
package["resources"][
|
20
|
-
package["resources"][
|
21
|
-
package["resources"][1]["format"].should == "csv"
|
22
|
-
package["resources"][1]["mediatype"].should == "text/csv"
|
23
|
-
package["resources"][1]["bytes"].should == 1752
|
24
|
-
package["resources"][1]["schema"]["fields"].should == JSON.parse(File.new(File.join(File.dirname(__FILE__), 'fixtures', 'multiple_files', 'votes', 'schema.json')).read)["fields"]
|
19
|
+
package["resources"].flat_map(&:to_a).should include(["name", "votes-2"])
|
20
|
+
package["resources"].flat_map(&:to_a).should include(["path", "votes/votes-2.csv"])
|
25
21
|
end
|
26
22
|
|
27
23
|
end
|