
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Adds school association and lookup to users of Scitent's Scidea LMS platform. This gem is only useful in the context of the proprietary Scidea platform.
Add scidea-schools
to your Scidea Gemfile:
# Gemfile
gem 'scidea-schools'
Add the installation migrations to your db/migrate/
folder:
rails g scidea:schools:migrations
Schools will appear in the registration form when there is an audience/profession called Educator and there exists at least one school record in the database.
The gem is configured to use rspec and cucumber tests. Because there are so many dependencies upon the Scidea core, rspec and cucumber have been configured to launch an instance of the core application with the plugin's resources tied in. The features and specs of the plugin, however, are the only ones executed when you run cucumber and rspec, respectively.
To set up your environment for testing, perform the following:
In your local Scidea core instance, add the following line to the Gemfile:
# Gemfile
gem 'scidea-schools', :path => 'LOCAL_PATH_TO_SCIDEA-SCHOOLS'
Add the scidea gem to the scidea-schools Gemfile and add the path to your Scidea core instance. Then, copy the contents of the Scidea core Gemfile after gemspec
, and paste it to the end of the Gemfile in the scidea-schools code. When you run rspec/cucumber, they require this Gemfile, thus you need all of the gems that Scidea core requires as well.
source 'http://rubygems.org'
gemspec
gem 'scidea', :path => 'LOCAL_PATH_TO_SCIDEA-CORE'
# contents of scidea core Gemfile here....
From scidea-schools, you can run rspec
and cucumber
. Note that FactoryGirl factories from the Scidea core are included in the testing runtime and added to whatever you include in spec/factories
. The database configuration from the Scidea core will also be used. You must run all rake operations for that database in the context of the Scidea core folder. They will not work in the scidea-schools folder.
Stylesheets from app/themes/scidea
are added to the app/assets/stylesheets
directory as a part of the asset pipeline. However, because they are not scss
files, Rails won't pick them up during the assets compile task. Therefore, any css
file you add to app/assets/stylesheets
must be included in the assets initializer: config/initializers/schools_assets.rb
.
JS modules live in the app/assets/javascript
directory. This puts them in the asset pipeline when the gem is inlcuded with Rails and the Scidea core.
To work with the core, they must be written as RequireJS AMDs. In order for the modules to work in production mode and to be compiled during assets precompilation in the core, you must include them in the requirejs-rails configuration file, config/requirejs.yml
.
Copyright 2012 Scitent, Inc. See the file MIT-LICENSE for terms.
FAQs
Unknown package
We found that scidea-schools demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.