bitmovin-ruby 0.7.0 → 0.8.0

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
- SHA256:
3
- metadata.gz: 53be8773c2676dd4ec0932820209a81a31eac53a3d6024f62f70f0c6a8d895e6
4
- data.tar.gz: 4436bd7136c442cc712dc08edcaeee7481fbe43a7bcc7af66a9b8963a82a32e6
2
+ SHA1:
3
+ metadata.gz: 6d5158ae62ce340766775af50ef91eaa53724c8d
4
+ data.tar.gz: df6c0cf69b53d202545482deee685f6e987d9d84
5
5
  SHA512:
6
- metadata.gz: c5c0ba7d9bdeff8ddd069b258fc52ad426a9abe51bc32feab03c5eac512c69cc19d8241be03cb253aa7288170e121394fdb2042e040d6f2585fb58d8e1a0af7b
7
- data.tar.gz: d817d3d2f211f98fb7957723cbea72f10dbd01500cfea7613cdc8f43896bb19aa0c397d92a1d2ed766932f0914b09c22aabad2aa43a11b63d0ca9be8d3d76428
6
+ metadata.gz: 532b8f3cfebd756a9f907111d9eb5c5d00036d6b22e8c86b5732a929bb994eef7da154fbe9be892ed107ea10795555db69d1dda7e3621fa6306106bd9c8c414e
7
+ data.tar.gz: e96fa927bf5d6723d5940d141d48c6e71c7c24498993f0331c7fbeca7a700bd15f8c3cc0ee208c5627f5d9990aa93f5af7173f6d29eccf1bcd041ab965de1415
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.3.8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bitmovin-ruby (0.7.0)
4
+ bitmovin-ruby (0.8.0)
5
5
  activesupport (>= 4.0.0)
6
6
  faraday (~> 0.11.0)
7
7
  faraday_middleware (~> 0.11.0)
@@ -71,26 +71,22 @@ module Bitmovin
71
71
  end
72
72
 
73
73
  def collect_attributes
74
- val = Hash.new
75
74
  ignored_variables = []
76
75
  if (self.respond_to?(:ignore_fields))
77
76
  ignored_variables = self.ignore_fields
78
77
  end
79
78
  ignored_variables.push(:@instance_resource_path)
80
-
81
- instance_variables.each do |name|
82
- if ignored_variables.include?(name)
83
- next
84
- end
85
-
86
- if name == :@max_ctu_size
87
- val['maxCTUSize'] = instance_variable_get(name)
79
+ attributes_value = instance_variables.inject({}) do |result, item|
80
+ if ignored_variables.include?(item)
81
+ result
88
82
  else
89
- json_name = ActiveSupport::Inflector.camelize(name.to_s.gsub(/@/, ''), false)
90
- val[json_name] = instance_variable_get(name)
83
+ name = item == :@max_ctu_size ? 'maxCTUSize' : item.to_s.gsub(/@/, '')
84
+ result.merge(
85
+ name => instance_variable_get(item)
86
+ )
91
87
  end
92
88
  end
93
- val
89
+ camelize_hash(attributes_value)
94
90
  end
95
91
  end
96
92
  end
@@ -1,3 +1,3 @@
1
1
  module Bitmovin
2
- VERSION = "0.7.0"
2
+ VERSION = "0.8.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitmovin-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Hoelbling-Inzko
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-07 00:00:00.000000000 Z
11
+ date: 2019-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -28,20 +28,20 @@ dependencies:
28
28
  name: httpclient
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 2.8.3
34
- - - "~>"
34
+ - - ">="
35
35
  - !ruby/object:Gem::Version
36
36
  version: 2.8.3
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - ">="
41
+ - - "~>"
42
42
  - !ruby/object:Gem::Version
43
43
  version: 2.8.3
44
- - - "~>"
44
+ - - ">="
45
45
  - !ruby/object:Gem::Version
46
46
  version: 2.8.3
47
47
  - !ruby/object:Gem::Dependency
@@ -123,6 +123,7 @@ extra_rdoc_files: []
123
123
  files:
124
124
  - ".gitignore"
125
125
  - ".rspec"
126
+ - ".ruby-version"
126
127
  - ".travis.yml"
127
128
  - Gemfile
128
129
  - Gemfile.lock
@@ -227,7 +228,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
227
228
  - !ruby/object:Gem::Version
228
229
  version: '0'
229
230
  requirements: []
230
- rubygems_version: 3.0.1
231
+ rubyforge_project:
232
+ rubygems_version: 2.5.2.3
231
233
  signing_key:
232
234
  specification_version: 4
233
235
  summary: Api Client for the Bitmovin API