frecon 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/frecon/base/variables.rb +1 -1
- data/lib/frecon/controllers/dump_controller.rb +3 -1
- data/lib/frecon/model.rb +3 -1
- metadata +31 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58387796046e8701cec240419090e6ee551f7579
|
4
|
+
data.tar.gz: b69de0f4af45d87a8ad47b36d1b55dee79ce8166
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6895028dc88806ec1f183c74cd1426f86035641ce9823c9f449860fe9da5459efe20a5dfda62d53e8cf5e8659118a67390d554267c26f3c60580a2d0f9246603
|
7
|
+
data.tar.gz: b11ff7aafd87d88cebc58dcf9180b81ba8dc0b02bc519016b9fda94a7a89197906443058d62b2b0bb7b57b1d977f9d01e454904a0537cbcec69ff9a3e32c3b66
|
@@ -12,7 +12,7 @@ require 'frecon/base/environment'
|
|
12
12
|
# Public: The FReCon API module.
|
13
13
|
module FReCon
|
14
14
|
# Public: A String representing the current version of FReCon.
|
15
|
-
VERSION = '1.3.
|
15
|
+
VERSION = '1.3.3'
|
16
16
|
|
17
17
|
# Public: An Environment representing the system execution environment.
|
18
18
|
ENVIRONMENT = Environment.new(:development)
|
@@ -19,7 +19,9 @@ module FReCon
|
|
19
19
|
def self.full(params)
|
20
20
|
dump = {}
|
21
21
|
|
22
|
-
ordered_descendants = Model.descendants.
|
22
|
+
ordered_descendants = Model.descendants.select do |model_or_instance|
|
23
|
+
!!model_or_instance.name
|
24
|
+
end.sort_by do |model|
|
23
25
|
id_fields = model.fields.keys.select do |attribute|
|
24
26
|
attribute.ends_with?('_id') && attribute != '_id'
|
25
27
|
end
|
data/lib/frecon/model.rb
CHANGED
@@ -75,7 +75,9 @@ module FReCon
|
|
75
75
|
#
|
76
76
|
# Returns all of the descendants for the Model class.
|
77
77
|
def self.descendants
|
78
|
-
ObjectSpace.each_object(Class).select
|
78
|
+
ObjectSpace.each_object(Class).select do |possible_child|
|
79
|
+
possible_child < self
|
80
|
+
end
|
79
81
|
end
|
80
82
|
|
81
83
|
# Public: Converts this Model to its associated Controller.
|
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.3.
|
4
|
+
version: 1.3.3
|
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:
|
16
|
+
date: 2016-03-19 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: sinatra
|
@@ -29,6 +29,20 @@ dependencies:
|
|
29
29
|
- - "~>"
|
30
30
|
- !ruby/object:Gem::Version
|
31
31
|
version: '1.4'
|
32
|
+
- !ruby/object:Gem::Dependency
|
33
|
+
name: pry
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - "~>"
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0.10'
|
39
|
+
type: :runtime
|
40
|
+
prerelease: false
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
requirements:
|
43
|
+
- - "~>"
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0.10'
|
32
46
|
- !ruby/object:Gem::Dependency
|
33
47
|
name: thin
|
34
48
|
requirement: !ruby/object:Gem::Requirement
|
@@ -211,6 +225,20 @@ dependencies:
|
|
211
225
|
- - "~>"
|
212
226
|
- !ruby/object:Gem::Version
|
213
227
|
version: '0.4'
|
228
|
+
- !ruby/object:Gem::Dependency
|
229
|
+
name: pry-doc
|
230
|
+
requirement: !ruby/object:Gem::Requirement
|
231
|
+
requirements:
|
232
|
+
- - "~>"
|
233
|
+
- !ruby/object:Gem::Version
|
234
|
+
version: '0'
|
235
|
+
type: :development
|
236
|
+
prerelease: false
|
237
|
+
version_requirements: !ruby/object:Gem::Requirement
|
238
|
+
requirements:
|
239
|
+
- - "~>"
|
240
|
+
- !ruby/object:Gem::Version
|
241
|
+
version: '0'
|
214
242
|
description: A JSON API in Sinatra for scouting FRC competitions, and that manages
|
215
243
|
the database using Mongoid.
|
216
244
|
email: frc-frecon@googlegroups.com
|
@@ -277,7 +305,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
277
305
|
version: '0'
|
278
306
|
requirements: []
|
279
307
|
rubyforge_project:
|
280
|
-
rubygems_version: 2.5.
|
308
|
+
rubygems_version: 2.5.1
|
281
309
|
signing_key:
|
282
310
|
specification_version: 4
|
283
311
|
summary: A JSON API for scouting FRC competitions.
|