Permalink
Switch branches/tags
Nothing to show
Commits on Sep 14, 2012
  1. Update README.md

    kitplummer committed Sep 14, 2012
    it is /lat/lon in the code
Commits on Sep 11, 2012
  1. Final Cleanup!

    JohnMurray committed Sep 11, 2012
    Everything is working (I think... should have really wrote some
    tests for this thing) and I've cleaned up the README.md as well as
    gem versions (let's hope that didn't break anything) and yeah...
    
    Other than some general testing and fixing, eveything is looking
    pretty good. Like I mention in the README.md, this isn't production
    code. Just code that I put together as an example for a blog post.
    
    So, if you're reading this post, be aware that this is not, I repeat
    NOT, production code. Please do not use it in production. Thanks! :-)
    
    + Updated gem versions
    + Updated README
    + Updated config.ru to just run the app already
    + Updated app.rb to read fences
    + Updated mongo_core to read fences
    + deleted a useless method from Geofence.rb
Commits on Sep 10, 2012
  1. Merge branch 'master' of github.com:JohnMurray/geofence-server-example

    JohnMurray committed Sep 10, 2012
    Conflicts:
    	src/mongo_core.rb
  2. added read-fences

    JohnMurray committed Sep 10, 2012
Commits on Aug 21, 2012
  1. Mongo-Core implementation

    JohnMurray committed Aug 21, 2012
    I thought I had already done this, but I guess not. Eh, either way it's
    some really simple code. Mongo's doing all of the hard-work here.
Commits on Jun 12, 2012
  1. Renamed "mongo" to "mongo_core"

    JohnMurray committed Jun 12, 2012
    Since mongo was already taken, just needed to change the name.
    
    + Added reference in app.rb and console
    + Changed module name from Mongo to MongoCore
Commits on Jun 11, 2012
Commits on May 30, 2012
  1. Updated console to save history on reloads

    JohnMurray committed May 30, 2012
    When I was reloading, I was calling the 'exec' funciton to reload the
    console program and since I am swapping out processes, I was losing my
    Pry history. Just updated the reload method to save the history before
    starting a new session.
  2. Updated project's console

    JohnMurray committed May 30, 2012
    Needed a simple way to call private goefence messages and the reload
    needed a nice message.
    
    + Added 'g' instance to send messages to the Geofence module. Acting
      as a shorthand, but also calling private methods.
    + Aded a nice message to the reload function
  3. First-pass at working geofence estimation

    JohnMurray committed May 30, 2012
    Well, the geofence seems to be estimating properly based on my first-
    pass testing (just manual testing). I'll do some more testing but I
    can't guarantee that I'll write any more unit-tests. Since it's just
    an example geofence that is pretty minimal in functionality, I might
    just leave it as is. We'll see.
    
    + Updated geofence.rb with awesomeness
Commits on May 24, 2012
  1. Minor updates to geofence.rb

    JohnMurray committed May 24, 2012
    + Added comments to top of 'intersecting_lines' method
    + Added comments in main algorithm method to label the steps
    + Added sorting to the lines to ensure that the first point in the line
      is below the second in lat value.
  2. Added method for intersectng lines

    JohnMurray committed May 24, 2012
    + added self.intersecting_lines to Geofence
    + Updated TODO with new items
    + ensured that self.get_horizontals of Geofence was returning
      sorted horizontals. This is just a nicety when verifying and
      testing. Not really required.
Commits on May 23, 2012
  1. Grid generation, general cleanup

    JohnMurray committed May 23, 2012
    The grid is used in calculating the estimated geofence. The fence is
    overlayed on the grid and the parts of the grid that are located within
    the fence are included (wholely) into the estimated model.
    
    + Added grid generation to geofence.rb
    + Adde specs for geofence (for various functions)
    + renamed console.rb to console.
    + added reload command to console
    + added reload ability to console
    + updated TODO file
Commits on May 20, 2012
  1. Added test stuff

    JohnMurray committed May 20, 2012
    You know, the usuals.
    
    + spec/ folder full with:
      + spec/spec_helper.rb
      + spec/helpers for various test helpers
      + spec/app_spec.rb (empty spec for app)
      + spec/geofence_spec.rb (empty spec for geofencing)
    + Rakefile to run specs
    + .rspec file with spec-run options
    + Added TODO file to project
  2. geofence.rb cleanup

    JohnMurray committed May 20, 2012
    Separated out various pieces into separate methods and
    addd some coments. This should facilitate some nice
    tests.
Commits on May 18, 2012
  1. re-grouped gems in Gemfile

    JohnMurray committed May 18, 2012
Commits on May 16, 2012
  1. formatting issue in README.md

    JohnMurray committed May 16, 2012
  2. added console instructions

    JohnMurray committed May 16, 2012
  3. Added interactive prompt

    JohnMurray committed May 16, 2012
    The prompt was useful enough that I figure I should include it. I
    feel like I'm starting to have conversations/debates with myself now
    through my Git commits: "Exclude the console (it's useless!). No, include
    the console (it's awesome!)."
    
    Eh, no one reads these things anyways.
    
    + Added pry to Gemfile
    + Added pry-doc to Gemfile
    + Added rack-test to Gemfile
    + Updated Gemfile.lock
    + Added console.rb
    + Removed console.rb from .gitignore
  4. Added Sinatra/Thin to Gemfil

    JohnMurray committed May 16, 2012
    Can't believe I had started coding up a sinatra application without
    actually having Sinatra or Thin installed! Not really sure what I
    was thinking there. :-)
    Fixed now!
  5. Added console.rb to .gitignore

    JohnMurray committed May 16, 2012
    The console file is an interactive Pry session that I use to load
    my ruby files into an interpreter for quick testing and playing
    around.
    
    I might include this later if people seem to want it.
  6. Added RSpec to Gemfile

    JohnMurray committed May 16, 2012
    + Added to Gemfile (~> 2.8.0)
    + Updated Gemfile.lock
    + Updated .gitignore for bundle-binstubs (for RSpec)
Commits on May 13, 2012
Commits on May 12, 2012
  1. More setup

    JohnMurray committed May 12, 2012
    + Added Gemfile (and lock file)
    + moved app.rb into the src/ folder
  2. formatted license as markdown

    JohnMurray committed May 12, 2012