idcfcloud 0.1.2 → 0.1.3

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: d9002c0097f25095d5180e53113ee7a7bb981196
4
- data.tar.gz: e0c35e333e920df1765766340ba791046a591566
3
+ metadata.gz: bd5e9b70284425fea69f02dea0665639100f032a
4
+ data.tar.gz: 855ed33f36d9cff52789b9893f9008f95ccdfe7b
5
5
  SHA512:
6
- metadata.gz: 5dfd861977b99e1a493193df3290e69ca2e9069d7a820db66c8fb3468d251d94999fa08bc07ca9b7f6745575d34bb1614fdaf19ee740278fec33ea70219de020
7
- data.tar.gz: 52c9d239651b50df847250ed474e97c01971404627dde719440b417e97df8957a6cfb1d120660a27b1709b23cf643fe42231f23e3d45eda67a0c3d360b4eab99
6
+ metadata.gz: 55440f80c267f21a57c59713a3f43c846ccef1820e339d58366633b778456dfab6e3e697dc48d22b60ed69c4c757c2b10d1102c2a43ddbcf15084ebe17a04c0c
7
+ data.tar.gz: e2859e327036fd06a2fd2b1dd1448d2adeb4ea30d3084a09b330ca8bbe65d769d8a674ebff53db485d52a13cfa70a9b791915b339b67b9c3b9a8a99c7532a4bb
data/Gemfile CHANGED
@@ -2,6 +2,3 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in idcfcloud.gemspec
4
4
  gemspec
5
-
6
- gem 'idcf-ilb',
7
- github: 'idcf/idcf-ilb-ruby', branch: 'master'
@@ -42,7 +42,7 @@ module Idcf
42
42
  module_methods = []
43
43
  client.class.included_modules.each do |m|
44
44
  next unless m.to_s =~ /\AIdcf::.*::ClientExtensions/
45
- module_methods.concat(m.instance_methods)
45
+ module_methods.concat(module_instance_methods(m))
46
46
  end
47
47
  module_methods.each do |method|
48
48
  result[method] = make_method_info(client, method)
@@ -50,6 +50,15 @@ module Idcf
50
50
  end
51
51
  end
52
52
 
53
+ def module_instance_methods(mc)
54
+ [].tap do |result|
55
+ base_name = mc.to_s.underscore.split('/').pop
56
+ mc.instance_methods.each do |method|
57
+ result << method unless Regexp.new("\\A#{base_name}s?\\Z") =~ method.to_s
58
+ end
59
+ end
60
+ end
61
+
53
62
  def make_method_info(client, method_sym)
54
63
  params = []
55
64
  client.method(method_sym).parameters.each do |param|
@@ -1,5 +1,5 @@
1
1
  module Idcf
2
2
  module Cli
3
- VERSION = '0.1.2'.freeze
3
+ VERSION = '0.1.3'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: idcfcloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - IDC Frontier Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-05 00:00:00.000000000 Z
11
+ date: 2017-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler