sinatra-decorator 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -0
- data/README.md +4 -3
- data/lib/sinatra-decorator.rb +1 -5
- data/lib/sinatra/decorator.rb +7 -0
- data/lib/{sinatra-decorator → sinatra/decorator}/base.rb +0 -0
- data/lib/{sinatra-decorator → sinatra/decorator}/decoratable.rb +0 -0
- data/lib/{sinatra-decorator → sinatra/decorator}/decorate_helpers.rb +0 -0
- data/lib/{sinatra-decorator → sinatra/decorator}/version.rb +1 -1
- data/sinatra-decorator.gemspec +1 -1
- data/test/helpers/helper.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a520a7de4af54c40a8d0d31134a08290c620ef21
|
4
|
+
data.tar.gz: f3cd6cee69c92deff6bfd369ce6c1967c32e8ab6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bee14b9fca296290ec1823e751f93acd955fa42f1799dabfbec4745c80025f0027088231a48876cfa8171638f92032b88a7ad71c3ecc2d2e9c807384f4b0f8da
|
7
|
+
data.tar.gz: 4d07bb0c19e2a5eb025f46fcc1dc3b2c9e88a1ea9d18a1b00bc29b796d252ccfe3631b27adfc9389842dd0ca1a6c8eb5ac77343759cd424b5e0458ff24e6ab31
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -13,7 +13,7 @@ Adds an object-oriented layer of presentation logic to your Sinatra application.
|
|
13
13
|
Add the following to your `Gemfile`:
|
14
14
|
|
15
15
|
```ruby
|
16
|
-
gem 'sinatra
|
16
|
+
gem 'sinatra/decorator'
|
17
17
|
```
|
18
18
|
|
19
19
|
And then execute:
|
@@ -28,7 +28,7 @@ $ bundle
|
|
28
28
|
# app.rb
|
29
29
|
require 'sinatra'
|
30
30
|
require 'slim'
|
31
|
-
require 'sinatra
|
31
|
+
require 'sinatra/decorator'
|
32
32
|
require_relative 'models/post'
|
33
33
|
require_relative 'decorators/post_decorator'
|
34
34
|
|
@@ -74,7 +74,8 @@ div
|
|
74
74
|
|
75
75
|
## Copyright
|
76
76
|
|
77
|
-
Copyright (c)
|
77
|
+
* Copyright (c) 2013 Takeshi Yabe (the author of [padrino-decorator](https://github.com/tyabe/padrino-decorator)).
|
78
|
+
* Copyright (c) 2014 Naotoshi Seo. See [LICENSE](LICENSE) for details.
|
78
79
|
|
79
80
|
## Special Thanks
|
80
81
|
|
data/lib/sinatra-decorator.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/sinatra-decorator.gemspec
CHANGED
data/test/helpers/helper.rb
CHANGED
@@ -4,7 +4,7 @@ APP_ROOT = File.dirname(__FILE__)
|
|
4
4
|
$: << File.expand_path(File.join(File.dirname(__FILE__), '..', '..','lib'))
|
5
5
|
require 'rack/test'
|
6
6
|
require File.expand_path("#{File.dirname(__FILE__)}/mini_shoulda")
|
7
|
-
require 'sinatra
|
7
|
+
require 'sinatra/decorator'
|
8
8
|
require 'turn'
|
9
9
|
|
10
10
|
class MiniTest::Spec
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-decorator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naotoshi Seo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -45,10 +45,11 @@ files:
|
|
45
45
|
- example/models/post.rb
|
46
46
|
- example/views/show.slim
|
47
47
|
- lib/sinatra-decorator.rb
|
48
|
-
- lib/sinatra
|
49
|
-
- lib/sinatra
|
50
|
-
- lib/sinatra
|
51
|
-
- lib/sinatra
|
48
|
+
- lib/sinatra/decorator.rb
|
49
|
+
- lib/sinatra/decorator/base.rb
|
50
|
+
- lib/sinatra/decorator/decoratable.rb
|
51
|
+
- lib/sinatra/decorator/decorate_helpers.rb
|
52
|
+
- lib/sinatra/decorator/version.rb
|
52
53
|
- sinatra-decorator.gemspec
|
53
54
|
- test/helpers/helper.rb
|
54
55
|
- test/helpers/mini_shoulda.rb
|