source
stringclasses
1 value
repo
stringlengths
5
63
repo_url
stringlengths
24
82
path
stringlengths
5
167
language
stringclasses
1 value
license
stringclasses
5 values
stars
int64
10
51.4k
ref
stringclasses
23 values
size_bytes
int64
200
258k
text
stringlengths
137
258k
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/controllers/s2s_api/v1/zones_controller.rb
Ruby
bsd-3-clause
92
master
1,225
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module S2sApi module V1 class ZonesController < BaseController inherit_resources ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/controllers/s2s_api/v1/activities_controller.rb
Ruby
bsd-3-clause
92
master
766
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module S2sApi module V1 class ActivitiesController < BaseController inherit_resourc...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/controllers/s2s_api/v1/extensions_controller.rb
Ruby
bsd-3-clause
92
master
977
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module S2sApi module V1 class ExtensionsController < BaseController before_action :...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/controllers/s2s_api/v1/passwords_controller.rb
Ruby
bsd-3-clause
92
master
1,012
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module S2sApi module V1 class PasswordsController < BaseController skip_before_acti...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/controllers/s2s_api/v1/applications_controller.rb
Ruby
bsd-3-clause
92
master
1,082
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module S2sApi module V1 class ApplicationsController < BaseController inherit_resou...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/controllers/s2s_api/v1/base_controller.rb
Ruby
bsd-3-clause
92
master
1,468
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module S2sApi module V1 require "s2s_api_responder" class BaseController < Applicati...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/controllers/s2s_api/v1/beacons_controller.rb
Ruby
bsd-3-clause
92
master
2,579
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module S2sApi module V1 class BeaconsController < BaseController inherit_resources ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/controllers/s2s_api/v1/vendors_controller.rb
Ruby
bsd-3-clause
92
master
218
module S2sApi module V1 class VendorsController < BaseController inherit_resources self.responder = S2sApiResponder def index render json: ::Beacon::VENDORS end end end end
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/controllers/s2s_api/v1/beacon_configs_controller.rb
Ruby
bsd-3-clause
92
master
1,895
# Beacon configuration such as: # * signal interval # * transmission power # # @author Adrian Wozniak # @since 29.09.2015 module S2sApi module V1 class BeaconConfigsController < BaseController inherit_resources authorize_resource self.responder = S2sApiResponder rescue_from ActionControl...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/controllers/s2s_api/v1/admins_controller.rb
Ruby
bsd-3-clause
92
master
1,141
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module S2sApi module V1 class AdminsController < BaseController inherit_resources ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/controllers/s2s_api/v1/registrations_controller.rb
Ruby
bsd-3-clause
92
master
920
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module S2sApi module V1 class RegistrationsController < BaseController skip_before_...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/uploaders/coupon_image_uploader.rb
Ruby
bsd-3-clause
92
master
405
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class CouponImageUploader < BaseUploader def default_url if model.type == 'logo' '/im...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/uploaders/application_setting_uploader.rb
Ruby
bsd-3-clause
92
master
277
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class ApplicationSettingUploader < BaseUploader end
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/uploaders/base_uploader.rb
Ruby
bsd-3-clause
92
master
1,734
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### # encoding: utf-8 class BaseUploader < CarrierWave::Uploader::Base # Include RMagick or Min...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/forms/beacon_filter_form.rb
Ruby
bsd-3-clause
92
master
788
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class BeaconFilterForm UNASSIGNED_ZONE = Zone.new(name: I18n.t('beacons.index.unassigned_zone...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/serializers/beacon_serializer.rb
Ruby
bsd-3-clause
92
master
797
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class BeaconSerializer < ApplicationSerializer attributes :id, :name, :proximity_id, :locatio...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/serializers/error_serializer.rb
Ruby
bsd-3-clause
92
master
395
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class ErrorSerializer < ApplicationSerializer def attributes *args if object.valid? ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/serializers/zone_trigger_serializer.rb
Ruby
bsd-3-clause
92
master
304
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class ZoneTriggerSerializer < BaseTriggerSerializer attributes :zone_ids end
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/serializers/activity_serializer.rb
Ruby
bsd-3-clause
92
master
386
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class ActivitySerializer < ApplicationSerializer attributes :id, :type, :name, :payload ha...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/serializers/base_trigger_serializer.rb
Ruby
bsd-3-clause
92
master
471
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class BaseTriggerSerializer < ApplicationSerializer attributes :id, :conditions, :test has...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/serializers/application_serializer.rb
Ruby
bsd-3-clause
92
master
283
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class ApplicationSerializer < ActiveModel::Serializer end
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/serializers/beacon_trigger_serializer.rb
Ruby
bsd-3-clause
92
master
352
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class BeaconTriggerSerializer < BaseTriggerSerializer attributes :range_ids def range_ids ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/serializers/custom_attribute_serializer.rb
Ruby
bsd-3-clause
92
master
317
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class CustomAttributeSerializer < ApplicationSerializer attributes :id, :name, :value end
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/serializers/zone_serializer.rb
Ruby
bsd-3-clause
92
master
319
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class ZoneSerializer < ApplicationSerializer attributes :id, :name, :beacon_ids, :color end
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/serializers/trigger_serializer.rb
Ruby
bsd-3-clause
92
master
353
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class TriggerSerializer < BaseTriggerSerializer attributes :name, :range_ids def range_ids...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/serializers/api/v1/base_serializer.rb
Ruby
bsd-3-clause
92
master
283
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class Api::V1::BaseSerializer < ApplicationSerializer end
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/serializers/api/v1/configuration_builder_serializer.rb
Ruby
bsd-3-clause
92
master
302
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class Api::V1::ConfigurationBuilderSerializer < Api::V1::BaseSerializer end
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/serializers/s2s_api/v1/coupon_image_serializer.rb
Ruby
bsd-3-clause
92
master
340
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module S2sApi module V1 class CouponImageSerializer < BaseSerializer attributes :ur...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/serializers/s2s_api/v1/zone_without_beacons_serializer.rb
Ruby
bsd-3-clause
92
master
373
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module S2sApi module V1 class ZoneWithoutBeaconsSerializer < BaseSerializer attribu...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/serializers/s2s_api/v1/zone_color_serializer.rb
Ruby
bsd-3-clause
92
master
341
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module S2sApi module V1 class ZoneColorSerializer < BaseSerializer attributes :colo...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/serializers/s2s_api/v1/admin_serializer.rb
Ruby
bsd-3-clause
92
master
348
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module S2sApi module V1 class AdminSerializer < BaseSerializer attributes :id, :ema...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/serializers/s2s_api/v1/base_serializer.rb
Ruby
bsd-3-clause
92
master
584
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module S2sApi module V1 class BaseSerializer < ActiveModel::Serializer private ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/serializers/s2s_api/v1/application_serializer.rb
Ruby
bsd-3-clause
92
master
368
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module S2sApi module V1 class ApplicationSerializer < BaseSerializer attributes :id...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/serializers/s2s_api/v1/zone_serializer.rb
Ruby
bsd-3-clause
92
master
441
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module S2sApi module V1 class ZoneSerializer < ZoneWithoutBeaconsSerializer attribu...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/serializers/s2s_api/v1/beacon_serializer.rb
Ruby
bsd-3-clause
92
master
1,260
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module S2sApi module V1 class BeaconSerializer < BaseSerializer attributes :id, :na...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/serializers/s2s_api/v1/application_setting_serializer.rb
Ruby
bsd-3-clause
92
master
606
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module S2sApi module V1 class ApplicationSettingSerializer < BaseSerializer attribu...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/serializers/s2s_api/v1/activity_serializer.rb
Ruby
bsd-3-clause
92
master
639
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module S2sApi module V1 class ActivitySerializer < BaseSerializer attributes :id, :...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/serializers/s2s_api/v1/coupon_serializer.rb
Ruby
bsd-3-clause
92
master
736
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module S2sApi module V1 class CouponSerializer < BaseSerializer attributes :id, :na...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/serializers/s2s_api/v1/beacon_config_serializer.rb
Ruby
bsd-3-clause
92
master
554
module S2sApi module V1 class BeaconConfigSerializer < BaseSerializer attributes :data, :config_updated_at, :beacon_updated_at, :require_update private def data object.loaded_data end private def config_updated_at object....
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/serializers/s2s_api/v1/trigger_serializer.rb
Ruby
bsd-3-clause
92
master
386
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module S2sApi module V1 class TriggerSerializer < BaseSerializer attributes :id, :t...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/serializers/s2s_api/v1/kontakt_io_beacon_serializer.rb
Ruby
bsd-3-clause
92
master
818
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module S2sApi module V1 class KontaktIoBeaconSerializer < BaseSerializer attributes ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/beacon_or_zone.rb
Ruby
bsd-3-clause
92
master
770
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### # # Abstracts +ActiveRecord+ Beacon or Zone classes instance into one generic BeaconOrZone obje...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/rpush_apns_app.rb
Ruby
bsd-3-clause
92
master
1,632
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class RpushApnsApp include Virtus.model attribute :cert_p12 attribute :cert_pem attrib...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/extension.rb
Ruby
bsd-3-clause
92
master
2,050
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### # # Generic extension class, wrapping all additional/external extension into unified objects. #...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/account_extension.rb
Ruby
bsd-3-clause
92
master
1,052
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class AccountExtension < ActiveRecord::Base self.primary_keys = :account_id, :extension_name ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/zone_colors.rb
Ruby
bsd-3-clause
92
master
936
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class ZoneColors class ZoneColor attr_reader :color def initialize(color) self...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/activity.rb
Ruby
bsd-3-clause
92
master
2,227
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class Activity < ActiveRecord::Base # # Array of available schemes for Activity, includes ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/base64_image.rb
Ruby
bsd-3-clause
92
master
1,150
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class Base64Image < StringIO UnsupportedFormat = Class.new(StandardError) EXTENSIONS = %w[...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/applications_zone.rb
Ruby
bsd-3-clause
92
master
419
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class ApplicationsZone < ActiveRecord::Base belongs_to :application belongs_to :zone bef...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/user.rb
Ruby
bsd-3-clause
92
master
582
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class User < ActiveRecord::Base belongs_to :application has_many :access_tokens, -> { wher...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/admin.rb
Ruby
bsd-3-clause
92
master
2,266
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class Admin < ActiveRecord::Base extend UuidField include HasCorrelationId include Searcha...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/source.rb
Ruby
bsd-3-clause
92
master
263
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class Source < ActiveRecord::Base end
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/triggers_source.rb
Ruby
bsd-3-clause
92
master
333
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class TriggersSource < ActiveRecord::Base belongs_to :trigger belongs_to :source, polymorph...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/zone_trigger.rb
Ruby
bsd-3-clause
92
master
257
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class ZoneTrigger < Trigger end
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/event_processor.rb
Ruby
bsd-3-clause
92
master
434
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### # # Responsible for scheduling messages on ActiveJob queues to be processed later. # module Eve...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/application_extension.rb
Ruby
bsd-3-clause
92
master
375
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class ApplicationExtension < ActiveRecord::Base belongs_to :application serialize :configu...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/async_value.rb
Ruby
bsd-3-clause
92
master
4,207
module AsyncValue extend ActiveSupport::Concern included do def vendor_callback(mth) current_vendor = self.instance_exec(&self.class.vendor_for_async_callback).vendor.to_s Rails.logger.info "Current vendor for async check: #{ current_vendor.inspect }" hash = self.class.async_vendors has...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/beacon_config.rb
Ruby
bsd-3-clause
92
master
1,681
class BeaconConfig < ActiveRecord::Base belongs_to :beacon serialize :data, ActiveSupport::HashWithIndifferentAccess DEFAULT_DATA_KEYS = { battery_level: nil, device_id: nil, last_action: nil, average_connection_interval: nil, latest_firmware: true, signal_interval: 350, transmission_...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/trigger.rb
Ruby
bsd-3-clause
92
master
2,026
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class Trigger < ActiveRecord::Base before_save :ensure_one_trigger_source # Remember to add...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/coupon_image.rb
Ruby
bsd-3-clause
92
master
617
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class CouponImage < ActiveRecord::Base belongs_to :coupon validates :type, presence: t...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/brand.rb
Ruby
bsd-3-clause
92
master
451
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class Brand < ActiveRecord::Base has_one :doorkeeper_application, class_name: 'Doorkeeper...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/extension_setting.rb
Ruby
bsd-3-clause
92
master
708
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### # # Custom Extension configuration option, required for proper functioning. # class ExtensionSe...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/ability.rb
Ruby
bsd-3-clause
92
master
1,223
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class Ability include CanCan::Ability include Ability::ExtensionManageable disallow_exte...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/custom_attribute.rb
Ruby
bsd-3-clause
92
master
295
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class CustomAttribute < ActiveRecord::Base belongs_to :activity end
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/account.rb
Ruby
bsd-3-clause
92
master
2,988
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class Account < ActiveRecord::Base has_many :admins has_many :account_extensions has_ma...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/zone.rb
Ruby
bsd-3-clause
92
master
2,091
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class Zone < ActiveRecord::Base belongs_to :account belongs_to :manager, class_name: Admin ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/application.rb
Ruby
bsd-3-clause
92
master
2,354
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### require 'rpush' class Application < ActiveRecord::Base APNS_APP = 'Rpush::Client::ActiveReco...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/mobile_device.rb
Ruby
bsd-3-clause
92
master
1,089
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class MobileDevice < ActiveRecord::Base include HasCorrelationId belongs_to :user has_on...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/beacon_trigger.rb
Ruby
bsd-3-clause
92
master
259
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class BeaconTrigger < Trigger end
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/applications_beacon.rb
Ruby
bsd-3-clause
92
master
423
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class ApplicationsBeacon < ActiveRecord::Base belongs_to :application belongs_to :beacon ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/configuration_builder.rb
Ruby
bsd-3-clause
92
master
2,586
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### require 'deep_merge/rails_compat' class ConfigurationBuilder def initialize(application) ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/beacon.rb
Ruby
bsd-3-clause
92
master
6,454
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class Beacon < ActiveRecord::Base include AsyncValue AVAILABLE_FLOORS = ((AppConfig.lowest_...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/coupon.rb
Ruby
bsd-3-clause
92
master
2,279
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class Coupon < ActiveRecord::Base TEMPLATE_FIELDS = { template_1: %w[logo image], tem...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/application_setting.rb
Ruby
bsd-3-clause
92
master
1,914
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### # # Custom application setting, that could be added by extension # class ApplicationSetting < A...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/activity/notification.rb
Ruby
bsd-3-clause
92
master
1,304
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class Activity class Notification # # Null object for consuming not supported OSes. ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/beacon/config_object.rb
Ruby
bsd-3-clause
92
master
664
require 'beacon' unless defined? Beacon class Beacon class ConfigObject < OpenStruct attr_reader :beacon include AsyncValue # @param [Beacon] beacon # @param [Hash] hash def initialize(beacon, hash) super(extension_compatibility(hash.with_indifferent_access).to_hash) @beacon = beacon...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/beacon/factory.rb
Ruby
bsd-3-clause
92
master
1,938
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class Beacon # # Factory for Beacon model. # class Factory PARAMS_ORDER = %w[ vend...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/zone/factory.rb
Ruby
bsd-3-clause
92
master
1,068
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class Zone # # Factory for Zone model. # class Factory def initialize(admin, param...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/coupon/code.rb
Ruby
bsd-3-clause
92
master
1,526
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### require 'barby' require 'barby/barcode/qr_code' require 'barby/barcode/code_128' require 'barby...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/concerns/has_correlation_id.rb
Ruby
bsd-3-clause
92
master
430
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module HasCorrelationId def update_correlation_id_from_current_thread if Thread.current[:...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/concerns/searchable.rb
Ruby
bsd-3-clause
92
master
695
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module Searchable extend ActiveSupport::Concern module ClassMethods def search(q = {})...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/concerns/uuid_field.rb
Ruby
bsd-3-clause
92
master
1,201
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### # # Extendable module, adds uuid-type attribute to class with own validation rules and value ma...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/concerns/proximity_searchable.rb
Ruby
bsd-3-clause
92
master
1,023
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module ProximitySearchable extend ActiveSupport::Concern module ClassMethods def find_...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/application/factory.rb
Ruby
bsd-3-clause
92
master
2,462
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class Application # # Factory for Application model. # class Factory delegate :err...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/application/push_app.rb
Ruby
bsd-3-clause
92
master
867
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class Application class PushApp delegate :os, :environment, to: :mobile_device def i...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/admin/factory.rb
Ruby
bsd-3-clause
92
master
1,227
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class Admin # Factory for Admin model. class Factory def initialize(params) self....
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/extension_data/triggers.rb
Ruby
bsd-3-clause
92
master
1,447
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module ExtensionData # # Responsible for serializing application's triggers into JSON form...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/application_setting/password_setting.rb
Ruby
bsd-3-clause
92
master
389
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### # # Custom application setting, that could be added by extension. Stores password type values. ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/application_setting/factory.rb
Ruby
bsd-3-clause
92
master
2,956
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class ApplicationSetting::Factory def initialize(application) @application = application...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/application_setting/string_setting.rb
Ruby
bsd-3-clause
92
master
385
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### # # Custom application setting, that could be added by extension. Stores string type values. # ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/application_setting/file_setting.rb
Ruby
bsd-3-clause
92
master
430
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### # # Custom application setting, that could be added by extension. Stores uploaded file. # class...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/application_setting/text_setting.rb
Ruby
bsd-3-clause
92
master
381
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### # # Custom application setting, that could be added by extension. Stores text type values. # cl...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/trigger/collection.rb
Ruby
bsd-3-clause
92
master
1,484
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class Trigger class Collection class << self # # For given range type, retur...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/brand/factory.rb
Ruby
bsd-3-clause
92
master
717
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class Brand # # Factory for Brand model. # class Factory def initialize(params) ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/event_processor/event_dispatcher.rb
Ruby
bsd-3-clause
92
master
963
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module EventProcessor class EventDispatcher def initialize(params) self.event ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/event_processor/message_dispatcher.rb
Ruby
bsd-3-clause
92
master
2,875
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module EventProcessor class MessageDispatcher attr_reader :user, :mobile_device, :events,...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/event_processor/message.rb
Ruby
bsd-3-clause
92
master
777
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module EventProcessor # # Represents whole message received by events API. Contains: # *...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
app/models/event_processor/message/event.rb
Ruby
bsd-3-clause
92
master
1,785
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module EventProcessor class Message # # Represents API incoming event. # cla...
github
jsvine/reporter
https://github.com/jsvine/reporter
_reporter/reporter.rb
Ruby
mit
92
master
2,428
require "kramdown" require "pygments" module Reporter DEFAULT_CONFIG = { :pygments => true, # Run pygments on code snippets :pygments_lexer => "python", :css_prefix => "reporter-" } class Notebook def initialize(cells) @cells = cells end def to_...
github
jsvine/reporter
https://github.com/jsvine/reporter
_reporter/converters/ipynb.rb
Ruby
mit
92
master
3,549
require "sanitize" require "yaml" require "crochet" require "json" sanitize_rules = Sanitize::Config::RELAXED sanitize_rules[:protocols]["img"]["src"] << "data" SANITIZE_RULES = sanitize_rules # Intercept .ipynb files, and append their metadata as YAML. Crochet::Hook.new(File) do after! :read, :class do |result, pa...