apidae 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd09605f8fc42cf6117c1339ec62cc76620b10bc
4
- data.tar.gz: 072fd7a05baf4b878c76cca5baeeb8bc459352d9
3
+ metadata.gz: 53e626dd8145c8030532064c825d7170f96f18aa
4
+ data.tar.gz: 4b41767bda21a36f83402066638a5e9656e4677a
5
5
  SHA512:
6
- metadata.gz: e0acaaed45a9f86a98538808fba65872ec01d1fffbcd7dfe45118a0e83bdfa597172d39b5596ab7acfbee41633e42e95d691644527f698cbdb1a1275dcc83238
7
- data.tar.gz: ceb438158398ade5e20dbcdf542c9430e8895b875adb9621d59d712f39d1386461c3b0c773315a39220f7f535883d926da392a1564cdeaf921120c08763c88e7
6
+ metadata.gz: 2609dced9fe025ff9e3f7d410482bd6ce67eb621d05668be49568db75cd207d0ad437bff3e1d7301b5c8add6eb0fe81ae7ec3d713285ddbc872fdf7bb77c6cf4
7
+ data.tar.gz: ff23e2f694ef53d0ab543945b9267b394f88d5c430a67cb6427f87636a4917dacf299c94d2cc14c08404d1fd5c9b1a72a6aae3eb6111d5f81317bb30b5134ccb
@@ -1,4 +1,5 @@
1
1
  require_dependency "apidae/application_controller"
2
+ require 'uri'
2
3
  require 'net/http'
3
4
 
4
5
  module Apidae
@@ -16,7 +17,7 @@ module Apidae
16
17
  def callback
17
18
  project_id = params[:projetId]
18
19
  if project_id == Rails.application.config.apidae_project_id
19
- export = Export.new(project_id: project_id, remote_status: params[:status], oneshot: params[:ponctuel] == 'true',
20
+ export = Export.new(project_id: project_id, remote_status: params[:statut], oneshot: params[:ponctuel] == 'true',
20
21
  reset: params[:reinitialisation] == 'true', file_url: params[:urlRecuperation],
21
22
  confirm_url: params[:urlConfirmation], status: Export::PENDING)
22
23
  if export.save
@@ -35,7 +36,11 @@ module Apidae
35
36
  open(e.file_url) do |f|
36
37
  begin
37
38
  FileImport.import(f)
38
- Net::HTTP.post(e.confirm_url, '')
39
+ uri = URI(e.confirm_url)
40
+ req = Net::HTTP::Post.new(uri)
41
+ Net::HTTP.start(uri.hostname, uri.port) do |http|
42
+ http.request(req)
43
+ end
39
44
  e.update(status: Export::COMPLETE)
40
45
  rescue Exception => ex
41
46
  logger.error("Failed to retrieve export file : #{ex.file_url}")
@@ -1,3 +1,3 @@
1
1
  module Apidae
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -1813,3 +1813,297 @@ Apidae::FileImportTest: test_new_object_insertion
1813
1813
   (0.2ms) SELECT COUNT(*) FROM "apidae_objects"
1814
1814
  Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
1815
1815
   (0.1ms) ROLLBACK
1816
+ ActiveRecord::SchemaMigration Load (13.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1817
+  (6.0ms) BEGIN
1818
+ ------------------------------------------------------------
1819
+ Apidae::SelectionsControllerTest: test_should_show_selection
1820
+ ------------------------------------------------------------
1821
+  (12.7ms) ROLLBACK
1822
+  (0.1ms) BEGIN
1823
+ --------------------------------------------------------------
1824
+ Apidae::SelectionsControllerTest: test_should_create_selection
1825
+ --------------------------------------------------------------
1826
+  (0.1ms) ROLLBACK
1827
+  (0.1ms) BEGIN
1828
+ ---------------------------------------------------------------
1829
+ Apidae::SelectionsControllerTest: test_should_destroy_selection
1830
+ ---------------------------------------------------------------
1831
+  (0.1ms) ROLLBACK
1832
+  (0.1ms) BEGIN
1833
+ -------------------------------------------------------
1834
+ Apidae::SelectionsControllerTest: test_should_get_index
1835
+ -------------------------------------------------------
1836
+  (0.2ms) ROLLBACK
1837
+  (0.1ms) BEGIN
1838
+ -----------------------------------------------------
1839
+ Apidae::SelectionsControllerTest: test_should_get_new
1840
+ -----------------------------------------------------
1841
+  (0.1ms) ROLLBACK
1842
+  (0.1ms) BEGIN
1843
+ --------------------------------------------------------------
1844
+ Apidae::SelectionsControllerTest: test_should_update_selection
1845
+ --------------------------------------------------------------
1846
+  (0.1ms) ROLLBACK
1847
+  (0.1ms) BEGIN
1848
+ ------------------------------------------------------
1849
+ Apidae::SelectionsControllerTest: test_should_get_edit
1850
+ ------------------------------------------------------
1851
+  (0.1ms) ROLLBACK
1852
+  (0.1ms) BEGIN
1853
+ ------------------------------------------------------
1854
+ Apidae::DashboardControllerTest: test_should_get_index
1855
+ ------------------------------------------------------
1856
+ Processing by Apidae::DashboardController#index as HTML
1857
+  (11.4ms) SELECT COUNT(*) FROM "apidae_objects"
1858
+  (0.5ms) SELECT COUNT(*) FROM "apidae_selections"
1859
+ Apidae::FileImport Load (7.2ms) SELECT "apidae_file_imports".* FROM "apidae_file_imports" ORDER BY "apidae_file_imports"."id" DESC LIMIT 5
1860
+ Rendered /Users/jbvilain/workspace/code/apidae-engine-rails/app/views/apidae/dashboard/index.html.erb within layouts/apidae/application (9.3ms)
1861
+ Completed 500 Internal Server Error in 118ms (ActiveRecord: 32.2ms)
1862
+  (0.2ms) ROLLBACK
1863
+  (0.1ms) BEGIN
1864
+ ----------------------
1865
+ ApidaeTest: test_truth
1866
+ ----------------------
1867
+  (0.2ms) ROLLBACK
1868
+  (0.1ms) BEGIN
1869
+ --------------------------------------------------------
1870
+ Apidae::ObjectsControllerTest: test_should_create_object
1871
+ --------------------------------------------------------
1872
+  (0.3ms) ROLLBACK
1873
+  (0.1ms) BEGIN
1874
+ --------------------------------------------------------
1875
+ Apidae::ObjectsControllerTest: test_should_update_object
1876
+ --------------------------------------------------------
1877
+  (0.2ms) ROLLBACK
1878
+  (0.1ms) BEGIN
1879
+ ------------------------------------------------------
1880
+ Apidae::ObjectsControllerTest: test_should_show_object
1881
+ ------------------------------------------------------
1882
+  (0.1ms) ROLLBACK
1883
+  (0.1ms) BEGIN
1884
+ ----------------------------------------------------
1885
+ Apidae::ObjectsControllerTest: test_should_get_index
1886
+ ----------------------------------------------------
1887
+  (0.1ms) ROLLBACK
1888
+  (0.1ms) BEGIN
1889
+ ---------------------------------------------------
1890
+ Apidae::ObjectsControllerTest: test_should_get_edit
1891
+ ---------------------------------------------------
1892
+  (0.1ms) ROLLBACK
1893
+  (0.1ms) BEGIN
1894
+ --------------------------------------------------
1895
+ Apidae::ObjectsControllerTest: test_should_get_new
1896
+ --------------------------------------------------
1897
+  (0.1ms) ROLLBACK
1898
+  (0.1ms) BEGIN
1899
+ ---------------------------------------------------------
1900
+ Apidae::ObjectsControllerTest: test_should_destroy_object
1901
+ ---------------------------------------------------------
1902
+  (0.3ms) ROLLBACK
1903
+  (0.2ms) BEGIN
1904
+ --------------------------------------------------------
1905
+ Apidae::FileImportTest: test_existing_selection_deletion
1906
+ --------------------------------------------------------
1907
+ SQL (2.2ms) DELETE FROM "apidae_objects"
1908
+ SQL (0.5ms) DELETE FROM "apidae_selections"
1909
+  (0.1ms) SAVEPOINT active_record_1
1910
+ SQL (12.6ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 3"], ["reference", "selection-3"], ["created_at", "2017-11-02 21:50:11.413007"], ["updated_at", "2017-11-02 21:50:11.413007"]]
1911
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1912
+  (0.6ms) SELECT COUNT(*) FROM "apidae_selections"
1913
+ Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections"
1914
+ SQL (6.7ms) DELETE FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = 49063
1915
+ Apidae::Selection Load (0.4ms) SELECT "apidae_selections".* FROM "apidae_selections"
1916
+  (0.3ms) SELECT COUNT(*) FROM "apidae_selections"
1917
+  (0.2ms) ROLLBACK
1918
+  (0.1ms) BEGIN
1919
+ ------------------------------------------------------
1920
+ Apidae::FileImportTest: test_existing_selection_update
1921
+ ------------------------------------------------------
1922
+ SQL (0.4ms) DELETE FROM "apidae_objects"
1923
+ SQL (0.3ms) DELETE FROM "apidae_selections"
1924
+  (0.2ms) SAVEPOINT active_record_1
1925
+ SQL (0.6ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 503], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-02 21:50:11.476373"], ["updated_at", "2017-11-02 21:50:11.476373"]]
1926
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1927
+  (0.2ms) SAVEPOINT active_record_1
1928
+ SQL (0.3ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-02 21:50:11.480109"], ["updated_at", "2017-11-02 21:50:11.480109"]]
1929
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1930
+  (0.1ms) SAVEPOINT active_record_1
1931
+ SQL (0.1ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 2"], ["reference", "selection-2"], ["created_at", "2017-11-02 21:50:11.483195"], ["updated_at", "2017-11-02 21:50:11.483195"]]
1932
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1933
+  (0.1ms) SAVEPOINT active_record_1
1934
+ SQL (0.4ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 36], ["object_id", 84]]
1935
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1936
+  (0.4ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 36]]
1937
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
1938
+ SQL (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
1939
+ Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
1940
+  (0.1ms) SAVEPOINT active_record_1
1941
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1942
+ Apidae::Object Load (0.4ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 36]]
1943
+ Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
1944
+  (0.1ms) SAVEPOINT active_record_1
1945
+ SQL (0.1ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 36], ["object_id", 85]]
1946
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1947
+ Apidae::Selection Load (0.4ms) SELECT "apidae_selections".* FROM "apidae_selections"
1948
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 36]]
1949
+  (0.1ms) SELECT COUNT(*) FROM "apidae_selections"
1950
+  (0.1ms) ROLLBACK
1951
+  (0.1ms) BEGIN
1952
+ -------------------------------------------------
1953
+ Apidae::FileImportTest: test_new_object_insertion
1954
+ -------------------------------------------------
1955
+ SQL (0.1ms) DELETE FROM "apidae_objects"
1956
+ SQL (0.1ms) DELETE FROM "apidae_selections"
1957
+ Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
1958
+ Apidae::Town Load (0.5ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
1959
+  (0.1ms) SAVEPOINT active_record_1
1960
+ SQL (0.1ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "type_data", "pictures_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13) RETURNING "id" [["apidae_id", 504], ["apidae_type", "STRUCTURE"], ["apidae_subtype", ""], ["title", "Société des accordéonistes aixois"], ["short_desc", ""], ["long_desc", ""], ["address", "{\"address_fields\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"]}"], ["latitude", 45.686578], ["longitude", 5.916386], ["type_data", "{\"entiteType\":{\"elementReferenceType\":\"StructureType\",\"id\":4008}}"], ["pictures_data", "{\"pictures\":[]}"], ["created_at", "2017-11-02 21:50:11.548209"], ["updated_at", "2017-11-02 21:50:11.548209"]]
1961
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1962
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objects"
1963
+ Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
1964
+  (0.1ms) ROLLBACK
1965
+  (0.1ms) BEGIN
1966
+ ---------------------------------------------------
1967
+ Apidae::FileImportTest: test_existing_object_update
1968
+ ---------------------------------------------------
1969
+ SQL (0.1ms) DELETE FROM "apidae_objects"
1970
+ SQL (0.1ms) DELETE FROM "apidae_selections"
1971
+  (0.1ms) SAVEPOINT active_record_1
1972
+ SQL (0.3ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-02 21:50:11.553511"], ["updated_at", "2017-11-02 21:50:11.553511"]]
1973
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1974
+ Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
1975
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
1976
+  (0.1ms) SAVEPOINT active_record_1
1977
+ SQL (0.4ms) UPDATE "apidae_objects" SET "apidae_type" = $1, "apidae_subtype" = $2, "title" = $3, "short_desc" = $4, "long_desc" = $5, "address" = $6, "latitude" = $7, "longitude" = $8, "type_data" = $9, "pictures_data" = $10, "updated_at" = $11 WHERE "apidae_objects"."id" = $12 [["apidae_type", "STRUCTURE"], ["apidae_subtype", ""], ["title", "Société des accordéonistes aixois"], ["short_desc", ""], ["long_desc", ""], ["address", "{\"address_fields\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"]}"], ["latitude", 45.686578], ["longitude", 5.916386], ["type_data", "{\"entiteType\":{\"elementReferenceType\":\"StructureType\",\"id\":4008}}"], ["pictures_data", "{\"pictures\":[]}"], ["updated_at", "2017-11-02 21:50:11.558542"], ["id", 87]]
1978
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1979
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objects"
1980
+ Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
1981
+  (0.1ms) ROLLBACK
1982
+  (0.1ms) BEGIN
1983
+ ------------------------------------------------
1984
+ Apidae::FileImportTest: test_full_import_process
1985
+ ------------------------------------------------
1986
+ SQL (0.1ms) DELETE FROM "apidae_objects"
1987
+ SQL (0.1ms) DELETE FROM "apidae_selections"
1988
+  (0.1ms) SAVEPOINT active_record_1
1989
+ SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 123], ["title", "Objet à supprimer"], ["created_at", "2017-11-02 21:50:11.564630"], ["updated_at", "2017-11-02 21:50:11.564630"]]
1990
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1991
+  (0.1ms) SAVEPOINT active_record_1
1992
+ SQL (0.1ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 4826186], ["title", "Objet à mettre à jour"], ["created_at", "2017-11-02 21:50:11.566072"], ["updated_at", "2017-11-02 21:50:11.566072"]]
1993
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1994
+ Apidae::Object Load (0.7ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826137]]
1995
+ Apidae::Town Load (0.3ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
1996
+  (0.1ms) SAVEPOINT active_record_1
1997
+ SQL (0.4ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "openings", "pictures_data", "entity_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id" [["apidae_id", 4826137], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "3C-Centre de Coordination en Cancerologie"], ["short_desc", "Réunion de médecins, infirmières, personnel médical. Les centres de coordination en Cancérologie sont des cellules qualités opérationnelles mises en place pour assurer la pluridisciplinarité de la prise en charge du patient. Congres privé."], ["long_desc", ""], ["address", "{\"address_fields\":[\"Rue Jean Monard\"]}"], ["latitude", 45.685888], ["longitude", 5.915215], ["openings", "{\"description\":\"Mardi 7 novembre 2017 de 7h à 19h.\",\"opening_periods\":[{\"identifiant\":13924098,\"dateDebut\":\"2017-11-07\",\"dateFin\":\"2017-11-07\",\"horaireOuverture\":\"07:00:00\",\"horaireFermeture\":\"19:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}]}"], ["pictures_data", "{\"pictures\":[]}"], ["entity_data", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nentity_id: 544515\n"], ["created_at", "2017-11-02 21:50:11.580285"], ["updated_at", "2017-11-02 21:50:11.580285"]]
1998
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1999
+ Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826186]]
2000
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
2001
+  (0.2ms) SAVEPOINT active_record_1
2002
+ SQL (0.2ms) UPDATE "apidae_objects" SET "apidae_type" = $1, "apidae_subtype" = $2, "title" = $3, "short_desc" = $4, "long_desc" = $5, "contact" = $6, "address" = $7, "latitude" = $8, "longitude" = $9, "openings" = $10, "type_data" = $11, "pictures_data" = $12, "entity_data" = $13, "updated_at" = $14 WHERE "apidae_objects"."id" = $15 [["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "A ciel ouvert -Vivre relié à l'essentiel"], ["short_desc", "Objet du forum : L’étude et la transmission des cultures et sagesses du monde pour un développement de la sagesse dans notre société moderne occidentale. Ouvert sur inscription"], ["long_desc", ""], ["contact", "{\"website\":\"https://www.acielouvert.org\"}"], ["address", "{\"address_fields\":[\"Rue Jean Monard\"]}"], ["latitude", 45.685775], ["longitude", 5.915461], ["openings", "{\"description\":\"Du samedi 11 au lundi 13 novembre 2017.\",\"opening_periods\":[{\"identifiant\":13924478,\"dateDebut\":\"2017-11-11\",\"dateFin\":\"2017-11-13\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}]}"], ["type_data", "{\"nomLieu\":\"Centre culturel et des congrès André Grosjean\",\"typesManifestation\":[{\"elementReferenceType\":\"FeteEtManifestationType\",\"id\":1966}],\"categories\":[{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2084}],\"portee\":{\"elementReferenceType\":\"FeteEtManifestationPortee\",\"id\":2350},\"nbVisiteursAttendu\":1000}"], ["pictures_data", "{\"pictures\":[]}"], ["entity_data", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nentity_id: 544515\n"], ["updated_at", "2017-11-02 21:50:11.587161"], ["id", 89]]
2003
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2004
+ Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826282]]
2005
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
2006
+  (0.1ms) SAVEPOINT active_record_1
2007
+ SQL (0.1ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "openings", "pictures_data", "entity_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id" [["apidae_id", 4826282], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "Remise des diplômes POLYTECH Annecy-Chambery"], ["short_desc", "La remise des diplomes de l'ecole d'ingenieurs de l'université Savoie Mont Blanc, Polytech Annecy-Chambery, Manifestation privée"], ["long_desc", ""], ["address", "{\"address_fields\":[\"Rue Jean Monard\"]}"], ["latitude", 45.685775], ["longitude", 5.915461], ["openings", "{\"description\":\"Samedi 18 novembre 2017.\",\"opening_periods\":[{\"identifiant\":13925007,\"dateDebut\":\"2017-11-18\",\"dateFin\":\"2017-11-18\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}]}"], ["pictures_data", "{\"pictures\":[]}"], ["entity_data", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nentity_id: 544515\n"], ["created_at", "2017-11-02 21:50:11.594261"], ["updated_at", "2017-11-02 21:50:11.594261"]]
2008
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2009
+ Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4828422]]
2010
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30287]]
2011
+  (0.1ms) SAVEPOINT active_record_1
2012
+ SQL (0.4ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "openings", "rates", "type_data", "pictures_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id" [["apidae_id", 4828422], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "Ex Anima - Théâtre équestre Zingaro"], ["short_desc", "Conception et mise en scène de Bartabas.\r\nLe cheval sera l’acteur principal et central du spectacle, il le sera dans toute sa liberté animale, sa beauté et son lien ancestral à notre culture."], ["long_desc", "On retrouvera bien sûr ses chevaux fétiches mais aussi quelque quarante chevaux magnifiques en quasi-liberté sur la piste. Une nouvelle prouesse pour Bartabas qui s’éclipse avec ses cavaliers pour laisser toute la place au cheval. Chaque spectacle de Zingaro est un événement unique, celui-ci promet déjà de marquer les mémoires !"], ["address", "{\"address_fields\":[]}"], ["latitude", 45.644668], ["longitude", 5.867981], ["openings", "{\"description\":\"Jeudi 19 avril 2018 à 20h30.\\n\\nVendredi 20 avril 2018 à 20h30.\\n\\nSamedi 21 avril 2018 à 20h30.\\n\\nDimanche 22 avril 2018 à 17h.\\n\\nMardi 24 avril 2018 à 20h30.\\n\\nMercredi 25 avril 2018 à 20h30.\\n\\nVendredi 27 avril 2018 à 20h30.\\n\\nSamedi 28 avril 2018 à 20h30.\\n\\nDimanche 29 avril 2018 à 17h.\\n\\nLundi 30 avril 2018 à 20h30.\\n\\nMercredi 2 mai 2018 à 20h30.\\n\\nJeudi 3 mai 2018 à 20h30.\\n\\nSamedi 5 mai 2018 à 20h30.\\n\\nDimanche 6 mai 2018 à 17h.\\n\\nLundi 7 mai 2018 à 20h30.\\n\\nMardi 8 mai 2018 à 19h.\\n\\nJeudi 10 mai 2018 à 19h.\\n\\nVendredi 11 mai 2018 à 20h30.\\n\\nSamedi 12 mai 2018 à 20h30.\\n\\nDimanche 13 mai 2018 à 17h.\",\"opening_periods\":[{\"identifiant\":13951267,\"dateDebut\":\"2018-04-19\",\"dateFin\":\"2018-04-19\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951269,\"dateDebut\":\"2018-04-20\",\"dateFin\":\"2018-04-20\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951275,\"dateDebut\":\"2018-04-21\",\"dateFin\":\"2018-04-21\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951278,\"dateDebut\":\"2018-04-22\",\"dateFin\":\"2018-04-22\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951279,\"dateDebut\":\"2018-04-24\",\"dateFin\":\"2018-04-24\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951282,\"dateDebut\":\"2018-04-25\",\"dateFin\":\"2018-04-25\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951286,\"dateDebut\":\"2018-04-27\",\"dateFin\":\"2018-04-27\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951289,\"dateDebut\":\"2018-04-28\",\"dateFin\":\"2018-04-28\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951291,\"dateDebut\":\"2018-04-29\",\"dateFin\":\"2018-04-29\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951292,\"dateDebut\":\"2018-04-30\",\"dateFin\":\"2018-04-30\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951297,\"dateDebut\":\"2018-05-02\",\"dateFin\":\"2018-05-02\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951298,\"dateDebut\":\"2018-05-03\",\"dateFin\":\"2018-05-03\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951300,\"dateDebut\":\"2018-05-05\",\"dateFin\":\"2018-05-05\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951303,\"dateDebut\":\"2018-05-06\",\"dateFin\":\"2018-05-06\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951307,\"dateDebut\":\"2018-05-07\",\"dateFin\":\"2018-05-07\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951309,\"dateDebut\":\"2018-05-08\",\"dateFin\":\"2018-05-08\",\"horaireOuverture\":\"19:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951311,\"dateDebut\":\"2018-05-10\",\"dateFin\":\"2018-05-10\",\"horaireOuverture\":\"19:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13968615,\"dateDebut\":\"2018-05-11\",\"dateFin\":\"2018-05-11\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13968617,\"dateDebut\":\"2018-05-12\",\"dateFin\":\"2018-05-12\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13968619,\"dateDebut\":\"2018-05-13\",\"dateFin\":\"2018-05-13\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}]}"], ["rates", "Plein tarif : 39 €, Tarif réduit : de 15 à 32 € (abonnés Espace Malraux, Bonlieu, La Traverse)."], ["type_data", "{\"nomLieu\":\"La Croix verte\",\"typesManifestation\":[{\"elementReferenceType\":\"FeteEtManifestationType\",\"id\":1958}],\"categories\":[{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2091},{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2147}],\"themes\":[{\"elementReferenceType\":\"FeteEtManifestationTheme\",\"id\":2064},{\"elementReferenceType\":\"FeteEtManifestationTheme\",\"id\":2257}],\"portee\":{\"elementReferenceType\":\"FeteEtManifestationPortee\",\"id\":2351}}"], ["pictures_data", "{\"pictures\":[]}"], ["created_at", "2017-11-02 21:50:11.600916"], ["updated_at", "2017-11-02 21:50:11.600916"]]
2013
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2014
+ Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4833997]]
2015
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30287]]
2016
+  (0.1ms) SAVEPOINT active_record_1
2017
+ SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "openings", "rates", "reservation", "type_data", "pictures_data", "entity_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17) RETURNING "id" [["apidae_id", 4833997], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "Les Spécimens - Spectacle familial"], ["short_desc", "Les Spécimens ce sont quatre personnages d'un cirque à la dérive qui essayent de trouver tous les stratagèmes possibles pour renflouer la caisse.\r\nTout au long du spectacle, ils mêlent portés acrobatiques, diabolo, jonglage et dressage à un jeu clownesque."], ["long_desc", "Accompagnés de leurs animaux de compagnie, devenus animaux de cirque, ils se battent pour continuer à jouer leurs numéros.\r\n\r\nUn spectacle qui ravira petits et grands.\r\n\r\nCompagnie du Fil à retordre\r\nAvec Hugo Varret, Héloïse Rodot, Guillaume Lamour, Anouck Wroblewski"], ["address", "{\"address_fields\":[\"Avenue du Lac de Constance\",\"Savoie Technolac\"]}"], ["latitude", 45.645852], ["longitude", 5.865084], ["openings", "{\"description\":\"Samedi 4 novembre à 17h.\",\"opening_periods\":[{\"identifiant\":13969038,\"dateDebut\":\"2017-11-04\",\"dateFin\":\"2017-11-04\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true}]}"], ["rates", "Tarif unique : 5 €."], ["reservation", "[]"], ["type_data", "{\"nomLieu\":\"La Traverse\",\"typesManifestation\":[{\"elementReferenceType\":\"FeteEtManifestationType\",\"id\":1958}],\"categories\":[{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2091},{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2147}],\"portee\":{\"elementReferenceType\":\"FeteEtManifestationPortee\",\"id\":2351}}"], ["pictures_data", "{\"pictures\":[]}"], ["entity_data", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nentity_id: 80314\n"], ["created_at", "2017-11-02 21:50:11.608465"], ["updated_at", "2017-11-02 21:50:11.608465"]]
2018
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2019
+ Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 123]]
2020
+  (0.2ms) SAVEPOINT active_record_1
2021
+ SQL (0.1ms) DELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1 [["object_id", 88]]
2022
+ SQL (0.2ms) DELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1 [["id", 88]]
2023
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2024
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections"
2025
+ SQL (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
2026
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
2027
+  (0.1ms) SAVEPOINT active_record_1
2028
+ SQL (0.2ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 1"], ["reference", "selection-1"], ["created_at", "2017-11-02 21:50:11.715515"], ["updated_at", "2017-11-02 21:50:11.715515"]]
2029
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2030
+ Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 37]]
2031
+ Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826137]]
2032
+  (0.1ms) SAVEPOINT active_record_1
2033
+ SQL (0.1ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 37], ["object_id", 90]]
2034
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2035
+ Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826282]]
2036
+  (0.1ms) SAVEPOINT active_record_1
2037
+ SQL (0.1ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 37], ["object_id", 91]]
2038
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2039
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49073]]
2040
+  (0.1ms) SAVEPOINT active_record_1
2041
+ SQL (0.1ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49073], ["label", "Sélection 2"], ["reference", "selection-2"], ["created_at", "2017-11-02 21:50:11.723659"], ["updated_at", "2017-11-02 21:50:11.723659"]]
2042
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2043
+ Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 38]]
2044
+ Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826186]]
2045
+  (0.1ms) SAVEPOINT active_record_1
2046
+ SQL (0.1ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 38], ["object_id", 89]]
2047
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2048
+ Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4828422]]
2049
+  (0.1ms) SAVEPOINT active_record_1
2050
+ SQL (0.2ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 38], ["object_id", 92]]
2051
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2052
+ Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4833997]]
2053
+  (0.1ms) SAVEPOINT active_record_1
2054
+ SQL (0.1ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 38], ["object_id", 93]]
2055
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2056
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
2057
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 37]]
2058
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 38]]
2059
+  (0.1ms) SELECT COUNT(*) FROM "apidae_selections"
2060
+  (0.1ms) SELECT COUNT(*) FROM "apidae_objects"
2061
+  (0.1ms) ROLLBACK
2062
+  (0.1ms) BEGIN
2063
+ -----------------------------------------------------
2064
+ Apidae::FileImportTest: test_existing_object_deletion
2065
+ -----------------------------------------------------
2066
+ SQL (0.1ms) DELETE FROM "apidae_objects"
2067
+ SQL (0.1ms) DELETE FROM "apidae_selections"
2068
+  (0.1ms) SAVEPOINT active_record_1
2069
+ SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-02 21:50:11.736299"], ["updated_at", "2017-11-02 21:50:11.736299"]]
2070
+  (0.4ms) RELEASE SAVEPOINT active_record_1
2071
+ Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
2072
+  (0.1ms) SAVEPOINT active_record_1
2073
+ SQL (0.1ms) DELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1 [["object_id", 94]]
2074
+ SQL (0.2ms) DELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1 [["id", 94]]
2075
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2076
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objects"
2077
+  (0.1ms) ROLLBACK
2078
+  (0.1ms) BEGIN
2079
+ ----------------------------------------------------
2080
+ Apidae::FileImportTest: test_new_selection_insertion
2081
+ ----------------------------------------------------
2082
+ SQL (0.2ms) DELETE FROM "apidae_objects"
2083
+ SQL (0.1ms) DELETE FROM "apidae_selections"
2084
+  (0.1ms) SAVEPOINT active_record_1
2085
+ SQL (0.1ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-02 21:50:11.743548"], ["updated_at", "2017-11-02 21:50:11.743548"]]
2086
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2087
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
2088
+ SQL (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
2089
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
2090
+  (0.1ms) SAVEPOINT active_record_1
2091
+ SQL (0.2ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 1"], ["reference", "selection-1"], ["created_at", "2017-11-02 21:50:11.747897"], ["updated_at", "2017-11-02 21:50:11.747897"]]
2092
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2093
+ Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 39]]
2094
+ Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
2095
+  (0.1ms) SAVEPOINT active_record_1
2096
+ SQL (0.2ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 39], ["object_id", 95]]
2097
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2098
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
2099
+  (0.5ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 39]]
2100
+  (0.3ms) SELECT COUNT(*) FROM "apidae_selections"
2101
+ Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT 1
2102
+  (0.1ms) ROLLBACK
2103
+  (0.1ms) BEGIN
2104
+ ------------------------------------------------------
2105
+ Apidae::ImportControllerTest: test_should_get_callback
2106
+ ------------------------------------------------------
2107
+ Processing by Apidae::ImportController#callback as HTML
2108
+ Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)
2109
+  (0.3ms) ROLLBACK
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apidae
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean-Baptiste Vilain
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-01 00:00:00.000000000 Z
11
+ date: 2017-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails