angelo 0.4.0 → 0.4.1

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: 71eca9d2230c44d5b635e6e46080b5fab3848dab
4
- data.tar.gz: 2a29741be7955f76e270e08b7fd05ad5a2ee0394
3
+ metadata.gz: 97eb8856cc0b4c9756d65b3c76f78bab570357b8
4
+ data.tar.gz: 1af8e5001731811ee47ba1f1009e18f06a84bbf5
5
5
  SHA512:
6
- metadata.gz: e274a5f18cc333463ccaee271cd7ba08dd1b550552f045cfe82ba18b08e73caa09df6712b2e296dc41e37c2b05be079be205337e055a3fdee18e3f822e3e9ab5
7
- data.tar.gz: b7034f60500807c47f0177acab56c5de0c4e15bf647ec3a61c995ac5635f2d0653b9217f530077be7a8b95b81e3a2256e30d110c2988bfd9e85d9ac0ec131a95
6
+ metadata.gz: 53958da09949dc42c914752ba7142c08464f1d088d1e7d3b7d84cb438274e0b6518d32b26cffeb911df4261a2d2e3ad81f774ad0e9361c78b690ac0508d3313a
7
+ data.tar.gz: f8fa0eabc251e38884a6d58f5f99ad2d70ba1a9d9acad2cb3d3723bc15341b4fafd86dafd76309d4ac3ecbed9ab9d870e9e9405b28dcc7b7697e14bfba2c8faa
@@ -1,6 +1,12 @@
1
1
  changelog
2
2
  =========
3
3
 
4
+ ### 0.4.1
5
+
6
+ thanks: @tommay
7
+
8
+ * Base.content_type -> DSL#content_type (for top-level apps)
9
+
4
10
  ### 0.4.0 5 feb 2015
5
11
 
6
12
  thanks: @tommay, @kyledrake, @katjaeinsfeld
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2013 Kenichi Nakamura
1
+ Copyright 2015 Kenichi Nakamura
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
data/README.md CHANGED
@@ -672,4 +672,4 @@ YES, HAVE SOME
672
672
 
673
673
  ### License
674
674
 
675
- see LICENSE
675
+ [Apache 2.0](LICENSE)
@@ -128,6 +128,10 @@ module Angelo
128
128
  Responder::Websocket.on_pong = block
129
129
  end
130
130
 
131
+ def content_type type
132
+ Responder.content_type type
133
+ end
134
+
131
135
  end
132
136
 
133
137
  # Make the DSL methods available to subclass-level code.
@@ -179,10 +183,6 @@ module Angelo
179
183
  @sses
180
184
  end
181
185
 
182
- def content_type type
183
- Responder.content_type type
184
- end
185
-
186
186
  def run! _addr = addr, _port = port, options = {}
187
187
  run _addr, _port, options, true
188
188
  end
@@ -1,3 +1,3 @@
1
1
  module Angelo
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
@@ -20,6 +20,8 @@ helpers do
20
20
  end
21
21
  end
22
22
 
23
+ content_type :html
24
+
23
25
  get "/app_file" do
24
26
  self.class.app_file
25
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: angelo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenichi Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-05 00:00:00.000000000 Z
11
+ date: 2015-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: reel