GithubHelp home page GithubHelp logo

amoose / coaster-app Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 8.77 MB

Makes riding the coaster a breeze

Home Page: https://coaster.herokuapp.com

Ruby 74.28% JavaScript 1.57% CoffeeScript 0.41% CSS 2.70% HTML 21.03%

coaster-app's People

Contributors

amoose avatar donotreply avatar trevormast avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

coaster-app's Issues

Enable rubocop in Travis CI

The last step for maintaining consistency is to enable rubocop to run in Travis CI and return error exit status when there are violations.

Make Geolocations dependent on destroy

Geolocations persist after Stations/Users are destroyed, which is a huge problem since we're gathering stations near the user by the station's geolocation.

User geolocation not geocoded

I've been getting this error in the chrome console: 'Cannot read property "lat" of null'

Apparently some User geolocations aren't getting geocoded:

#<Geolocation:0x007fbfecc91e78
 id: 12,
 latitude: nil,
 longitude: nil,
 address: "98.176.195.218",
 geocodeable_id: 4,
 geocodeable_type: "User",
 created_at: Fri, 08 Jul 2016 18:43:48 PDT -07:00,
 updated_at: Fri, 08 Jul 2016 18:43:48 PDT -07:00,
 accuracy: 9,
 gmaps: nil>

Hide session secrets

secret_token.rb has been pushed to git many times.

We need to update the token and add this file to .gitignore

Flickering spec

https://s3.amazonaws.com/archive.travis-ci.org/jobs/137864487/log.txt?deansi=true

Failures:

  1) UsersController POST create with permitted params creates a user
     �[31mFailure/Error: �[0m�[32mif�[0m @current_user �[32mand�[0m @current_user.ip_address != request.remote_ip �[32mand�[0m @current_user.geolocation.updated_at < �[1;34m1�[0m.hour.ago�[0m
     �[31m�[0m
     �[31mNoMethodError:�[0m
     �[31m  undefined method `<' for nil:NilClass�[0m
     �[36m# ./app/helpers/sessions_helper.rb:9:in `current_user='�[0m
     �[36m# ./app/helpers/sessions_helper.rb:4:in `sign_in'�[0m
     �[36m# ./app/controllers/users_controller.rb:22:in `create'�[0m
     �[36m# ./spec/controllers/users_controller_spec.rb:34:in `block (5 levels) in <top (required)>'�[0m
     �[36m# ./spec/controllers/users_controller_spec.rb:33:in `block (4 levels) in <top (required)>'�[0m

Finished in 52.3 seconds (files took 2.09 seconds to load)
�[31m29 examples, 1 failure�[0m

Failed examples:

�[31mrspec ./spec/controllers/users_controller_spec.rb:32�[0m �[36m# UsersController POST create with permitted params creates a user�[0m

Coverage report generated for RSpec to /home/travis/build/amoose/coaster-app/coverage. 241 / 373 LOC (64.61%) covered.
/home/travis/.rvm/rubies/ruby-2.3.1/bin/ruby -I/home/travis/build/amoose/coaster-app/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.4.4/lib:/home/travis/build/amoose/coaster-app/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.4.1/lib /home/travis/build/amoose/coaster-app/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.4.4/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb failed

travis_time:end:02cd8604:start=1466011796807600553,finish=1466011853345264833,duration=56537664280
�[0K
�[31;1mThe command "bundle exec rake" exited with 1

Needs test suite

We need specs to ensure that all is well with our app. Rspec to the rescue!

No route for updating location

Started GET "/users/8/update_geolocation?latitude=32.7565455&longitude=-117.11758259999999" for ::1 at 2016-06-21 21:28:11 -0700

ActionController::RoutingError (No route matches [GET] "/users/8/update_geolocation")

Update Gmaps4rails to v2

There isn't much documentation for gmaps4rails v1, and it seems that the Gmaps API has changed since 2011 😆 , so an upgrade appears to be in order!

Update bin/setup

Update the application setup using bin/setup and update instructions in README

Update importing method

Once upon a time, I found a programatic method for importing train data.. implement it! ✨

UI - Update interface to show relevant schedule

Show nearest station schedule at first visit
Either prompt or add a nice UI element for enabling geolocating in the browser
Depending on the accuracy, show the nearest station or stations

Testing error

Tests are barking:
"NoMethodError: undefined method `attr_accessible' for #Class:0x007fd2c0065938"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.