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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08cc9c8917f69e177896bea64e370d42af222bf7
4
- data.tar.gz: 2a54b94ce968d84233d8f8de41883b214ca797a8
3
+ metadata.gz: a650014d0d2a82c2d3426e9d9f0ba4b037595755
4
+ data.tar.gz: 7acf3492622ec5d725b99b6fa1f50c586520d0a0
5
5
  SHA512:
6
- metadata.gz: a6ad26c203b9c356578ed153e8cf04182e4d230182e2d07158e8ab41d24a820e4da6409bdac389935a32ace32b31ff28bd6d29a85a0fe0a06c372a6bea0355ab
7
- data.tar.gz: 3da71f338651e9086f3c7d6a2f2f9219b6f7a867a5c3859a4f2902072175355b479e21380e830a2a224dff9981099e27c808ac83b447cb54ad6ce35ab74d7a0d
6
+ metadata.gz: 3a96b0626ef40947282b8ed42bd977090ab973bc67b491eb88cb7a416cd97f46bdd7230bafc01a22bb742195e19376430d0a818438d88f2125f6d4763cbe9b2a
7
+ data.tar.gz: ee7428fdf1fa5d1e6fe424ccac98b678ac09731cf17bce72ef99dde3922d60d86165fa32cfc0f1f55ba86a0cbaaac67a2356050c19cc8f6dac433c861272e539
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Cid
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -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"][1]["name"].should == "votes-2"
20
- package["resources"][1]["path"].should == "votes/votes-2.csv"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - pezholio