1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-29 18:52:22 +01:00

finally succeed to generate fixtures from db

This commit is contained in:
Nicolas Florentin 2016-04-05 12:05:40 +02:00
parent a2c09a3ff2
commit dd6ecaa1cd
57 changed files with 3151 additions and 12 deletions

View File

@ -9,7 +9,8 @@ ActiveRecord::Base.class_eval do
def self.dump_fixtures
fixture_file = "#{Rails.root}/test/fixtures/#{self.table_name}.yml"
File.open(fixture_file, "w") do |f|
mode = (File.exists?(fixture_file) ? 'a' : 'w')
File.open(fixture_file, mode) do |f|
self.all.each do |instance|
f.puts({ "#{self.table_name.singularize}_#{instance.id}" => instance.attributes }.to_yaml.sub!(/---\s?/, "\n"))
end

View File

@ -181,7 +181,7 @@ namespace :fablab do
desc "generate fixtures from db"
task generate_fixtures: :environment do
Rails.application.eager_load!
ActiveRecord::Base.descendants.reject { |c| c == ActiveRecord::SchemaMigration }.each do |ar_base|
ActiveRecord::Base.descendants.reject { |c| c == ActiveRecord::SchemaMigration or c == PartnerPlan }.each do |ar_base|
p "========== #{ar_base} =============="
ar_base.dump_fixtures
end

0
test/fixtures/abuses.yml vendored Normal file
View File

52
test/fixtures/addresses.yml vendored Normal file
View File

@ -0,0 +1,52 @@
address_1:
id: 1
address: 14 rue Brecourt, Annecy
street_number:
route:
locality:
country:
postal_code:
placeable_id: 2
placeable_type: Profile
created_at: 2016-04-04 15:06:22.166469000 Z
updated_at: 2016-04-04 15:06:22.166469000 Z
address_2:
id: 2
address: 23 cours Berriat, Grenoble
street_number:
route:
locality:
country:
postal_code:
placeable_id: 4
placeable_type: Profile
created_at: 2016-04-04 15:10:42.353039000 Z
updated_at: 2016-04-04 15:10:42.353039000 Z
address_3:
id: 3
address: 36 chemin des puits, Mousson-sur-Luire
street_number:
route:
locality:
country:
postal_code:
placeable_id: 5
placeable_type: Profile
created_at: 2016-04-04 15:14:08.579603000 Z
updated_at: 2016-04-04 15:14:08.579603000 Z
address_4:
id: 4
address: ''
street_number:
route:
locality:
country:
postal_code:
placeable_id: 3
placeable_type: Profile
created_at: 2016-04-05 08:35:18.597812000 Z
updated_at: 2016-04-05 08:35:18.597812000 Z

126
test/fixtures/assets.yml vendored Normal file
View File

@ -0,0 +1,126 @@
asset_1:
id: 1
viewable_id: 2
viewable_type: Profile
attachment: user_avatar.jpg
type: UserAvatar
created_at: 2016-04-04 15:06:22.151882000 Z
updated_at: 2016-04-04 15:06:22.151882000 Z
asset_2:
id: 2
viewable_id: 5
viewable_type: Profile
attachment: user_avatar.jpg
type: UserAvatar
created_at: 2016-04-04 15:31:14.607327000 Z
updated_at: 2016-04-04 15:31:14.607327000 Z
asset_3:
id: 3
viewable_id: 1
viewable_type: Project
attachment: project_image.jpg
type: ProjectImage
created_at: 2016-04-04 15:39:08.230159000 Z
updated_at: 2016-04-04 15:39:08.230159000 Z
asset_4:
id: 4
viewable_id: 1
viewable_type: Event
attachment: event_image.jpg
type: EventImage
created_at: 2016-04-04 15:44:02.242194000 Z
updated_at: 2016-04-04 15:44:02.242194000 Z
asset_5:
id: 5
viewable_id: 2
viewable_type: Event
attachment: event_image.jpg
type: EventImage
created_at: 2016-04-04 15:44:03.164384000 Z
updated_at: 2016-04-04 15:44:03.164384000 Z
asset_6:
id: 6
viewable_id: 3
viewable_type: Event
attachment: event_image.jpg
type: EventImage
created_at: 2016-04-04 15:44:04.031482000 Z
updated_at: 2016-04-04 15:44:04.031482000 Z
asset_7:
id: 7
viewable_id: 3
viewable_type: Profile
attachment: user_avatar.jpg
type: UserAvatar
created_at: 2016-04-05 08:35:18.585573000 Z
updated_at: 2016-04-05 08:35:18.585573000 Z
asset_4:
id: 4
viewable_id: 1
viewable_type: Event
attachment: event_image.jpg
type: EventImage
created_at: 2016-04-04 15:44:02.242194000 Z
updated_at: 2016-04-04 15:44:02.242194000 Z
asset_5:
id: 5
viewable_id: 2
viewable_type: Event
attachment: event_image.jpg
type: EventImage
created_at: 2016-04-04 15:44:03.164384000 Z
updated_at: 2016-04-04 15:44:03.164384000 Z
asset_6:
id: 6
viewable_id: 3
viewable_type: Event
attachment: event_image.jpg
type: EventImage
created_at: 2016-04-04 15:44:04.031482000 Z
updated_at: 2016-04-04 15:44:04.031482000 Z
asset_3:
id: 3
viewable_id: 1
viewable_type: Project
attachment: project_image.jpg
type: ProjectImage
created_at: 2016-04-04 15:39:08.230159000 Z
updated_at: 2016-04-04 15:39:08.230159000 Z
asset_1:
id: 1
viewable_id: 2
viewable_type: Profile
attachment: user_avatar.jpg
type: UserAvatar
created_at: 2016-04-04 15:06:22.151882000 Z
updated_at: 2016-04-04 15:06:22.151882000 Z
asset_2:
id: 2
viewable_id: 5
viewable_type: Profile
attachment: user_avatar.jpg
type: UserAvatar
created_at: 2016-04-04 15:31:14.607327000 Z
updated_at: 2016-04-04 15:31:14.607327000 Z
asset_7:
id: 7
viewable_id: 3
viewable_type: Profile
attachment: user_avatar.jpg
type: UserAvatar
created_at: 2016-04-05 08:35:18.585573000 Z
updated_at: 2016-04-05 08:35:18.585573000 Z

9
test/fixtures/auth_providers.yml vendored Normal file
View File

@ -0,0 +1,9 @@
auth_provider_1:
id: 1
name: Fablab
status: active
created_at: 2016-04-04 14:11:34.743728000 Z
updated_at: 2016-04-04 14:11:34.743728000 Z
providable_type: DatabaseProvider
providable_id: 1

View File

@ -1,11 +1,110 @@
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
# This model initially had no columns defined. If you add columns to the
# model remove the '{}' from the fixture names and add the columns immediately
# below each fixture, per the syntax in the comments below
#
one: {}
# column: value
#
two: {}
# column: value
availability_1:
id: 1
start_at: 2016-04-11 06:00:00.000000000 Z
end_at: 2016-04-11 10:00:00.000000000 Z
available_type: training
created_at: 2016-04-04 15:24:01.517486000 Z
updated_at: 2016-04-04 15:24:01.517486000 Z
nb_total_places:
destroying: false
availability_2:
id: 2
start_at: 2016-04-12 06:00:00.000000000 Z
end_at: 2016-04-12 10:00:00.000000000 Z
available_type: training
created_at: 2016-04-04 15:24:09.169364000 Z
updated_at: 2016-04-04 15:24:09.169364000 Z
nb_total_places:
destroying: false
availability_3:
id: 3
start_at: 2016-04-11 12:00:00.000000000 Z
end_at: 2016-04-11 18:00:00.000000000 Z
available_type: machines
created_at: 2016-04-04 15:24:27.587583000 Z
updated_at: 2016-04-04 15:24:27.587583000 Z
nb_total_places:
destroying: false
availability_4:
id: 4
start_at: 2016-04-12 12:00:00.000000000 Z
end_at: 2016-04-12 18:00:00.000000000 Z
available_type: machines
created_at: 2016-04-04 15:24:44.044908000 Z
updated_at: 2016-04-04 15:24:44.044908000 Z
nb_total_places:
destroying: false
availability_5:
id: 5
start_at: 2016-04-13 12:00:00.000000000 Z
end_at: 2016-04-13 18:00:00.000000000 Z
available_type: machines
created_at: 2016-04-04 15:25:48.584444000 Z
updated_at: 2016-04-04 15:25:48.584444000 Z
nb_total_places:
destroying: false
availability_6:
id: 6
start_at: 2016-04-14 12:00:00.000000000 Z
end_at: 2016-04-14 18:00:00.000000000 Z
available_type: machines
created_at: 2016-04-04 15:26:17.953216000 Z
updated_at: 2016-04-04 15:26:17.953216000 Z
nb_total_places:
destroying: false
availability_7:
id: 7
start_at: 2016-04-14 12:00:00.000000000 Z
end_at: 2016-04-14 18:00:00.000000000 Z
available_type: machines
created_at: 2016-04-04 15:26:39.278627000 Z
updated_at: 2016-04-04 15:26:39.278627000 Z
nb_total_places:
destroying: false
availability_8:
id: 8
start_at: 2016-04-13 06:00:00.000000000 Z
end_at: 2016-04-13 10:00:00.000000000 Z
available_type: training
created_at: 2016-04-04 15:26:49.572724000 Z
updated_at: 2016-04-04 15:26:49.572724000 Z
nb_total_places:
destroying: false
availability_9:
id: 9
start_at: 2016-04-18 16:00:28.000000000 Z
end_at: 2016-04-18 20:00:28.000000000 Z
available_type: event
created_at: 2016-04-04 15:44:02.228661000 Z
updated_at: 2016-04-04 15:44:02.228661000 Z
nb_total_places:
destroying: false
availability_10:
id: 10
start_at: 2016-05-18 16:00:28.000000000 Z
end_at: 2016-05-18 20:00:28.000000000 Z
available_type: event
created_at: 2016-04-04 15:44:03.156629000 Z
updated_at: 2016-04-04 15:44:03.156629000 Z
nb_total_places:
destroying: false
availability_11:
id: 11
start_at: 2016-06-18 16:00:28.000000000 Z
end_at: 2016-06-18 20:00:28.000000000 Z
available_type: event
created_at: 2016-04-04 15:44:04.023557000 Z
updated_at: 2016-04-04 15:44:04.023557000 Z
nb_total_places:
destroying: false

21
test/fixtures/availability_tags.yml vendored Normal file
View File

@ -0,0 +1,21 @@
availability_tag_1:
id: 1
availability_id: 5
tag_id: 2
created_at: 2016-04-04 15:25:48.587799000 Z
updated_at: 2016-04-04 15:25:48.587799000 Z
availability_tag_2:
id: 2
availability_id: 6
tag_id: 1
created_at: 2016-04-04 15:26:17.957014000 Z
updated_at: 2016-04-04 15:26:17.957014000 Z
availability_tag_3:
id: 3
availability_id: 8
tag_id: 2
created_at: 2016-04-04 15:26:49.576178000 Z
updated_at: 2016-04-04 15:26:49.576178000 Z

12
test/fixtures/categories.yml vendored Normal file
View File

@ -0,0 +1,12 @@
category_1:
id: 1
name: Stage
created_at: 2016-04-04 14:11:34.544995000 Z
updated_at: 2016-04-04 14:11:34.544995000 Z
category_2:
id: 2
name: Atelier
created_at: 2016-04-04 14:11:34.547621000 Z
updated_at: 2016-04-04 14:11:34.547621000 Z

