travis 1.6.15.travis.564.6 → 1.6.15.travis.565.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YWVmZWQ1YmZhZmZkYjczZGQ4NTE4MjBjZDVmODBkZGUxOTgwOGEwMQ==
4
+ ZDRlNDFhMmFhNjQ1ZjNkN2MwYTkzODQ4ZWVkN2ZiYjNmNzgzOTdiMg==
5
5
  data.tar.gz: !binary |-
6
- MzM3OTQzMDlhMmU4N2ZmMGU5Y2IwNmMyNzRkNDE3ZWY5M2E4ZmQwNQ==
6
+ NmEwMWQ4ZjUzOWJkNWUyY2VjMjYxYTNjYTAxYTZhNjUzYWE1NTMwZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Nzc5ODg4NjM3Y2I2M2EzZGJlYTdlY2Q5YTgwZWZjNWZiMjljZjQ5NjFjMWY4
10
- NTJhYjgwNzNkNTEzZjkzYTYyNGE4MjM1NmYwYzAxNzdlMjZkMjNkZTBhMWM0
11
- MWM4ZWFkMmVhZjM3N2VlNzY3MDNhMDA1Njc4OGI2MDRjYjc2ZmY=
9
+ ZWZlNGIwMjRjYjM0NmE2ZWUwMGQ4NjI5NDcwYjNhMTI0ZTBjNjU3OTkxMTM4
10
+ MjQwOWY5Mjg4YTk1ZWUyZmQyNTZkMzY1ZDkzNTZmMzg5OWM1ZDcxYTgyYjgx
11
+ YWZhOTg0MzY1NjRmY2UxNjRjZTM2ODY4MDlkNGY3MjBhNTI2Mzg=
12
12
  data.tar.gz: !binary |-
13
- YmM2ZTdhODdkYzEwMmM2NGRhMWE4ZmViZGQ1NWU2ZDNlNGMzZDliZTliYzM4
14
- NzZhNDI2YzcxM2RkNWViZTFkN2Q3NjcwMzIyODA3MzU0ZGExZWNmNzU3MzQw
15
- YzFjNTkwMjY1YzBiYWIwZWQ3NzE4MzdlYTU5MWIzZTk2N2M3MDI=
13
+ MzBmMTFhZjJhMTdhY2IwZTBkNjMzZmQwNGZkMDFmYjE5YjM1ZDRmYjEwNTUz
14
+ OTgwNDk3NmFjZWJlNDRmMjA4OTk0YTY5NmRhZmM3OTMxM2VjZjMwMDg3NGI3
15
+ ZjUyNjlmMWViMzQwYzI0NTEzNWM0Yzk1MGMzODVkZjYzYzE0MzA=
@@ -39,6 +39,10 @@ module Travis
39
39
  @many ||= key.to_s
40
40
  end
41
41
 
42
+ def self.base_path
43
+ many
44
+ end
45
+
42
46
  def self.attributes(*list)
43
47
  @attributes ||= []
44
48
 
@@ -311,11 +311,11 @@ module Travis
311
311
  end
312
312
 
313
313
  def fetch_one(entity, id = nil)
314
- get("/#{entity.many}/#{id}")[entity.one]
314
+ get("/#{entity.base_path}/#{id}")[entity.one]
315
315
  end
316
316
 
317
317
  def fetch_many(entity, params = {})
318
- get("/#{entity.many}/", params)[entity.many]
318
+ get("/#{entity.base_path}/", params)[entity.many]
319
319
  end
320
320
 
321
321
  def cached(*keys)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: travis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.15.travis.564.6
4
+ version: 1.6.15.travis.565.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
@@ -39,7 +39,7 @@ authors:
39
39
  autorequire:
40
40
  bindir: bin
41
41
  cert_chain: []
42
- date: 2014-07-14 00:00:00.000000000 Z
42
+ date: 2014-07-15 00:00:00.000000000 Z
43
43
  dependencies:
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: faraday