Skip to content

Commit 627ec74

Browse files
committed
Initial commit
0 parents  commit 627ec74

10 files changed

Lines changed: 120 additions & 0 deletions

File tree

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
*.gem
2+
*.rbc
3+
.bundle
4+
.config
5+
.yardoc
6+
Gemfile.lock
7+
InstalledFiles
8+
_yardoc
9+
coverage
10+
doc/
11+
lib/bundler/man
12+
pkg
13+
rdoc
14+
spec/reports
15+
test/tmp
16+
test/version_tmp
17+
tmp

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source 'http://rubygems.org'
2+
3+
# Specify your gem's dependencies in split-api.gemspec
4+
gemspec

LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2011 Andrew Nesbitt
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Rakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env rake
2+
require 'bundler/gem_tasks'

Readme.mdown

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Split::Api
2+
3+
An extension to [Split](http://github.com/andrew/split) to provide a REST-based JSON api.
4+
5+
## Requirements
6+
7+
The split gem and its dependencies.
8+
9+
## Setup
10+
11+
gem install split-api
12+
13+
## Usage
14+
15+
tbc
16+
17+
## Development
18+
19+
Source hosted at [GitHub](http://github.com/andrew/split-api).
20+
Report Issues/Feature requests on [GitHub Issues](http://github.com/andrew/split-api/issues).
21+
22+
Tests can be ran with `rake spec`
23+
24+
### Note on Patches/Pull Requests
25+
26+
* Fork the project.
27+
* Make your feature addition or bug fix.
28+
* Add tests for it. This is important so I don't break it in a
29+
future version unintentionally.
30+
* Commit, do not mess with rakefile, version, or history.
31+
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
32+
* Send me a pull request. Bonus points for topic branches.
33+
34+
## Copyright
35+
36+
Copyright (c) 2011 Andrew Nesbitt. See LICENSE for details.

lib/split/api.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
require "split/api/version"
2+
3+
module Split
4+
module Api
5+
# Your code goes here...
6+
end
7+
end

lib/split/api/version.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module Split
2+
module Api
3+
VERSION = "0.0.1"
4+
end
5+
end

spec/api_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require 'spec_helper'

spec/spec_helper.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
require 'rubygems'
2+
require 'bundler/setup'
3+
require 'split'
4+
require 'split/api'

split-api.gemspec

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# -*- encoding: utf-8 -*-
2+
require File.expand_path('../lib/split/api/version', __FILE__)
3+
4+
Gem::Specification.new do |gem|
5+
gem.authors = ["Andrew Nesbitt"]
6+
gem.email = ["andrewnez@gmail.com"]
7+
gem.summary = %q{Rest API extension for Split}
8+
gem.homepage = 'http://github.com/andrew/split-api'
9+
10+
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
11+
gem.files = `git ls-files`.split("\n")
12+
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
13+
gem.name = "split-api"
14+
gem.require_paths = ['lib']
15+
gem.version = Split::Api::VERSION
16+
17+
gem.add_dependency 'split'
18+
gem.add_dependency 'rabl'
19+
gem.add_dependency 'sinatra'
20+
21+
gem.add_development_dependency 'bundler', '~> 1.0'
22+
gem.add_development_dependency 'rspec', '~> 2.6'
23+
gem.add_development_dependency 'guard-rspec', '~> 0.4'
24+
end

0 commit comments

Comments
 (0)