40
test/fixtures/components.yml vendored Normal file
View File

@ -0,0 +1,40 @@
component_1:
id: 1
name: Silicone
component_2:
id: 2
name: Vinyle
component_3:
id: 3
name: Bois Contre plaqué
component_4:
id: 4
name: Bois Medium
component_5:
id: 5
name: Plexi / PMMA
component_6:
id: 6
name: Flex
component_7:
id: 7
name: Vinyle
component_8:
id: 8
name: Parafine
component_9:
id: 9
name: Fibre de verre
component_10:
id: 10
name: Résine

99
test/fixtures/credits.yml vendored Normal file
View File

@ -0,0 +1,99 @@
credit_1:
id: 1
creditable_id: 2
creditable_type: Training
plan_id: 1
hours:
created_at: 2016-04-04 15:19:28.414019000 Z
updated_at: 2016-04-04 15:19:28.414019000 Z
credit_2:
id: 2
creditable_id: 3
creditable_type: Training
plan_id: 1
hours:
created_at: 2016-04-04 15:19:28.449511000 Z
updated_at: 2016-04-04 15:19:28.449511000 Z
credit_3:
id: 3
creditable_id: 1
creditable_type: Training
plan_id: 1
hours:
created_at: 2016-04-04 15:19:28.495141000 Z
updated_at: 2016-04-04 15:19:28.495141000 Z
credit_5:
id: 5
creditable_id: 2
creditable_type: Training
plan_id: 2
hours:
created_at: 2016-04-04 15:19:39.416054000 Z
updated_at: 2016-04-04 15:19:39.416054000 Z
credit_7:
id: 7
creditable_id: 4
creditable_type: Training
plan_id: 2
hours:
created_at: 2016-04-04 15:19:39.486949000 Z
updated_at: 2016-04-04 15:19:39.486949000 Z
credit_8:
id: 8
creditable_id: 1
creditable_type: Training
plan_id: 2
hours:
created_at: 2016-04-04 15:19:39.521993000 Z
updated_at: 2016-04-04 15:19:39.521993000 Z
credit_9:
id: 9
creditable_id: 3
creditable_type: Training
plan_id: 2
hours:
created_at: 2016-04-04 15:19:39.553519000 Z
updated_at: 2016-04-04 15:19:39.553519000 Z
credit_10:
id: 10
creditable_id: 2
creditable_type: Training
plan_id: 3
hours:
created_at: 2016-04-04 15:21:35.437032000 Z
updated_at: 2016-04-04 15:21:35.437032000 Z
credit_11:
id: 11
creditable_id: 1
creditable_type: Training
plan_id: 3
hours:
created_at: 2016-04-04 15:21:35.470423000 Z
updated_at: 2016-04-04 15:21:35.470423000 Z
credit_12:
id: 12
creditable_id: 3
creditable_type: Training
plan_id: 3
hours:
created_at: 2016-04-04 15:21:35.547043000 Z
updated_at: 2016-04-04 15:21:35.547043000 Z
credit_13:
id: 13
creditable_id: 4
creditable_type: Machine
plan_id: 2
hours: 1
created_at: 2016-04-04 15:21:57.547939000 Z
updated_at: 2016-04-04 15:21:57.547939000 Z

0
test/fixtures/custom_assets.yml vendored Normal file
View File

5
test/fixtures/database_providers.yml vendored Normal file
View File

@ -0,0 +1,5 @@
database_provider_1:
id: 1
created_at: 2016-04-04 14:11:34.737301000 Z
updated_at: 2016-04-04 14:11:34.737301000 Z

42
test/fixtures/events.yml vendored Normal file
View File

@ -0,0 +1,42 @@
event_2:
id: 2
title: Skateboard DIY
description: "Apprenez à fabriquer vous-même votre skateboard :\r\n- impression
3D des roulettes\r\n- découpe moulage et décoration de la planche\r\n- assemblage"
created_at: 2016-04-04 15:44:03.161942000 Z
updated_at: 2016-04-04 15:44:03.161942000 Z
availability_id: 10
amount: 2000
reduced_amount: 1500
nb_total_places: 10
nb_free_places: 10
recurrence_id: 1
event_3:
id: 3
title: Skateboard DIY
description: "Apprenez à fabriquer vous-même votre skateboard :\r\n- impression
3D des roulettes\r\n- découpe moulage et décoration de la planche\r\n- assemblage"
created_at: 2016-04-04 15:44:04.028290000 Z
updated_at: 2016-04-04 15:44:04.028290000 Z
availability_id: 11
amount: 2000
reduced_amount: 1500
nb_total_places: 10
nb_free_places: 10
recurrence_id: 1
event_1:
id: 1
title: Skateboard DIY
description: "Apprenez à fabriquer vous-même votre skateboard :\r\n- impression
3D des roulettes\r\n- découpe moulage et décoration de la planche\r\n- assemblage"
created_at: 2016-04-04 15:44:02.236165000 Z
updated_at: 2016-04-04 15:44:02.236165000 Z
availability_id: 9
amount: 2000
reduced_amount: 1500
nb_total_places: 10
nb_free_places: 10
recurrence_id: 1

84
test/fixtures/events_categories.yml vendored Normal file
View File

@ -0,0 +1,84 @@
events_category_1:
id: 1
event_id: 1
category_id: 2
created_at: 2016-04-04 15:44:02.258622000 Z
updated_at: 2016-04-04 15:44:02.258622000 Z
events_category_2:
id: 2
event_id: 2
category_id: 2
created_at: 2016-04-04 15:44:03.173253000 Z
updated_at: 2016-04-04 15:44:03.173253000 Z
events_category_3:
id: 3
event_id: 2
category_id: 2
created_at: 2016-04-04 15:44:03.177952000 Z
updated_at: 2016-04-04 15:44:03.177952000 Z
events_category_4:
id: 4
event_id: 3
category_id: 2
created_at: 2016-04-04 15:44:04.041364000 Z
updated_at: 2016-04-04 15:44:04.041364000 Z
events_category_5:
id: 5
event_id: 3
category_id: 2
created_at: 2016-04-04 15:44:04.044667000 Z
updated_at: 2016-04-04 15:44:04.044667000 Z
events_category_6:
id: 6
event_id: 1
category_id: 2
created_at: 2016-04-04 15:44:04.049543000 Z
updated_at: 2016-04-04 15:44:04.049543000 Z
events_category_1:
id: 1
event_id: 1
category_id: 2
created_at: 2016-04-04 15:44:02.258622000 Z
updated_at: 2016-04-04 15:44:02.258622000 Z
events_category_2:
id: 2
event_id: 2
category_id: 2
created_at: 2016-04-04 15:44:03.173253000 Z
updated_at: 2016-04-04 15:44:03.173253000 Z
events_category_3:
id: 3
event_id: 2
category_id: 2
created_at: 2016-04-04 15:44:03.177952000 Z
updated_at: 2016-04-04 15:44:03.177952000 Z
events_category_4:
id: 4
event_id: 3
category_id: 2
created_at: 2016-04-04 15:44:04.041364000 Z
updated_at: 2016-04-04 15:44:04.041364000 Z
events_category_5:
id: 5
event_id: 3
category_id: 2
created_at: 2016-04-04 15:44:04.044667000 Z
updated_at: 2016-04-04 15:44:04.044667000 Z
events_category_6:
id: 6
event_id: 1
category_id: 2
created_at: 2016-04-04 15:44:04.049543000 Z
updated_at: 2016-04-04 15:44:04.049543000 Z

14
test/fixtures/groups.yml vendored Normal file
View File

@ -0,0 +1,14 @@
group_1:
id: 1
name: standard, association
created_at: 2016-04-04 14:11:33.612700000 Z
updated_at: 2016-04-04 14:11:33.612700000 Z
slug: standard
group_2:
id: 2
name: étudiant, - de 25 ans, enseignant, demandeur d'emploi
created_at: 2016-04-04 14:11:33.656537000 Z
updated_at: 2016-04-04 14:11:33.656537000 Z
slug: student

23
test/fixtures/invoice_items.yml vendored Normal file
View File

@ -0,0 +1,23 @@
invoice_item_1:
id: 1
invoice_id: 1
stp_invoice_item_id: sub_8DGB4ErIc2asOv
amount: 10000
created_at: 2016-04-05 08:35:52.934725000 Z
updated_at: 2016-04-05 08:35:52.934725000 Z
description: Sleede - standard, association - month
subscription_id: 1
invoice_item_id:
invoice_item_2:
id: 2
invoice_id: 2
stp_invoice_item_id:
amount: 2000
created_at: 2016-04-05 08:36:46.856021000 Z
updated_at: 2016-04-05 08:36:46.856021000 Z
description: Mensuel tarif réduit - étudiant, - de 25 ans, enseignant, demandeur
d'emploi - month
subscription_id: 2
invoice_item_id:

34
test/fixtures/invoices.yml vendored Normal file
View File

@ -0,0 +1,34 @@
invoice_1:
id: 1
invoiced_id: 1
invoiced_type: Subscription
stp_invoice_id: in_17wpf92sOmf47Nz9itj6vmJw
total: 10000
created_at: 2016-04-05 08:35:52.931187000 Z
updated_at: 2016-04-05 08:35:52.931187000 Z
user_id: 3
reference: 1604001/VL
avoir_mode:
avoir_date:
invoice_id:
type:
subscription_to_expire:
description:
invoice_2:
id: 2
invoiced_id: 2
invoiced_type: Subscription
stp_invoice_id:
total: 2000
created_at: 2016-04-05 08:36:46.853368000 Z
updated_at: 2016-04-05 08:36:46.853368000 Z
user_id: 4
reference: '1604002'
avoir_mode:
avoir_date:
invoice_id:
type:
subscription_to_expire:
description:

47
test/fixtures/licences.yml vendored Normal file
View File

@ -0,0 +1,47 @@
licence_1:
id: 1
name: Attribution (BY)
description: Le titulaire des droits autorise toute exploitation de lœuvre, y compris
à des fins commerciales, ainsi que la création dœuvres dérivées, dont la distribution
est également autorisé sans restriction, à condition de lattribuer à son lauteur
en citant son nom. Cette licence est recommandée pour la diffusion et lutilisation
maximale des œuvres.
licence_2:
id: 2
name: Attribution + Pas de modification (BY ND)
description: Le titulaire des droits autorise toute utilisation de lœuvre originale
(y compris à des fins commerciales), mais nautorise pas la création dœuvres
dérivées.
licence_3:
id: 3
name: Attribution + Pas d'Utilisation Commerciale + Pas de Modification (BY NC ND)
description: Le titulaire des droits autorise lutilisation de lœuvre originale
à des fins non commerciales, mais nautorise pas la création dœuvres dérivés.
licence_4:
id: 4
name: Attribution + Pas d'Utilisation Commerciale (BY NC)
description: Le titulaire des droits autorise lexploitation de lœuvre, ainsi que
la création dœuvres dérivées, à condition quil ne sagisse pas dune utilisation
commerciale (les utilisations commerciales restant soumises à son autorisation).
licence_5:
id: 5
name: Attribution + Pas d'Utilisation Commerciale + Partage dans les mêmes conditions
(BY NC SA)
description: Le titulaire des droits autorise lexploitation de lœuvre originale
à des fins non commerciales, ainsi que la création dœuvres dérivées, à condition
quelles soient distribuées sous une licence identique à celle qui régit lœuvre
originale.
licence_6:
id: 6
name: Attribution + Partage dans les mêmes conditions (BY SA)
description: Le titulaire des droits autorise toute utilisation de lœuvre originale
(y compris à des fins commerciales) ainsi que la création dœuvres dérivées, à
condition quelles soient distribuées sous une licence identique à celle qui régit
lœuvre originale. Cette licence est souvent comparée aux licences « copyleft
» des logiciels libres. Cest la licence utilisée par Wikipedia.

