hyperdrive 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/.travis.yml +6 -0
- data/Gemfile +21 -0
- data/LICENSE.txt +22 -0
- data/README.md +48 -0
- data/Rakefile +18 -0
- data/hyperdrive.gemspec +23 -0
- data/lib/hyperdrive/version.rb +3 -0
- data/lib/hyperdrive.rb +5 -0
- data/spec/spec_helper.rb +17 -0
- metadata +56 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 14f62cf18a7559e936f29410ddf251bc0459eef2
|
4
|
+
data.tar.gz: 38f5994e09e250db0664af87242badbb39bb09c0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: bd23d6d26370771f9bab0cf2f8482b4f02d8d810816b541d28fa7478c0bc0b0fe2b8867acb295d8aeb92240ff823e1365ba570e40c826ac1e2aaf63eda656546
|
7
|
+
data.tar.gz: eb213755881b6e07cc8fe29947b5fed3d5b910bd6e6bff82daa35a537fe075a5ba50c49e9edb49d355e02572efd20f2ca9d099f0bb560341abdf3b3469987cb4
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
gemspec
|
3
|
+
|
4
|
+
group :development do
|
5
|
+
gem 'gem-release', require: false
|
6
|
+
end
|
7
|
+
|
8
|
+
group :test, :rake do
|
9
|
+
gem 'bundler'
|
10
|
+
end
|
11
|
+
|
12
|
+
group :rake do
|
13
|
+
gem 'rake'
|
14
|
+
end
|
15
|
+
|
16
|
+
group :test do
|
17
|
+
gem 'minitest', require: false
|
18
|
+
gem 'minitest-spec-context', require: false
|
19
|
+
gem 'minitest-reporters', require: false
|
20
|
+
#gem 'rack-test', require: false
|
21
|
+
end
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Eric Marden
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
# Hyperdrive
|
2
|
+
|
3
|
+
Ruby DSL for defining self-documenting, HATEOS™ complaint, Hypermedia endpoints.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'hyperdrive'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install hyperdrive
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
Proposed Syntax (WIP):
|
22
|
+
|
23
|
+
hyperdrive(:deal) do
|
24
|
+
name 'Deals'
|
25
|
+
desc 'Exclusive offers and coupons'
|
26
|
+
|
27
|
+
param :name, '50 Chars or less', required: true
|
28
|
+
param :start_date, 'Format: YYYY-MM-DD'
|
29
|
+
param :end_date, 'Format: YYYY-MM-DD'
|
30
|
+
|
31
|
+
filter :start_date
|
32
|
+
filter :end_date
|
33
|
+
filter :partner_id, required: true
|
34
|
+
end
|
35
|
+
|
36
|
+
## Project Status
|
37
|
+
|
38
|
+
- Build: [![Build Status](https://secure.travis-ci.org/styleseek/hyperdrive.png?branch=master)](https://travis-ci.org/styleseek/hyperdrive)
|
39
|
+
- Code Quality: [![Code Climate](https://codeclimate.com/github/styleseek/hyperdrive.png)](https://codeclimate.com/github/styleseek/hyperdrive)
|
40
|
+
- Dependencies: [![Dependency Status](https://gemnasium.com/styleseek/hyperdrive.png)](https://gemnasium.com/styleseek/hyperdrive)
|
41
|
+
|
42
|
+
## Contributing
|
43
|
+
|
44
|
+
1. Fork it ( http://github.com/styleseek/hyperdrive/fork )
|
45
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
46
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
47
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
48
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# environment
|
2
|
+
ENV['RACK_ENV'] ||= 'development'
|
3
|
+
|
4
|
+
# load path
|
5
|
+
lib_path = File.expand_path('../lib', __FILE__)
|
6
|
+
($:.unshift lib_path) unless ($:.include? lib_path)
|
7
|
+
|
8
|
+
# spinning up the FTL drive
|
9
|
+
Bundler.require(:default, :rake, ENV['RACK_ENV'])
|
10
|
+
require 'bundler/gem_tasks'
|
11
|
+
require 'rake/testtask'
|
12
|
+
|
13
|
+
# prepare to jump
|
14
|
+
Rake::TestTask.new do |t|
|
15
|
+
t.libs << "spec"
|
16
|
+
t.pattern = "spec/**/*_spec.rb"
|
17
|
+
end
|
18
|
+
task :default => [:test]
|
data/hyperdrive.gemspec
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
lib_path = File.expand_path('../lib', __FILE__)
|
3
|
+
($:.unshift lib_path) unless ($:.include? lib_path)
|
4
|
+
require 'hyperdrive/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |gem|
|
7
|
+
gem.name = "hyperdrive"
|
8
|
+
gem.version = Hyperdrive::VERSION
|
9
|
+
gem.authors = ['StyleSeek Engineering']
|
10
|
+
gem.email = ['engineering@styleseek.com']
|
11
|
+
gem.summary = %q{Hypermedia State Machine}
|
12
|
+
gem.description = %q{Ruby DSL for defining self-documenting, HATEOS™ complaint, Hypermedia API endpoints.}
|
13
|
+
gem.homepage = "https://github.com/styleseek/hyperdrive"
|
14
|
+
gem.license = "MIT"
|
15
|
+
|
16
|
+
gem.files = `git ls-files -z`.split("\x0")
|
17
|
+
gem.executables = gem.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
19
|
+
gem.require_paths = ["lib"]
|
20
|
+
|
21
|
+
#gem.add_development_dependency "bundler", "~> 1.5"
|
22
|
+
#gem.add_development_dependency "rake"
|
23
|
+
end
|
data/lib/hyperdrive.rb
ADDED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
# bootstrap the environment
|
4
|
+
ENV['RACK_ENV'] = 'test'
|
5
|
+
lib_path = File.expand_path('../lib', __FILE__)
|
6
|
+
($:.unshift lib_path) unless ($:.include? lib_path)
|
7
|
+
require 'bundler'
|
8
|
+
Bundler.setup(:default, ENV['RACK_ENV'])
|
9
|
+
|
10
|
+
# BDD Stack
|
11
|
+
require 'minitest/autorun'
|
12
|
+
require "minitest-spec-context"
|
13
|
+
require 'minitest/reporters'
|
14
|
+
|
15
|
+
# all systems go
|
16
|
+
MiniTest::Reporters.use! MiniTest::Reporters::SpecReporter.new
|
17
|
+
#include Rack::Test::Methods
|
metadata
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: hyperdrive
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- StyleSeek Engineering
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-04-13 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Ruby DSL for defining self-documenting, HATEOS™ complaint, Hypermedia
|
14
|
+
API endpoints.
|
15
|
+
email:
|
16
|
+
- engineering@styleseek.com
|
17
|
+
executables: []
|
18
|
+
extensions: []
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- ".gitignore"
|
22
|
+
- ".travis.yml"
|
23
|
+
- Gemfile
|
24
|
+
- LICENSE.txt
|
25
|
+
- README.md
|
26
|
+
- Rakefile
|
27
|
+
- hyperdrive.gemspec
|
28
|
+
- lib/hyperdrive.rb
|
29
|
+
- lib/hyperdrive/version.rb
|
30
|
+
- spec/spec_helper.rb
|
31
|
+
homepage: https://github.com/styleseek/hyperdrive
|
32
|
+
licenses:
|
33
|
+
- MIT
|
34
|
+
metadata: {}
|
35
|
+
post_install_message:
|
36
|
+
rdoc_options: []
|
37
|
+
require_paths:
|
38
|
+
- lib
|
39
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
requirements: []
|
50
|
+
rubyforge_project:
|
51
|
+
rubygems_version: 2.2.0
|
52
|
+
signing_key:
|
53
|
+
specification_version: 4
|
54
|
+
summary: Hypermedia State Machine
|
55
|
+
test_files:
|
56
|
+
- spec/spec_helper.rb
|