inch_ci-worker 0.3.0.rc11 → 0.3.0.rc12

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: feca80786e2922278233e72402ea47f438bc3e85
4
- data.tar.gz: 4de36a97a7ccb93c49178927f5632a3e36ab6d30
3
+ metadata.gz: 14b8703e85c57b61c2f7eddbde4c025c7905b96d
4
+ data.tar.gz: be8590465598a6e767aaa4ed73dbed2f2cef64c2
5
5
  SHA512:
6
- metadata.gz: fff4eb32c861c9a26034a2d4dc74ee372569f89bfbd38eda8b299feeb2d3313de33ef95b394811635151f4bc6a3230cc54c6fcf33c25e2f28721a8f4610040b1
7
- data.tar.gz: f1241a335f5ce320511eb3fabcd343ab06e2ffcf814758540b070355d73d63a774d4f17be417bdbfe558677474287d6d978fcec7b45bccd2770a4120789dc4d8
6
+ metadata.gz: 88fa9d77d9bc50c09a1cd10100801fb3ca5182875a67779a456b443308b5c6d6e016deec64737e82c50706d880d1548946d2b76efc5f5ae0219765fa382200c0
7
+ data.tar.gz: ee12f2c21d9c7aa2efad60116dc0db2ec865443f8ac599d9c1f723ee666b37ff34446e78422dd9cab8c810466c6a14c3f5de82ba7a9cfab52867f026810c29ad
@@ -16,7 +16,17 @@ module InchCI
16
16
  @branch_name = json['branch_name'] || json['travis_branch']
17
17
  @revision = json['revision'] || json['travis_commit']
18
18
  @nwo = json['nwo'] || json['travis_repo_slug']
19
- @url = json['git_repo_url']
19
+ @url = json['git_repo_url']
20
+ end
21
+
22
+ def travis?
23
+ !json['travis'].nil?
24
+ end
25
+
26
+ def to_h(include_objects: true)
27
+ h = json.dup
28
+ h.delete('objects') unless include_objects
29
+ h
20
30
  end
21
31
  end
22
32
  end
@@ -1,5 +1,5 @@
1
1
  module InchCI
2
2
  module Worker
3
- VERSION = "0.3.0.rc11"
3
+ VERSION = "0.3.0.rc12"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inch_ci-worker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.rc11
4
+ version: 0.3.0.rc12
5
5
  platform: ruby
6
6
  authors:
7
7
  - René Föhring
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-02 00:00:00.000000000 Z
11
+ date: 2014-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler