Skip to content

Implement getFlag method #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ aws_credentials.json
.*.swp
tmp
tags
.virtualenv/
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v0.12.18
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.4-pyregex
3.4.3
23 changes: 16 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ python:
- '3.4'

node_js:
- 0.10.13
- 8.6.0

ruby:
- 1.9.3-p429
cache:
yarn: true
pip: true
directories:
- ui/node_modules

before_install:
# Workaround for a permissions issue with Travis virtual machine images
Expand All @@ -16,12 +19,18 @@ before_install:
- sudo ln -s /run/shm /dev/shm

install:
# pip is not able to install distribute: "ImportError: No module named _markerlib"
- easy_install distribute
- pip install -qr requirements.txt
- pip install -qr requirements-dev.txt
- ./install_assets_deps.sh
- grunt clean build
- ls -la
- cd ./ui
- yarn install --frozen-lockfile
- cd ..

script:
- nosetests -c nose.cfg --verbosity=1
- grunt test

- cd ./ui
- yarn lint
- yarn test
- cd ..
19 changes: 9 additions & 10 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,14 @@ module.exports = (grunt) ->
development:
endpoint: "http://localhost:5000/api"

"s3-sync":
options:
key: "<%= aws.key %>"
secret: "<%= aws.secret %>"
bucket: "<%= aws.bucket %>"
access: "public-read"
concurrency: 20
gzip: false
# "s3-sync":
# options:
# key: "<%= aws.key %>"
# secret: "<%= aws.secret %>"
# bucket: "<%= aws.bucket %>"
# access: "public-read"
# concurrency: 20
# gzip: false

dist:
files: [
Expand Down Expand Up @@ -276,8 +276,7 @@ module.exports = (grunt) ->
c = (k, args...) -> common.clone().insertAfter(k, args...)
grunt.registerTask "build", c("copy", "gen_api:development")
grunt.registerTask "build:production", c("copy", "gen_api:production")
grunt.registerTask "deploy", ["clean", "build:production", "s3-sync"]
grunt.registerTask "deploy", ["clean", "build:production"] # , "s3-sync"]
grunt.registerTask "test", ["karma"]
grunt.registerTask "default", ["clean", "build", "watch"]
grunt.registerTask "server", ["build", "connect"]

29 changes: 20 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,42 @@
"name": "pyregex-assets",
"version": "0.0.0",
"author": "Rodolfo Carvalho",
"dependencies": {
"grunt": "~0.4.0",

"engines": {
"npm": "^2.15.0",
"node": "^0.12.0"
},

"scripts": {
"test": "grunt build test",
"build-dev": "grunt build",
"build": "grunt build:production",
"postinstall": "bower install"
},

"devDependencies": {
"grunt": "^0.4.0",
"grunt-contrib-coffee": "~0.7.0",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-watch": "~0.5.1",
"grunt-contrib-concat": "~0.3.0",
"grunt-coffeelint": "0.0.7",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-less": "~0.7.0",
"grunt-s3-sync": "~0.2.1"
},
"devDependencies": {
"grunt-cli": "^1.2.0",
"grunt-contrib-connect": "~0.3.0",
"grunt-markdown": "~0.4.0",
"grunt-notify": "~0.2.4",
"karma-script-launcher": "~0.1.0",
"karma-chrome-launcher": "~0.1.0",
"karma-firefox-launcher": "~0.1.0",
"karma-growl-reporter": "~0.1.0",
"karma-html2js-preprocessor": "~0.1.0",
"karma-jasmine": "~0.1.0",
"karma-requirejs": "~0.2.0",
"karma-coffee-preprocessor": "~0.1.0",
"karma-phantomjs-launcher": "~0.1.0",
"karma": "~0.10.1",
"grunt-karma": "~0.6.1",
"karma-growl-reporter": "~0.1.0",
"grunt-contrib-connect": "~0.3.0",
"grunt-markdown": "~0.4.0"
"karma-script-launcher": "~0.1.0"
}
}
126 changes: 56 additions & 70 deletions tests/client/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,74 +2,60 @@
// Generated on Thu Aug 08 2013 14:03:22 GMT-0300 (BRT)

module.exports = function(config) {
config.set({

// base path, that will be used to resolve files and exclude
basePath: '',


// frameworks to use
frameworks: ['jasmine'],


// list of files / patterns to load in the browser
files: [
'../../public/assets/*.js',
'../../public/assets/**/*.js',
'../../assets/bower_components/angular-mocks/angular-mocks.js',
'./**/*_spec.coffee',
],


// list of files to exclude
exclude: [

],


// test results reporter to use
// possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
reporters: ['dots', 'growl'],


// web server port
port: 9876,


// enable / disable colors in the output (reporters and logs)
colors: true,


// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,


// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,


// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera
// - Safari (only Mac)
// - PhantomJS
// - IE (only Windows)
browsers: ['PhantomJS'],


// If browser does not capture in given timeout [ms], kill it
captureTimeout: 60000,


// Continuous Integration mode
// if true, it capture browsers, run tests and exit
singleRun: true,

preprocessors: {
'./**/*_spec.coffee': ['coffee']
}
});
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',

// frameworks to use
frameworks: ['jasmine'],

// list of files / patterns to load in the browser
files: [
'../../public/assets/*.js',
'../../public/assets/**/*.js',
'../../assets/bower_components/angular-mocks/angular-mocks.js',
'./**/*_spec.coffee',
],

// list of files to exclude
exclude: [],

// test results reporter to use
// possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
reporters: ['dots', 'growl'],

// web server port
port: 9876,

// enable / disable colors in the output (reporters and logs)
colors: true,

// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,

// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,

// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera
// - Safari (only Mac)
// - PhantomJS
// - IE (only Windows)
browsers: [process.env.CI === 'true' ? 'PhantomJS' : 'Chrome'],

// If browser does not capture in given timeout [ms], kill it
captureTimeout: 60000,

// Continuous Integration mode
// if true, it capture browsers, run tests and exit
singleRun: true,

preprocessors: {
'./**/*_spec.coffee': ['coffee'],
},
});
};
4 changes: 4 additions & 0 deletions ui/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
build/
src/registerServiceWorker.js
__tests__/
src/setupTests.js
6 changes: 6 additions & 0 deletions ui/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": ["react-app", "airbnb"],
"rules": {
"import/prefer-default-export": 0
}
}
21 changes: 21 additions & 0 deletions ui/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
1 change: 1 addition & 0 deletions ui/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v8.6.0
Loading