osb 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/osb/commandable.rb +8 -8
  3. data/lib/osb.rb +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 32ca949f86da7674ea4bb25916deb932a6f104ab36660947c8edc6130515a164
4
- data.tar.gz: b3ab443117c2e9e5a192f097731fd723ad953ecb7488aaaf1af5abf28bbad8d2
3
+ metadata.gz: 980e34cc00ef3f8142dbc6822035f28264324006ec8ec89192e8505c1cb242cf
4
+ data.tar.gz: 2aa3495b686ae9b93ec8fce0fd8e240d3d363abafb83c8f080c0de4895cae4d2
5
5
  SHA512:
6
- metadata.gz: 59ad469e27d5872abe498740c708edbfc11816f80b37ed64dc155c2da802451640fdb23928f2fe1c67eb5d4ceb916fe95bb18cc3e3927465d49075a6eee8a54b
7
- data.tar.gz: d93b6b82cf34bdcc6adaba0bd5a0816f5bf560a757227445180b673a8cbf10e49d3b588ac6ee8204651e5f8dbc3d7fc4ce493c67745bd0cc0bc3d022d997b7f6
6
+ metadata.gz: 8bcb0418f74689d8c49fce3471ed59cda8900a90875e5f3c3b499d086623aaf24921c48bdffd900045b1fc603c69834ebea1c56a623e487f1e5508ef2a8793ed
7
+ data.tar.gz: a85a9feea55408ea18498e1355c317e9d7ddd6376cded2946153958151280699953dd2aed4fc6c7351466576fe011b045c05e81ff09c68ed30bff536738f6121
@@ -63,7 +63,7 @@ module Osb
63
63
 
64
64
  end_time = "" if start_time == end_time
65
65
  tabs = " " * self.tab_level
66
- command = "#{tabs}F,#{start_time},#{end_time},#{start_opacity}"
66
+ command = "#{tabs}F,#{easing},#{start_time},#{end_time},#{start_opacity}"
67
67
  command += ",#{end_opacity}" if end_opacity != start_opacity
68
68
  @commands << command
69
69
  end
@@ -103,7 +103,7 @@ module Osb
103
103
  end_time = "" if start_time == end_time
104
104
  tabs = " " * self.tab_level
105
105
  command =
106
- "#{tabs}M,#{start_time},#{end_time},#{start_position.x},#{start_position.y}"
106
+ "#{tabs}M,#{easing},#{start_time},#{end_time},#{start_position.x},#{start_position.y}"
107
107
  if end_position != start_position
108
108
  command += ",#{end_position.x},#{end_position.y}"
109
109
  end
@@ -133,7 +133,7 @@ module Osb
133
133
 
134
134
  end_time = "" if start_time == end_time
135
135
  tabs = " " * self.tab_level
136
- command = "#{tabs}MX,#{start_time},#{end_time},#{start_x}"
136
+ command = "#{tabs}MX,#{easing},#{start_time},#{end_time},#{start_x}"
137
137
  command += ",#{end_x}" if end_x
138
138
  @commands << command
139
139
  end
@@ -161,7 +161,7 @@ module Osb
161
161
 
162
162
  end_time = "" if start_time == end_time
163
163
  tabs = " " * self.tab_level
164
- command = "#{tabs}MY,#{start_time},#{end_time},#{start_y}"
164
+ command = "#{tabs}MY,#{easing},#{start_time},#{end_time},#{start_y}"
165
165
  command += ",#{end_y}" if end_y != start_y
166
166
  @commands << command
167
167
  end
@@ -205,7 +205,7 @@ module Osb
205
205
  raise InvalidValueError,
206
206
  "start_scale and end_scale must be either both Numeric values or Vector2-like values."
207
207
  end
208
- command = "#{tabs}S,#{start_time},#{end_time},#{start_scale}"
208
+ command = "#{tabs}S,#{easing},#{start_time},#{end_time},#{start_scale}"
209
209
  command += ",#{end_scale}" if end_scale != start_scale
210
210
  @commands << command
211
211
  else
@@ -218,7 +218,7 @@ module Osb
218
218
  end_scale = Osb::Vector2.new(end_scale) if end_scale.is_a?(Array)
219
219
 
220
220
  command =
221
- "#{tabs}V,#{start_time},#{end_time},#{start_scale.x},#{start_scale.y}"
221
+ "#{tabs}V,#{easing},#{start_time},#{end_time},#{start_scale.x},#{start_scale.y}"
222
222
  command += ",#{end_scale.x},#{end_scale.y}" if end_scale
223
223
  @commands << command
224
224
  end
@@ -247,7 +247,7 @@ module Osb
247
247
 
248
248
  end_time = "" if start_time == end_time
249
249
  tabs = " " * self.tab_level
250
- command = "#{tabs}R,#{start_time},#{end_time},#{start_angle}"
250
+ command = "#{tabs}R,#{easing},#{start_time},#{end_time},#{start_angle}"
251
251
  command += ",#{end_angle}" if end_angle != start_angle
252
252
  @commands << command
253
253
  end
@@ -287,7 +287,7 @@ module Osb
287
287
  end_time = "" if start_time == end_time
288
288
  tabs = " " * self.tab_level
289
289
  command =
290
- "#{tabs}C,#{start_time},#{end_time},#{start_color.r},#{start_color.g},#{start_color.b}"
290
+ "#{tabs}C,#{easing},#{start_time},#{end_time},#{start_color.r},#{start_color.g},#{start_color.b}"
291
291
  if end_color != start_color
292
292
  command += ",#{end_color.r},#{end_color.g},#{end_color.b}"
293
293
  end
data/lib/osb.rb CHANGED
@@ -20,7 +20,7 @@ require_relative "osb/dsl/object"
20
20
  require_relative "osb/dsl/commands"
21
21
 
22
22
  module Osb
23
- VERSION = "1.1.2"
23
+ VERSION = "1.1.3"
24
24
  end
25
25
 
26
26
  # Extend the main object with the DSL commands.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: osb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dinh Vu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-23 00:00:00.000000000 Z
11
+ date: 2023-08-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple framework for building osu! storyboard.
14
14
  email: dinhvu2509@gmail.com
@@ -55,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
55
55
  - !ruby/object:Gem::Version
56
56
  version: '0'
57
57
  requirements: []
58
- rubygems_version: 3.4.18
58
+ rubygems_version: 3.1.6
59
59
  signing_key:
60
60
  specification_version: 4
61
61
  summary: osu! storyboard framework