125
test/fixtures/machines.yml vendored Normal file
View File

@ -0,0 +1,125 @@
machine_1:
id: 1
name: Découpeuse laser
description: "Préparation à l'utilisation de l'EPILOG Legend 36EXT\r\nInformations
générales \r\n Pour la découpe, il suffit d'apporter votre fichier vectorisé
type illustrator, svg ou dxf avec des \"lignes de coupe\" d'une épaisseur inférieur
à 0,01 mm et la machine s'occupera du reste!\r\n La gravure est basée sur
le spectre noir et blanc. Les nuances sont obtenues par différentes profondeurs
de gravure correspondant aux niveaux de gris de votre image. Il suffit pour cela
d'apporter une image scannée ou un fichier photo en noir et blanc pour pouvoir
reproduire celle-ci sur votre support! \r\nQuels types de matériaux pouvons nous
graver/découper?\r\n Du bois au tissu, du plexiglass au cuir, cette machine
permet de découper et graver la plupart des matériaux sauf les métaux. La gravure
est néanmoins possible sur les métaux recouverts d'une couche de peinture ou les
aluminiums anodisés. \r\n Concernant l'épaisseur des matériaux découpés,
il est préférable de ne pas dépasser 5 mm pour le bois et 6 mm pour le plexiglass.\r\n"
spec: "Puissance: 40W\r\nSurface de travail: 914x609 mm \r\nEpaisseur maximale de
la matière: 305mm\r\nSource laser: tube laser type CO2\r\nContrôles de vitesse
et de puissance: ces deux paramètres sont ajustables en fonction du matériau (de
1% à 100%) .\r\n"
created_at: 2016-04-04 14:11:34.210242000 Z
updated_at: 2016-04-04 14:11:34.210242000 Z
slug: decoupeuse-laser
machine_2:
id: 2
name: Découpeuse vinyle
description: "Préparation à l'utilisation de la Roland CAMM-1 GX24\r\nInformations
générales \r\n Envie de réaliser un tee shirt personnalisé ? Un sticker
à l'effigie votre groupe préféré? Un masque pour la réalisation d'un circuit imprimé?
Pour cela, il suffit simplement de venir avec votre fichier vectorisé (ne pas
oublier de vectoriser les textes) type illustrator svg ou dxf.\r\n \r\nMatériaux
utilisés:\r\n Cette machine permet de découper principalement du vinyle,vinyle
réfléchissant, flex.\r\n"
spec: "Largeurs de support acceptées: de 50 mm à 700 mm\r\nVitesse de découpe: 50
cm/sec\r\nRésolution mécanique: 0,0125 mm/pas\r\n"
created_at: 2016-04-04 14:11:34.274025000 Z
updated_at: 2016-04-04 14:11:34.274025000 Z
slug: decoupeuse-vinyle
machine_3:
id: 3
name: Shopbot / Grande fraiseuse
description: "La fraiseuse numérique ShopBot PRS standard\r\nInformations générales\r\nCette
machine est un fraiseuse 3 axes idéale pour l'usinage de pièces de grandes dimensions.
De la réalisation d'une chaise ou d'un meuble jusqu'à la construction d'une maison
ou d'un assemblage immense, le ShopBot ouvre de nombreuses portes à votre imagination!
\r\nMatériaux usinables\r\nLes principaux matériaux usinables sont le bois, le
plastique, le laiton et bien d'autres.\r\nCette machine n'usine pas les métaux.\r\n"
spec: "Surface maximale de travail: 2440x1220x150 (Z) mm\r\nLogiciel utilisé: Partworks
2D & 3D\r\nRésolution mécanique: 0,015 mm\r\nPrécision de la position: +/- 0,127mm\r\nFormats
acceptés: DXF, STL \r\n"
created_at: 2016-04-04 14:11:34.304247000 Z
updated_at: 2016-04-04 14:11:34.304247000 Z
slug: shopbot-grande-fraiseuse
machine_4:
id: 4
name: Imprimante 3D
description: "L'utimaker est une imprimante 3D low cost utilisant une technologie
FFF (Fused Filament Fabrication) avec extrusion thermoplastique.\r\nC'est une
machine idéale pour réaliser rapidement des prototypes 3D dans des couleurs différentes.\r\n"
spec: "Surface maximale de travail: 210x210x220mm \r\nRésolution méchanique: 0,02
mm \r\nPrécision de position: +/- 0,05 \r\nLogiciel utilisé: Cura\r\nFormats de
fichier acceptés: STL \r\nMatériaux utilisés: PLA (en stock)."
created_at: 2016-04-04 14:11:34.341810000 Z
updated_at: 2016-04-04 14:11:34.341810000 Z
slug: imprimante-3d
machine_5:
id: 5
name: Petite Fraiseuse
description: "La fraiseuse numérique Roland Modela MDX-20\r\nInformations générales\r\nCette
machine est utilisée pour l'usinage et le scannage 3D de précision. Elle permet
principalement d'usiner des circuits imprimés et des moules de petite taille.
Le faible diamètre des fraises utilisées (Ø 0,3 mm à Ø 6mm) induit que certains
temps d'usinages peuvent êtres long (> 12h), c'est pourquoi cette fraiseuse peut
être laissée en autonomie toute une nuit afin d'obtenir le plus précis des usinages
au FabLab.\r\nMatériaux usinables:\r\nLes principaux matériaux usinables sont
le bois, plâtre, résine, cire usinable, cuivre.\r\n"
spec: "Taille du plateau X/Y : 220 mm x 160 mm\r\nVolume maximal de travail: 203,2
mm (X), 152,4 mm (Y), 60,5 mm (Z)\r\nPrécision usinage: 0,00625 mm\r\nPrécision
scannage: réglable de 0,05 à 5 mm (axes X,Y) et 0,025 mm (axe Z)\r\nVitesse d'analyse
(scannage): 4-15 mm/sec\r\n \r\n \r\nLogiciel utilisé pour le fraisage: Roland
Modela player 4 \r\nLogiciel utilisé pour l'usinage de circuits imprimés: Cad.py
(linux)\r\nFormats acceptés: STL,PNG 3D\r\nFormat d'exportation des données scannées:
DXF, VRML, STL, 3DMF, IGES, Grayscale, Point Group et BMP\r\n"
created_at: 2016-04-04 14:11:34.379481000 Z
updated_at: 2016-04-04 14:11:34.379481000 Z
slug: petite-fraiseuse
machine_6:
id: 6
name: FORM1+ imprimante 3D
description: |-
Form 1+, imprimante 3D stéréolithographie.
La photopolymérisation est le premier procédé de prototypage rapide à avoir été développé dans les années 1980. Le nom de SLA (pour StereoLithography Apparatus) lui a été donné. Il repose sur les propriétés qu'ont certaines résines à se polymériser sous l'effet de la lumière et de la chaleur. (Source : <a href="http://fr.wikipedia.org/wiki/St%C3%A9r%C3%A9olithographie" target="_blank"> wikipédia</a>)
<i>Possibilité d'utiliser 3 résines de couleurs différentes au Lab : noir, blanc et translucide.</i>
<a href="http://formlabs.com/fr/products/materials/standard/" Title="http://formlabs.com/fr/products/materials/standard/" target="_blank">Plus d'infos sur le site web de Formlab</a>
spec: |-
Imprimante :
- Dimensions : 30 × 28 × 45 cm
- Poids : 8 kg
- Température d'utilisation : 1828° C
- Alimentation : 100240 V ; 1.5 A 50/60 Hz ; 60 W.
Caractéristiques du laser :
- EN 60825-1:2007 certifié
- Class 1 Laser Product
- 405nm violet laser
Propriétés d'impression :
- Technologie stéréolithographie (SLA)
- Volume d'impression : 125 × 125 × 165 mm
- Dimension minimale : 300 microns
- Épaisseur des couches (Résolution verticale) : 25, 50, 100 microns
- Ressources Générées automatiquement
- Facilement amovible
created_at: 2016-04-04 14:11:34.424740000 Z
updated_at: 2016-04-04 14:11:34.424740000 Z
slug: form1-imprimante-3d

View File

@ -0,0 +1,85 @@
machines_availability_1:
id: 1
machine_id: 1
availability_id: 3
machines_availability_2:
id: 2
machine_id: 2
availability_id: 3
machines_availability_3:
id: 3
machine_id: 4
availability_id: 3
machines_availability_4:
id: 4
machine_id: 6
availability_id: 3
machines_availability_5:
id: 5
machine_id: 5
availability_id: 3
machines_availability_6:
id: 6
machine_id: 1
availability_id: 4
machines_availability_7:
id: 7
machine_id: 2
availability_id: 4
machines_availability_8:
id: 8
machine_id: 4
availability_id: 4
machines_availability_9:
id: 9
machine_id: 5
availability_id: 4
machines_availability_10:
id: 10
machine_id: 6
availability_id: 4
machines_availability_11:
id: 11
machine_id: 3
availability_id: 5
machines_availability_12:
id: 12
machine_id: 3
availability_id: 6
machines_availability_13:
id: 13
machine_id: 1
availability_id: 7
machines_availability_14:
id: 14
machine_id: 2
availability_id: 7
machines_availability_15:
id: 15
machine_id: 4
availability_id: 7
machines_availability_16:
id: 16
machine_id: 5
availability_id: 7
machines_availability_17:
id: 17
machine_id: 6
availability_id: 7

182
test/fixtures/notifications.yml vendored Normal file
View File

