frecon 0.1.1 → 0.1.2

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: 87a1e0ba2b53235ae6571889845af40b25e12222
4
- data.tar.gz: 54af0be09f289107088b401d9b90490c0e8d333a
3
+ metadata.gz: f12c1949f95e5a56005e8ba75f01a49a5bf672db
4
+ data.tar.gz: 64a01d87ee6f1720e51802033cbd17a4447e7c4b
5
5
  SHA512:
6
- metadata.gz: 93bfbc489e1b4f92caa4737655750bbc0d86f1fe13a6e4e452e9ed170143e0ce66fb820a34d56a00eafea833a570c75f89cfc3903184a41d5fe98a6bfb0ea668
7
- data.tar.gz: 8742321caf2e7c047af913e0520ef4e57877f006d731003eeed1351afb2cf5adf9bcb3fb0ccc1b0483493f459289a0d96872ebc614c00a112446c2ee435719cf
6
+ metadata.gz: 47d90c65cce4893bc961ebc606bda4145f75bf0930a9c8fa10fa391cd036e2bfd0f16bb366106177461db1b4ebe0d0d5b0f61852a3d0330559503eb121f22499
7
+ data.tar.gz: 01d19cb9ca9c02d2cb5874fb8a02c477795595034986cace87291750ac5775862f4219836ccaaf0064072050917ca38908d489d52af31ffb67e5d19f913ec745
data/bin/frecon CHANGED
@@ -1,6 +1,15 @@
1
- #! /usr/bin/env ruby
1
+ # bin/frecon
2
+ #
3
+ # Copyright (C) 2014 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>.
2
9
 
3
- # Allow running locally.
10
+ #!/usr/bin/env ruby
11
+
12
+ # Include rel-path ../lib/ in the $LOAD_PATH if it's not there already.
4
13
  lib_directory = File.class_eval('expand_path(join(dirname(__FILE__), "..", "lib"))')
5
14
  $LOAD_PATH.unshift(lib_directory) unless $LOAD_PATH.include?(lib_directory)
6
15
 
@@ -1,3 +1,12 @@
1
+ # lib/frecon/base/object.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  class Object
2
11
  alias_method :is_an?, :is_a?
3
12
  end
@@ -1,5 +1,14 @@
1
+ # lib/frecon/base/variables.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  module FReCon
2
- VERSION = "0.1.1"
11
+ VERSION = "0.1.2"
3
12
 
4
13
  @environment_variable = :development
5
14
 
data/lib/frecon/base.rb CHANGED
@@ -1,2 +1,11 @@
1
+ # lib/frecon/base.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  require "frecon/base/object"
2
11
  require "frecon/base/variables"
@@ -1,3 +1,12 @@
1
+ # lib/frecon/console.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  require "frecon/database"
2
11
  require "frecon/server"
3
12
 
@@ -1,3 +1,12 @@
1
+ # lib/frecon/controller.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  require "frecon/base"
2
11
 
3
12
  module FReCon
@@ -1,3 +1,12 @@
1
+ # lib/frecon/controllers/competitions_controller.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  require "json"
2
11
  require "frecon/models"
3
12
 
@@ -1,3 +1,12 @@
1
+ # lib/frecon/controllers/dump_controller.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  require "json"
2
11
  require "frecon/models"
3
12
 
@@ -1,3 +1,12 @@
1
+ # lib/frecon/controllers/matches_controller.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  require "json"
2
11
  require "frecon/models"
3
12
 
@@ -1,3 +1,12 @@
1
+ # lib/frecon/controllers/participations_controller.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  module FReCon
2
11
  class ParticipationsController < Controller
3
12
  def self.create(request, params)
@@ -1,3 +1,12 @@
1
+ # lib/frecon/controllers/records_controller.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  require "json"
2
11
  require "frecon/base"
3
12
  require "frecon/models"
@@ -1,3 +1,12 @@
1
+ # lib/frecon/controllers/robots_controller.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  require "json"
2
11
  require "frecon/models/robot"
