Permalink
Browse files

initial commit a lot of the work is done, but I'm not quite there yet

  • Loading branch information...
0 parents commit 45bea883930bfa7e81a37847abbdc3c276c9eccc @theganyo theganyo committed Oct 13, 2012
@@ -0,0 +1,18 @@
+*.gem
+*.rbc
+.bundle
+.config
+.yardoc
+Gemfile.lock
+InstalledFiles
+_yardoc
+coverage
+doc/
+lib/bundler/man
+pkg
+rdoc
+spec/reports
+test/tmp
+test/version_tmp
+tmp
+.idea
@@ -0,0 +1 @@
+--require spec_helper
@@ -0,0 +1,2 @@
+rvm_gemset_create_on_use_flag=1
+rvm gemset use 'usergrid_ironhorse'
@@ -0,0 +1,4 @@
+source 'https://rubygems.org'
+
+# Specify your gem's dependencies in usergrid_ironhorse.gemspec
+gemspec
@@ -0,0 +1,22 @@
+Copyright (c) 2012 Scott Ganyo
+
+MIT License
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,78 @@
+# Usergrid_ironhorse
+
+Usergrid_ironhorse is based on Usergrid_iron and enables Ruby or Rails applications
+native Rails-style access to Apigee's App Services (aka Usergrid) REST API.
+
+## Installation
+
+Add this line to your application's Gemfile:
+
+ gem 'usergrid_ironhorse'
+
+And then execute:
+
+ $ bundle
+
+Or install it yourself as:
+
+ $ gem install usergrid_ironhorse
+
+
+## Usage
+
+### Not familiar with Usergrid / Apigee's App Services?
+
+#### It's great stuff! Check it out, here:
+
+ Docs: <http://apigee.com/docs/usergrid/>
+ Open source: <https://github.com/apigee/usergrid-stack>
+
+### Getting started with the Usergrid_ironhorse SDK is super simple!*
+
+Well, it will be simple, as soon as I get around to documenting how to do it!
+In the mean time, hold off just a bit... I'm not quite ready for you yet.
+
+
+## Contributing
+
+We welcome your enhancements!
+
+1. Fork it
+2. Create your feature branch (`git checkout -b my-new-feature`)
+3. Write some broken rspecs.
+4. Fix the rspecs with your new code.
+3. Commit your changes (`git commit -am 'Added some feature'`)
+4. Push your changes to the upstream branch (`git push origin my-new-feature`)
+5. Create new Pull Request
+
+We've got 100% rspec coverage and we're looking to keep it that way!*
+(*Not yet, but soon)
+In order to run the tests, check out the Usergrid open source project
+(https://github.com/apigee/usergrid-stack), build, and launch it locally.
+
+(Note: If you change your local Usergrid settings from the default, be sure to update
+usergrid_ironhorse/spec/spec_settings.yaml to match.)
+
+
+## Release notes
+
+### 0.0.1
+* Initial commit
+ 1. Support for most ActiveModel stuff including Validations
+ 1. No scoping support
+
+
+## Copyright
+Copyright (c) 2012 Scott Ganyo
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use the included files except in compliance with the License.
+
+You may obtain a copy of the License at
+
+ <http://www.apache.org/licenses/LICENSE-2.0>
+
+Unless required by applicable law or agreed to in writing, software distributed under
+the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+either express or implied. See the License for the specific language governing permissions and
+limitations under the License.
@@ -0,0 +1,7 @@
+#!/usr/bin/env rake
+require "bundler/gem_tasks"
+
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new(:spec)
+
+RSpec::Core::RakeTask.new("spec:coverage")
@@ -0,0 +1,7 @@
+class Hash
+
+ def nested_under_indifferent_access
+ self
+ end
+
+end
@@ -0,0 +1,25 @@
+require 'logger'
+require 'active_model'
+require 'rest-client'
+require 'active_support'
+require 'usergrid_iron'
+require 'active_record/errors'
+
+module Usergrid
+ module Ironhorse
+
+ Dir[Pathname.new(File.dirname(__FILE__)).join("extensions/**/*.rb")].each { |f| require f }
+
+ USERGRID_PATH = File.join File.dirname(__FILE__), 'usergrid_ironhorse'
+
+ def self.usergrid_path *path
+ File.join USERGRID_PATH, *path
+ end
+
+ require usergrid_path('base')
+ require usergrid_path('query')
+
+ #require usergrid_path('../extensions', 'hash')
+ #autoload :Management, usergrid_path('core', 'management')
+ end
+end
Oops, something went wrong.

0 comments on commit 45bea88

Please sign in to comment.