This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rails_helper' | |
describe ProjectPolicy do | |
let(:user) { User.new } | |
subject { ProjectPolicy } | |
context ".scope" do | |
subject { Pundit.policy_scope(user, Project) } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
undefined method `each' for "RawBlameHistory":String | |
Extracted source (around line #150): | |
def resolve_all | |
config = configurations.dup | |
config.each do |key, value| | |
config[key] = resolve(value) if value | |
end | |
config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Develop/test/Deploy backend software for management of customers, their subscriptions/licenses, devices, enable/disable (client) functionality based on licensing. | |
A self-service customer portal should also be made available. | |
Develop/test/deploy backend API for our client-applications to consume/submit data.Develop/test/deploy backend API for third-party API-consumers. Read-only service. Must be authenticated/authorized per-customer and per-third-party software. | |
Develop/test front-end mobile application(s) - should be web-based/hybrid only to offer support to older devices. | |
Older devices will include WinMobile 5.0-WinMobile6.5 CE/or otherwise | |
Newer devices will include but be limited to Win7mobile/embeded/ce | |
Win Phone | |
Android |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('shipClient', ['ngTouch']) | |
.controller('JobController', ['$scope', function($scope) { | |
$scope.items = []; | |
// call api, authenticate with api-key token and device's guid get | |
// some code here to be written | |
// initialize new job - call api, get next job id | |
// some code here to be written | |
$scope.submitJob = function() { | |
// get device unique identifier |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from Postmane | |
POST http://104.131.1.84:3000/api/v1/customers name=bob | |
... | |
aram is missing or the value is empty: customer | |
Extracted source (around line #54): | |
52 | |
53 | |
54 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Temporarily using `sails.config.models.migrate="drop"... | |
(press CTRL+C to cancel-- continuing lift automatically in 0.5 seconds...) | |
error: A hook (`orm`) failed to load! | |
error: Error (E_UNKNOWN) :: Encountered an unexpected error | |
error: no schema has been selected to create in | |
at Connection.parseE (/home/sapi/node_modules/sails-postgresql/node_modules/pg.js/lib/connection.js:534:11) | |
at Connection.parseMessage (/home/sapi/node_modules/sails-postgresql/node_modules/pg.js/lib/connection.js:361:17) | |
at Socket.<anonymous> (/home/sapi/node_modules/sails-postgresql/node_modules/pg.js/lib/connection.js:105:22) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
verbose: Starting ORM... | |
Error creating a connection to Postgresql: Error: connect ECONNREFUSED | |
error: A hook (`orm`) failed to load! | |
error: Error: connect ECONNREFUSED | |
at errnoException (net.js:904:11) | |
at Object.afterConnect [as oncomplete] (net.js:895:19) { [Error: connect ECONNREFUSED] | |
code: 'ECONNREFUSED', | |
errno: 'ECONNREFUSED', | |
syscall: 'connect' } | |
verbose: Lowering sails... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class API::V1::BaseController < Api::BaseController | |
protect_from_forgery with: :null_session | |
before_action :set_resource, only: [:destroy, :show, :update] | |
respond_to :json | |
# POST /api/{plural_resource_name} | |
def create | |
set_resource(resource_class.new(resource_params)) | |
if get_resource.save |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ redress git:(master) ✗ rails g mongoid:config | |
/Users/ivanpolchenko/.rvm/gems/ruby-2.0.0-p353/gems/json-1.8.1/lib/json/ext/parser.bundle: [BUG] Segmentation fault | |
ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13] | |
-- Crash Report log information -------------------------------------------- | |
See Crash Report log file under the one of following: | |
* ~/Library/Logs/CrashReporter | |
* /Library/Logs/CrashReporter | |
* ~/Library/Logs/DiagnosticReports |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Could not find table 'name' | |
/Users/ivanskie/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.0/lib/active_record/connection_adapters/sqlite3_adapter.rb:509:in `table_structure' | |
/Users/ivanskie/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.0/lib/active_record/connection_adapters/sqlite3_adapter.rb:396:in `columns' | |
/Users/ivanskie/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.0/lib/active_record/connection_adapters/schema_cache.rb:114:in `block in prepare_default_proc' | |
/Users/ivanskie/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.0/lib/active_record/connection_adapters/schema_cache.rb:56:in `yield' | |
/Users/ivanskie/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.0/lib/active_record/connection_adapters/schema_cache.rb:56:in `columns' | |
/Users/ivanskie/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.0/lib/active_record/connection_adapters/schema_cache.rb:118:in `block in prepare_default_proc' | |
/Users/ivanskie/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.0/lib/active_record/connection_adapters/schema_cache.rb: |
NewerOlder