feathr 0.1.7 → 0.1.8

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: 23677082bb768be287332eb2a395d18eff752503
4
- data.tar.gz: aa9baf576cd36462decd09573edaa8e4d541aa92
3
+ metadata.gz: 7c3b3f37fc22a015eaf3bf55791101d57f250c51
4
+ data.tar.gz: 86b19b04f50795529d11552b250e533ebdb7ac9a
5
5
  SHA512:
6
- metadata.gz: d8f3e357711231dba10d14fa3e77d1f69c335114bfedfb64353d7fafd2d91277e394665a8a7ad30ce0918980cf62fff4cb06256ba60c10586dc54a07febb20ef
7
- data.tar.gz: 7888d7bb3b5ef0691ef7ac1618fc712e867efe1cc8639180bfd53a064c4375310e2736cf2ef2494ff61566f54a279259a558ab6e9fdfb45467871033e7cc589b
6
+ metadata.gz: a5ef006f64d7036cfc0aae306db513a5c445333f478afb8fd6f3cdf3906cf0dc30cd7ba2a984706863b7b97a21a4b39aae4f34ab78d4a2fc1138eb4d345b30a4
7
+ data.tar.gz: 55e7cdd8a57da3068775a9607f270a03233b3a391bbe40383d277e6ba4016280009c81581064ae287176ee6c0eaf16ec582707d85dc01aa8da262fecbe66a8ba
@@ -6,6 +6,13 @@ require "feathr"
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
8
8
 
9
+ Feathr.configure do |config|
10
+ config.api_email = ENV['QWIL_EMAIL']
11
+ config.api_password = ENV['QWIL_PASSWORD']
12
+ end
13
+
14
+ $qwil = Feathr::Client.new
15
+
9
16
  require "irb"
10
17
  require "awesome_print"
11
18
 
@@ -44,6 +44,14 @@ module Feathr
44
44
  end
45
45
  end
46
46
  end
47
+
48
+ define_method(:first) do |count=1|
49
+ count > 1 ? all.first(count) : all.first
50
+ end
51
+
52
+ define_method(:last) do |count=1|
53
+ count > 1 ? all.last(count) : all.last
54
+ end
47
55
  end
48
56
 
49
57
  def define_find
@@ -4,9 +4,8 @@ module Feathr
4
4
  class Manager < Feathr::Api::FeathrObject
5
5
  api_path 'managers'
6
6
 
7
- def platforms
8
- Feathr::Api::Platforms.new(prepended_path: path)
9
- end
7
+ nested :platforms, :contractors
8
+
10
9
  end
11
10
 
12
11
  end
@@ -1,3 +1,3 @@
1
1
  module Feathr
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feathr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Herman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-30 00:00:00.000000000 Z
11
+ date: 2017-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty