bourbon_house 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba983e8e82867083ab71ef10e53b547c1b6c27a1
4
- data.tar.gz: f33b7bba4f3965c28bf85f1d1aae2f329d85db47
3
+ metadata.gz: ddfc39db6d4988502058b00861bf5faaa3ce999f
4
+ data.tar.gz: ae9a37d2d869547faa460c8c8c3f765af30ee1b2
5
5
  SHA512:
6
- metadata.gz: c8ec902a083bf06f0a845987691fff5550b18b81d9ce2484a7247fe7b0305593c5ea6eb760d26f3e1d03bd0f283af75da26705fe8fb86d44b46b3e680487e4a9
7
- data.tar.gz: 41d9e932aba8a91f1d5a598ad880794c21ade2ca5bd7aa229e26be5681eb10cefbc72ac113b15dd8e9acc0e973f3d1604864ff1e06dc3ac313f576ced7927283
6
+ metadata.gz: e65c503700ca466dd6c43dbdf694e630b80d0e3b37605612a818d27940bcf81e72ca01267f25ae495dd95b9420ebad004ca64a442c0e4245c16cc5062a386fab
7
+ data.tar.gz: 5323f0bcade6026a9b05a19e819138f18c0d05a8bc8d55000169da205bfc0723fcb47015fecf167059c2ada8f1a2b30400fdaeb525c9c74f34cc83d82ecc4c07
data/README.md CHANGED
@@ -1,8 +1,22 @@
1
- # BourbonHouse
1
+ # BourbonHouse [![Gem Version](https://badge.fury.io/rb/bourbon_house.svg)](https://badge.fury.io/rb/bourbon_house)
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/bourbon_house`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ ```
4
+ やあ (´・ω・`)
5
+
6
+ ようこそ、バーボンハウスへ。
7
+ このテキーラはサービスだから、まず飲んで落ち着いて欲しい。
8
+
9
+ うん、「また」なんだ。済まない。
10
+ 仏の顔もって言うしね、謝って許してもらおうとも思っていない。
11
+
12
+ でも、この README を見たとき、君は、きっと言葉では言い表せない
13
+ 「ときめき」みたいなものを感じてくれたと思う。
4
14
 
5
- TODO: Delete this and the text above, and describe your gem
15
+ 殺伐とした世の中で、そういう気持ちを忘れないで欲しい
16
+ そう思って、この Gem を作ったんだ。
17
+
18
+ じゃあ、注文を聞こうか。
19
+ ```
6
20
 
7
21
  ## Installation
8
22
 
@@ -38,4 +52,3 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/ojiry/
38
52
  ## License
39
53
 
40
54
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
-
@@ -0,0 +1,31 @@
1
+ module BourbonHouse
2
+ class Middleware
3
+ def initialize(app)
4
+ @app = app
5
+ end
6
+
7
+ def call(env)
8
+ @app.call(env)
9
+
10
+ html = <<~HTML
11
+ やあ (´・ω・`)
12
+
13
+ ようこそ、バーボンハウスへ。
14
+ このテキーラはサービスだから、まず飲んで落ち着いて欲しい。
15
+
16
+ うん、「また」なんだ。済まない。
17
+ 仏の顔もって言うしね、謝って許してもらおうとも思っていない。
18
+
19
+ でも、この Response を見たとき、君は、きっと言葉では言い表せない
20
+ 「ときめき」みたいなものを感じてくれたと思う。
21
+
22
+ 殺伐とした世の中で、そういう気持ちを忘れないで欲しい
23
+ そう思って、この Gem を作ったんだ。
24
+
25
+ じゃあ、注文を聞こうか。
26
+ HTML
27
+
28
+ [200, { 'Content-Type' => 'text/plain' }, [html]]
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,7 @@
1
+ module BourbonHouse
2
+ class Railtie < Rails::Railtie
3
+ initializer "bourbon_house.configure_rails_initialization" do |app|
4
+ app.middleware.use BourbonHouse::Middleware
5
+ end
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module BourbonHouse
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/bourbon_house.rb CHANGED
@@ -3,6 +3,11 @@ require "bourbon_house/version"
3
3
  require "bourbon_house/server"
4
4
  require "bourbon_house/application"
5
5
 
6
+ if defined?(Rails)
7
+ require 'bourbon_house/middleware'
8
+ require 'bourbon_house/railtie'
9
+ end
10
+
6
11
  module BourbonHouse
7
12
  # Your code goes here...
8
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bourbon_house
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryoji Yoshioka
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-19 00:00:00.000000000 Z
11
+ date: 2016-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -86,6 +86,8 @@ files:
86
86
  - exe/bourbon_house
87
87
  - lib/bourbon_house.rb
88
88
  - lib/bourbon_house/application.rb
89
+ - lib/bourbon_house/middleware.rb
90
+ - lib/bourbon_house/railtie.rb
89
91
  - lib/bourbon_house/server.rb
90
92
  - lib/bourbon_house/version.rb
91
93
  homepage: https://github.com/ojiry/bourbon_house
@@ -108,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
110
  version: '0'
109
111
  requirements: []
110
112
  rubyforge_project:
111
- rubygems_version: 2.6.6
113
+ rubygems_version: 2.5.2
112
114
  signing_key:
113
115
  specification_version: 4
114
116
  summary: Write a short summary, because Rubygems requires one.