reel-dsl 0.0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +6 -0
- data/.rspec +5 -0
- data/.travis.yml +27 -0
- data/CONDUCT.md +22 -0
- data/Gemfile +15 -0
- data/LICENSE.txt +20 -0
- data/README.md +29 -0
- data/Rakefile +9 -0
- data/lib/reel/dsl.rb +6 -0
- data/lib/reel/dsl/version.rb +5 -0
- data/reel-dsl.gemspec +32 -0
- data/tasks/benchmarks.rake +15 -0
- data/tasks/rubocop.rake +4 -0
- metadata +170 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c6979462fac7c427dc1f2234650e1d996af0b727
|
4
|
+
data.tar.gz: 66d5e19a6a448c3b3d5fa4f115762aeb40cb36da
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7f71ecb2de6cd057afd5e2ebb391251a72296b7bd40469727d0a5705489c27e825cc204216ac1224e8ad381584455303d768f015ad74bff32dc4d60d2b57b156
|
7
|
+
data.tar.gz: 4ed53523742142455ca8b1efd8592253c6f881a730cbeac8bb5b0ca0b2418d1aec7b417aab534d5250c64978d6b078620d333e5405f3e4c6b0d64eb031ee261a
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
language: ruby
|
2
|
+
rvm:
|
3
|
+
- 2.0.0
|
4
|
+
- 2.1.4
|
5
|
+
- 2.2.0
|
6
|
+
- 2.2.2
|
7
|
+
- jruby
|
8
|
+
- rbx-2
|
9
|
+
- 1.9.3
|
10
|
+
- ruby-head
|
11
|
+
- jruby-head
|
12
|
+
|
13
|
+
matrix:
|
14
|
+
fast_finish: true
|
15
|
+
allow_failures:
|
16
|
+
- rvm: 1.9.3
|
17
|
+
- rvm: ruby-head
|
18
|
+
- rvm: jruby-head
|
19
|
+
|
20
|
+
before_install:
|
21
|
+
# Only use 1 job until Travis fixes the rbx --jobs issue.
|
22
|
+
- if [ "$TRAVIS_RUBY_VERSION" == "rbx-2" ] ; then export BUNDLE_JOBS=1 ; else export BUNDLE_JOBS=4; fi
|
23
|
+
|
24
|
+
sudo: false
|
25
|
+
|
26
|
+
notifications:
|
27
|
+
irc: "irc.freenode.org#celluloid"
|
data/CONDUCT.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
+
|
5
|
+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.
|
6
|
+
|
7
|
+
Examples of unacceptable behavior by participants include:
|
8
|
+
|
9
|
+
* The use of sexualized language or imagery
|
10
|
+
* Personal attacks
|
11
|
+
* Trolling or insulting/derogatory comments
|
12
|
+
* Public or private harassment
|
13
|
+
* Publishing other's private information, such as physical or electronic addresses, without explicit permission
|
14
|
+
* Other unethical or unprofessional conduct.
|
15
|
+
|
16
|
+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team.
|
17
|
+
|
18
|
+
This code of conduct applies both within project spaces and in public spaces when an individual is representing the project or its community.
|
19
|
+
|
20
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
21
|
+
|
22
|
+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0, available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/)
|
data/Gemfile
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
group :profile do
|
4
|
+
platform :mri do
|
5
|
+
gem 'ruby-prof', '~> 0.15'
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
gemspec
|
10
|
+
|
11
|
+
# Allow local-override of Bundler configuration, by double declaration
|
12
|
+
# after the `gemspec` line, after listing the dependency in gemspec:
|
13
|
+
|
14
|
+
gem 'reel', github: 'celluloid/reel', branch: '0.6.0-milestone', submodules: true
|
15
|
+
gem 'reel-io', github: 'celluloid/reel-io', branch: 'master'
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2011-2014 Donovan Keme
|
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.
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# `Reel::DSL`
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/reel-dsl.svg)](http://rubygems.org/gems/reel-dsl)
|
3
|
+
[![Build Status](https://secure.travis-ci.org/celluloid/reel-dsl.svg?branch=master)](http://travis-ci.org/celluloid/reel-dsl)
|
4
|
+
[![Code Climate](https://codeclimate.com/github/celluloid/reel-dsl.svg)](https://codeclimate.com/github/celluloid/reel-dsl)
|
5
|
+
[![Coverage Status](https://coveralls.io/repos/celluloid/reel-dsl/badge.svg?branch=master)](https://coveralls.io/r/celluloid/reel-dsl)
|
6
|
+
|
7
|
+
> Minimalist URI-based CRUD endpoint routing for [`Reel`][reel]; supporting HTTP/S requests, Web Sockets, and Server Sent Events.
|
8
|
+
|
9
|
+
Influenced by [`Angelo`][angelo] and [`Sinatra`][sinatra]; mostly extracted from `^01E` when it was discontinued.
|
10
|
+
|
11
|
+
[reel]: https://github.com/celluloid/reel
|
12
|
+
[angelo]: https://github.com/kenichi/angelo
|
13
|
+
[sinatra]: https://github.com/sinatra/sinatra
|
14
|
+
|
15
|
+
---
|
16
|
+
|
17
|
+
> How-To coming soon.
|
18
|
+
|
19
|
+
---
|
20
|
+
|
21
|
+
## Contributing
|
22
|
+
|
23
|
+
* Fork this repository on GitHub.
|
24
|
+
* Make changes and send a pull request.
|
25
|
+
|
26
|
+
## License
|
27
|
+
|
28
|
+
Copyright (c) 2012 Donovan Keme. Distributed under the MIT License. See
|
29
|
+
LICENSE.txt for further details.
|
data/Rakefile
ADDED
data/lib/reel/dsl.rb
ADDED
data/reel-dsl.gemspec
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/reel/dsl/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.license = 'MIT'
|
6
|
+
gem.name = "reel-dsl"
|
7
|
+
gem.version = Reel::DSL::VERSION
|
8
|
+
|
9
|
+
gem.authors = ["Donovan Keme"]
|
10
|
+
gem.email = ["code@extremist.digital"]
|
11
|
+
|
12
|
+
gem.summary = "URI-based CRUD endpoint routing"
|
13
|
+
gem.description = "URI-based CRUD endpoint routing for Reel; supporting HTTP/S requests, Web Sockets, and Server Sent Events."
|
14
|
+
gem.homepage = "https://github.com/celluloid/reel-dsl"
|
15
|
+
|
16
|
+
gem.files = `git ls-files | grep -Ev '^example'`.split("\n")
|
17
|
+
gem.test_files = `git ls-files -- spec/*`.split("\n")
|
18
|
+
gem.require_paths = ["lib"]
|
19
|
+
|
20
|
+
gem.required_ruby_version = '>= 2.0.0'
|
21
|
+
|
22
|
+
gem.add_runtime_dependency 'reel', '~> 0.6.0.pre5'
|
23
|
+
gem.add_runtime_dependency 'reel-io', '~> 0.0.0.pre'
|
24
|
+
|
25
|
+
gem.add_runtime_dependency 'tilt', '~> 2.0'
|
26
|
+
gem.add_runtime_dependency 'mime-types', '~> 2.4'
|
27
|
+
|
28
|
+
gem.add_development_dependency "rake", "~> 10.4.2"
|
29
|
+
gem.add_development_dependency "rspec", "~> 3.2.0"
|
30
|
+
gem.add_development_dependency "rubocop", "~> 0.33.0"
|
31
|
+
gem.add_development_dependency "coveralls", "~> 0.8.2"
|
32
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require "timeout"
|
2
|
+
|
3
|
+
desc "Run benchmarks"
|
4
|
+
task :benchmark do
|
5
|
+
begin
|
6
|
+
Timeout.timeout(120) do
|
7
|
+
glob = File.expand_path("../../benchmarks/*.rb", __FILE__)
|
8
|
+
Dir[glob].each { |benchmark| load benchmark }
|
9
|
+
end
|
10
|
+
rescue ::Exception, Timeout::Error => ex
|
11
|
+
puts "ERROR: Couldn't complete benchmark: #{ex.class}: #{ex}"
|
12
|
+
puts " #{ex.backtrace.join("\n ")}"
|
13
|
+
exit 1 unless ENV["CI"]
|
14
|
+
end
|
15
|
+
end
|
data/tasks/rubocop.rake
ADDED
metadata
ADDED
@@ -0,0 +1,170 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: reel-dsl
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Donovan Keme
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-09-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: reel
|
15
|
+
version_requirements: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.6.0.pre5
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
requirement: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.6.0.pre5
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: reel-io
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.0.0.pre
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
requirement: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.0.0.pre
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: tilt
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
requirement: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: mime-types
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.4'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2.4'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
version_requirements: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 10.4.2
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
requirement: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 10.4.2
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
version_requirements: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 3.2.0
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
requirement: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 3.2.0
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rubocop
|
99
|
+
version_requirements: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.33.0
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
requirement: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.33.0
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: coveralls
|
113
|
+
version_requirements: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.8.2
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
requirement: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 0.8.2
|
125
|
+
description: URI-based CRUD endpoint routing for Reel; supporting HTTP/S requests,
|
126
|
+
Web Sockets, and Server Sent Events.
|
127
|
+
email:
|
128
|
+
- code@extremist.digital
|
129
|
+
executables: []
|
130
|
+
extensions: []
|
131
|
+
extra_rdoc_files: []
|
132
|
+
files:
|
133
|
+
- ".gitignore"
|
134
|
+
- ".rspec"
|
135
|
+
- ".travis.yml"
|
136
|
+
- CONDUCT.md
|
137
|
+
- Gemfile
|
138
|
+
- LICENSE.txt
|
139
|
+
- README.md
|
140
|
+
- Rakefile
|
141
|
+
- lib/reel/dsl.rb
|
142
|
+
- lib/reel/dsl/version.rb
|
143
|
+
- reel-dsl.gemspec
|
144
|
+
- tasks/benchmarks.rake
|
145
|
+
- tasks/rubocop.rake
|
146
|
+
homepage: https://github.com/celluloid/reel-dsl
|
147
|
+
licenses:
|
148
|
+
- MIT
|
149
|
+
metadata: {}
|
150
|
+
post_install_message:
|
151
|
+
rdoc_options: []
|
152
|
+
require_paths:
|
153
|
+
- lib
|
154
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: 2.0.0
|
159
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
160
|
+
requirements:
|
161
|
+
- - ">="
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
version: '0'
|
164
|
+
requirements: []
|
165
|
+
rubyforge_project:
|
166
|
+
rubygems_version: 2.4.8
|
167
|
+
signing_key:
|
168
|
+
specification_version: 4
|
169
|
+
summary: URI-based CRUD endpoint routing
|
170
|
+
test_files: []
|