or2d 0.0.0 → 0.0.1.pre.rc1

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/or2d.rb +0 -1
  3. metadata +3 -4
  4. data/lib/or2d/version.rb +0 -50
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 69d868c6eb2d8bf4781708c14470be61e2b51081c6e4769005af19dfffdbe82d
4
- data.tar.gz: 3427253c8d35fd728edc4b7a5c9841d8b0f58ea13b9b45ac59eea36596625d1e
3
+ metadata.gz: bf0597361e53518e19601f4e1a17341d5bcba4a55eb76541f6b7c228c32222ec
4
+ data.tar.gz: 8e83ff4280a96860f70ad048b5f41d786ed80fd1d87bb480679d5fe51be00c03
5
5
  SHA512:
6
- metadata.gz: 44d7d7cd85cf7896666e687600276d12f0e271919d84a796fec627db5e3184e7ffb9304bc7b69f0456a7df73e5a7e42660e3e8fde402ee972e2056a978b4246a
7
- data.tar.gz: 83b07d35364f4fdeebef9a791cbe6d39b5ea36a956940c9291d00eb97537455fde9c3d2becb9b1fd17bb4714c774e9970e59ad14bd10e1458c449f4c3b9857a2
6
+ metadata.gz: 839294376a8000552136d439f56f7043b0398cfe5a1c20a0fe19093bd8fc984ca105db82dd08437b28266690b507914a1fb65fdd1db025afe747efbafdd58661
7
+ data.tar.gz: a648146556ab88b70f614bc6b6559cf292352b366d04ce2c7504f479d8699d378f1e04bd107a7e049100ac993d853df63c0039b13245b8279d3238fb3ddb5ede
data/lib/or2d.rb CHANGED
@@ -26,7 +26,6 @@ module OR2D
26
26
  autoload :Instance, 'or2d/instance'
27
27
  autoload :Resource, 'or2d/resource'
28
28
  autoload :Scene, 'or2d/scene'
29
- autoload :Version, 'or2d/version'
30
29
 
31
30
  # The Animations module contains modules and classes for animating objects.
32
31
  module Animations
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: or2d
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1.pre.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick W.
@@ -119,7 +119,6 @@ files:
119
119
  - lib/or2d/resource.rb
120
120
  - lib/or2d/scene.rb
121
121
  - lib/or2d/scenes/placeholder_scene.rb
122
- - lib/or2d/version.rb
123
122
  homepage:
124
123
  licenses:
125
124
  - BSD-3-Clause
@@ -135,9 +134,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
135
134
  version: 3.1.0
136
135
  required_rubygems_version: !ruby/object:Gem::Requirement
137
136
  requirements:
138
- - - ">="
137
+ - - ">"
139
138
  - !ruby/object:Gem::Version
140
- version: '0'
139
+ version: 1.3.1
141
140
  requirements: []
142
141
  rubygems_version: 3.4.10
143
142
  signing_key:
data/lib/or2d/version.rb DELETED
@@ -1,50 +0,0 @@
1
- module OR2D::Version
2
- extend self
3
-
4
- # Get the major version of the current framework.
5
- def major
6
- get_metadata if !OR2D.const_defined?(:Metadata) || OR2D::Metadata.nil?
7
-
8
- OR2D::Metadata['major']
9
- end
10
-
11
- # Get the minor version of the current framework.
12
- def minor
13
- get_metadata if !OR2D.const_defined?(:Metadata) || OR2D::Metadata.nil?
14
-
15
- OR2D::Metadata['minor']
16
- end
17
-
18
- # Get the patch version of the current framework.
19
- def patch
20
- get_metadata if !OR2D.const_defined?(:Metadata) || OR2D::Metadata.nil?
21
-
22
- OR2D::Metadata['patch']
23
- end
24
-
25
- # Get the build version of the current framework.
26
- def build
27
- get_metadata if !OR2D.const_defined?(:Metadata) || OR2D::Metadata.nil?
28
-
29
- OR2D::Metadata['build']
30
- end
31
-
32
- # Get the version of the current framework.
33
- def version
34
- get_metadata if !OR2D.const_defined?(:Metadata) || OR2D::Metadata.nil?
35
-
36
- OR2D::Metadata['version']
37
- end
38
-
39
- # Get the version of the current framework.
40
- def get_metadata(project_id = '1682916324129.346000')
41
- result = Net::HTTP.get_response(URI("http://api.repos.pw/v1/projects/#{project_id}"))
42
- OR2D.const_set(:Metadata, if result.is_a?(Net::HTTPOK)
43
- JSON.parse(result.body)['data'].freeze
44
- else
45
- { 'build' => 'unknown-canary', 'major' => 0, 'minor' => 0, 'patch' => 0, 'version' => '0.0.0' }.freeze
46
- end)
47
- rescue StandardError => e
48
- puts "Failed to update version: #{e}", e.message
49
- end
50
- end