a_series_of_tubes 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +39 -0
- data/LICENSE.txt +21 -0
- data/README.md +38 -0
- data/Rakefile +6 -0
- data/a_series_of_tubes.gemspec +26 -0
- data/bin/console +14 -0
- data/bin/example_servers/basic_rendering_and_redirection.rb +26 -0
- data/bin/example_servers/session_usage.rb +23 -0
- data/bin/example_servers/template_rendering.rb +24 -0
- data/bin/example_servers/views/cats_controller/index.html.erb +6 -0
- data/bin/example_servers/views/count_controller/counting_show.html.erb +1 -0
- data/bin/setup +7 -0
- data/lib/a_series_of_tubes.rb +8 -0
- data/lib/a_series_of_tubes/tube_controller.rb +68 -0
- data/lib/a_series_of_tubes/tube_state.rb +6 -0
- data/lib/a_series_of_tubes/tube_state/flash.rb +29 -0
- data/lib/a_series_of_tubes/tube_state/session.rb +48 -0
- data/lib/a_series_of_tubes/tube_support.rb +8 -0
- data/lib/a_series_of_tubes/tube_support/core_extensions.rb +18 -0
- data/lib/a_series_of_tubes/tubes.rb +7 -0
- data/lib/a_series_of_tubes/tubes/tube.rb +34 -0
- data/lib/a_series_of_tubes/tubes/tuber.rb +44 -0
- data/lib/a_series_of_tubes/version.rb +3 -0
- metadata +140 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ce7c7a7069aa5bbf7af4714d78016c27b41003e8
|
4
|
+
data.tar.gz: 10e57327f16e1d948823b9f2564c2daf383788f3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a12c1280c2cca7faf14292b4a26f8007cb94ebde3319b0e5f525728fcec2c7b96bb6f59ac34ccaa377430b531b5d8fc3b6dd719fc333899ffb669f8ad0bfc414
|
7
|
+
data.tar.gz: c9dc408b96ae0ecce17bccd717ea887f5e14abc82c8b675a577892efb94d6acfe3e128f8ca7c09099cf31af1e7d1a172d20a2fa92aedf591c6f9a5fb7e4cf2b6
|
data/.rspec
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, 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, or religion.
|
6
|
+
|
7
|
+
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
8
|
+
|
9
|
+
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. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
10
|
+
|
11
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
12
|
+
|
13
|
+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
a_series_of_tubes (1.0.0)
|
5
|
+
json
|
6
|
+
rack
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
diff-lcs (1.2.5)
|
12
|
+
json (1.8.3)
|
13
|
+
rack (1.6.4)
|
14
|
+
rake (10.5.0)
|
15
|
+
rspec (3.4.0)
|
16
|
+
rspec-core (~> 3.4.0)
|
17
|
+
rspec-expectations (~> 3.4.0)
|
18
|
+
rspec-mocks (~> 3.4.0)
|
19
|
+
rspec-core (3.4.4)
|
20
|
+
rspec-support (~> 3.4.0)
|
21
|
+
rspec-expectations (3.4.0)
|
22
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
23
|
+
rspec-support (~> 3.4.0)
|
24
|
+
rspec-mocks (3.4.1)
|
25
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
26
|
+
rspec-support (~> 3.4.0)
|
27
|
+
rspec-support (3.4.1)
|
28
|
+
|
29
|
+
PLATFORMS
|
30
|
+
ruby
|
31
|
+
|
32
|
+
DEPENDENCIES
|
33
|
+
a_series_of_tubes!
|
34
|
+
bundler (~> 1.10)
|
35
|
+
rake (~> 10.0)
|
36
|
+
rspec
|
37
|
+
|
38
|
+
BUNDLED WITH
|
39
|
+
1.10.6
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Dan Phillips
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# ASeriesOfTubes
|
2
|
+
|
3
|
+
This is a simple web development framework built in Ruby! It is currently under development, so stay tuned for more updates!
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'a_series_of_tubes'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install a_series_of_tubes
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
TODO: Write usage instructions here
|
24
|
+
|
25
|
+
## Development
|
26
|
+
|
27
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
28
|
+
|
29
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
30
|
+
|
31
|
+
## Contributing
|
32
|
+
|
33
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/rake-db-migrate/a_series_of_tubes. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
34
|
+
|
35
|
+
|
36
|
+
## License
|
37
|
+
|
38
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'a_series_of_tubes/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "a_series_of_tubes"
|
8
|
+
spec.version = ASeriesOfTubes::VERSION
|
9
|
+
spec.authors = ["Dan Phillips"]
|
10
|
+
spec.email = ["dan@danphillips.io"]
|
11
|
+
|
12
|
+
spec.summary = "a web development framework"
|
13
|
+
spec.homepage = "http://www.github.com/rake-db-migrate/a_series_of_tubes"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
|
+
spec.bindir = "exe"
|
18
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.10"
|
22
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
23
|
+
spec.add_development_dependency "rspec"
|
24
|
+
spec.add_runtime_dependency "rack"
|
25
|
+
spec.add_runtime_dependency "json"
|
26
|
+
end
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "a_series_of_tubes"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# example server 01
|
2
|
+
# when the path is '/cats' displays 'hello cats!'
|
3
|
+
# all other paths automatically redirect to '/cats'
|
4
|
+
|
5
|
+
require 'rack'
|
6
|
+
require_relative '../../lib/tube_controller'
|
7
|
+
|
8
|
+
class MyController < TubeController
|
9
|
+
def go
|
10
|
+
if self.request.path == '/cats'
|
11
|
+
render_content 'hello cats!', 'text/html'
|
12
|
+
else
|
13
|
+
redirect_to '/cats'
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
server_app = Proc.new do |env|
|
19
|
+
request = Rack::Request.new env
|
20
|
+
response = Rack::Response.new
|
21
|
+
controller = MyController.new request, response
|
22
|
+
controller.go
|
23
|
+
response.finish
|
24
|
+
end
|
25
|
+
|
26
|
+
Rack::Server.start app: server_app, Port: 3000
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'rack'
|
2
|
+
require_relative '../../lib/tube_controller.rb'
|
3
|
+
|
4
|
+
APP_DIRECTORY = './bin/example_servers'
|
5
|
+
APP_NAME = 'counting'
|
6
|
+
|
7
|
+
class CountController < TubeController
|
8
|
+
def go
|
9
|
+
session["count"] ||= 0
|
10
|
+
session["count"] += 1
|
11
|
+
render :counting_show
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
server_app = Proc.new do |env|
|
16
|
+
request = Rack::Request.new env
|
17
|
+
response = Rack::Response.new
|
18
|
+
controller = CountController.new request, response
|
19
|
+
controller.go
|
20
|
+
response.finish
|
21
|
+
end
|
22
|
+
|
23
|
+
Rack::Server.start app: server_app, Port: 3000
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# example server 02
|
2
|
+
# show page renders each cat in the instance variable 'cats'
|
3
|
+
|
4
|
+
require 'rack'
|
5
|
+
require_relative '../../lib/a_series_of_tubes'
|
6
|
+
|
7
|
+
APP_DIRECTORY = './bin/example_servers'
|
8
|
+
|
9
|
+
class CatsController < ASeriesOfTubes::TubeController
|
10
|
+
def go
|
11
|
+
@cats = ['Miho', 'Salem']
|
12
|
+
render :index
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
server_app = Proc.new do |env|
|
17
|
+
request = Rack::Request.new env
|
18
|
+
response = Rack::Response.new
|
19
|
+
controller = CatsController.new request, response
|
20
|
+
controller.go
|
21
|
+
response.finish
|
22
|
+
end
|
23
|
+
|
24
|
+
Rack::Server.start app: server_app, Port: 3000
|
@@ -0,0 +1 @@
|
|
1
|
+
<h1><%= session["count"] %> Requests Made</h1>
|
data/bin/setup
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
require "a_series_of_tubes/version"
|
2
|
+
require_relative './a_series_of_tubes/tubes.rb'
|
3
|
+
require_relative './a_series_of_tubes/tube_controller.rb'
|
4
|
+
require_relative './a_series_of_tubes/tube_state.rb'
|
5
|
+
require_relative './a_series_of_tubes/tube_support.rb'
|
6
|
+
|
7
|
+
module ASeriesOfTubes
|
8
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
require 'erb'
|
2
|
+
require_relative './tube_support'
|
3
|
+
require_relative './tube_state'
|
4
|
+
|
5
|
+
module ASeriesOfTubes
|
6
|
+
class TubeController
|
7
|
+
def initialize request, response, params = {}
|
8
|
+
@request = request
|
9
|
+
@response = response
|
10
|
+
@params = params.merge request.params
|
11
|
+
end
|
12
|
+
|
13
|
+
def invoke_action action
|
14
|
+
self.send action
|
15
|
+
render action unless @rendered
|
16
|
+
end
|
17
|
+
|
18
|
+
def redirect_to url
|
19
|
+
prevent_double_render
|
20
|
+
set_rendered
|
21
|
+
|
22
|
+
self.response.header['location'] = url
|
23
|
+
self.response.status = 302
|
24
|
+
self.session.store_session self.response
|
25
|
+
end
|
26
|
+
|
27
|
+
def render template_name
|
28
|
+
controller_name = self.class.to_s.underscore
|
29
|
+
filename = "#{APP_DIRECTORY}/views/#{controller_name}/#{template_name}.html.erb"
|
30
|
+
render_content ERB.new(File.read(filename)).result(binding), 'text/html'
|
31
|
+
self.session.store_session self.response
|
32
|
+
end
|
33
|
+
|
34
|
+
def render_content content, content_type
|
35
|
+
prevent_double_render
|
36
|
+
set_rendered
|
37
|
+
|
38
|
+
self.response['Content-Type'] = content_type
|
39
|
+
self.response.write content
|
40
|
+
self.session.store_session self.response
|
41
|
+
end
|
42
|
+
|
43
|
+
def session
|
44
|
+
@session ||= TubeState::Session.new self.request
|
45
|
+
end
|
46
|
+
|
47
|
+
def flash
|
48
|
+
@flash ||= self.session.flash
|
49
|
+
end
|
50
|
+
|
51
|
+
protected
|
52
|
+
|
53
|
+
attr_reader :params, :response, :request
|
54
|
+
|
55
|
+
private
|
56
|
+
|
57
|
+
def prevent_double_render
|
58
|
+
raise ASeriesOfTubes::DoubleRenderError if @rendered
|
59
|
+
end
|
60
|
+
|
61
|
+
def set_rendered
|
62
|
+
@rendered = true
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
class DoubleRenderError < StandardError
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'json'
|
2
|
+
|
3
|
+
module ASeriesOfTubes
|
4
|
+
module TubeState
|
5
|
+
class Flash
|
6
|
+
attr_reader :now, :next
|
7
|
+
|
8
|
+
def initialize existing_flash_data = {}
|
9
|
+
@store = existing_flash_data
|
10
|
+
@next = {}
|
11
|
+
end
|
12
|
+
|
13
|
+
def [] key
|
14
|
+
self.store[key]
|
15
|
+
end
|
16
|
+
|
17
|
+
def []= key, value
|
18
|
+
self.next[key] = value
|
19
|
+
end
|
20
|
+
|
21
|
+
def now
|
22
|
+
self.store
|
23
|
+
end
|
24
|
+
|
25
|
+
protected
|
26
|
+
attr_reader :store
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require_relative './flash.rb'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
module ASeriesOfTubes
|
5
|
+
module TubeState
|
6
|
+
class Session
|
7
|
+
attr_reader :flash
|
8
|
+
|
9
|
+
def initialize request
|
10
|
+
@request = request
|
11
|
+
@name = "_#{APP_NAME}"
|
12
|
+
@store = read_or_create_session_cookie
|
13
|
+
@flash = TubeState::Flash.new (self.store['flash'] || {})
|
14
|
+
end
|
15
|
+
|
16
|
+
def [] key
|
17
|
+
self.store[key]
|
18
|
+
end
|
19
|
+
|
20
|
+
def []= key, value
|
21
|
+
self.store[key] = value
|
22
|
+
end
|
23
|
+
|
24
|
+
def store_session response
|
25
|
+
self.store['flash'] = @flash.next
|
26
|
+
response.set_cookie self.name, generate_cookie_hash
|
27
|
+
end
|
28
|
+
|
29
|
+
protected
|
30
|
+
|
31
|
+
attr_reader :name, :request, :store
|
32
|
+
|
33
|
+
private
|
34
|
+
|
35
|
+
def generate_cookie_hash
|
36
|
+
output = {}
|
37
|
+
output[:value] = self.store.to_json
|
38
|
+
output[:path] = '/'
|
39
|
+
output
|
40
|
+
end
|
41
|
+
|
42
|
+
def read_or_create_session_cookie
|
43
|
+
existing_cookie = self.request.cookies[self.name]
|
44
|
+
existing_cookie ? JSON.parse(existing_cookie) : {}
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module ASeriesOfTubes
|
2
|
+
module TubeSupport
|
3
|
+
module CoreExtensions
|
4
|
+
module String
|
5
|
+
def underscore
|
6
|
+
output = []
|
7
|
+
|
8
|
+
self.chars.each_with_index do |char, index|
|
9
|
+
output << "_" if ("A".."Z").include?(char) && index != 0
|
10
|
+
output << char.downcase
|
11
|
+
end
|
12
|
+
|
13
|
+
output.join
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
module ASeriesOfTubes
|
2
|
+
module Tubes
|
3
|
+
class Tube
|
4
|
+
attr_reader :pattern, :method, :controller, :action
|
5
|
+
|
6
|
+
def initialize pattern, method, controller, action
|
7
|
+
@pattern = pattern
|
8
|
+
@method = method.to_s.upcase
|
9
|
+
@controller = controller
|
10
|
+
@action = action
|
11
|
+
end
|
12
|
+
|
13
|
+
def matches? request
|
14
|
+
self.pattern =~ request.path && request.request_method == self.method
|
15
|
+
end
|
16
|
+
|
17
|
+
def run request, response
|
18
|
+
params = parse_params_from_path request.path
|
19
|
+
controller = self.controller.new request, response, params
|
20
|
+
controller.invoke_action action
|
21
|
+
end
|
22
|
+
|
23
|
+
private
|
24
|
+
|
25
|
+
def parse_params_from_path path
|
26
|
+
params = {}
|
27
|
+
matches = self.pattern.match path
|
28
|
+
|
29
|
+
matches.names.each { |key| params[key] = matches[key] }
|
30
|
+
params
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
module ASeriesOfTubes
|
2
|
+
module Tubes
|
3
|
+
class Tuber
|
4
|
+
METHODS = [:get, :post, :put, :delete]
|
5
|
+
|
6
|
+
attr_reader :tubes
|
7
|
+
|
8
|
+
def initialize
|
9
|
+
@tubes = []
|
10
|
+
end
|
11
|
+
|
12
|
+
METHODS.each do |method|
|
13
|
+
define_method method do |pattern, controller, action|
|
14
|
+
add_tube pattern, method, controller, action
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def add_tube pattern, method, controller, action
|
19
|
+
tube = Tubes::Tube.new pattern, method, controller, action
|
20
|
+
self.tubes << tube
|
21
|
+
end
|
22
|
+
|
23
|
+
def draw &tubes
|
24
|
+
self.instance_eval &tubes
|
25
|
+
end
|
26
|
+
|
27
|
+
def match request
|
28
|
+
self.tubes.find { |tube| tube.matches? request }
|
29
|
+
end
|
30
|
+
|
31
|
+
def run request, response
|
32
|
+
tube = match request
|
33
|
+
tube ? tube.run(request, response) : not_found(response)
|
34
|
+
end
|
35
|
+
|
36
|
+
private
|
37
|
+
|
38
|
+
def not_found response
|
39
|
+
response.status = 404
|
40
|
+
response.write "Page Not Found"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
metadata
ADDED
@@ -0,0 +1,140 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: a_series_of_tubes
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dan Phillips
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-04-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.10'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.10'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rack
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: json
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
description:
|
84
|
+
email:
|
85
|
+
- dan@danphillips.io
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- ".rspec"
|
91
|
+
- CODE_OF_CONDUCT.md
|
92
|
+
- Gemfile
|
93
|
+
- Gemfile.lock
|
94
|
+
- LICENSE.txt
|
95
|
+
- README.md
|
96
|
+
- Rakefile
|
97
|
+
- a_series_of_tubes.gemspec
|
98
|
+
- bin/console
|
99
|
+
- bin/example_servers/basic_rendering_and_redirection.rb
|
100
|
+
- bin/example_servers/session_usage.rb
|
101
|
+
- bin/example_servers/template_rendering.rb
|
102
|
+
- bin/example_servers/views/cats_controller/index.html.erb
|
103
|
+
- bin/example_servers/views/count_controller/counting_show.html.erb
|
104
|
+
- bin/setup
|
105
|
+
- lib/a_series_of_tubes.rb
|
106
|
+
- lib/a_series_of_tubes/tube_controller.rb
|
107
|
+
- lib/a_series_of_tubes/tube_state.rb
|
108
|
+
- lib/a_series_of_tubes/tube_state/flash.rb
|
109
|
+
- lib/a_series_of_tubes/tube_state/session.rb
|
110
|
+
- lib/a_series_of_tubes/tube_support.rb
|
111
|
+
- lib/a_series_of_tubes/tube_support/core_extensions.rb
|
112
|
+
- lib/a_series_of_tubes/tubes.rb
|
113
|
+
- lib/a_series_of_tubes/tubes/tube.rb
|
114
|
+
- lib/a_series_of_tubes/tubes/tuber.rb
|
115
|
+
- lib/a_series_of_tubes/version.rb
|
116
|
+
homepage: http://www.github.com/rake-db-migrate/a_series_of_tubes
|
117
|
+
licenses:
|
118
|
+
- MIT
|
119
|
+
metadata: {}
|
120
|
+
post_install_message:
|
121
|
+
rdoc_options: []
|
122
|
+
require_paths:
|
123
|
+
- lib
|
124
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
125
|
+
requirements:
|
126
|
+
- - ">="
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: '0'
|
129
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - ">="
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
requirements: []
|
135
|
+
rubyforge_project:
|
136
|
+
rubygems_version: 2.2.2
|
137
|
+
signing_key:
|
138
|
+
specification_version: 4
|
139
|
+
summary: a web development framework
|
140
|
+
test_files: []
|