frecon 1.4.1 → 1.5.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
2
  SHA1:
3
- metadata.gz: 7b8b0d806d7d674f25440c32b7850550487aded2
4
- data.tar.gz: 166db8cd776ff6f007ec8875e9369b1c87821800
3
+ metadata.gz: b394279fc690d1e65ac41609e718aa911737e7db
4
+ data.tar.gz: 9c2da1182490fccd958a7c73d367b7c86a9a1ff4
5
5
  SHA512:
6
- metadata.gz: 0831100b5a48f4bf522e8120487ad59ff947be1882ee60d7c8e54cd948962ddb82951d18dabb9960784c8ca4f480ad2012dac91a25f4416c45b14b5981da6e75
7
- data.tar.gz: ec873b44158f9f16508c815fbe22123aa22df38171255bace84519174ff076bdbe3aececc924c7b80d3bf300adf2f7ae03421313cc7cb04d64904279a4cb2375
6
+ metadata.gz: 0b3ebaafceeeb4e4514a3f2b670ebb176ff3443e14d36d142671d0d2c7194372e96524008d6e90965fdfebaefc8085e8c3645412fd839d058a60ea848b98af49
7
+ data.tar.gz: a1ee485514133a5e70e130acbaf26677e1e2321b9099d6385993a09c5a96a50dc61110d83c17d1cd76bda3986a539dfad63c87b071af99ea03d540f2e794b758
@@ -168,4 +168,8 @@ module FReCon
168
168
  end
169
169
 
170
170
  end
171
+
172
+ # Public: An Environment representing the system execution environment.
173
+ ENVIRONMENT = Environment.new(:development)
174
+
171
175
  end
@@ -8,14 +8,4 @@
8
8
  # <http://opensource.org/licenses/MIT>.
9
9
 
10
10
  require 'frecon/base/environment'
11
-
12
- # Public: The FReCon API module.
13
- module FReCon
14
-
15
- # Public: A String representing the current version of FReCon.
16
- VERSION = '1.4.1'
17
-
18
- # Public: An Environment representing the system execution environment.
19
- ENVIRONMENT = Environment.new(:development)
20
-
21
- end
11
+ require 'frecon/base/version'
@@ -0,0 +1,45 @@
1
+ # lib/frecon/base/version.rb
2
+ #
3
+ # Copyright (C) 2016 Christopher Cooper, Sam Craig, Tiger Huang, Vincent Mai, Sam Mercier, and Kristofer Rye
4
+ #
5
+ # This file is part of FReCon, an API for scouting at FRC Competitions, which is
6
+ # licensed under the MIT license. You should have received a copy of the MIT
7
+ # license with this program. If not, please see
8
+ # <http://opensource.org/licenses/MIT>.
9
+
10
+ # Public: The FReCon API module.
11
+ module FReCon
12
+
13
+ class Version
14
+ attr_reader :major, :minor, :patch, :prerelease
15
+
16
+ def initialize(major:, minor:, patch:, prerelease: nil)
17
+ @major, @minor, @patch, @prerelease = major, minor, patch, prerelease
18
+ end
19
+
20
+ def to_s
21
+ format_string % [@major, @minor, @patch, @prerelease]
22
+ end
23
+
24
+ def prerelease?
25
+ !!@prerelease
26
+ end
27
+
28
+ def release?
29
+ !@prerelease
30
+ end
31
+
32
+ protected
33
+
34
+ PRERELEASE_FORMAT_STRING = '%d.%d.%d-%s'
35
+ RELEASE_FORMAT_STRING = '%d.%d.%d'
36
+
37
+ def format_string
38
+ prerelease? ? PRERELEASE_FORMAT_STRING : RELEASE_FORMAT_STRING
39
+ end
40
+ end
41
+
42
+ # Public: A String representing the current version of FReCon.
43
+ VERSION = Version.new(major: 1, minor: 5, patch: 0)
44
+
45
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frecon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Craig
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2016-08-03 00:00:00.000000000 Z
16
+ date: 2016-08-31 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: sinatra
@@ -183,20 +183,6 @@ dependencies:
183
183
  - - "~>"
184
184
  - !ruby/object:Gem::Version
185
185
  version: '4.7'
186
- - !ruby/object:Gem::Dependency
187
- name: coveralls
188
- requirement: !ruby/object:Gem::Requirement
189
- requirements:
190
- - - "~>"
191
- - !ruby/object:Gem::Version
192
- version: '0.8'
193
- type: :development
194
- prerelease: false
195
- version_requirements: !ruby/object:Gem::Requirement
196
- requirements:
197
- - - "~>"
198
- - !ruby/object:Gem::Version
199
- version: '0.8'
200
186
  - !ruby/object:Gem::Dependency
201
187
  name: codeclimate
202
188
  requirement: !ruby/object:Gem::Requirement
@@ -257,6 +243,7 @@ files:
257
243
  - lib/frecon/base/environment.rb
258
244
  - lib/frecon/base/object.rb
259
245
  - lib/frecon/base/variables.rb
246
+ - lib/frecon/base/version.rb
260
247
  - lib/frecon/console.rb
261
248
  - lib/frecon/controller.rb
262
249
  - lib/frecon/controllers.rb