@ -0,0 +1,182 @@
notification_7:
id: 7
receiver_id: 1
attached_object_id: 1
attached_object_type: Project
notification_type_id: 1
is_read: false
created_at: 2016-04-04 15:39:08.273215000 Z
updated_at: 2016-04-04 15:39:08.273215000 Z
receiver_type: User
is_send: true
meta_data: {}
notification_1:
id: 1
receiver_id: 1
attached_object_id: 1
attached_object_type: User
notification_type_id: 11
is_read: true
created_at: 2016-04-04 14:11:33.885243000 Z
updated_at: 2016-04-04 14:11:33.885243000 Z
receiver_type: User
is_send: true
meta_data: {}
notification_2:
id: 2
receiver_id: 1
attached_object_id: 2
attached_object_type: User
notification_type_id: 11
is_read: true
created_at: 2016-04-04 15:00:29.145046000 Z
updated_at: 2016-04-04 15:00:29.145046000 Z
receiver_type: User
is_send: true
meta_data: {}
notification_3:
id: 3
receiver_id: 1
attached_object_id: 3
attached_object_type: User
notification_type_id: 11
is_read: true
created_at: 2016-04-04 15:07:46.698906000 Z
updated_at: 2016-04-04 15:07:46.698906000 Z
receiver_type: User
is_send: true
meta_data: {}
notification_4:
id: 4
receiver_id: 1
attached_object_id: 4
attached_object_type: User
notification_type_id: 11
is_read: true
created_at: 2016-04-04 15:10:42.365920000 Z
updated_at: 2016-04-04 15:10:42.365920000 Z
receiver_type: User
is_send: true
meta_data: {}
notification_5:
id: 5
receiver_id: 1
attached_object_id: 5
attached_object_type: User
notification_type_id: 11
is_read: true
created_at: 2016-04-04 15:14:08.589419000 Z
updated_at: 2016-04-04 15:14:08.589419000 Z
receiver_type: User
is_send: true
meta_data: {}
notification_6:
id: 6
receiver_id: 1
attached_object_id: 6
attached_object_type: User
notification_type_id: 11
is_read: true
created_at: 2016-04-04 15:17:12.548875000 Z
updated_at: 2016-04-04 15:17:12.548875000 Z
receiver_type: User
is_send: true
meta_data: {}
notification_10:
id: 10
receiver_id: 6
attached_object_id: 1
attached_object_type: Subscription
notification_type_id: 23
is_read: false
created_at: 2016-04-05 08:35:51.844242000 Z
updated_at: 2016-04-05 08:35:51.844242000 Z
receiver_type: User
is_send: true
meta_data: {}
notification_11:
id: 11
receiver_id: 3
attached_object_id: 1
attached_object_type: Invoice
notification_type_id: 13
is_read: false
created_at: 2016-04-05 08:35:53.327086000 Z
updated_at: 2016-04-05 08:35:53.327086000 Z
receiver_type: User
is_send: true
meta_data: {}
notification_9:
id: 9
receiver_id: 1
attached_object_id: 1
attached_object_type: Subscription
notification_type_id: 12
is_read: false
created_at: 2016-04-05 08:35:51.837022000 Z
updated_at: 2016-04-05 08:35:51.837022000 Z
receiver_type: User
is_send: true
meta_data: {}
notification_13:
id: 13
receiver_id: 1
attached_object_id: 2
attached_object_type: Subscription
notification_type_id: 12
is_read: false
created_at: 2016-04-05 08:36:46.841579000 Z
updated_at: 2016-04-05 08:36:46.841579000 Z
receiver_type: User
is_send: true
meta_data: {}
notification_14:
id: 14
receiver_id: 4
attached_object_id: 2
attached_object_type: Invoice
notification_type_id: 13
is_read: false
created_at: 2016-04-05 08:36:47.235854000 Z
updated_at: 2016-04-05 08:36:47.235854000 Z
receiver_type: User
is_send: true
meta_data: {}
notification_8:
id: 8
receiver_id: 3
attached_object_id: 1
attached_object_type: Subscription
notification_type_id: 5
is_read: false
created_at: 2016-04-05 08:35:51.792984000 Z
updated_at: 2016-04-05 08:35:51.792984000 Z
receiver_type: User
is_send: true
meta_data: {}
notification_12:
id: 12
receiver_id: 4
attached_object_id: 2
attached_object_type: Subscription
notification_type_id: 5
is_read: false
created_at: 2016-04-05 08:36:46.833829000 Z
updated_at: 2016-04-05 08:36:46.833829000 Z
receiver_type: User
is_send: true
meta_data: {}

0
test/fixtures/o_auth2_mappings.yml vendored Normal file
View File

0
test/fixtures/o_auth2_providers.yml vendored Normal file
View File

0
test/fixtures/offer_days.yml vendored Normal file
View File

52
test/fixtures/plans.yml vendored Normal file
View File

@ -0,0 +1,52 @@
plan_1:
id: 1
name: Mensuel - standard, association - month
amount: 3000
interval: month
group_id: 1
stp_plan_id: mensuel-standard-month-20160404171519
created_at: 2016-04-04 15:15:19.860064000 Z
updated_at: 2016-04-04 15:19:28.367161000 Z
training_credit_nb: 1
is_rolling:
description:
type: Plan
base_name: Mensuel
ui_weight: 1
interval_count: 1
plan_2:
id: 2
name: Sleede - standard, association - month
amount: 10000
interval: month
group_id: 1
stp_plan_id: nicolas-standard-month-20160404171724
created_at: 2016-04-04 15:17:24.026385000 Z
updated_at: 2016-04-04 15:19:39.357636000 Z
training_credit_nb: 2
is_rolling:
description:
type: PartnerPlan
base_name: Sleede
ui_weight: 5
interval_count: 2
plan_3:
id: 3
name: Mensuel tarif réduit - étudiant, - de 25 ans, enseignant, demandeur d'emploi
- month
amount: 2000
interval: month
group_id: 2
stp_plan_id: mensuel-tarif-reduit-student-month-20160404171827
created_at: 2016-04-04 15:18:27.734657000 Z
updated_at: 2016-04-04 15:21:35.501739000 Z
training_credit_nb: 1
is_rolling:
description:
type: Plan
base_name: Mensuel tarif réduit
ui_weight: 0
interval_count: 1

300
test/fixtures/prices.yml vendored Normal file
View File

@ -0,0 +1,300 @@
price_1:
id: 1
group_id: 1
plan_id:
priceable_id: 1
priceable_type: Machine
amount: 2400
created_at: 2016-04-04 14:11:34.242608000 Z
updated_at: 2016-04-04 14:11:34.242608000 Z
price_2:
id: 2
group_id: 2
plan_id:
priceable_id: 1
priceable_type: Machine
amount: 5300
created_at: 2016-04-04 14:11:34.247363000 Z
updated_at: 2016-04-04 14:11:34.247363000 Z
price_5:
id: 5
group_id: 1
plan_id:
priceable_id: 2
priceable_type: Machine
amount: 4200
created_at: 2016-04-04 14:11:34.290427000 Z
updated_at: 2016-04-04 14:11:34.290427000 Z
price_6:
id: 6
group_id: 2
plan_id:
priceable_id: 2
priceable_type: Machine
amount: 1100
created_at: 2016-04-04 14:11:34.293603000 Z
updated_at: 2016-04-04 14:11:34.293603000 Z
price_9:
id: 9
group_id: 1
plan_id:
priceable_id: 3
priceable_type: Machine
amount: 4100
created_at: 2016-04-04 14:11:34.320809000 Z
updated_at: 2016-04-04 14:11:34.320809000 Z
price_10:
id: 10
group_id: 2
plan_id:
priceable_id: 3
priceable_type: Machine
amount: 5300
created_at: 2016-04-04 14:11:34.325274000 Z
updated_at: 2016-04-04 14:11:34.325274000 Z
price_13:
id: 13
group_id: 1
plan_id:
priceable_id: 4
priceable_type: Machine
amount: 900
created_at: 2016-04-04 14:11:34.362313000 Z
updated_at: 2016-04-04 14:11:34.362313000 Z
price_14:
id: 14
group_id: 2
plan_id:
priceable_id: 4
priceable_type: Machine
amount: 5100
created_at: 2016-04-04 14:11:34.366049000 Z
updated_at: 2016-04-04 14:11:34.366049000 Z
price_17:
id: 17
group_id: 1
plan_id:
priceable_id: 5
priceable_type: Machine
amount: 1600
created_at: 2016-04-04 14:11:34.398206000 Z
updated_at: 2016-04-04 14:11:34.398206000 Z
price_18:
id: 18
group_id: 2
plan_id:
priceable_id: 5
priceable_type: Machine
amount: 2000
created_at: 2016-04-04 14:11:34.407216000 Z
updated_at: 2016-04-04 14:11:34.407216000 Z
price_21:
id: 21
group_id: 1
plan_id:
priceable_id: 6
priceable_type: Machine
amount: 3200
created_at: 2016-04-04 14:11:34.442054000 Z
updated_at: 2016-04-04 14:11:34.442054000 Z
price_22:
id: 22
group_id: 2
plan_id:
priceable_id: 6
priceable_type: Machine
amount: 3400
created_at: 2016-04-04 14:11:34.445147000 Z
updated_at: 2016-04-04 14:11:34.445147000 Z
price_25:
id: 25
group_id: 1
plan_id: 1
priceable_id: 1
priceable_type: Machine
amount: 1500
created_at: 2016-04-04 15:15:21.038387000 Z
updated_at: 2016-04-04 15:15:45.691674000 Z
price_26:
id: 26
group_id: 1
plan_id: 1
priceable_id: 2
priceable_type: Machine
amount: 1500
created_at: 2016-04-04 15:15:21.048838000 Z
updated_at: 2016-04-04 15:15:45.693896000 Z
price_27:
id: 27
group_id: 1
plan_id: 1
priceable_id: 3
priceable_type: Machine
amount: 2500
created_at: 2016-04-04 15:15:21.053412000 Z
updated_at: 2016-04-04 15:15:45.697794000 Z
price_28:
id: 28
group_id: 1
plan_id: 1
priceable_id: 4
priceable_type: Machine
amount: 1500
created_at: 2016-04-04 15:15:21.057117000 Z
updated_at: 2016-04-04 15:15:45.700657000 Z
price_29:
id: 29
group_id: 1
plan_id: 1
priceable_id: 5
priceable_type: Machine
amount: 1300
created_at: 2016-04-04 15:15:21.061171000 Z
updated_at: 2016-04-04 15:15:45.707564000 Z
price_30:
id: 30
group_id: 1
plan_id: 1
priceable_id: 6
priceable_type: Machine
amount: 1500
created_at: 2016-04-04 15:15:21.065166000 Z
updated_at: 2016-04-04 15:15:45.710945000 Z
price_31:
id: 31
group_id: 1
plan_id: 2
priceable_id: 1
priceable_type: Machine
amount: 1500
created_at: 2016-04-04 15:17:24.920457000 Z
updated_at: 2016-04-04 15:17:34.255229000 Z
price_32:
id: 32
group_id: 1
plan_id: 2
priceable_id: 2
priceable_type: Machine
amount: 1500
created_at: 2016-04-04 15:17:24.926967000 Z
updated_at: 2016-04-04 15:17:34.257285000 Z
price_33:
id: 33
group_id: 1
plan_id: 2
priceable_id: 3
priceable_type: Machine
amount: 2500
created_at: 2016-04-04 15:17:24.932723000 Z
updated_at: 2016-04-04 15:17:34.258741000 Z
price_34:
id: 34
group_id: 1
plan_id: 2
priceable_id: 4
priceable_type: Machine
amount: 1500
created_at: 2016-04-04 15:17:24.937168000 Z
updated_at: 2016-04-04 15:17:34.260503000 Z
price_35:
id: 35
group_id: 1
plan_id: 2
priceable_id: 5
priceable_type: Machine
amount: 1300
created_at: 2016-04-04 15:17:24.940520000 Z
updated_at: 2016-04-04 15:17:34.263627000 Z
price_36:
id: 36
group_id: 1
plan_id: 2
priceable_id: 6
priceable_type: Machine
amount: 1500
created_at: 2016-04-04 15:17:24.944460000 Z
updated_at: 2016-04-04 15:17:34.267328000 Z
price_37:
id: 37
group_id: 2
plan_id: 3
priceable_id: 1
priceable_type: Machine
amount: 1000
created_at: 2016-04-04 15:18:28.836899000 Z
updated_at: 2016-04-04 15:18:50.507019000 Z
price_38:
id: 38
group_id: 2
plan_id: 3
priceable_id: 2
priceable_type: Machine
amount: 1000
created_at: 2016-04-04 15:18:28.842674000 Z
updated_at: 2016-04-04 15:18:50.508799000 Z
price_39:
id: 39
group_id: 2
plan_id: 3
priceable_id: 3
priceable_type: Machine
amount: 1500
created_at: 2016-04-04 15:18:28.847736000 Z
updated_at: 2016-04-04 15:18:50.510437000 Z
price_40:
id: 40
group_id: 2
plan_id: 3
priceable_id: 4
priceable_type: Machine
amount: 1000
created_at: 2016-04-04 15:18:28.852783000 Z
updated_at: 2016-04-04 15:18:50.512239000 Z
price_41:
id: 41
group_id: 2
plan_id: 3
priceable_id: 5
priceable_type: Machine
amount: 800
created_at: 2016-04-04 15:18:28.856602000 Z
updated_at: 2016-04-04 15:18:50.514062000 Z
price_42:
id: 42
group_id: 2
plan_id: 3
priceable_id: 6
priceable_type: Machine
amount: 1000
created_at: 2016-04-04 15:18:28.860220000 Z
updated_at: 2016-04-04 15:18:50.517702000 Z

78
test/fixtures/profiles.yml vendored Normal file
View File

@ -0,0 +1,78 @@
profile_1:
id: 1
user_id: 1
first_name: admin
last_name: admin
gender: true
birthday: 2016-04-04
phone: 0123456789
interest:
software_mastered:
created_at: 2016-04-04 14:11:33.858015000 Z
updated_at: 2016-04-04 14:11:33.858015000 Z
profile_2:
id: 2
user_id: 2
first_name: Jean
last_name: Dupont
gender: true
birthday: 1975-06-07
phone: '0214321420'
interest: 3D printers
software_mastered: autocad
created_at: 2016-04-04 15:00:29.131180000 Z
updated_at: 2016-04-04 15:06:22.148303000 Z
profile_4:
id: 4
user_id: 4
first_name: Kevin
last_name: Dumas
gender: true
birthday: 1998-06-05
phone: 0446124793
interest: ''
software_mastered: solidworks
created_at: 2016-04-04 15:10:42.350790000 Z
updated_at: 2016-04-04 15:10:42.350790000 Z
profile_5:
id: 5
user_id: 5
first_name: Vanessa
last_name: Lonchamp
gender: false
birthday: 1994-05-03
phone: 0233412482
interest: vélo, natation
software_mastered: ''
created_at: 2016-04-04 15:14:08.577633000 Z
updated_at: 2016-04-04 15:14:08.577633000 Z
profile_6:
id: 6
user_id: 6
first_name: Gilbert
last_name: Partenaire
gender: true
birthday: 2016-04-04
phone: '0000000000'
interest:
software_mastered:
created_at: 2016-04-04 15:17:12.535971000 Z
updated_at: 2016-04-04 15:17:12.535971000 Z
profile_3:
id: 3
user_id: 3
first_name: Paulette
last_name: Durand
gender: false
birthday: 1949-06-18
phone: '0474264261'
interest: ''
software_mastered: ''
created_at: 2016-04-04 15:07:46.687390000 Z
updated_at: 2016-04-05 08:35:18.580745000 Z

18
test/fixtures/project_steps.yml vendored Normal file
View File

@ -0,0 +1,18 @@
project_step_1:
id: 1
description: "<p>Impression du manche à l'imprimante 3D puis découpe d'un vinyle
de protection à coller tout autour du manche.</p>"
project_id: 1
created_at: 2016-04-04 15:39:08.259759000 Z
updated_at: 2016-04-04 15:39:08.259759000 Z
title: Le manche
project_step_2:
id: 2
description: "<p>Impression de la presse à l'imprimante 3D puis assemblage avec
le manche et vissage de l'ensemble.</p>"
project_id: 1
created_at: 2016-04-04 15:39:08.265840000 Z
updated_at: 2016-04-04 15:39:08.265840000 Z
title: La presse

0
test/fixtures/project_users.yml vendored Normal file
View File

14
test/fixtures/projects.yml vendored Normal file
View File

@ -0,0 +1,14 @@
project_1:
id: 1
name: Presse-purée
description: "<p>Réalisation d'un ustensile de cuisine permettant d'écraser des
pommes de terre ou d'outres légumes afin de confectionner de la purée.<br></p>"
created_at: 2016-04-04 15:39:08.224918000 Z
updated_at: 2016-04-04 15:39:08.224918000 Z
author_id: 5
tags: cuisine
licence_id: 1
state: published
slug: presse-puree
published_at: 2016-04-04 15:39:08.267614000 Z

20
test/fixtures/projects_components.yml vendored Normal file
View File

@ -0,0 +1,20 @@
projects_component_1:
id: 1
project_id: 1
component_id: 10
projects_component_2:
id: 2
project_id: 1
component_id: 7
projects_component_1:
id: 1
project_id: 1
component_id: 10
projects_component_2:
id: 2
project_id: 1
component_id: 7

20
test/fixtures/projects_machines.yml vendored Normal file
View File

@ -0,0 +1,20 @@
projects_machine_1:
id: 1
project_id: 1
machine_id: 6
projects_machine_2:
id: 2
project_id: 1
machine_id: 2
projects_machine_1:
id: 1
project_id: 1
machine_id: 6
projects_machine_2:
id: 2
project_id: 1
machine_id: 2

10
test/fixtures/projects_themes.yml vendored Normal file
View File

@ -0,0 +1,10 @@
projects_theme_1:
id: 1
project_id: 1
theme_id: 1
projects_theme_1:
id: 1
project_id: 1
theme_id: 1

0
test/fixtures/reservations.yml vendored Normal file
View File

32
test/fixtures/roles.yml vendored Normal file
View File

@ -0,0 +1,32 @@
role_1:
id: 1
name: admin
resource_id:
resource_type:
created_at: 2016-04-04 14:11:33.826505000 Z
updated_at: 2016-04-04 14:11:33.826505000 Z
role_2:
id: 2
name: member
resource_id:
resource_type:
created_at: 2016-04-04 15:00:29.112744000 Z
updated_at: 2016-04-04 15:00:29.112744000 Z
role_3:
id: 3
name: partner
resource_id:
resource_type:
created_at: 2016-04-04 15:17:12.586692000 Z
updated_at: 2016-04-04 15:17:12.586692000 Z
role_4:
id: 4
name: partner
resource_id: 2
resource_type: PartnerPlan
created_at: 2016-04-04 15:17:24.964272000 Z
updated_at: 2016-04-04 15:17:24.964272000 Z

235
test/fixtures/settings.yml vendored Normal file

File diff suppressed because one or more lines are too long

0
test/fixtures/slots.yml vendored Normal file
View File

90
test/fixtures/statistic_fields.yml vendored Normal file
View File

@ -0,0 +1,90 @@
statistic_field_1:
id: 1
statistic_index_id: 3
key: trainingId
label: ID Formation
created_at: 2016-04-04 14:11:33.394574000 Z
updated_at: 2016-04-04 14:11:33.394574000 Z
data_type: index
statistic_field_2:
id: 2
statistic_index_id: 3
key: trainingDate
label: Date Formation
created_at: 2016-04-04 14:11:33.397731000 Z
updated_at: 2016-04-04 14:11:33.397731000 Z
data_type: date
statistic_field_3:
id: 3
statistic_index_id: 4
key: eventId
label: ID Évènement
created_at: 2016-04-04 14:11:33.400109000 Z
updated_at: 2016-04-04 14:11:33.400109000 Z
data_type: index
statistic_field_4:
id: 4
statistic_index_id: 4
key: eventDate
label: Date Évènement
created_at: 2016-04-04 14:11:33.402256000 Z
updated_at: 2016-04-04 14:11:33.402256000 Z
data_type: date
statistic_field_5:
id: 5
statistic_index_id: 6
key: themes
label: Thèmes
created_at: 2016-04-04 14:11:33.404480000 Z
updated_at: 2016-04-04 14:11:33.404480000 Z
data_type: list
statistic_field_6:
id: 6
statistic_index_id: 6
key: components
label: Composants
created_at: 2016-04-04 14:11:33.406774000 Z
updated_at: 2016-04-04 14:11:33.406774000 Z
data_type: list
statistic_field_7:
id: 7
statistic_index_id: 6
key: machines
label: Machines
created_at: 2016-04-04 14:11:33.410472000 Z
updated_at: 2016-04-04 14:11:33.410472000 Z
data_type: list
statistic_field_8:
id: 8
statistic_index_id: 4
key: name
label: Nom Évènement
created_at: 2016-04-04 14:11:33.413525000 Z
updated_at: 2016-04-04 14:11:33.413525000 Z
data_type: text
statistic_field_9:
id: 9
statistic_index_id: 7
key: userId
label: ID Utilisateur
created_at: 2016-04-04 14:11:33.416626000 Z
updated_at: 2016-04-04 14:11:33.416626000 Z
data_type: index
statistic_field_10:
id: 10
statistic_index_id: 1
key: groupName
label: Groupe
created_at: 2016-04-04 14:11:33.423307000 Z
updated_at: 2016-04-04 14:11:33.423307000 Z
data_type: text

48
test/fixtures/statistic_graphs.yml vendored Normal file
View File

@ -0,0 +1,48 @@
statistic_graph_1:
id: 1
statistic_index_id: 1
chart_type: stackedAreaChart
limit: 0
created_at: 2016-04-04 14:11:33.585281000 Z
updated_at: 2016-04-04 14:11:33.585281000 Z
statistic_graph_2:
id: 2
statistic_index_id: 2
chart_type: stackedAreaChart
limit: 0
created_at: 2016-04-04 14:11:33.588092000 Z
updated_at: 2016-04-04 14:11:33.588092000 Z
statistic_graph_3:
id: 3
statistic_index_id: 3
chart_type: discreteBarChart
limit: 10
created_at: 2016-04-04 14:11:33.590494000 Z
updated_at: 2016-04-04 14:11:33.590494000 Z
statistic_graph_4:
id: 4
statistic_index_id: 4
chart_type: discreteBarChart
limit: 10
created_at: 2016-04-04 14:11:33.592600000 Z
updated_at: 2016-04-04 14:11:33.592600000 Z
statistic_graph_5:
id: 5
statistic_index_id: 5
chart_type: lineChart
limit: 0
created_at: 2016-04-04 14:11:33.594459000 Z
updated_at: 2016-04-04 14:11:33.594459000 Z
statistic_graph_6:
id: 6
statistic_index_id: 7
chart_type: discreteBarChart
limit: 10
created_at: 2016-04-04 14:11:33.596654000 Z
updated_at: 2016-04-04 14:11:33.596654000 Z

63
test/fixtures/statistic_indices.yml vendored Normal file
View File

@ -0,0 +1,63 @@
statistic_index_1:
id: 1
es_type_key: subscription
label: Abonnements
created_at: 2016-04-04 14:11:33.355566000 Z
updated_at: 2016-04-04 14:11:33.355566000 Z
table: true
ca: true
statistic_index_2:
id: 2
es_type_key: machine
label: Heures machines
created_at: 2016-04-04 14:11:33.359367000 Z
updated_at: 2016-04-04 14:11:33.359367000 Z
table: true
ca: true
statistic_index_3:
id: 3
es_type_key: training
label: Formations
created_at: 2016-04-04 14:11:33.362171000 Z
updated_at: 2016-04-04 14:11:33.362171000 Z
table: true
ca: true
statistic_index_4:
id: 4
es_type_key: event
label: Ateliers/Stages
created_at: 2016-04-04 14:11:33.366381000 Z
updated_at: 2016-04-04 14:11:33.366381000 Z
table: true
ca: true
statistic_index_5:
id: 5
es_type_key: account
label: Inscriptions
created_at: 2016-04-04 14:11:33.369042000 Z
updated_at: 2016-04-04 14:11:33.369042000 Z
table: true
ca: false
statistic_index_6:
id: 6
es_type_key: project
label: Projets
created_at: 2016-04-04 14:11:33.373066000 Z
updated_at: 2016-04-04 14:11:33.373066000 Z
table: true
ca: false
statistic_index_7:
id: 7
es_type_key: user
label: Utilisateurs
created_at: 2016-04-04 14:11:33.376810000 Z
updated_at: 2016-04-04 14:11:33.376810000 Z
table: false
ca: false

