diff --git a/LICENSE.md b/LICENSE.md index f2d5d21c0..5cf8fc853 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -39,14 +39,14 @@ Some other used libraries/components are licenced under the terms of the Errors and omissions excepted, the other external libraries used in this project are licenced under the terms of the [MIT Licence](https://opensource.org/licenses/MIT). -Please refer to the libraries documentation for more informations about -their licences. +Please refer to the libraries documentation for more information about +their licences. Complete lists of used libraries are available in `bower.json` for the EcmaScript libraries and in `Gemfile` for Ruby libraries. - + GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007 @@ -666,4 +666,4 @@ an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. - END OF TERMS AND CONDITIONS \ No newline at end of file + END OF TERMS AND CONDITIONS diff --git a/README.md b/README.md index 743887833..683e1bc60 100644 --- a/README.md +++ b/README.md @@ -159,7 +159,7 @@ This value is only used when deploying with Docker, otherwise this is configured POSTGRES_PASSWORD Password for the PostgreSQL user, as specified in `database.yml`. -Please see [Setup the FabManager database in PostgreSQL](#setup-fabmanager-in-postgresql) for informations on how to create a user and set his password. +Please see [Setup the FabManager database in PostgreSQL](#setup-fabmanager-in-postgresql) for information on how to create a user and set his password. This value is only used when deploying with Docker, otherwise this is configured in `config/database.yml`. REDIS_HOST @@ -222,11 +222,11 @@ Identifier of your Google Analytics account. Unique identifier of your [Disqus](http://www.disqus.com) forum. Disqus forums are used to allow visitors to comment on projects. -See https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname- for more informations. +See https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname- for more information. TWITTER_NAME -Identifier of the Twitter account, from witch the last tweet will be fetched and displayed on the home page. +Identifier of the Twitter account, from witch the last tweet will be fetched and displayed on the home page. It will also be used for [Twitter Card analytics](https://dev.twitter.com/cards/analytics). TWITTER_CONSUMER_KEY, TWITTER_CONSUMER_SECRET, TWITTER_ACCESS_TOKEN & TWITTER_ACCESS_TOKEN_SECRET @@ -241,8 +241,8 @@ If you do so, you'll be able to customize and get statistics about project share LOG_LEVEL -This parameter configures the logs verbosity. -Available log levels can be found [here](http://guides.rubyonrails.org/debugging_rails_applications.html#log-levels). +This parameter configures the logs verbosity. +Available log levels can be found [here](http://guides.rubyonrails.org/debugging_rails_applications.html#log-levels). ALLOWED_EXTENSIONS @@ -361,7 +361,7 @@ To create it, please follow these instructions: ALTER USER sleede WITH ENCRYPTED PASSWORD 'sleede'; ``` 6. Finally, have a look at the [PostgreSQL Limitations](#postgresql-limitations) section or some errors will occurs preventing you from finishing the installation procedure. - + ### PostgreSQL Limitations @@ -370,14 +370,14 @@ To create it, please follow these instructions: So here's your choices, mainly depending on your security requirements: - Use the default PostgreSQL super-user (postgres) as the database user of fab-manager. - Set your user as _SUPERUSER_; run the following command in `psql` (after replacing `sleede` with you user name): - + ```sql ALTER USER sleede WITH SUPERUSER; ``` - - - Install and configure the PostgreSQL extension [pgextwlist](https://github.com/dimitri/pgextwlist). + + - Install and configure the PostgreSQL extension [pgextwlist](https://github.com/dimitri/pgextwlist). Please follow the instructions detailed on the extension website to whitelist `unaccent` and `trigram` for the user configured in `config/database.yml`. -- Some users may want to use another DBMS than PostgreSQL. +- Some users may want to use another DBMS than PostgreSQL. This is currently not supported, because of some PostgreSQL specific instructions that cannot be efficiently handled with the ActiveRecord ORM: - `app/controllers/api/members_controllers.rb@list` is using `ILIKE` - `app/controllers/api/invoices_controllers.rb@list` is using `ILIKE` and `date_trunc()` @@ -386,8 +386,8 @@ To create it, please follow these instructions: - `db/migrate/20150604131525_add_meta_data_to_notifications.rb` is using [jsonb](https://www.postgresql.org/docs/9.4/static/datatype-json.html), a PostgreSQL 9.4+ datatype. - `db/migrate/20160915105234_add_transformation_to_o_auth2_mapping.rb` is using [jsonb](https://www.postgresql.org/docs/9.4/static/datatype-json.html), a PostgreSQL 9.4+ datatype. - If you intend to contribute to the project code, you will need to run the test suite with `rake test`. - This also requires your user to have the _SUPERUSER_ role. - Please see the [known issues](#known-issues) section for more informations about this. + This also requires your user to have the _SUPERUSER_ role. + Please see the [known issues](#known-issues) section for more information about this. ## ElasticSearch @@ -518,7 +518,7 @@ Back-end translations uses the [Ruby on Rails syntax](http://guides.rubyonrails. In each cases, some inline comments are included in the localisation files. They can be recognized as they start with the sharp character (#). -These comments are not required to be translated, they are intended to help the translator to have some context informations about the sentence to translate. +These comments are not required to be translated, they are intended to help the translator to have some context information about the sentence to translate. @@ -652,7 +652,7 @@ Fab-manager can be connected to a [Single Sign-On](https://en.wikipedia.org/wiki Currently OAuth 2 is the only supported protocol for SSO authentication. For an example of how to use configure a SSO in Fab-manager, please read [sso_with_github.md](doc/sso_with_github.md). -Developers may find informations on how to implement their own authentication protocol in [sso_authentication.md](doc/sso_authentication.md). +Developers may find information on how to implement their own authentication protocol in [sso_authentication.md](doc/sso_authentication.md). ## Known issues @@ -692,10 +692,10 @@ Developers may find informations on how to implement their own authentication pr DO NOT do this in a production environment, unless you know what you're doing: this could lead to a serious security issue. -- With Ubuntu 16.04, ElasticSearch may refuse to start even after having configured the service with systemd. +- With Ubuntu 16.04, ElasticSearch may refuse to start even after having configured the service with systemd. To solve this issue, you may have to set `START_DAEMON` to `true` in `/etc/default/elasticsearch`. Then reload ElasticSearch with: - + ```bash sudo systemctl restart elasticsearch.service ``` diff --git a/app/assets/javascripts/app.js.erb b/app/assets/javascripts/app.js.erb index f68dbebb5..d363714d0 100644 --- a/app/assets/javascripts/app.js.erb +++ b/app/assets/javascripts/app.js.erb @@ -71,7 +71,7 @@ config(['$httpProvider', 'AuthProvider', "growlProvider", "unsavedWarningsConfig // Angular-xeditable (click-to-edit elements, used in admin backoffice) editableOptions.theme = 'bs3'; - // Alter the UI-Router's $state, registering into some informations concerning the previous $state. + // Alter the UI-Router's $state, registering into some information concerning the previous $state. // This is used to allow the user to navigate to the previous state $rootScope.$on('$stateChangeSuccess', function(event, toState, toParams, fromState, fromParams){ $state.prevState = fromState; diff --git a/app/assets/javascripts/controllers/admin/graphs.coffee b/app/assets/javascripts/controllers/admin/graphs.coffee index 4e24d1318..b800ab1f9 100644 --- a/app/assets/javascripts/controllers/admin/graphs.coffee +++ b/app/assets/javascripts/controllers/admin/graphs.coffee @@ -217,7 +217,7 @@ Application.Controllers.controller "GraphsController", ["$scope", "$state", "$ro for it_st in [0.. cur_type.subtypes.length-1] by 1 # when we've found it, iterate over its subtypes ... cur_subtype = cur_type.subtypes[it_st] if subgroup.key == cur_subtype.key # ... which match $SUBTYPE - # then we construct NVD3 dataSource according to these informations + # then we construct NVD3 dataSource according to these information dataSource = values: [] key: cur_subtype.label diff --git a/app/assets/javascripts/controllers/admin/invoices.coffee.erb b/app/assets/javascripts/controllers/admin/invoices.coffee.erb index 044e8fd05..b87bb6c83 100644 --- a/app/assets/javascripts/controllers/admin/invoices.coffee.erb +++ b/app/assets/javascripts/controllers/admin/invoices.coffee.erb @@ -125,7 +125,7 @@ Application.Controllers.controller "InvoicesController", ["$scope", "$state", 'I sample = sample.replace(/y+(?![^\[]*])/g, (match, offset, string) -> padWithZeros(8, match.length) ) - # date informations + # date information sample = sample.replace(/[YMD]+(?![^\[]*])/g, (match, offset, string) -> $scope.today.format(match) ) @@ -163,7 +163,7 @@ Application.Controllers.controller "InvoicesController", ["$scope", "$state", 'I sample = sample.replace(/d+(?![^\[]*])/g, (match, offset, string) -> padWithZeros(2, match.length) ) - # date informations + # date information sample = sample.replace(/[YMD]+(?![^\[]*])/g, (match, offset, string) -> $scope.today.format(match) ) @@ -334,7 +334,7 @@ Application.Controllers.controller "InvoicesController", ["$scope", "$state", 'I ## - # Callback to save the value of the legal informations zone when editing is done + # Callback to save the value of the legal information zone when editing is done ## $scope.legalsEditEnd = (event) -> parsed = parseHtml($scope.invoice.legals.content) diff --git a/app/assets/javascripts/controllers/machines.coffee.erb b/app/assets/javascripts/controllers/machines.coffee.erb index 1144abe3f..775dd441a 100644 --- a/app/assets/javascripts/controllers/machines.coffee.erb +++ b/app/assets/javascripts/controllers/machines.coffee.erb @@ -303,7 +303,7 @@ Application.Controllers.controller "ReserveMachineController", ["$scope", "$stat ## fullCalendar event. An already booked slot that the user want to modify $scope.slotToModify = null - ## indicates the state of the current view : calendar or plans informations + ## indicates the state of the current view : calendar or plans information $scope.plansAreShown = false ## will store the user's plan if he choosed to buy one diff --git a/app/assets/javascripts/controllers/members.coffee b/app/assets/javascripts/controllers/members.coffee index 440cf5e43..f71b8292c 100644 --- a/app/assets/javascripts/controllers/members.coffee +++ b/app/assets/javascripts/controllers/members.coffee @@ -14,10 +14,10 @@ Application.Controllers.controller "MembersController", ["$scope", 'Member', 'me ### PUBLIC SCOPE ### - + ## currently displayed page of members $scope.page = 1 - + ## members list $scope.members = membersPromise @@ -31,12 +31,12 @@ Application.Controllers.controller "MembersController", ["$scope", 'Member', 'me $scope.showNextMembers = -> $scope.page += 1 Member.query { - requested_attributes:'[profile]', - page: $scope.page, + requested_attributes:'[profile]', + page: $scope.page, size: MEMBERS_PER_PAGE }, (members) -> $scope.members = $scope.members.concat(members) - + if (!members[0] || members[0].maxMembers <= $scope.members.length) $scope.noMoreResults = true @@ -260,7 +260,7 @@ Application.Controllers.controller "EditProfileController", ["$scope", "$rootSco ## Application.Controllers.controller "ShowProfileController", ["$scope", 'memberPromise', 'SocialNetworks', ($scope, memberPromise, SocialNetworks) -> - ## Selected user's informations + ## Selected user's information $scope.user = memberPromise # DEPENDENCY WITH NAVINUM GAMIFICATION PLUGIN !!!! ## List of social networks associated with this user and toggle 'show all' state diff --git a/app/assets/javascripts/controllers/profile.coffee b/app/assets/javascripts/controllers/profile.coffee index c95848ef6..f2f542b31 100644 --- a/app/assets/javascripts/controllers/profile.coffee +++ b/app/assets/javascripts/controllers/profile.coffee @@ -20,13 +20,13 @@ Application.Controllers.controller "CompleteProfileController", ["$scope", "$roo ## name of the current fablab application (eg. "Fablab de la Casemate") $scope.fablabName = settingsPromise.fablab_name - ## informations from the current SSO provider + ## information from the current SSO provider $scope.activeProvider = activeProviderPromise ## list of user's groups (student/standard/...) $scope.groups = groupsPromise - ## current user, contains informations retrieved from the SSO + ## current user, contains information retrieved from the SSO $scope.user = memberPromise ## disallow the user to change his password as he connect from SSO @@ -177,4 +177,4 @@ Application.Controllers.controller "CompleteProfileController", ["$scope", "$roo ## !!! MUST BE CALLED AT THE END of the controller initialize() -] \ No newline at end of file +] diff --git a/app/assets/javascripts/controllers/trainings.coffee.erb b/app/assets/javascripts/controllers/trainings.coffee.erb index d4377c9ab..2c6cdfa39 100644 --- a/app/assets/javascripts/controllers/trainings.coffee.erb +++ b/app/assets/javascripts/controllers/trainings.coffee.erb @@ -109,7 +109,7 @@ Application.Controllers.controller "ReserveTrainingController", ["$scope", "$sta groupObj.plans.push(plan) if plan.group_id == group.id $scope.plansClassifiedByGroup.push(groupObj) - ## indicates the state of the current view : calendar or plans informations + ## indicates the state of the current view : calendar or plans information $scope.plansAreShown = false ## indicates if the selected training was validated (ie. added to the shopping cart) diff --git a/app/assets/templates/admin/plans/_form.html.erb b/app/assets/templates/admin/plans/_form.html.erb index 03d38582d..f68eced4c 100644 --- a/app/assets/templates/admin/plans/_form.html.erb +++ b/app/assets/templates/admin/plans/_form.html.erb @@ -1,4 +1,4 @@ -