ADD Amélioration de l'update des films déjà en BD
[pompage.git] / src / test.rb
index dcc633c..3a68b87 100644 (file)
@@ -1,18 +1,3 @@
 # coding: utf-8\r
 \r
-# doc : http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/index.html\r
-Net::HTTP.version_1_2\r
-\r
-# hack : http://arosien.blogspot.com/2007/06/increasing-rubys-netbufferedio-buffer.html\r
-module Net\r
-   class BufferedIO\r
-      def rbuf_fill\r
-         timeout(@read_timeout) { @rbuf << @io.sysread(32768) }\r
-      end\r
-   end\r
-end\r
-\r
-connexion = Net::HTTP::new('www.allocine.fr').start\r
-connexion.finish\r
-html = connexion.get("/film/fichefilm_gen_cfilm=120576.html").body \r
-p html
\ No newline at end of file
+p "image".match(Regexp::new("image", true))
\ No newline at end of file