155
test/fixtures/statistic_sub_types.yml vendored Normal file
View File

@ -0,0 +1,155 @@
statistic_sub_type_1:
id: 1
key: Stage
label: Stage
created_at: 2016-04-04 14:11:33.510241000 Z
updated_at: 2016-04-04 14:11:33.510241000 Z
statistic_sub_type_2:
id: 2
key: Atelier
label: Atelier
created_at: 2016-04-04 14:11:33.535339000 Z
updated_at: 2016-04-04 14:11:33.535339000 Z
statistic_sub_type_3:
id: 3
key: created
label: Création de compte
created_at: 2016-04-04 14:11:33.553667000 Z
updated_at: 2016-04-04 14:11:33.553667000 Z
statistic_sub_type_4:
id: 4
key: published
label: Publication de projet
created_at: 2016-04-04 14:11:33.564828000 Z
updated_at: 2016-04-04 14:11:33.564828000 Z
statistic_sub_type_5:
id: 5
key: standard
label: standard, association
created_at: 2016-04-04 14:11:33.652127000 Z
updated_at: 2016-04-04 14:11:33.652127000 Z
statistic_sub_type_6:
id: 6
key: student
label: étudiant, - de 25 ans, enseignant, demandeur d'emploi
created_at: 2016-04-04 14:11:33.662695000 Z
updated_at: 2016-04-04 14:11:33.662695000 Z
statistic_sub_type_7:
id: 7
key: merchant
label: artisan, commerçant, chercheur, auto-entrepreneur
created_at: 2016-04-04 14:11:33.674691000 Z
updated_at: 2016-04-04 14:11:33.674691000 Z
statistic_sub_type_8:
id: 8
key: business
label: PME, PMI, SARL, SA
created_at: 2016-04-04 14:11:33.688291000 Z
updated_at: 2016-04-04 14:11:33.688291000 Z
statistic_sub_type_9:
id: 9
key: formation-imprimante-3d
label: Formation Imprimante 3D
created_at: 2016-04-04 14:11:34.042407000 Z
updated_at: 2016-04-04 14:11:34.042407000 Z
statistic_sub_type_10:
id: 10
key: formation-laser-vinyle
label: Formation Laser / Vinyle
created_at: 2016-04-04 14:11:34.082412000 Z
updated_at: 2016-04-04 14:11:34.082412000 Z
statistic_sub_type_11:
id: 11
key: formation-petite-fraiseuse-numerique
label: Formation Petite fraiseuse numerique
created_at: 2016-04-04 14:11:34.109571000 Z
updated_at: 2016-04-04 14:11:34.109571000 Z
statistic_sub_type_12:
id: 12
key: formation-shopbot-grande-fraiseuse
label: Formation Shopbot Grande Fraiseuse
created_at: 2016-04-04 14:11:34.138418000 Z
updated_at: 2016-04-04 14:11:34.138418000 Z
statistic_sub_type_13:
id: 13
key: formation-logiciel-2d
label: Formation logiciel 2D
created_at: 2016-04-04 14:11:34.158874000 Z
updated_at: 2016-04-04 14:11:34.158874000 Z
statistic_sub_type_14:
id: 14
key: decoupeuse-laser
label: Découpeuse laser
created_at: 2016-04-04 14:11:34.216583000 Z
updated_at: 2016-04-04 14:11:34.216583000 Z
statistic_sub_type_15:
id: 15
key: decoupeuse-vinyle
label: Découpeuse vinyle
created_at: 2016-04-04 14:11:34.280012000 Z
updated_at: 2016-04-04 14:11:34.280012000 Z
statistic_sub_type_16:
id: 16
key: shopbot-grande-fraiseuse
label: Shopbot / Grande fraiseuse
created_at: 2016-04-04 14:11:34.311844000 Z
updated_at: 2016-04-04 14:11:34.311844000 Z
statistic_sub_type_17:
id: 17
key: imprimante-3d
label: Imprimante 3D
created_at: 2016-04-04 14:11:34.351362000 Z
updated_at: 2016-04-04 14:11:34.351362000 Z
statistic_sub_type_18:
id: 18
key: petite-fraiseuse
label: Petite Fraiseuse
created_at: 2016-04-04 14:11:34.387590000 Z
updated_at: 2016-04-04 14:11:34.387590000 Z
statistic_sub_type_19:
id: 19
key: form1-imprimante-3d
label: FORM1+ imprimante 3D
created_at: 2016-04-04 14:11:34.432323000 Z
updated_at: 2016-04-04 14:11:34.432323000 Z
statistic_sub_type_20:
id: 20
key: mensuel-standard-month-20160404171519
label: Mensuel - standard, association - month
created_at: 2016-04-04 15:15:21.125089000 Z
updated_at: 2016-04-04 15:15:21.125089000 Z
statistic_sub_type_21:
id: 21
key: nicolas-standard-month-20160404171724
label: Sleede - standard, association - month
created_at: 2016-04-04 15:17:24.952312000 Z
updated_at: 2016-04-04 15:17:24.952312000 Z
statistic_sub_type_22:
id: 22
key: mensuel-tarif-reduit-student-month-20160404171827
label: Mensuel tarif réduit - étudiant, - de 25 ans, enseignant, demandeur d'emploi
- month
created_at: 2016-04-04 15:18:28.864495000 Z
updated_at: 2016-04-04 15:18:28.864495000 Z

View File

@ -0,0 +1,245 @@
statistic_type_sub_type_1:
id: 1
statistic_type_id: 6
statistic_sub_type_id: 1
created_at: 2016-04-04 14:11:33.513238000 Z
updated_at: 2016-04-04 14:11:33.513238000 Z
statistic_type_sub_type_2:
id: 2
statistic_type_id: 5
statistic_sub_type_id: 1
created_at: 2016-04-04 14:11:33.516138000 Z
updated_at: 2016-04-04 14:11:33.516138000 Z
statistic_type_sub_type_3:
id: 3
statistic_type_id: 6
statistic_sub_type_id: 2
created_at: 2016-04-04 14:11:33.538652000 Z
updated_at: 2016-04-04 14:11:33.538652000 Z
statistic_type_sub_type_4:
id: 4
statistic_type_id: 5
statistic_sub_type_id: 2
created_at: 2016-04-04 14:11:33.542486000 Z
updated_at: 2016-04-04 14:11:33.542486000 Z
statistic_type_sub_type_5:
id: 5
statistic_type_id: 7
statistic_sub_type_id: 3
created_at: 2016-04-04 14:11:33.555871000 Z
updated_at: 2016-04-04 14:11:33.555871000 Z
statistic_type_sub_type_6:
id: 6
statistic_type_id: 8
statistic_sub_type_id: 4
created_at: 2016-04-04 14:11:33.567632000 Z
updated_at: 2016-04-04 14:11:33.567632000 Z
statistic_type_sub_type_7:
id: 7
statistic_type_id: 9
statistic_sub_type_id: 5
created_at: 2016-04-04 14:11:33.653644000 Z
updated_at: 2016-04-04 14:11:33.653644000 Z
statistic_type_sub_type_8:
id: 8
statistic_type_id: 9
statistic_sub_type_id: 6
created_at: 2016-04-04 14:11:33.664529000 Z
updated_at: 2016-04-04 14:11:33.664529000 Z
statistic_type_sub_type_9:
id: 9
statistic_type_id: 9
statistic_sub_type_id: 7
created_at: 2016-04-04 14:11:33.676852000 Z
updated_at: 2016-04-04 14:11:33.676852000 Z
statistic_type_sub_type_10:
id: 10
statistic_type_id: 9
statistic_sub_type_id: 8
created_at: 2016-04-04 14:11:33.690793000 Z
updated_at: 2016-04-04 14:11:33.690793000 Z
statistic_type_sub_type_11:
id: 11
statistic_type_id: 4
statistic_sub_type_id: 9
created_at: 2016-04-04 14:11:34.044221000 Z
updated_at: 2016-04-04 14:11:34.044221000 Z
statistic_type_sub_type_12:
id: 12
statistic_type_id: 3
statistic_sub_type_id: 9
created_at: 2016-04-04 14:11:34.045765000 Z
updated_at: 2016-04-04 14:11:34.045765000 Z
statistic_type_sub_type_13:
id: 13
statistic_type_id: 4
statistic_sub_type_id: 10
created_at: 2016-04-04 14:11:34.084202000 Z
updated_at: 2016-04-04 14:11:34.084202000 Z
statistic_type_sub_type_14:
id: 14
statistic_type_id: 3
statistic_sub_type_id: 10
created_at: 2016-04-04 14:11:34.085725000 Z
updated_at: 2016-04-04 14:11:34.085725000 Z
statistic_type_sub_type_15:
id: 15
statistic_type_id: 4
statistic_sub_type_id: 11
created_at: 2016-04-04 14:11:34.113011000 Z
updated_at: 2016-04-04 14:11:34.113011000 Z
statistic_type_sub_type_16:
id: 16
statistic_type_id: 3
statistic_sub_type_id: 11
created_at: 2016-04-04 14:11:34.115670000 Z
updated_at: 2016-04-04 14:11:34.115670000 Z
statistic_type_sub_type_17:
id: 17
statistic_type_id: 4
statistic_sub_type_id: 12
created_at: 2016-04-04 14:11:34.139750000 Z
updated_at: 2016-04-04 14:11:34.139750000 Z
statistic_type_sub_type_18:
id: 18
statistic_type_id: 3
statistic_sub_type_id: 12
created_at: 2016-04-04 14:11:34.141062000 Z
updated_at: 2016-04-04 14:11:34.141062000 Z
statistic_type_sub_type_19:
id: 19
statistic_type_id: 4
statistic_sub_type_id: 13
created_at: 2016-04-04 14:11:34.160439000 Z
updated_at: 2016-04-04 14:11:34.160439000 Z
statistic_type_sub_type_20:
id: 20
statistic_type_id: 3
statistic_sub_type_id: 13
created_at: 2016-04-04 14:11:34.161861000 Z
updated_at: 2016-04-04 14:11:34.161861000 Z
statistic_type_sub_type_21:
id: 21
statistic_type_id: 2
statistic_sub_type_id: 14
created_at: 2016-04-04 14:11:34.218360000 Z
updated_at: 2016-04-04 14:11:34.218360000 Z
statistic_type_sub_type_22:
id: 22
statistic_type_id: 1
statistic_sub_type_id: 14
created_at: 2016-04-04 14:11:34.220463000 Z
updated_at: 2016-04-04 14:11:34.220463000 Z
statistic_type_sub_type_23:
id: 23
statistic_type_id: 2
statistic_sub_type_id: 15
created_at: 2016-04-04 14:11:34.281962000 Z
updated_at: 2016-04-04 14:11:34.281962000 Z
statistic_type_sub_type_24:
id: 24
statistic_type_id: 1
statistic_sub_type_id: 15
created_at: 2016-04-04 14:11:34.284179000 Z
updated_at: 2016-04-04 14:11:34.284179000 Z
statistic_type_sub_type_25:
id: 25
statistic_type_id: 2
statistic_sub_type_id: 16
created_at: 2016-04-04 14:11:34.313711000 Z
updated_at: 2016-04-04 14:11:34.313711000 Z
statistic_type_sub_type_26:
id: 26
statistic_type_id: 1
statistic_sub_type_id: 16
created_at: 2016-04-04 14:11:34.315260000 Z
updated_at: 2016-04-04 14:11:34.315260000 Z
statistic_type_sub_type_27:
id: 27
statistic_type_id: 2
statistic_sub_type_id: 17
created_at: 2016-04-04 14:11:34.353541000 Z
updated_at: 2016-04-04 14:11:34.353541000 Z
statistic_type_sub_type_28:
id: 28
statistic_type_id: 1
statistic_sub_type_id: 17
created_at: 2016-04-04 14:11:34.357176000 Z
updated_at: 2016-04-04 14:11:34.357176000 Z
statistic_type_sub_type_29:
id: 29
statistic_type_id: 2
statistic_sub_type_id: 18
created_at: 2016-04-04 14:11:34.389833000 Z
updated_at: 2016-04-04 14:11:34.389833000 Z
statistic_type_sub_type_30:
id: 30
statistic_type_id: 1
statistic_sub_type_id: 18
created_at: 2016-04-04 14:11:34.392790000 Z
updated_at: 2016-04-04 14:11:34.392790000 Z
statistic_type_sub_type_31:
id: 31
statistic_type_id: 2
statistic_sub_type_id: 19
created_at: 2016-04-04 14:11:34.434454000 Z
updated_at: 2016-04-04 14:11:34.434454000 Z
statistic_type_sub_type_32:
id: 32
statistic_type_id: 1
statistic_sub_type_id: 19
created_at: 2016-04-04 14:11:34.436807000 Z
updated_at: 2016-04-04 14:11:34.436807000 Z
statistic_type_sub_type_33:
id: 33
statistic_type_id: 10
statistic_sub_type_id: 20
created_at: 2016-04-04 15:15:21.138545000 Z
updated_at: 2016-04-04 15:15:21.138545000 Z
statistic_type_sub_type_34:
id: 34
statistic_type_id: 11
statistic_sub_type_id: 21
created_at: 2016-04-04 15:17:24.955599000 Z
updated_at: 2016-04-04 15:17:24.955599000 Z
statistic_type_sub_type_35:
id: 35
statistic_type_id: 10
statistic_sub_type_id: 22
created_at: 2016-04-04 15:18:28.867317000 Z
updated_at: 2016-04-04 15:18:28.867317000 Z

