megam_api 0.91 → 0.92

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 24f8d9e0e0b83654018d7c36d661b04450ce4352
4
- data.tar.gz: 90ba0a6376f73313c9b2f3968de3a689bad8ec57
3
+ metadata.gz: 071caa7bd474a339b47140544b4e0a8d91db1c35
4
+ data.tar.gz: fc7453b06ad55819e3c56effb9d7f87b04f277c6
5
5
  SHA512:
6
- metadata.gz: 48e996c374ae1a5eb1778552d09642de04a6d3738cbebfce7873953b0ba88f88c193240acd81b4f306e284e10decb0aad3e72f4a0bd07f048c9dda808c6e58be
7
- data.tar.gz: 878b68737b7f770714a36a1e572ad27c19675ac224715eb1b34a0b0cbfffaf3bea2f8e81116c4ecdc63a5c5b2fe466a4f9ccc461c64e5eee911e6fa2bf1fb42f
6
+ metadata.gz: 4c8cdd71db440428818116497f3eb0e0fe4a9271a3a25e0f8978f1595d7274d26da043f1677d482efa1a1a9a51bdc38ea28df7193befc18f57143b5f142895fb
7
+ data.tar.gz: d9cc61b373ee547b96a23dc3d683eff055b25a4d670647bb359c4d219f0952b9092030015f5c610269418727ae25b71f3c0c0cdbb656c53650de8b52b298136a
@@ -1,5 +1,5 @@
1
1
  module Megam
2
2
  class API
3
- VERSION = "0.91"
3
+ VERSION = "0.92"
4
4
  end
5
5
  end
@@ -24,7 +24,8 @@ module Megam
24
24
  @status = 'launching'
25
25
  bld_toscatype(params)
26
26
  set_attributes(params)
27
- @inputs = InputGroupData.new(params)
27
+ @inputs = InputGroupData.new(params)
28
+
28
29
  end
29
30
 
30
31
  def to_hash
@@ -63,6 +64,7 @@ module Megam
63
64
  def initialize(params)
64
65
  set_attributes(params)
65
66
  end
67
+
66
68
  end
67
69
  end
68
70
  end
@@ -47,9 +47,10 @@ module Megam
47
47
  end
48
48
 
49
49
  def add_operations(params)
50
- @operations = []
51
- @operations.push(create_operation(Operations::CI, Operations::CI_DESCRIPTON, params)) if params[:scm_name] && params[:scm_name].strip.empty?
52
- @operations.push(create_operation(Operations::BIND, Operations::BIND_DESCRIPTON, params)) if params.key?(:bind_type)
50
+ operations = []
51
+ operations.push(create_operation(Operations::CI, Operations::CI_DESCRIPTON, params)) if params.key?(:scm_name) && params.key?(:scmtoken)
52
+ operations.push(create_operation(Operations::BIND, Operations::BIND_DESCRIPTON, params)) if params.key?(:bind_type)
53
+ operations
53
54
  end
54
55
 
55
56
  def create_operation(type, desc, params)
@@ -93,10 +94,17 @@ module Megam
93
94
 
94
95
  class Operations
95
96
  include Nilavu::MegamAttributes
96
- attr_reader :type, :desc, :prop
97
+ attr_reader :type, :desc, :prop, :status
97
98
 
98
- ATTRIBUTES = []
99
+ ATTRIBUTES = [
100
+ :type,
101
+ :desc,
102
+ :prop,
103
+ :status]
99
104
 
105
+ def attributes
106
+ ATTRIBUTES
107
+ end
100
108
  CI = 'CI'.freeze
101
109
  CI_DESCRIPTON = 'always up to date code. sweet.'
102
110
  NOTBOUND = "notbound".freeze
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: megam_api
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.91'
4
+ version: '0.92'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rajthilak, Kishorekumar Neelamegam, Thomas Alrin, Yeshwanth Kumar, Subash Sethurajan,
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-12-31 00:00:00.000000000 Z
12
+ date: 2016-01-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: excon
@@ -261,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
261
261
  version: '0'
262
262
  requirements: []
263
263
  rubyforge_project:
264
- rubygems_version: 2.4.7
264
+ rubygems_version: 2.4.8
265
265
  signing_key:
266
266
  specification_version: 4
267
267
  summary: Ruby Client for the Megam