captive 1.0.0 → 1.0.1

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
  SHA256:
3
- metadata.gz: bf5006d6ac1443e871a8d081974beaa6eabbf72546a25e2fa7aadefd6b9c50f7
4
- data.tar.gz: 0f4eadcf1a9cb07883cdf46f79ad371095339b8e2182ae842fbe0ffb1c833a47
3
+ metadata.gz: a079154405f3dbdef6ee9a4c8f48503d4bd5ab295b134a00cfed165827446d0e
4
+ data.tar.gz: 757bfa85ddd1b9288b6e6e4dc9344c326f13637979b4b6ba16125ef5d5708358
5
5
  SHA512:
6
- metadata.gz: a3e7f5db587122c189bf7253e02ed79b0e4df13039aa3689d1b0a8c9062b16308bae85d5480b2b1574fb105688274c5dc0abaf8864416a14e8886ac02b4c36f2
7
- data.tar.gz: 6622b6df7e11103bea6a511b2cf53e918023955e6e6fbb1fa3cbb7d6f81373f4896cb6504754eeaf0bff717f5608f64360dc050ae1f0e750c0aa6577da4a9c85
6
+ metadata.gz: 2fab43d1785ed212a39437d97234a50c69a6dd09b6b32052fe6b9acd5e2407329f95cb93e65c8622906e50a2a12adb52c0ae75cdd00ba4d729422334dc805778
7
+ data.tar.gz: 0b4d2b3fa9a9758153a6904c468591c07271ad9c9584ba7dc6d477c27616693ef28b4d883660ac504d430a757a515de445ac4773409ff4a97bd6988b5258e8ab
@@ -21,10 +21,10 @@ module Captive
21
21
  base.include(Util)
22
22
  end
23
23
 
24
- attr_accessor(:cue_list)
24
+ attr_accessor(:cues)
25
25
 
26
26
  def initialize(cue_list: nil)
27
- @cue_list = cue_list || []
27
+ @cues = cue_list || []
28
28
  end
29
29
 
30
30
  def save_as(filename:)
@@ -36,7 +36,7 @@ module Captive
36
36
  def as_json(**args)
37
37
  results = {
38
38
  'version' => VERSION,
39
- 'cues' => @cue_list.map(&:as_json),
39
+ 'cues' => cues.map(&:as_json),
40
40
  }
41
41
  if results.respond_to?(:as_json)
42
42
  results.as_json(**args)
@@ -83,7 +83,7 @@ module Captive
83
83
  if self.class.to_s.split('::').last == format
84
84
  self
85
85
  else
86
- base_klass.const_get(format).new(cue_list: cue_list)
86
+ base_klass.const_get(format).new(cue_list: cues)
87
87
  end
88
88
  end
89
89
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Captive
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: captive
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - mserran2
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-13 00:00:00.000000000 Z
11
+ date: 2020-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler