Permalink
Browse files

initial

  • Loading branch information...
kristianmandrup committed Sep 6, 2012
0 parents commit 970719d87ee4bb01b609c8d7f8018f6ada47f2ed
Showing 658 changed files with 98,324 additions and 0 deletions.
@@ -0,0 +1,29 @@
+# See http://help.github.com/ignore-files/ for more about ignoring files.
+#
+# If you find yourself ignoring temporary files generated by your text editor
+# or operating system, you probably want to add a global ignore instead:
+# git config --global core.excludesfile ~/.gitignore_global
+
+sandbox
+
+# Ignore bundler config
+/.bundle
+
+# Ignore the default SQLite database.
+/db/*.sqlite3
+
+# Ignore all logfiles and tempfiles.
+/log/*.log
+/tmp
+
+.DS_Store
+*/.DS_Store
+
+# Ignore other unneeded files.
+#doc/
+*.swp
+*~
+.project
+.DS_Store
+
+config/heroku.yml
3 .rspec
@@ -0,0 +1,3 @@
+--colour
+--format nested
+--drb
2 .rvmrc
@@ -0,0 +1,2 @@
+rvm use 1.9.3
+rvm 1.9.3@friendly_view
20 Gemfile
@@ -0,0 +1,20 @@
+source :rubygems
+
+gem 'rails', '~> 3.2'
+
+# gem 'fabrication'
+# gem 'gmaps4rails'
+
+# gem 'world-flags', '~> 0.6.3'
+# gem 'pictos-icons', '>= 0.2.0'
+# gem 'social_icons', '~> 0.3.0'
+# gem 'credit_card_icons', '~> 0.1.0'
+
+# gem 'easy_as_pie', '>= 0.1.0'
+
+# gem 'rails-gallery', '~> 0.2.0'
+
+# gem 'partializer', '~> 0.1.0'
+
+# path: '/Users/kmandrup/private/repos/tester/apotomo'
+gem 'apotomo-ext', path: '/Users/kmandrup/private/repos/apotomo'
@@ -0,0 +1,99 @@
+PATH
+ remote: /Users/kmandrup/private/repos/apotomo
+ specs:
+ apotomo-ext (1.2.4)
+ cells (>= 3.6.7)
+ hooks (~> 0.2.0)
+ onfire (~> 0.2.0)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ actionmailer (3.2.8)
+ actionpack (= 3.2.8)
+ mail (~> 2.4.4)
+ actionpack (3.2.8)
+ activemodel (= 3.2.8)
+ activesupport (= 3.2.8)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ journey (~> 1.0.4)
+ rack (~> 1.4.0)
+ rack-cache (~> 1.2)
+ rack-test (~> 0.6.1)
+ sprockets (~> 2.1.3)
+ activemodel (3.2.8)
+ activesupport (= 3.2.8)
+ builder (~> 3.0.0)
+ activerecord (3.2.8)
+ activemodel (= 3.2.8)
+ activesupport (= 3.2.8)
+ arel (~> 3.0.2)
+ tzinfo (~> 0.3.29)
+ activeresource (3.2.8)
+ activemodel (= 3.2.8)
+ activesupport (= 3.2.8)
+ activesupport (3.2.8)
+ i18n (~> 0.6)
+ multi_json (~> 1.0)
+ arel (3.0.2)
+ builder (3.0.0)
+ cells (3.8.5)
+ actionpack (~> 3.0)
+ railties (~> 3.0)
+ erubis (2.7.0)
+ hike (1.2.1)
+ hooks (0.2.1)
+ i18n (0.6.1)
+ journey (1.0.4)
+ json (1.7.5)
+ mail (2.4.4)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.19)
+ multi_json (1.3.6)
+ onfire (0.2.0)
+ polyglot (0.3.3)
+ rack (1.4.1)
+ rack-cache (1.2)
+ rack (>= 0.4)
+ rack-ssl (1.3.2)
+ rack
+ rack-test (0.6.1)
+ rack (>= 1.0)
+ rails (3.2.8)
+ actionmailer (= 3.2.8)
+ actionpack (= 3.2.8)
+ activerecord (= 3.2.8)
+ activeresource (= 3.2.8)
+ activesupport (= 3.2.8)
+ bundler (~> 1.0)
+ railties (= 3.2.8)
+ railties (3.2.8)
+ actionpack (= 3.2.8)
+ activesupport (= 3.2.8)
+ rack-ssl (~> 1.3.2)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (>= 0.14.6, < 2.0)
+ rake (0.9.2.2)
+ rdoc (3.12)
+ json (~> 1.4)
+ sprockets (2.1.3)
+ hike (~> 1.2)
+ rack (~> 1.0)
+ tilt (~> 1.1, != 1.3.0)
+ thor (0.16.0)
+ tilt (1.3.3)
+ treetop (1.4.10)
+ polyglot
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.33)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ apotomo-ext!
+ rails (~> 3.2)
@@ -0,0 +1,53 @@
+# A sample Guardfile
+# More info at https://github.com/guard/guard#readme
+
+guard 'rspec', :version => 2 do
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
+ watch('spec/spec_helper.rb') { "spec" }
+
+ # added!?
+ watch(%r{^app/controllers/(.+)_(controller)\.rb$}) do |m|
+ ["spec/routing/#{m[1]}_routing_spec.rb",
+ "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb",
+ "spec/acceptance/#{m[1]}_spec.rb",
+ "spec/requests/#{m[1].singularize}_pages_spec.rb"]
+ end
+ watch(%r{^app/views/(.+)/}) do |m|
+ "spec/requests/#{m[1].singularize}_pages_spec.rb"
+ end
+
+ # Rails example
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
+ watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
+ watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
+ watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
+ watch('spec/spec_helper.rb') { "spec" }
+ watch('config/routes.rb') { "spec/routing" }
+ watch('app/controllers/application_controller.rb') { "spec/controllers" }
+ # Capybara request specs
+ watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
+end
+
+
+guard 'rspec', :version => 2 do
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
+ watch('spec/spec_helper.rb') { "spec" }
+
+ # Rails example
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
+ watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
+ watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
+ watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
+ watch('spec/spec_helper.rb') { "spec" }
+ watch('config/routes.rb') { "spec/routing" }
+ watch('app/controllers/application_controller.rb') { "spec/controllers" }
+ # Capybara request specs
+ watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
+end
+
@@ -0,0 +1,3 @@
+worker: QUEUE=* bundle exec rake environment resque:work
+scheduler: bundle exec rake resque:scheduler
+web: bundle exec rails server thin -p $PORT -e $RACK_ENV
@@ -0,0 +1,4 @@
+## Friendly Rent
+
+Yeah :)
+
@@ -0,0 +1,7 @@
+#!/usr/bin/env rake
+# Add your own tasks in files placed in lib/tasks ending in .rake,
+# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
+
+require File.expand_path('../config/application', __FILE__)
+
+FriendlyRent::Application.load_tasks
@@ -0,0 +1,18 @@
+# //= require ui.select_slider.jquery
+
+# //= require chosen.jquery
+
+# //= require gmaps4rails/bing
+# //= require gmaps4rails/googlemaps
+# //= require gmaps4rails/mapquest
+# //= require gmaps4rails/openlayers
+# //= require gmaps4rails/all_apis
+
+# //= require twitter/bootstrap
+
+# //= require i18n
+# //= require i18n/translations
+
+//= require jquery.tools.min
+
+//= require world_flags/url_helper
@@ -0,0 +1,4 @@
+jQuery ->
+ $("a[rel=popover]").popover()
+ $(".tooltip").tooltip()
+ $("a[rel=tooltip]").tooltip()
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
@@ -0,0 +1,48 @@
+body{
+ background:#ddd;
+ font-family:Arial;
+}
+h1{
+ position:relative;
+ text-indent:-9000px;
+ width:557px;
+ height:103px;
+ margin:20px auto 20px auto;
+ background:transparent url(title.png) no-repeat top left;
+}
+span.reference{
+ position:fixed;
+ left:10px;
+ bottom:10px;
+ font-size:12px;
+}
+span.reference a{
+ color:#666;
+ text-shadow:1px 1px 1px #fff;
+ text-transform:uppercase;
+ text-decoration:none;
+ margin-right:30px;
+}
+span.reference a:hover{
+ color:#333;
+}
+.content{
+ width:700px;
+ margin:0 auto;
+}
+
+.msg_slideshow{
+ margin:0 auto;
+}
+a.back{
+ background:transparent url(back.png) no-repeat top left;
+ height:13px;
+ width:248px;
+ display:block;
+ clear:both;
+ text-indent:-9000px;
+ margin:20px auto;
+}
+a.back:hover{
+ background-position:0px -13px;
+}
@@ -0,0 +1,3 @@
+# Place all the behaviors and hooks related to the matching controller here.
+# All this logic will automatically be available in application.js.
+# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -0,0 +1,60 @@
+# Place all the behaviors and hooks related to the matching controller here.
+# All this logic will automatically be available in application.js.
+# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
+$ ->
+ $('.datepicker').datepicker()
+
+ $("li.flag[title]").tooltip()
+
+ console.log country_code
+ selector = "li.flag[data-cc=" + country_code.toLowerCase() + "]"
+
+ $(selector).css('border', '2px solid black')
+
+ $("select.slider.price").selectToUISlider({
+ labels: 4,
+ animate: true,
+ tooltip: true,
+ sliderOptions:
+ change: (e, ui) ->
+ from = $('select#price_from option').eq(ui.values[0]).text()
+ to = $('select#price_to option').eq(ui.values[1]).text()
+ $("#price").val(from + " - " + to)
+
+ })
+ left = $("select.slider#price_from").val()
+ right = $("select.slider#price_to").val()
+
+ $("#price_input").val(left + " - " + right)
+
+ $("select.slider.rooms").selectToUISlider({
+ labels: 3,
+ tooltip: true,
+ animate: true,
+ sliderOptions:
+ change: (e, ui) ->
+ from = $('select#rooms_from option').eq(ui.values[0]).text()
+ to = $('select#rooms_to option').eq(ui.values[1]).text()
+ $("#rooms_input").val(from + " - " + to)
+ })
+
+ left = $("select.slider#rooms_from").val()
+ right = $("select.slider#rooms_to").val()
+
+ $("#rooms_input").val(left + " - " + right)
+
+ $("select.slider.sqm").selectToUISlider({
+ labels: 3,
+ animate: true,
+ tooltip: true,
+ sliderOptions:
+ change: (e, ui) ->
+ from = $('select.slider#sqm_from option').eq(ui.values[0]).text()
+ to = $('select.slider#sqm_to option').eq(ui.values[1]).text()
+ $("#sqm").val(from + " - " + to)
+ })
+
+ left = $("select.slider#sqm_from").val()
+ right = $("select.slider#sqm_to").val()
+
+ $("#sqm").val(left + " - " + right)
@@ -0,0 +1,3 @@
+# Place all the behaviors and hooks related to the matching controller here.
+# All this logic will automatically be available in application.js.
+# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
Oops, something went wrong.

0 comments on commit 970719d

Please sign in to comment.