110
test/fixtures/statistic_types.yml vendored Normal file
View File

@ -0,0 +1,110 @@
statistic_type_1:
id: 1
statistic_index_id: 2
key: booking
label: Réservations
graph: true
created_at: 2016-04-04 14:11:33.441638000 Z
updated_at: 2016-04-04 14:11:33.441638000 Z
simple: true
statistic_type_2:
id: 2
statistic_index_id: 2
key: hour
label: Nombre d'heures
graph: true
created_at: 2016-04-04 14:11:33.445526000 Z
updated_at: 2016-04-04 14:11:33.445526000 Z
simple: false
statistic_type_3:
id: 3
statistic_index_id: 3
key: booking
label: Réservations
graph: false
created_at: 2016-04-04 14:11:33.448982000 Z
updated_at: 2016-04-04 14:11:33.448982000 Z
simple: true
statistic_type_4:
id: 4
statistic_index_id: 3
key: hour
label: Nombre d'heures
graph: false
created_at: 2016-04-04 14:11:33.452261000 Z
updated_at: 2016-04-04 14:11:33.452261000 Z
simple: false
statistic_type_5:
id: 5
statistic_index_id: 4
key: booking
label: Nombre de places
graph: false
created_at: 2016-04-04 14:11:33.455220000 Z
updated_at: 2016-04-04 14:11:33.455220000 Z
simple: false
statistic_type_6:
id: 6
statistic_index_id: 4
key: hour
label: Nombre d'heures
graph: false
created_at: 2016-04-04 14:11:33.457727000 Z
updated_at: 2016-04-04 14:11:33.457727000 Z
simple: false
statistic_type_7:
id: 7
statistic_index_id: 5
key: member
label: Utilisateurs
graph: true
created_at: 2016-04-04 14:11:33.460565000 Z
updated_at: 2016-04-04 14:11:33.460565000 Z
simple: true
statistic_type_8:
id: 8
statistic_index_id: 6
key: project
label: Projets
graph: false
created_at: 2016-04-04 14:11:33.463420000 Z
updated_at: 2016-04-04 14:11:33.463420000 Z
simple: true
statistic_type_9:
id: 9
statistic_index_id: 7
key: revenue
label: Chiffre d'affaires
graph: false
created_at: 2016-04-04 14:11:33.466257000 Z
updated_at: 2016-04-04 14:11:33.466257000 Z
simple: false
statistic_type_10:
id: 10
statistic_index_id: 1
key: '2592000'
label: 'Durée : one month'
graph: true
created_at: 2016-04-04 15:15:21.110438000 Z
updated_at: 2016-04-04 15:15:21.110438000 Z
simple: true
statistic_type_11:
id: 11
statistic_index_id: 1
key: '5184000'
label: 'Durée : 2 months'
graph: true
created_at: 2016-04-04 15:17:24.950033000 Z
updated_at: 2016-04-04 15:17:24.950033000 Z
simple: true

39
test/fixtures/stylesheets.yml vendored Normal file
View File

@ -0,0 +1,39 @@
stylesheet_1:
id: 1
contents: |-
.bg-red { background-color: #cb1117; }
.bg-red-dark { background-color: #cb1117; }
#nav .nav { background-color: #cb1117; }
#nav .nav > li > a { color: white; }
#nav .nav > li > a:hover, #nav .nav > li > a:focus { background-color: #ed2229; }
#nav .nav > li > a.active { border-left: 3px solid #6d090c; background-color: #ed2229; }
#nav .nav > li > a.active { border-left: 3px solid #6d090c; background-color: #ed2229; }
.btn-theme { background-color: #cb1117; color: white; }
.btn-theme:active, .btn-theme:hover { background-color: #6d090c; }
.label-theme { background-color: #cb1117 }
.btn-link { color: #cb1117 !important; }
.btn-link:hover { color: #6d090c !important; }
a { color: #cb1117; }
a:hover, a:focus { color: #6d090c; }
h2, h3, h5 { color: #cb1117; }
h5:after { background-color: #cb1117; }
.bg-yellow { background-color: #ffdd00 !important; }
.event:hover { background-color: #cb1117; }
.widget h3 { color: #cb1117; }
.modal-header h1, .custom-invoice .modal-header h1 { color: #cb1117; }
.block-link:hover, .fc-toolbar .fc-button:hover, .fc-toolbar .fc-button:active, .fc-toolbar .fc-button.fc-state-active { background-color: #ffdd00; }
.carousel-control:hover, .carousel-control:focus, .carousel-caption .title a:hover { color: #ffdd00; }
.well.well-warning { border-color: #ffdd00; background-color: #ffdd00; }
.text-yellow { color: #ffdd00 !important; }
.red { color: #cb1117 !important; }
.btn-warning, .editable-buttons button[type=submit].btn-primary { background-color: #ffdd00 !important; border-color: #ffdd00 !important; }
.btn-warning:hover, .editable-buttons button[type=submit].btn-primary:hover, .btn-warning:focus, .editable-buttons button[type=submit].btn-primary:focus, .btn-warning.focus, .editable-buttons button.focus[type=submit].btn-primary, .btn-warning:active, .editable-buttons button[type=submit].btn-primary:active, .btn-warning.active, .editable-buttons button.active[type=submit].btn-primary, .open > .btn-warning.dropdown-toggle, .editable-buttons .open > button.dropdown-toggle[type=submit].btn-primary { background-color: #998500 !important; border-color: #998500 !important; }
.btn-warning-full { border-color: #ffdd00; background-color: #ffdd00; }
.heading .heading-btn a:hover { background-color: #ffdd00; }
.pricing-panel .content .wrap { border-color: #ffdd00; }
.pricing-panel .cta-button .btn:hover, .pricing-panel .cta-button .custom-invoice .modal-body .elements li:hover, .custom-invoice .modal-body .elements .pricing-panel .cta-button li:hover { background-color: #ffdd00 !important; }
a.label:hover, .form-control.form-control-ui-select .select2-choices a.select2-search-choice:hover, a.label:focus, .form-control.form-control-ui-select .select2-choices a.select2-search-choice:focus { color: #cb1117; }
.about-picture { background: linear-gradient( rgba(255,255,255,0.12), rgba(255,255,255,0.13) ), linear-gradient( rgba(203, 17, 23, 0.78), rgba(203, 17, 23, 0.82) ), url('/about-fablab.jpg') no-repeat; }
created_at: 2016-04-04 14:11:34.712927000 Z
updated_at: 2016-04-04 14:11:34.712927000 Z

20
test/fixtures/subscriptions.yml vendored Normal file
View File

@ -0,0 +1,20 @@
subscription_1:
id: 1
plan_id: 2
user_id: 3
stp_subscription_id: sub_8DGB4ErIc2asOv
created_at: 2016-04-05 08:35:51.784514000 Z
updated_at: 2016-04-05 08:35:51.784514000 Z
expired_at: 2016-06-05 08:35:51.000000000 Z
canceled_at: 2016-04-05 08:35:55.615387000 Z
subscription_2:
id: 2
plan_id: 3
user_id: 4
stp_subscription_id:
created_at: 2016-04-05 08:36:46.829879000 Z
updated_at: 2016-04-05 08:36:46.829879000 Z
expired_at: 2016-05-05 08:36:46.828332000 Z
canceled_at:

12
test/fixtures/tags.yml vendored Normal file
View File

@ -0,0 +1,12 @@
tag_1:
id: 1
name: experts
created_at: 2016-04-04 15:25:13.744539000 Z
updated_at: 2016-04-04 15:25:13.744539000 Z
tag_2:
id: 2
name: débutants
created_at: 2016-04-04 15:25:30.321953000 Z
updated_at: 2016-04-04 15:25:30.321953000 Z

28
test/fixtures/themes.yml vendored Normal file
View File

@ -0,0 +1,28 @@
theme_1:
id: 1
name: Vie quotidienne
theme_2:
id: 2
name: Robotique
theme_3:
id: 3
name: Arduine
theme_4:
id: 4
name: Capteurs
theme_5:
id: 5
name: Musique
theme_6:
id: 6
name: Sport
theme_7:
id: 7
name: Autre

45
test/fixtures/trainings.yml vendored Normal file
View File

@ -0,0 +1,45 @@
training_1:
id: 1
name: Formation Imprimante 3D
created_at: 2016-04-04 14:11:34.033464000 Z
updated_at: 2016-04-04 14:11:34.033464000 Z
nb_total_places:
slug: formation-imprimante-3d
description:
training_2:
id: 2
name: Formation Laser / Vinyle
created_at: 2016-04-04 14:11:34.075249000 Z
updated_at: 2016-04-04 14:11:34.075249000 Z
nb_total_places:
slug: formation-laser-vinyle
description:
training_3:
id: 3
name: Formation Petite fraiseuse numerique
created_at: 2016-04-04 14:11:34.103077000 Z
updated_at: 2016-04-04 14:11:34.103077000 Z
nb_total_places:
slug: formation-petite-fraiseuse-numerique
description:
training_4:
id: 4
name: Formation Shopbot Grande Fraiseuse
created_at: 2016-04-04 14:11:34.132899000 Z
updated_at: 2016-04-04 14:11:34.132899000 Z
nb_total_places:
slug: formation-shopbot-grande-fraiseuse
description:
training_5:
id: 5
name: Formation logiciel 2D
created_at: 2016-04-04 14:11:34.152000000 Z
updated_at: 2016-04-04 14:11:34.152000000 Z
nb_total_places:
slug: formation-logiciel-2d
description:

View File

@ -0,0 +1,21 @@
trainings_availability_1:
id: 1
training_id: 2
availability_id: 1
created_at: 2016-04-04 15:24:01.522700000 Z
updated_at: 2016-04-04 15:24:01.522700000 Z
trainings_availability_2:
id: 2
training_id: 1
availability_id: 2
created_at: 2016-04-04 15:24:09.172367000 Z
updated_at: 2016-04-04 15:24:09.172367000 Z
trainings_availability_3:
id: 3
training_id: 4
availability_id: 8
created_at: 2016-04-04 15:26:49.574308000 Z
updated_at: 2016-04-04 15:26:49.574308000 Z

50
test/fixtures/trainings_machines.yml vendored Normal file
View File

@ -0,0 +1,50 @@
trainings_machine_1:
id: 1
training_id: 2
machine_id: 1
trainings_machine_2:
id: 2
training_id: 2
machine_id: 2
trainings_machine_3:
id: 3
training_id: 4
machine_id: 3
trainings_machine_4:
id: 4
training_id: 1
machine_id: 4
trainings_machine_5:
id: 5
training_id: 3
machine_id: 5
trainings_machine_1:
id: 1
training_id: 2
machine_id: 1
trainings_machine_2:
id: 2
training_id: 2
machine_id: 2
trainings_machine_3:
id: 3
training_id: 4
machine_id: 3
trainings_machine_4:
id: 4
training_id: 1
machine_id: 4
trainings_machine_5:
id: 5
training_id: 3
machine_id: 5

80
test/fixtures/trainings_pricings.yml vendored Normal file
View File

@ -0,0 +1,80 @@
trainings_pricing_1:
id: 1
group_id: 1
amount: 5100
created_at: 2016-04-04 14:11:34.062630000 Z
updated_at: 2016-04-04 14:11:34.062630000 Z
training_id: 1
trainings_pricing_2:
id: 2
group_id: 2
amount: 4500
created_at: 2016-04-04 14:11:34.065365000 Z
updated_at: 2016-04-04 14:11:34.065365000 Z
training_id: 1
trainings_pricing_5:
id: 5
group_id: 1
amount: 2900
created_at: 2016-04-04 14:11:34.091905000 Z
updated_at: 2016-04-04 14:11:34.091905000 Z
training_id: 2
trainings_pricing_6:
id: 6
group_id: 2
amount: 1700
created_at: 2016-04-04 14:11:34.093952000 Z
updated_at: 2016-04-04 14:11:34.093952000 Z
training_id: 2
trainings_pricing_9:
id: 9
group_id: 1
amount: 3000
created_at: 2016-04-04 14:11:34.122221000 Z
updated_at: 2016-04-04 14:11:34.122221000 Z
training_id: 3
trainings_pricing_10:
id: 10
group_id: 2
amount: 2600
created_at: 2016-04-04 14:11:34.124626000 Z
updated_at: 2016-04-04 14:11:34.124626000 Z
training_id: 3
trainings_pricing_13:
id: 13
group_id: 1
amount: 5200
created_at: 2016-04-04 14:11:34.143982000 Z
updated_at: 2016-04-04 14:11:34.143982000 Z
training_id: 4
trainings_pricing_14:
id: 14
group_id: 2
amount: 4400
created_at: 2016-04-04 14:11:34.145380000 Z
updated_at: 2016-04-04 14:11:34.145380000 Z
training_id: 4
trainings_pricing_17:
id: 17
group_id: 1
amount: 1800
created_at: 2016-04-04 14:11:34.165146000 Z
updated_at: 2016-04-04 14:11:34.165146000 Z
training_id: 5
trainings_pricing_18:
id: 18
group_id: 2
amount: 1900
created_at: 2016-04-04 14:11:34.166759000 Z
updated_at: 2016-04-04 14:11:34.166759000 Z
training_id: 5

0
test/fixtures/user_tags.yml vendored Normal file
View File

0
test/fixtures/user_trainings.yml vendored Normal file
View File

198
test/fixtures/users.yml vendored Normal file
View File

@ -0,0 +1,198 @@
user_2:
id: 2
username: jdupont
email: jean.dupont@gmail.com
encrypted_password: "$2a$10$M41moTmI.I4xNVeOPzS1JeplUM0B5b0KfQqBZ./fgHZVn7BcIAY.m"
reset_password_token:
reset_password_sent_at:
remember_created_at:
sign_in_count: 1
current_sign_in_at: 2016-04-04 15:00:29.439018000 Z
last_sign_in_at: 2016-04-04 15:00:29.439018000 Z
current_sign_in_ip: 127.0.0.1
last_sign_in_ip: 127.0.0.1
confirmation_token:
confirmed_at: 2016-04-04 15:00:43.555678000 Z
confirmation_sent_at: 2016-04-04 15:00:29.424011000 Z
unconfirmed_email:
failed_attempts: 0
unlock_token:
locked_at:
created_at: 2016-04-04 15:00:29.107434000 Z
updated_at: 2016-04-04 15:00:43.556308000 Z
is_allow_contact: true
group_id: 1
stp_customer_id: cus_8CzAgnSeFbDuG2
slug: jdupont
is_active: true
invoicing_disabled: false
provider:
uid:
auth_token:
merged_at:
user_4:
id: 4
username: kdumas
email: kevin.dumas@orange.fr
encrypted_password: "$2a$10$N6Q4SHkkUtwlnMNFvN6nF.rkmLFTIPsARk7xEuR1Dws7Dy2sSrSOW"
reset_password_token:
reset_password_sent_at:
remember_created_at:
sign_in_count: 0
current_sign_in_at:
last_sign_in_at:
current_sign_in_ip:
last_sign_in_ip:
confirmation_token:
confirmed_at: 2016-04-04 15:11:02.968494000 Z
confirmation_sent_at: 2016-04-04 15:10:42.376191000 Z
unconfirmed_email:
failed_attempts: 0
unlock_token:
locked_at:
created_at: 2016-04-04 15:10:42.340868000 Z
updated_at: 2016-04-04 15:11:02.969182000 Z
is_allow_contact: true
group_id: 2
stp_customer_id: cus_8CzKe50I0J1gaI
slug: kdumas
is_active: true
invoicing_disabled:
provider:
uid:
auth_token:
merged_at:
user_6:
id: 6
username: GilbertPartenaire
email: gilbert.partenaire@nicolas.com
encrypted_password: "$2a$10$UtWcIYMd2aOtQjw6OFL4cuMV1MB20Bfs/opzJDqWXqu8woUo.2cLu"
reset_password_token:
reset_password_sent_at:
remember_created_at:
sign_in_count: 0
current_sign_in_at:
last_sign_in_at:
current_sign_in_ip:
last_sign_in_ip:
confirmation_token:
confirmed_at:
confirmation_sent_at:
unconfirmed_email:
failed_attempts: 0
unlock_token:
locked_at:
created_at: 2016-04-04 15:17:12.522028000 Z
updated_at: 2016-04-04 15:17:12.522028000 Z
is_allow_contact: true
group_id: 1
stp_customer_id: cus_8CzQK5uXPeyh4K
slug: gilbertpartenaire
is_active: true
invoicing_disabled: false
provider:
uid:
auth_token:
merged_at:
user_5:
id: 5
username: vlonchamp
email: vanessa.lonchamp@sfr.fr
encrypted_password: "$2a$10$HOEk.QyGwpd9nsk2gVXGSuAxig9jMrNFHVqYMW1.Sp41EtN7rdBbG"
reset_password_token:
reset_password_sent_at:
remember_created_at:
sign_in_count: 1
current_sign_in_at: 2016-04-04 15:34:23.343596000 Z
last_sign_in_at: 2016-04-04 15:34:23.343596000 Z
current_sign_in_ip: 127.0.0.1
last_sign_in_ip: 127.0.0.1
confirmation_token: 59cfd407491c4e1d95a9f91f81e710a62a83a6fd7171ad22823b4c4395312c4d
confirmed_at:
confirmation_sent_at: 2016-04-04 15:14:08.599603000 Z
unconfirmed_email:
failed_attempts: 0
unlock_token:
locked_at:
created_at: 2016-04-04 15:14:08.563152000 Z
updated_at: 2016-04-04 15:34:23.344613000 Z
is_allow_contact: true
group_id: 2
stp_customer_id: cus_8CzNtM08NVlSGN
slug: vlonchamp
is_active: true
invoicing_disabled:
provider:
uid:
auth_token:
merged_at:
user_3:
id: 3
username: pdurand
email: paulette.durand@hotmail.fr
encrypted_password: "$2a$10$Ri5kcxmonFsZDDWLxjVUy.KoM2coBmB.W6ED11KDDaAuaBV8dVsim"
reset_password_token:
reset_password_sent_at:
remember_created_at:
sign_in_count: 2
current_sign_in_at: 2016-04-05 08:35:05.676918000 Z
last_sign_in_at: 2016-04-04 15:07:46.733781000 Z
current_sign_in_ip: 127.0.0.1
last_sign_in_ip: 127.0.0.1
confirmation_token:
confirmed_at: 2016-04-04 15:08:00.893381000 Z
confirmation_sent_at: 2016-04-04 15:07:46.726886000 Z
unconfirmed_email:
failed_attempts: 0
unlock_token:
locked_at:
created_at: 2016-04-04 15:07:46.675613000 Z
updated_at: 2016-04-05 08:35:05.678582000 Z
is_allow_contact: false
group_id: 1
stp_customer_id: cus_8CzHcwBJtlA3IL
slug: pdurand
is_active: true
invoicing_disabled: false
provider:
uid:
auth_token:
merged_at:
user_1:
id: 1
username: admin
email: admin@fab-manager.com
encrypted_password: "$2a$10$LtQ2OggropcXpmcsPTEPruuGZrwuFYGOo8qjh.po91YDna/K4/Bbe"
reset_password_token:
reset_password_sent_at:
remember_created_at:
sign_in_count: 8
current_sign_in_at: 2016-04-05 08:36:08.361260000 Z
last_sign_in_at: 2016-04-05 08:34:28.227054000 Z
current_sign_in_ip: 127.0.0.1
last_sign_in_ip: 127.0.0.1
confirmation_token:
confirmed_at:
confirmation_sent_at:
unconfirmed_email:
failed_attempts: 0
unlock_token:
locked_at:
created_at: 2016-04-04 14:11:33.852719000 Z
updated_at: 2016-04-05 08:36:08.362215000 Z
is_allow_contact: true
group_id: 1
stp_customer_id: cus_8CyNk3UTi8lvCc
slug: admin
is_active: true
invoicing_disabled: false
provider:
uid:
auth_token:
merged_at:

0
test/fixtures/users_credits.yml vendored Normal file
View File

56
test/fixtures/users_roles.yml vendored Normal file
View File

@ -0,0 +1,56 @@
users_role_:
user_id: 1
role_id: 1
users_role_:
user_id: 2
role_id: 2
users_role_:
user_id: 3
role_id: 2
users_role_:
user_id: 4
role_id: 2
users_role_:
user_id: 5
role_id: 2
users_role_:
user_id: 6
role_id: 3
users_role_:
user_id: 6
role_id: 4
users_role_:
user_id: 1
role_id: 1
users_role_:
user_id: 2
role_id: 2
users_role_:
user_id: 3
role_id: 2
users_role_:
user_id: 4
role_id: 2
users_role_:
user_id: 5
role_id: 2
users_role_:
user_id: 6
role_id: 3
users_role_:
user_id: 6
role_id: 4