3
12
 
@@ -1,3 +1,12 @@
1
+ # lib/frecon/controllers/teams_controller.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  require "json"
2
11
  require "frecon/base"
3
12
  require "frecon/models"
@@ -1,4 +1,12 @@
1
- # Libraries that all controllers require.
1
+ # lib/frecon/controllers.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
2
10
  require "json"
3
11
  require "frecon/error_formatter"
4
12
 
@@ -1,3 +1,12 @@
1
+ # lib/frecon/database.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  require "logger"
2
11
  require "mongoid"
3
12
 
@@ -1,3 +1,12 @@
1
+ # lib/frecon/error_formatter.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  require "json"
2
11
 
3
12
  module FReCon
@@ -1,3 +1,12 @@
1
+ # lib/frecon/match_number.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  require "frecon/base"
2
11
 
3
12
  module FReCon
data/lib/frecon/model.rb CHANGED
@@ -1,3 +1,12 @@
1
+ # lib/frecon/model.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  require "mongoid"
2
11
 
3
12
  module FReCon
@@ -1,3 +1,12 @@
1
+ # lib/frecon/models/competition.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  require "frecon/model"
2
11
 
3
12
  module FReCon
@@ -1,3 +1,12 @@
1
+ # lib/frecon/models/match.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  require "frecon/model"
2
11
  require "frecon/match_number"
3
12
 
@@ -1,3 +1,12 @@
1
+ # lib/frecon/models/participation.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  require "frecon/model"
2
11
 
3
12
  module FReCon
@@ -1,3 +1,12 @@
1
+ # lib/frecon/models/record.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  require "frecon/model"
2
11
  require "frecon/position"
3
12
 
@@ -1,3 +1,12 @@
1
+ # lib/frecon/models/robot.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  require "frecon/model"
2
11
 
3
12
  module FReCon
@@ -1,3 +1,12 @@
1
+ # lib/frecon/models/team.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  require "frecon/model"
2
11
 
3
12
  module FReCon
data/lib/frecon/models.rb CHANGED
@@ -1,3 +1,12 @@
1
+ # lib/frecon/models.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  require "frecon/models/competition"
2
11
  require "frecon/models/match"
3
12
  require "frecon/models/participation"
@@ -1,3 +1,12 @@
1
+ # lib/frecon/mongoid.yml
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  development:
2
11
  sessions:
3
12
  default:
@@ -1,3 +1,12 @@
1
+ # lib/frecon/position.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  require "frecon/base"
2
11
 
3
12
  module FReCon
data/lib/frecon/routes.rb CHANGED
@@ -1,3 +1,12 @@
1
+ # lib/frecon/routes.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  require "frecon/controllers"
2
11
 
3
12
  module FReCon
data/lib/frecon/server.rb CHANGED
@@ -1,3 +1,12 @@
1
+ # lib/frecon/server.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  require "sinatra/base"
2
11
 
3
12
  require "frecon/database"
data/lib/frecon.rb CHANGED
@@ -1,3 +1,12 @@
1
+ # lib/frecon.rb
2
+ #
3
+ # Copyright (C) 2014 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
+
1
10
  require "frecon/base"
2
11
 
3
12
  require "frecon/database"
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: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Craig
@@ -59,7 +59,7 @@ dependencies:
59
59
  version: '4.0'
60
60
  description: A JSON API for scouting FRC competitions that manages the database for
61
61
  the user.
62
- email: sammidysam@gmail.com
62
+ email: frc-frecon@googlegroups.com
63
63
  executables:
64
64
  - frecon
65
65
  extensions: []
@@ -96,7 +96,8 @@ files:
96
96
  - lib/frecon/routes.rb
97
97
  - lib/frecon/server.rb
98
98
  homepage: https://github.com/frc-frecon/frecon
99
- licenses: []
99
+ licenses:
100
+ - MIT
100
101
  metadata: {}
101
102
  post_install_message:
102
103
  rdoc_options: []