tynn 1.3.0 → 1.4.0

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: c01166fc9c243f8e396f2b5f0f9007681524c7f0
4
- data.tar.gz: f09380715acf0839c39dba34ead60ff161ec4aaf
3
+ metadata.gz: 4814f92f9f4fc3914fd79a2b2756caae11b6dcf3
4
+ data.tar.gz: 24e79b0a795e4abc44ffe65d43ee49cb6e3af3a8
5
5
  SHA512:
6
- metadata.gz: 8e14f1f08ec671c79ed112f81b1420569498ea7e172a4e6faf6ecc2ed45aea7ac1cdc6c7307183fc71944c0c4ddf947ebf2e7b95d2f24544a0880efca47682e1
7
- data.tar.gz: f99c0c15c44108e86a2cc8514fea0f16d323671a706209b5a05a6e1d8f297b5b8828e369483fbf1aaff70fcef37a81c43cd347656d01ca17bc66bb0cc5d441e6
6
+ metadata.gz: 69fa5b9b8a69a5709b58435287e90c8a547e2dc98c80ded0b1dc7c46ac306e4f02b77819ee52619ff6c8cfae27ef4bbaa57a36b18ad2e815928cb49bbb9d4f9c
7
+ data.tar.gz: 4e6b16cd569034ecbaf6f9b671b5327264035988480659d21154e7694b64ccebfcabc05deee3acf80dc25c16b3232feadaa4e256701b72e8576e8672fedd2e12
@@ -54,5 +54,25 @@ class Tynn
54
54
  return @settings ||= {}
55
55
  end
56
56
  end
57
+
58
+ module InstanceMethods
59
+ # Returns a Hash with the application settings.
60
+ #
61
+ # Examples
62
+ #
63
+ # Tynn.set(:environment, :development)
64
+ #
65
+ # Tynn.define do
66
+ # get do
67
+ # res.write(settings[:environment])
68
+ # end
69
+ # end
70
+ #
71
+ # GET / # => 200 "development"
72
+ #
73
+ def settings
74
+ return self.class.settings
75
+ end
76
+ end
57
77
  end
58
78
  end
@@ -1,7 +1,7 @@
1
1
  class Tynn # :nodoc: all
2
2
  VERSION = [
3
3
  MAJOR_VERSION = 1,
4
- MINOR_VERSION = 3,
4
+ MINOR_VERSION = 4,
5
5
  PATCH_VERSION = 0,
6
6
  PRE_VERSION = nil
7
7
  ].compact.join(".")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tynn
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francesco Rodríguez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-10 00:00:00.000000000 Z
11
+ date: 2015-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -175,4 +175,3 @@ test_files:
175
175
  - test/session_test.rb
176
176
  - test/ssl_test.rb
177
177
  - test/static_test.rb
178
- has_rdoc: