Skip to content

Commit

Permalink
Add gem stuff. #14
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Gauld committed Jul 16, 2012
1 parent c308b3d commit 2a2c158
Show file tree
Hide file tree
Showing 23 changed files with 98 additions and 0 deletions.
1 change: 1 addition & 0 deletions .rspec
@@ -0,0 +1 @@
--color
4 changes: 4 additions & 0 deletions Gemfile
@@ -0,0 +1,4 @@
source "http://rubygems.org"

# Specify your gem's dependencies in osm.gemspec
gemspec
39 changes: 39 additions & 0 deletions LICENSE.rdoc
@@ -0,0 +1,39 @@
==Copyright
Copyright (c) 2011-2012, Robert Gauld. All rights reserved.


==License
This code can be used under the BSD License (reproduced below).
Commiters to the project give Robert Gauld the right to redistribute their commits
under the BSD license. Should the project be re-licensed and the commiter can not be
contacted either by the email address accompanying their commits or the project's community
then Robert Gauld shall have the right to re-license their commits on their behalf.

For the purposes of this project the community will be taken to include:

- GitHub (make sure you can be contacted through the user name making the commit)
- The Online Scout Manager forum


===BSD License
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

- Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.
- Neither the name of the OSM Extender nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14 changes: 14 additions & 0 deletions README.md
@@ -0,0 +1,14 @@
# OSM

Use the [Online Scout Manager](https://www.onlinescoutmanager.co.uk) API.


## Installation

Add to your Gemfile and run the `bundle` command to install it.

```ruby
gem 'osm'
```

**Requires Ruby 1.9.2 or later.**
6 changes: 6 additions & 0 deletions Rakefile
@@ -0,0 +1,6 @@
require "bundler/gem_tasks"
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)

task default: :spec
2 changes: 2 additions & 0 deletions lib/osm.rb
@@ -0,0 +1,2 @@
require 'osm/version'
Dir[File.join(File.dirname(__FILE__) , 'osm', '*.rb')].each {|file| require file }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
26 changes: 26 additions & 0 deletions osm.gemspec
@@ -0,0 +1,26 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "version"

Gem::Specification.new do |s|
s.name = "osm"
s.version = Osm::VERSION
s.authors = ['Robert Gauld']
s.email = ['robert@robertgauld.co.uk']
s.homepage = ''
s.summary = %q{Use the Online Scout Manager API}
s.description = %q{Use the Online Scout Manager API (https://www.onlinescoutmanager.co.uk) to retrieve and save data.}

s.rubyforge_project = "osm"

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]

s.add_runtime_dependency 'httparty' # Used to make web requests to the API

s.add_development_dependency 'rspec'
s.add_development_dependency 'fakeweb'

end
2 changes: 2 additions & 0 deletions spec/osm_spec.rb
@@ -0,0 +1,2 @@
# encoding: utf-8
require 'spec_helper'
1 change: 1 addition & 0 deletions spec/spec_helper.rb
@@ -0,0 +1 @@
require 'osm'
3 changes: 3 additions & 0 deletions version.rb
@@ -0,0 +1,3 @@
module Osm
VERSION = "0.0.1.alpha"
end

0 comments on commit 2a2c158

Please sign in to comment.