From e871da4fb5b8d8e0e16dbdc161d6e9b48843ddd9 Mon Sep 17 00:00:00 2001 From: Luiz Fonseca Date: Wed, 21 Dec 2011 16:40:52 -0300 Subject: [PATCH] Ignored .sw* files, created an initial pages layout and initial tests with cucumber. --- .Gemfile.swp | Bin 12288 -> 12288 bytes .gitignore | 3 + .../aplication.css.sassc | Bin 0 -> 555 bytes .../application.css.sassc | Bin 0 -> 556 bytes Gemfile | 3 + Gemfile.lock | 21 +++++- .../stylesheets/.aplication.css.sass.swp | Bin 0 -> 12288 bytes .../stylesheets/.application.css.sass.swp | Bin 0 -> 12288 bytes app/assets/stylesheets/application.css.sass | 5 ++ app/controllers/.pages_controller.rb.swp | Bin 0 -> 12288 bytes app/controllers/pages_controller.rb | 6 ++ app/views/layouts/._filters.html.slim.swp | Bin 0 -> 12288 bytes app/views/layouts/.application.html.slim.swp | Bin 0 -> 12288 bytes app/views/layouts/_filters.html.slim | 15 ++++ app/views/layouts/application.html.slim | 17 +++++ .../pages/.ideas_more_active.html.slim.swp | Bin 0 -> 12288 bytes app/views/pages/ideas_more_active.html.slim | 45 ++++++++++++ config/.application.rb.swp | Bin 0 -> 12288 bytes config/.database.yml.swp | Bin 0 -> 12288 bytes config/.routes.rb.swp | Bin 0 -> 12288 bytes config/application.rb | 5 ++ config/cucumber.yml | 8 +++ config/database.yml | 15 +--- config/environments/.production.rb.swp | Bin 0 -> 12288 bytes config/routes.rb | 54 +-------------- features/.ideas_more_active.feature.swp | Bin 0 -> 12288 bytes features/ideas_more_active.feature | 9 +++ .../.ideas_more_active_steps.rb.swp | Bin 0 -> 12288 bytes .../ideas_more_active_steps.rb | 7 ++ features/support/.env.rb.swp | Bin 0 -> 12288 bytes features/support/env.rb | 56 +++++++++++++++ lib/tasks/cucumber.rake | 65 ++++++++++++++++++ public/stylesheets/aplication.css.css | 65 ++++++++++++++++++ public/stylesheets/application.css.css | 65 ++++++++++++++++++ script/cucumber | 10 +++ 35 files changed, 407 insertions(+), 67 deletions(-) create mode 100644 .sass-cache/38bd0836f5e83e6fe496b8622563e417ef1a4666/aplication.css.sassc create mode 100644 .sass-cache/38bd0836f5e83e6fe496b8622563e417ef1a4666/application.css.sassc create mode 100644 app/assets/stylesheets/.aplication.css.sass.swp create mode 100644 app/assets/stylesheets/.application.css.sass.swp create mode 100644 app/assets/stylesheets/application.css.sass create mode 100644 app/controllers/.pages_controller.rb.swp create mode 100644 app/controllers/pages_controller.rb create mode 100644 app/views/layouts/._filters.html.slim.swp create mode 100644 app/views/layouts/.application.html.slim.swp create mode 100644 app/views/layouts/_filters.html.slim create mode 100644 app/views/layouts/application.html.slim create mode 100644 app/views/pages/.ideas_more_active.html.slim.swp create mode 100644 app/views/pages/ideas_more_active.html.slim create mode 100644 config/.application.rb.swp create mode 100644 config/.database.yml.swp create mode 100644 config/.routes.rb.swp create mode 100644 config/cucumber.yml create mode 100644 config/environments/.production.rb.swp create mode 100644 features/.ideas_more_active.feature.swp create mode 100644 features/ideas_more_active.feature create mode 100644 features/step_definitions/.ideas_more_active_steps.rb.swp create mode 100644 features/step_definitions/ideas_more_active_steps.rb create mode 100644 features/support/.env.rb.swp create mode 100644 features/support/env.rb create mode 100644 lib/tasks/cucumber.rake create mode 100644 public/stylesheets/aplication.css.css create mode 100644 public/stylesheets/application.css.css create mode 100755 script/cucumber diff --git a/.Gemfile.swp b/.Gemfile.swp index 452a059bf7b42fa951660fc7c812e016a7f139ad..d26bffe751c4b54527b33ff25f54111e3c77bd58 100644 GIT binary patch delta 264 zcmZojXh;xCG6?hZRWR2xW&i>K28IsPPk#OHHj4e?XVlm%DDat|_XH0ELkllNR%5cD zf^_|6eg=kRKs*JAn}E0xhzo!?35Y#`*bazof!F|um4R3Zh!ufY0f?D__zfQe!wn!l z48)s&cpVV01>!Y8To1%yKWe@7x0{}igI4=MI delta 277 zcmZojXh;xCG6?hZRWR2xW&i>K28Jy%pZtnuZ4~>(atP~bB^uLv&#!x10`$*N8k zRFJOU#?Qd81c)aA@kAhQ0OBGbP6y&NAdUoLA0YMyVlN=}1Y#W^mH=XAApXS1!0--; z-vaR)Al?te(}1`Yh*N;r8Hm+@SP6&~ftU}7d4c!|#3lR;$AFCOK)e}jzEF)AyQu HLf--a+N?L= diff --git a/.gitignore b/.gitignore index eb3489a..7676515 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,6 @@ # Ignore all logfiles and tempfiles. /log/*.log /tmp + +.sw* +/temp diff --git a/.sass-cache/38bd0836f5e83e6fe496b8622563e417ef1a4666/aplication.css.sassc b/.sass-cache/38bd0836f5e83e6fe496b8622563e417ef1a4666/aplication.css.sassc new file mode 100644 index 0000000000000000000000000000000000000000..04229b36bdf41e033489da31290e729f5e373980 GIT binary patch literal 555 zcmZ9J!Arw17{xuv)}~cqAR>AwJ?W+GDsx+k5GDv-Jm_valr;Uy0%=p5Oc?(2rnQ@! zx8(85``-KV5R8Ly?A7Hq8WwxBxbYeI4g>L!iqVK zSUg3imc-W|R4I&?4FJaPQtCIEgN@G#TXT^&P_1l7(s2g7Cc2I(%#33kgiPJ-tfku6lumNNLpToC@{hno6 zLe&*?%?!JXZ;HxI{<5>iE>Uewy~Garq9(w~@-M^i$!p+q!y8Byh{7Kr|LRcGX3JiX nAV2HZ<@LGH?*3P1FC9fkhj#6ZBjMK{wJGt4tf@+OzqtGXC0(t% literal 0 HcmV?d00001 diff --git a/.sass-cache/38bd0836f5e83e6fe496b8622563e417ef1a4666/application.css.sassc b/.sass-cache/38bd0836f5e83e6fe496b8622563e417ef1a4666/application.css.sassc new file mode 100644 index 0000000000000000000000000000000000000000..8c47a5cc5dda4c0d9db48310029ae489c2827edb GIT binary patch literal 556 zcmZ9J!Arw17{xuv)}~cqAR>AwJ?W+GDsx+k5GDv-Jm_valr;Uy0%=p5Oc?(2rnQ@! zx8(85``-KV5R8Ly?A7Hq8WwxBxbYeI4g>L!iqVK zSUg3imc-W|R4I&?4FJaPQtCIEgN@G#TXT^&P_1l7(s2g7Cc2a_(#33kgiPJ-tfku6numR)$pToC@1)pVE zLe({N%?!KCZ<@+Y{<5>iE>Ueyy~Garq9(w~@-M^i$!p+q!y8Byh{7Kr|LRcGX3buZ nAV2H(<@LGH?*3P1FC9fkhj#6ZBjMK{wJGt4tf@+O-?;n%07|Yb literal 0 HcmV?d00001 diff --git a/Gemfile b/Gemfile index 39adc66..d158c47 100644 --- a/Gemfile +++ b/Gemfile @@ -3,12 +3,14 @@ source 'http://rubygems.org' gem 'rails', '3.1.3' gem 'pg' +gem 'foreigner' gem 'cancan' gem 'activeadmin' gem 'simple_form' # Frontend stuff gem 'compass' +gem 'compass-960-plugin' gem 'slim' # For heroku @@ -17,6 +19,7 @@ gem 'heroku' group :development, :test do + gem 'cucumber-rails' gem 'rspec-rails' gem 'factory_girl' gem 'capybara' diff --git a/Gemfile.lock b/Gemfile.lock index 85840c0..5b4d5ac 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -64,6 +64,18 @@ GEM chunky_png (~> 1.2) fssm (>= 0.2.7) sass (~> 3.1) + compass-960-plugin (0.10.4) + compass (>= 0.10.0) + cucumber (1.1.4) + builder (>= 2.1.2) + diff-lcs (>= 1.1.2) + gherkin (~> 2.7.1) + json (>= 1.4.6) + term-ansicolor (>= 1.0.6) + cucumber-rails (1.2.1) + capybara (>= 1.1.2) + cucumber (>= 1.1.3) + nokogiri (>= 1.5.0) devise (1.5.0) bcrypt-ruby (~> 3.0) orm_adapter (~> 0.0.3) @@ -76,11 +88,15 @@ GEM activesupport fastercsv (1.5.4) ffi (1.0.11) + foreigner (1.1.1) + activerecord (>= 3.0.0) formtastic (1.2.4) actionpack (>= 2.3.7) activesupport (>= 2.3.7) i18n (~> 0.4) fssm (0.2.7) + gherkin (2.7.1) + json (>= 1.4.6) has_scope (0.5.1) heroku (2.15.3) launchy (>= 0.3.2) @@ -184,7 +200,7 @@ GEM sprockets (2.0.3) hike (~> 1.2) rack (~> 1.0) - tilt (!= 1.3.0, ~> 1.1) + tilt (~> 1.1, != 1.3.0) temple (0.3.4) term-ansicolor (1.0.7) thor (0.14.6) @@ -210,7 +226,10 @@ DEPENDENCIES capybara coffee-rails (~> 3.1.1) compass + compass-960-plugin + cucumber-rails factory_girl + foreigner heroku jquery-rails pg diff --git a/app/assets/stylesheets/.aplication.css.sass.swp b/app/assets/stylesheets/.aplication.css.sass.swp new file mode 100644 index 0000000000000000000000000000000000000000..9f6f50d1116008ae3eba0a83af1213b76de4776e GIT binary patch literal 12288 zcmeI&O-jTt6bJB(Ah_`Z1=mp*Zk)z1)Q#d+VZ@DYCGEUA(Kx9|DvS%gir^i*f_D%+ zf*_v2R~eB}M$nZq|H5lNoAmv5rAZeLcN%g%SrL3q2ywakvbXj0Aa>V;@MW94Ya2SP z2K!$P=TlRL#JWt|{?o+O$AW6#yA#S{P`*q%x+sDQE{|H}6r#D%w%(+=X_C=F@u<=v z5Kj)VV=1(#s_VjV+aBREl|e1zA-9RmX{VQhq>7qIW>7O&?HD6 z0uX=z1Rwwb2tWV=gC-D*nz-hqhq{RmcgxzRvfD%f0SG_<0uX=z1Rwwb2tWV=5P-lx z6wpl}!nhE(9M%8-_wWB_Za;F|bKG%MTg>?B_HFIZ$vDB0~-xp+BMrq=FkjKQw z+O@SEnNp18`5Bq@ZqwW9zv(ZxR6kn(Yx-Za-!^B3^HEkg^Fes!iO;87HPfmP4lR4aN?yed?@)N9FZrx;B)YbGnygT9NtgRkH_2tI-! zK7mzp0+lD)J`ajX#C?7W{Gygt+ME|ISa_O38|Sr=!I zp7WWhB(*Nrc6J-xPB&Di-d%7WMENS4=&}?gZWOc{u>^CiZF|UVGi0Mh#j4UG9GfLf zEXz69&oOOHu7hz!nv0|odwzL2N)VWPfhFp0Z*^*h&5iYBZM8r5A^?B@1Rwwb2tWV= z5P-lu352pmck#dr&7l{Yx%FdimY5&_0SG_<0uX=z1Rwwb2tWV=5cr1zdPpS8L=Q3Q z|No!g|8H^q65}bxV~o0f9|Hpd5P$##AOHafKmY;|fB*y_0D(UdP-;K%d{r6GgW#Ey nl)k5g?T8M|xO6@wxf_@99=!4#@5_H>2brz7^ro1mnnwBnFI{2} literal 0 HcmV?d00001 diff --git a/app/assets/stylesheets/application.css.sass b/app/assets/stylesheets/application.css.sass new file mode 100644 index 0000000..27edd38 --- /dev/null +++ b/app/assets/stylesheets/application.css.sass @@ -0,0 +1,5 @@ +@import compass +@import _blueprint +@import compass/reset +//= require_self +//= require_tree . diff --git a/app/controllers/.pages_controller.rb.swp b/app/controllers/.pages_controller.rb.swp new file mode 100644 index 0000000000000000000000000000000000000000..86dc7ad8ab76ab4e0735e819607639e3b4637d7a GIT binary patch literal 12288 zcmeI&ze>a~90%~;VK?i*!2Pb_D9bJ6` zpTM+K4}^0segnV!$REt8e4fod-syCo$kml}rc&~%SzO#E z#$~GZi8i^=i?`AJ{6Ic+W+wCCxvR5VVXf!hltJ)P`k-!v9u{(_3aNzWah2z$3eIRP zo#$3uN}tYW5|{n)P%J?J0-eALjrVp(&0u?LlWnY@Lk0p6fB*y_009U<00I#BM*_hP z=po*Bsk`%Xmj}OcH$;K}1Rwwb2tWV=5P$##AOHafK%j>Lq9D3kC3=j}{Qv*{{(p<( z*BCD`o?|@4X!rE+j(BAVKmY;|fB*y_009U<00IzzKraMj)2f14+qFG0R>+dY5_#d% lYvW`p@>n=8iE=HxXVa!g{`jYAo*l9yYqiQnP^OyC(--Y4T~7c2 literal 0 HcmV?d00001 diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb new file mode 100644 index 0000000..235bf7f --- /dev/null +++ b/app/controllers/pages_controller.rb @@ -0,0 +1,6 @@ +class PagesController < ApplicationController + + def ideas_more_active + + end +end diff --git a/app/views/layouts/._filters.html.slim.swp b/app/views/layouts/._filters.html.slim.swp new file mode 100644 index 0000000000000000000000000000000000000000..7cfa3f3193c8d65b4aa5c0d1c19e9275f0f5e490 GIT binary patch literal 12288 zcmeI&J#W-77zc1)cU}ZLGRNHH$|0DTn2L0#3W+WVp(ly&&fv2nzZ~iUd<<4Lip0*w z5IzO)4cMxxb04b-l`54LA^w*Bu`fQ`@o$UbYO=pOlMjli;BsAvlbxga$6w#Y=6@-lP2(kT?i)nqRJn|O0RVY%nsOI62E`cxfI+lDf@MWk|}Lev{F+l|`R zjnWiK?kzW3y$+?J1DANri-k5(`B1Fl+7!X)^&eJ67X%=1CU8Ye@9s=;`_A~bym{j( zU?2bi2tWV=5P$##AOL~?NFcT&@s{_y)$jRQUym--{ZCX7fB*y_009U<00Izz00bZa z0SNqq0@Mg`cvXl|e(~q;|HJ$LF*km4esI2VzH+{B-gDk@Dh_exoL$a@bBmMb+2Wu; z00Izz00bZa0SG_<0uX=z1pbnMqVL?-&UBw_ zt!cP3bCou_p+?E%E3&yG8NRIU$vx*~O;IhK=K;frC#qI9s&&3d%E#BKq2DWTZ+Ezs z+G<{8xGyC=TY0s3I37QjGkzY~x;7c|Y8ZE6RX#gUvHQ#?=xd%jKh0FmX`_}&@t%S_ PJ5VnQOB=nUsGSw3Xl9zV literal 0 HcmV?d00001 diff --git a/app/views/layouts/.application.html.slim.swp b/app/views/layouts/.application.html.slim.swp new file mode 100644 index 0000000000000000000000000000000000000000..a12cf35d7b6047defccfd2f37ea3e87da52534e7 GIT binary patch literal 12288 zcmeI&%Wl*#6b9fk-2(--EDpnZlF~|mkiv$GG)OI#xJU@3ktcB&Pd#yDJA<+SUV|s# zb=borzzQ~9auTJ0KxJR%xAe>7*zv^QF3OqjJe%(G&18?HZ4({remnU5k=_MM-bCM4G7%AUTA-u~J!J@js=^B7X!%v)90Aq}pKDlK)0X07a`&=XT= zqe3dP>DuVmA+@S?joc$wtjSe0u1XehWs_jd>K}iMDF|%3KoiT!t#h=udwr*)xHi7Z zmoGitbQPQ*0uX=z1Rwwb2tWV=8zm6y5xtWWZw;ruIP{}G`eBF;0uX=z1Rwwb2tWV= z5P$##AOL|gD4+_W_veX@CEfS`llTAQ3q;=~UnL(UA0%%iONo}el)R8UmP{pAB-@fL z$w<=gcLqK1$Pj=41Rwwb2tWV=5P$##An<<)Fqh6n?TNT=8Mj8;q8|k*OqbH~pEF)p zh4y^ARz4bKIlIH-lT!53SlK0v`^73q$-4YX=B{YFoflfkozxGRGtPrAXDc1mEUH&Q z7G%6sYZY>D>Nqo1Zks}Pb3Fd7#=YA-;}Bb`!$Rvgv!*)gS26#!kU5%YH9r^%>ABE6 W?F;FL=b^4*p6)%m`{eoIefj~Rc$jzq literal 0 HcmV?d00001 diff --git a/app/views/layouts/_filters.html.slim b/app/views/layouts/_filters.html.slim new file mode 100644 index 0000000..323c142 --- /dev/null +++ b/app/views/layouts/_filters.html.slim @@ -0,0 +1,15 @@ +.navigation + h3 Navegue nas ideias + + h4 Por estatísticas + ul + li + a[href=""] Mais populares + li Recém iniciadas + li Recentemente alteradas + + h4 Por categoria + ul + li Mobilidade urbana + li Violência + li Catástrofes naturais diff --git a/app/views/layouts/application.html.slim b/app/views/layouts/application.html.slim new file mode 100644 index 0000000..7af59a7 --- /dev/null +++ b/app/views/layouts/application.html.slim @@ -0,0 +1,17 @@ +DOCTYPE +html + head + title Festival de Ideias + = stylesheet_link_tag "application" + = javascript_include_tag "application" + = csrf_meta_tags +body + header + + .body + aside + = render :partial => "layouts/filters" + section + = yield + + footer diff --git a/app/views/pages/.ideas_more_active.html.slim.swp b/app/views/pages/.ideas_more_active.html.slim.swp new file mode 100644 index 0000000000000000000000000000000000000000..5ba236d1e25737a0251f6abe8abc616e7192e161 GIT binary patch literal 12288 zcmeI2J#W-77{^@%6D>vM3z#67dP#eCz;p{Y9pVrYFH2ROoWyrAP2$LQt^yVK0Bj5_ zAl42rbzlJ|1{TBs0}^5c35k~hz5xFVIe`#mukNw*i!&&r>F&eW&EFRcE*O1PM$QJN46liz zuz}S>CxW50PK`y{h-E{?QVAO%8;q6Qv_T<8(gp|%JIJ(=0})}c^b?n*zD-s3pPN&P z49vWN1=eb=u1qu>^N#W(OP6Qf2niqqWPl8i0Wv@a$N(821G8kn6?5zs9(Z5<(2csE z`>U@{sUrhqfDDiUGC&5%02v?yWPl8i0Wv@a_Mia~Gxq2pV_Wkm9{>NR-~V408T$<0 zgSX%%cmPUp5%j?ca2zaxABPzG1m1vW;3;?l9)pMA2Dk*8U>O_$`@y#b#$JOLU z_rP6n8?1viSOW9lBkKGBUV$C34eo%d{ypfQN+ttjfDDiUGC&5%02v?yvtoc(%`c=b zQaOlpnLFNMbu?8Q(^>74)qW&er*@uFezrd|PnIBb_^=!ctT@;fJMjI$ukS9Ckc! zoz+v$VaIUBRbk7FTjjXOq+6a$w%CX)OH&Ois-rDL&U?9vl!yf{wBdbWl;GV&MWPy! zG>N6CjYd@COt)apy=6+&F;v?43dw>H+glqp zUn|T-kviKf%Jz`wxouk0alF|P*2#6Q8kuOwOh|56)^w^{4cFv05BLk6v$UtNuG7uSv3`7PZ1CfFMF#|5& z#oj@DcU3VStUh<`_^iIhkH|n|ATkgchzvvqA_I|u$UtNuG7uSv3`7S0gADMDvFrCR z_Wo`-kN^K4|NZ~{!;IYkz5%`lJ_Ftao&at<#Mr06b>I`=UEmF1H}KV7#sS z0Rvzi*bm$d{CF>8KLB0eH^lTI@B!fCdk=_DWFRsS8Hf!0iwua{KRRPXBK%7g~2BL+c7$;p5H}Hra~4 zB{cXEbc_}~y_56t73?JIqOiDUhZ*&SWWF9|)aZOQYC1GDWkI9KbCmYD?h0}}X-S56 zG~n8iGbAqOvJk|Tnq0zeV^V0|Rw9E*SCpc%crpxPXKdj;qg>`f!S`)Dbfj{kK$3kL z@ROydj?wC(*8`H0U8pu&3ik+0xMPL364wj`O{^L8WZI*FgsW{qqdnnIr!f8CfHGY_ zDw1usg-%T-br*h5g)3GgWz}fQn)f~v9bPI2byw3%i@l{LC;GYKPFU)gf>v-Dk`|I9 zm5tiC3gp6Jom6|Y!Zpi~y==@=RV-oJX0dn{PRL?)g-d0V!WfraG*VC3`@{Mi)koV{ z|Kn_OrD)F$`|4_aCUK@^$CRC&aJ@2%94`t@TxTJxuHf1t0H_5ac&fjIVou!L7|S@wGpWusY8bRED9DhbYc@aQ6&W-ojbdfR5CdOnR&ZOm^w}z{PubD z-9~mKau?ou7W&?a<7tr7ibx^25M~2Bpo~Hlgv#&>b_UJEvQ`n6C8ljf;Y-g~X3Eo^ zDCTIf%ZoPeidJfr!i`zu$Doz6-x|-a91lJ~N;Dp~aG5)@JyR;5tpOieuWekz)sXB? zXGU$)8(&3=FQ+2+S#4?K5b@~ZElgXh;P0gpW!*=XFyf1QEST^m<=UGG66cmULE)+B z8I_4*lqIYfTf_FgOWQicTK(6El^j3uj){lqix)b<>Mgg1z*@aWyyEHi5G~Q#D$iID{rnDpGtyfq42_6NR2`-OS83S3GAUtJSHA z0znb`gCSRD=noL&=+4gISVh!0__F7xD?Vm$L4Q<-R4;ssZ$cjRt-(|NtU_f$l;QWE X>3Whh+fX$+eyeqA`Q?+X)(ra-hi;Yn literal 0 HcmV?d00001 diff --git a/config/.database.yml.swp b/config/.database.yml.swp new file mode 100644 index 0000000000000000000000000000000000000000..9fcce5e253da3333a70426942edf06a5c2e18011 GIT binary patch literal 12288 zcmeI2zi-n(6vwZfSPBScq=zdpASEtT0%UcBp-4px6vpUmKPT7PcjkVyiiAL7VB3@n&)8fA*R4$<>*Z$R^;y95sWk^!c$eCc4`tiB)S1f5v_j|A zk*qrNfC(@GCcp%k z025#WOn?b6f&Y+zEQNr}LbRm#{eSZR|Ky4g-$`FdpGa>>k4WpJZ)E$K^pW(A^okVy z8&XZ$CmoOyQjC3x^o0WdA^jr#B%P3WF##sP1egF5U;<2l2`~XBzyz4UzY_r1*~#Fx zr?F{Kgd#LK+Kk)*CiBu6G#GkTncm2V92WU3dUhIT`N>&^$<%i5bYy#p3yjvHdS|Ph zi#4q}wpn5&L+zc2tz>X()X^q9G@y+KhaUVuIVf}RhAt7DY!DNoj%g2yYyH>WlaM^6YM#kNvm)?Kpl^PX4xUJ@(`04;)S$Y>3#;!DCyLg z%2k?TQUOUUHGyMQ*N`JnG8YeYdG1Zk_dZiL*#(DIQ$txyKAFr17?{XnG<+W~$xxQE W_4GS{mhSr&-OF0cgd%WLkbePUJOVlZ literal 0 HcmV?d00001 diff --git a/config/.routes.rb.swp b/config/.routes.rb.swp new file mode 100644 index 0000000000000000000000000000000000000000..34f5c143c142e887813704fecabe7f2f03367d49 GIT binary patch literal 12288 zcmeI&!Aiq07zgmogEvw11>$xXf@`M(m4X97gb5QbdL3WebVj?TCh3M3eE?s>7gBFt zeFLAsbW{Z0^sM{?A0hod8uGh^d|~^%*XO%lhqJb5B*cEE=6RGuZ!@8^4$1FC6@d|7%Rt=wqntev5;i^NM(r} z`dSrM7*B^k?0^&mATU#)ut{rgiFLNO+GV~`U*~J9XERIj5dsi^00bZa0SG_<0ucD0 z0yeL)J9o5&>UfLQT>COtOH2@e00bZa0SG_<0uX=z1Rwwb2>d|-iW%!JySIK9<@^7~ z{r}mmpIkh;n7A0bC~K}=U_bx@5P$##AOHafKmY;|fB*y_@SA|h+?AX25!vX1H+|RS z?t0uuBuy()DTPW?Os2{AyS$#$P?*NFVlYx#3@CEV@uI%T12Sbr@Ga+dKdM^j4@Ga< YKpzALd7jFMtW=p-wb93#COlT`9jGa2QUCw| literal 0 HcmV?d00001 diff --git a/config/application.rb b/config/application.rb index bfffbf2..cb65a84 100644 --- a/config/application.rb +++ b/config/application.rb @@ -44,5 +44,10 @@ class Application < Rails::Application # Version of your assets, change this if you want to expire all your assets config.assets.version = '1.0' + config.generators.stylesheet_engine = :sass + + config.sass.load_paths << "#{Gem.loaded_specs['compass'].full_gem_path}/frameworks/compass/stylesheets" + config.sass.load_paths << "#{Gem.loaded_specs['compass'].full_gem_path}/frameworks/blueprint/stylesheets" + config.sass.load_paths << "#{Gem.loaded_specs['compass-960-plugin'].full_gem_path}/stylesheets" end end diff --git a/config/cucumber.yml b/config/cucumber.yml new file mode 100644 index 0000000..19b288d --- /dev/null +++ b/config/cucumber.yml @@ -0,0 +1,8 @@ +<% +rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : "" +rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}" +std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} --strict --tags ~@wip" +%> +default: <%= std_opts %> features +wip: --tags @wip:3 --wip features +rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip diff --git a/config/database.yml b/config/database.yml index f26e62d..bd15268 100644 --- a/config/database.yml +++ b/config/database.yml @@ -1,24 +1,13 @@ -# SQLite version 3.x -# gem install sqlite3 -# -# Ensure the SQLite 3 gem is defined in your Gemfile -# gem 'sqlite3' development: &defaults adapter: postgresql host: localhost username: runeroniek - database: meu_rio_development - -frontend: - <<: *defaults - + database: festival_ideias_development # Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". # Do not set this db to the same as development or production. test: &test <<: *defaults - database: meu_rio_test - - + database: festival_ideias_test cucumber: <<: *test diff --git a/config/environments/.production.rb.swp b/config/environments/.production.rb.swp new file mode 100644 index 0000000000000000000000000000000000000000..fdbbd0fd35fb296631ff3bd358daa8bbd1ffd11d GIT binary patch literal 12288 zcmeHNzi%8x6y8wqJAg<>0TV~aM#OtIkrHH)!b%7vO5(^DBdAVuyKnC%-kVuwX6;;q zLk$HIgpLjx{su&e_y+<3K@Tm^P>}Gw**$wNB54t5PWp6vvomkr``&xs$np$V-a3Ct zoJvn5_&k#&-#+)-<^IhdlM5%4#MYXu(TcYD<^4aGj2)`lrKQPadH-q2dj|%4SFE{4 znRh)~52v!KT+f-p%U(gws~uS`=d`SHQquJ@qYE|ak={}8WI(lnws2G&d3J06O?-$9LK_=yZe1|kEIfyltW!2szz z5u&;7mP*`i+o6H0tIAlP=2ThAB;R-wr^T8!UKLZ!J|_BDCc3ZrT}DoLBP@-S^JFO( zB|qRkpGyw*P^+)%w2);vl-ag}U2kg&M*Wz?d48KyA?wl)!reX+yJONqVxH8lY`n>& z7T8h@Nff5m`AfmT>sk&=678~sJqlxkVX-uk+iSlJfF=G z&79-#CKtqJgv@hG&cXX#RhAsM8fgQP=QqX-?@~^inN-+aynI@`xVt1ANt=z+Yfdy& zT{)Nm%ZlBV*d#0$OSl_ZswVMRa$IzOXO0JuexwjN(90M4y)*s3kd`pSL`~UQLQc9I zwv?dIyfr1$5;hx*jq~7QVeEai*6TGMq;y?Qs*+MfvCyU5k=;>xBupXHM2-lqI6p1P zjR|o#eqE3|vY%O1d1Tm{37l;L0|^!xm~$(W*%$@y!6cXXgeHT|P}q9QAuy4vqCib+ zFT#6l%S)6N2e(4!43}m!A`6@Ssl)Td@H5r4`;Ru;*<6r0dd8|@?NL}rChGKFyMvN; zsAP9@8rGv=uumi~YNvk8{J<~nCYTjVZ8r(!#G2BDna>Nh%s_x+d;6Vujt4`6WrnT} zZO!&j2f|<%(eGb8E@}|dhp(AmzRJDHnz7ucthUNen_Tb|$0LMZGTVw=Iu}h_6^OZ# z9`$*B;Gir83U@F@B?ST(-(Fsa7v=IM~> zT064hB4}u=C{qR84D_`w__6e2YHHgS5C`6f2RqAjv%~XgYU_9+wc^{wAorb(t7|9L9-{r)URVhEnnl?3cdk(SY;-?kZ?MctPbeRL z)oNSQ&Rd%oy8_(0HWP?B9Wr{+vn~a3W-)Iji%M0HFO7mP&vxw_t-nT>UOl{E!I!u8Qw2>puYgyv_1){{ARTiFZ*E;{ri&zx&^v9untD`xf5 z$mdL`a)U%GH%D=!-Ed(hR25m2TO$md?S0x?H}U0gZQKsP+rZMhH7B4syhQWqI(@E& zZU%kFNy#naf^?#2`3L}^pn)YOv@zG{0$SwL<;}_ literal 0 HcmV?d00001 diff --git a/config/routes.rb b/config/routes.rb index fed6121..c70e193 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,58 +1,6 @@ FestivalDeIdeias::Application.routes.draw do - # The priority is based upon order of creation: - # first created -> highest priority. - # Sample of regular route: - # match 'products/:id' => 'catalog#view' - # Keep in mind you can assign values other than :controller and :action - # Sample of named route: - # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase - # This route can be invoked with purchase_url(:id => product.id) + match '/ideas/mais-colaboradas' => "pages#ideas_more_active", :as => :ideas_more_active - # Sample resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Sample resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Sample resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Sample resource route with more complex sub-resources - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', :on => :collection - # end - # end - - # Sample resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end - - # You can have the root of your site routed with "root" - # just remember to delete public/index.html. - # root :to => 'welcome#index' - - # See how all your routes lay out with "rake routes" - - # This is a legacy wild controller route that's not recommended for RESTful applications. - # Note: This route will make all actions in every controller accessible via GET requests. - # match ':controller(/:action(/:id(.:format)))' end diff --git a/features/.ideas_more_active.feature.swp b/features/.ideas_more_active.feature.swp new file mode 100644 index 0000000000000000000000000000000000000000..6fa3bdf41e7dad31bdc81366ccc4ca5de3f6fae0 GIT binary patch literal 12288 zcmeI&y>1jS5C`xH9R(jsUSK#1s@#S|0*L~N26RY4NI=?Xc6W|5*;}t{??p85Ebs;Un5<)_YBL0>}me=E1@2@-Elp8yfZN5L=A{#e}%Hrp<&p!_6={=&* zw;FuwbT4mSJhpu(T_4AducWy+jozIUES?AdMynKy(3fwe>tYf8G)XblnA}2|^;*|m ztxlpnlGF!{g{>v-&VA5bsVqy!!`5Hki7f~~U@35owl?o>b^Esav7<_MKOTZ@oIqD`)0mi3tJ_fB*y_009U<00Izz00bZaflDYL zHPMIbL|-lP|NqP1|A#k-K3ROUXe{it=+x#V;!+-z;AOHafKmY;|fB*y_ z009X6a{;#Ta;7a$IL>_E)ErfLG&yQ6=efAZm2af{j?;Y>E8bXNyYnsk>2D{;!Ad!9n51F9) literal 0 HcmV?d00001 diff --git a/features/ideas_more_active.feature b/features/ideas_more_active.feature new file mode 100644 index 0000000..79faf66 --- /dev/null +++ b/features/ideas_more_active.feature @@ -0,0 +1,9 @@ +Feature: View more active Ideas + In order to participate in more active ideas + As a visitor + I want to view a selection of the more active ideas + + Scenario: View a selection of active ideas + Given I'm in the more active ideas page + Then I should see "Ideias mais colaboradas" + diff --git a/features/step_definitions/.ideas_more_active_steps.rb.swp b/features/step_definitions/.ideas_more_active_steps.rb.swp new file mode 100644 index 0000000000000000000000000000000000000000..06ac3cf134b8a1e382f5d1243aa5c785b966ee41 GIT binary patch literal 12288 zcmeI&!EO^V5C-50m!1%)J#rZWQWHhV1|q>DpdhtEYD+H_k#~2(8aDRI_6BijpMXb! zL*Jy=K0ABg^Zt<@s)_opktde86u9BZ|*cqTA%|uy=D!@81x) z+K978%hzUc{c~Vls%t+eZKlfgX>@*nVDiD)FOmhHxH|o=s>&zcPJ>FO;)9;6vY$&| z=c1L5uT-d=#Ec--B$uf+I%sQr5)+i4%&e1%%HlSeG%0@I(tq3nOAy#rfyXp@{c6}$ z|Dyez_jXUV6#{ib00Izz00bZa0SG`~D+NN;qKjDhqgC}gtFiT9Tum`R00Izz00bZa z0SG_<0uX=z1R$`10xBnZ_JrstM)Uvw&-edToL|QH72{`&A2Cj2Eb=z6PFxuR5P$## zAOHafKmY;|fB*y_@Sg?5{9D#Qn0{0}}0{sKWXDkum(c&fU4cC#jek7^A$%=C26t#i*k_jWI-Ho8=N#h<+U>#R13s%<~lsm$+wnYgwcaB$w} z%bYqpFm*DMRb>ZOkDMHg*gCZ(^OcNORK`kLd?j6N7+2I)rHvbKxz#tx-z*eQMFpY) zcTixjICk{NVSnP#!2|TfzASw_Qhzdjnq5@HYs6bR8D)3)bz*T$1btHFB zo8SxW`<`9z?O}Y23Pc5>0#SjeKvW1TF&#coO*fQ6XkP0=x_C1HODj zhzwW;7J;817UCB037~-jI038zzda0*QGuwy|3`uKI<1R@&2V@@s@x8TC#92# zwA{Zex1>#ts@$e^MmiqP=r|1>_H3onDP4*~bdi}R&Q*3e7>t#h)JZ?p#UO2i&OfXe zAAFGHIvEtwIyT#zxYCK%mN$1Sm$ek;>-O6nUs!Qt!k&XHtxP=$nsZZ@Mj>>MlG;(B z#uG~pX_q#j46kwNf_n&BP{z(1qfe)<%A(472nuhaT7{gE%&n%WEFC#bsV+xqj7@)k z35t`oWy;iO#0J4TLnxHfFOjmr8YOj`218A4%B3_)!vw z2a_t%i!$@AaDfZG#RIgjFA-_9kk2buC4@{k*V8sFL)e{(TCyz{98Dw|OwQRr&l909 z*LCTP&SBr-aLtbsnIptztH5!zYHm3=*l@FE2Gym7P&8F}4hz^T2%Kwh84-KAnu0?9 z1K@jf3Dc+H7@D``2)Qw#xKC?5_1)|y(t)gRd^f>}7-Iy1%8c;2)GjbMvP2tl+|;#m z1}#G9)-y|BEJHDa%Yp%eB2>vShe@^_J~$v#w#t1Im5p@aLR!3B!=%A3 zA)+s^FD6#NR4=_qurmf^R)-=kd1G9J+ng%kf+^3r!79dJJ8r`;Y+hg0rFo3rdb|QPL_FCy~Pc?W5>`{R3 z7KgrR>=4%JlyBTN!Win~=F-RwKhMX>$moJ5C@6xh%`mY-sy$>lqq*p4gQ~(5Zv+hS zoBHp}CQwT1#NTh~N{Dq?%@S#3zm2)+?*yrX?{M!(t;K@q&MJ7yH?FVN8|NjQXlEFr zSAB6R!x($rkZI0_BAd|8O?i9|Hx %w[widgets]} +# end +# +# Before('~@no-txn', '~@selenium', '~@culerity', '~@celerity', '~@javascript') do +# DatabaseCleaner.strategy = :transaction +# end +# + +# Possible values are :truncation and :transaction +# The :transaction strategy is faster, but might give you threading problems. +# See https://github.com/cucumber/cucumber-rails/blob/master/features/choose_javascript_database_strategy.feature +Cucumber::Rails::Database.javascript_strategy = :truncation + diff --git a/lib/tasks/cucumber.rake b/lib/tasks/cucumber.rake new file mode 100644 index 0000000..83f7947 --- /dev/null +++ b/lib/tasks/cucumber.rake @@ -0,0 +1,65 @@ +# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril. +# It is recommended to regenerate this file in the future when you upgrade to a +# newer version of cucumber-rails. Consider adding your own code to a new file +# instead of editing this one. Cucumber will automatically load all features/**/*.rb +# files. + + +unless ARGV.any? {|a| a =~ /^gems/} # Don't load anything when running the gems:* tasks + +vendored_cucumber_bin = Dir["#{Rails.root}/vendor/{gems,plugins}/cucumber*/bin/cucumber"].first +$LOAD_PATH.unshift(File.dirname(vendored_cucumber_bin) + '/../lib') unless vendored_cucumber_bin.nil? + +begin + require 'cucumber/rake/task' + + namespace :cucumber do + Cucumber::Rake::Task.new({:ok => 'db:test:prepare'}, 'Run features that should pass') do |t| + t.binary = vendored_cucumber_bin # If nil, the gem's binary is used. + t.fork = true # You may get faster startup if you set this to false + t.profile = 'default' + end + + Cucumber::Rake::Task.new({:wip => 'db:test:prepare'}, 'Run features that are being worked on') do |t| + t.binary = vendored_cucumber_bin + t.fork = true # You may get faster startup if you set this to false + t.profile = 'wip' + end + + Cucumber::Rake::Task.new({:rerun => 'db:test:prepare'}, 'Record failing features and run only them if any exist') do |t| + t.binary = vendored_cucumber_bin + t.fork = true # You may get faster startup if you set this to false + t.profile = 'rerun' + end + + desc 'Run all features' + task :all => [:ok, :wip] + + task :statsetup do + require 'rails/code_statistics' + ::STATS_DIRECTORIES << %w(Cucumber\ features features) if File.exist?('features') + ::CodeStatistics::TEST_TYPES << "Cucumber features" if File.exist?('features') + end + end + desc 'Alias for cucumber:ok' + task :cucumber => 'cucumber:ok' + + task :default => :cucumber + + task :features => :cucumber do + STDERR.puts "*** The 'features' task is deprecated. See rake -T cucumber ***" + end + + # In case we don't have ActiveRecord, append a no-op task that we can depend upon. + task 'db:test:prepare' do + end + + task :stats => 'cucumber:statsetup' +rescue LoadError + desc 'cucumber rake task not available (cucumber not installed)' + task :cucumber do + abort 'Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin' + end +end + +end diff --git a/public/stylesheets/aplication.css.css b/public/stylesheets/aplication.css.css new file mode 100644 index 0000000..4f5faa7 --- /dev/null +++ b/public/stylesheets/aplication.css.css @@ -0,0 +1,65 @@ +/* line 17, ../../../../../../.rvm/gems/ruby-1.9.2-p290@festival_ideias/gems/compass-0.11.3/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td, +article, aside, canvas, details, embed, +figure, figcaption, footer, header, hgroup, +menu, nav, output, ruby, section, summary, +time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; +} + +/* line 20, ../../../../../../.rvm/gems/ruby-1.9.2-p290@festival_ideias/gems/compass-0.11.3/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ +body { + line-height: 1; +} + +/* line 22, ../../../../../../.rvm/gems/ruby-1.9.2-p290@festival_ideias/gems/compass-0.11.3/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ +ol, ul { + list-style: none; +} + +/* line 24, ../../../../../../.rvm/gems/ruby-1.9.2-p290@festival_ideias/gems/compass-0.11.3/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ +table { + border-collapse: collapse; + border-spacing: 0; +} + +/* line 26, ../../../../../../.rvm/gems/ruby-1.9.2-p290@festival_ideias/gems/compass-0.11.3/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ +caption, th, td { + text-align: left; + font-weight: normal; + vertical-align: middle; +} + +/* line 28, ../../../../../../.rvm/gems/ruby-1.9.2-p290@festival_ideias/gems/compass-0.11.3/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ +q, blockquote { + quotes: none; +} +/* line 101, ../../../../../../.rvm/gems/ruby-1.9.2-p290@festival_ideias/gems/compass-0.11.3/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ +q:before, q:after, blockquote:before, blockquote:after { + content: ""; + content: none; +} + +/* line 30, ../../../../../../.rvm/gems/ruby-1.9.2-p290@festival_ideias/gems/compass-0.11.3/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ +a img { + border: none; +} + +/* line 115, ../../../../../../.rvm/gems/ruby-1.9.2-p290@festival_ideias/gems/compass-0.11.3/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ +article, aside, details, figcaption, figure, +footer, header, hgroup, menu, nav, section { + display: block; +} diff --git a/public/stylesheets/application.css.css b/public/stylesheets/application.css.css new file mode 100644 index 0000000..4f5faa7 --- /dev/null +++ b/public/stylesheets/application.css.css @@ -0,0 +1,65 @@ +/* line 17, ../../../../../../.rvm/gems/ruby-1.9.2-p290@festival_ideias/gems/compass-0.11.3/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td, +article, aside, canvas, details, embed, +figure, figcaption, footer, header, hgroup, +menu, nav, output, ruby, section, summary, +time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; +} + +/* line 20, ../../../../../../.rvm/gems/ruby-1.9.2-p290@festival_ideias/gems/compass-0.11.3/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ +body { + line-height: 1; +} + +/* line 22, ../../../../../../.rvm/gems/ruby-1.9.2-p290@festival_ideias/gems/compass-0.11.3/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ +ol, ul { + list-style: none; +} + +/* line 24, ../../../../../../.rvm/gems/ruby-1.9.2-p290@festival_ideias/gems/compass-0.11.3/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ +table { + border-collapse: collapse; + border-spacing: 0; +} + +/* line 26, ../../../../../../.rvm/gems/ruby-1.9.2-p290@festival_ideias/gems/compass-0.11.3/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ +caption, th, td { + text-align: left; + font-weight: normal; + vertical-align: middle; +} + +/* line 28, ../../../../../../.rvm/gems/ruby-1.9.2-p290@festival_ideias/gems/compass-0.11.3/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ +q, blockquote { + quotes: none; +} +/* line 101, ../../../../../../.rvm/gems/ruby-1.9.2-p290@festival_ideias/gems/compass-0.11.3/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ +q:before, q:after, blockquote:before, blockquote:after { + content: ""; + content: none; +} + +/* line 30, ../../../../../../.rvm/gems/ruby-1.9.2-p290@festival_ideias/gems/compass-0.11.3/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ +a img { + border: none; +} + +/* line 115, ../../../../../../.rvm/gems/ruby-1.9.2-p290@festival_ideias/gems/compass-0.11.3/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ +article, aside, details, figcaption, figure, +footer, header, hgroup, menu, nav, section { + display: block; +} diff --git a/script/cucumber b/script/cucumber new file mode 100755 index 0000000..7fa5c92 --- /dev/null +++ b/script/cucumber @@ -0,0 +1,10 @@ +#!/usr/bin/env ruby + +vendored_cucumber_bin = Dir["#{File.dirname(__FILE__)}/../vendor/{gems,plugins}/cucumber*/bin/cucumber"].first +if vendored_cucumber_bin + load File.expand_path(vendored_cucumber_bin) +else + require 'rubygems' unless ENV['NO_RUBYGEMS'] + require 'cucumber' + load Cucumber::BINARY +end