carpentry 2.1.1 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +5 -3
- data/lib/carpentry.rb +0 -1
- data/lib/carpentry/engine.rb +0 -3
- data/lib/carpentry/version.rb +1 -1
- metadata +30 -48
- data/lib/carpentry/no_robots_middleware.rb +0 -18
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4b4f97591bb13f7d3d829ac890089c5c7e948f7d
|
4
|
+
data.tar.gz: cc3e906c4530925bc1ca3b50814add62f7d81d3a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 04668e1da930190467c88ad25fe9ae90d8b6f2463f3da169d11d4de1ab82c44e68ff668d5350beb27742f6119c63eb36d7188636f5759f537418b967dc87748b
|
7
|
+
data.tar.gz: 73a853c6921af99529b39531121ce8056d0e60da47717b8f71d8967de759fb5ef798ec6f633fa5df2ea4477fefbf17f1fd34bc6106bdc828b860360bf71f13a6
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
Carpentry
|
2
2
|
=========
|
3
3
|
|
4
|
+
[![Build Status](https://travis-ci.org/kiskolabs/carpentry.svg?branch=master)](https://travis-ci.org/kiskolabs/carpentry) [![Gem Version](https://badge.fury.io/rb/carpentry.svg)](http://badge.fury.io/rb/carpentry)
|
5
|
+
|
4
6
|
Handcrafted prototypes with ease.
|
5
7
|
|
6
8
|
|
@@ -9,7 +11,7 @@ Installation
|
|
9
11
|
|
10
12
|
Add Carpentry to Gemfile:
|
11
13
|
|
12
|
-
gem "carpentry"
|
14
|
+
gem "carpentry"
|
13
15
|
|
14
16
|
Run the generator to create the prototypes folder (and inject the Carpentry route):
|
15
17
|
|
@@ -54,9 +56,9 @@ from being rendered in production.
|
|
54
56
|
Rails and Ruby compatiblity
|
55
57
|
---------------------------
|
56
58
|
|
57
|
-
Carpentry is compatible with **Rails
|
59
|
+
Carpentry is compatible with **Rails 4.1** and above.
|
58
60
|
|
59
|
-
Only **Ruby 1.
|
61
|
+
Only **Ruby 2.1.x** and above are supported, check [Travis CI][travis] for build details.
|
60
62
|
|
61
63
|
If you want to use Carpentry with Ruby 1.9.2 or below, use [Carpentry v1.0.1][v1].
|
62
64
|
|
data/lib/carpentry.rb
CHANGED
data/lib/carpentry/engine.rb
CHANGED
data/lib/carpentry/version.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carpentry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
5
|
-
prerelease:
|
4
|
+
version: 2.2.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Joao Carlos
|
@@ -12,110 +11,98 @@ authors:
|
|
12
11
|
autorequire:
|
13
12
|
bindir: bin
|
14
13
|
cert_chain: []
|
15
|
-
date:
|
14
|
+
date: 2015-04-13 00:00:00.000000000 Z
|
16
15
|
dependencies:
|
17
16
|
- !ruby/object:Gem::Dependency
|
18
17
|
name: railties
|
19
18
|
requirement: !ruby/object:Gem::Requirement
|
20
|
-
none: false
|
21
19
|
requirements:
|
22
|
-
- -
|
20
|
+
- - ">="
|
23
21
|
- !ruby/object:Gem::Version
|
24
22
|
version: 3.2.6
|
25
|
-
- - <
|
23
|
+
- - "<"
|
26
24
|
- !ruby/object:Gem::Version
|
27
25
|
version: '5'
|
28
26
|
type: :runtime
|
29
27
|
prerelease: false
|
30
28
|
version_requirements: !ruby/object:Gem::Requirement
|
31
|
-
none: false
|
32
29
|
requirements:
|
33
|
-
- -
|
30
|
+
- - ">="
|
34
31
|
- !ruby/object:Gem::Version
|
35
32
|
version: 3.2.6
|
36
|
-
- - <
|
33
|
+
- - "<"
|
37
34
|
- !ruby/object:Gem::Version
|
38
35
|
version: '5'
|
39
36
|
- !ruby/object:Gem::Dependency
|
40
37
|
name: rdoc
|
41
38
|
requirement: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
39
|
requirements:
|
44
|
-
- -
|
40
|
+
- - ">="
|
45
41
|
- !ruby/object:Gem::Version
|
46
42
|
version: '0'
|
47
43
|
type: :development
|
48
44
|
prerelease: false
|
49
45
|
version_requirements: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
46
|
requirements:
|
52
|
-
- -
|
47
|
+
- - ">="
|
53
48
|
- !ruby/object:Gem::Version
|
54
49
|
version: '0'
|
55
50
|
- !ruby/object:Gem::Dependency
|
56
51
|
name: rails
|
57
52
|
requirement: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
53
|
requirements:
|
60
|
-
- -
|
54
|
+
- - ">="
|
61
55
|
- !ruby/object:Gem::Version
|
62
|
-
version: 4.
|
56
|
+
version: 4.1.0
|
63
57
|
type: :development
|
64
58
|
prerelease: false
|
65
59
|
version_requirements: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
60
|
requirements:
|
68
|
-
- -
|
61
|
+
- - ">="
|
69
62
|
- !ruby/object:Gem::Version
|
70
|
-
version: 4.
|
63
|
+
version: 4.1.0
|
71
64
|
- !ruby/object:Gem::Dependency
|
72
65
|
name: capybara
|
73
66
|
requirement: !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
67
|
requirements:
|
76
|
-
- -
|
68
|
+
- - ">="
|
77
69
|
- !ruby/object:Gem::Version
|
78
70
|
version: 0.4.0
|
79
71
|
type: :development
|
80
72
|
prerelease: false
|
81
73
|
version_requirements: !ruby/object:Gem::Requirement
|
82
|
-
none: false
|
83
74
|
requirements:
|
84
|
-
- -
|
75
|
+
- - ">="
|
85
76
|
- !ruby/object:Gem::Version
|
86
77
|
version: 0.4.0
|
87
78
|
- !ruby/object:Gem::Dependency
|
88
79
|
name: autotest-standalone
|
89
80
|
requirement: !ruby/object:Gem::Requirement
|
90
|
-
none: false
|
91
81
|
requirements:
|
92
|
-
- -
|
82
|
+
- - ">="
|
93
83
|
- !ruby/object:Gem::Version
|
94
84
|
version: '0'
|
95
85
|
type: :development
|
96
86
|
prerelease: false
|
97
87
|
version_requirements: !ruby/object:Gem::Requirement
|
98
|
-
none: false
|
99
88
|
requirements:
|
100
|
-
- -
|
89
|
+
- - ">="
|
101
90
|
- !ruby/object:Gem::Version
|
102
91
|
version: '0'
|
103
92
|
- !ruby/object:Gem::Dependency
|
104
93
|
name: rspec-rails
|
105
94
|
requirement: !ruby/object:Gem::Requirement
|
106
|
-
none: false
|
107
95
|
requirements:
|
108
|
-
- -
|
96
|
+
- - "~>"
|
109
97
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
98
|
+
version: 2.14.2
|
111
99
|
type: :development
|
112
100
|
prerelease: false
|
113
101
|
version_requirements: !ruby/object:Gem::Requirement
|
114
|
-
none: false
|
115
102
|
requirements:
|
116
|
-
- -
|
103
|
+
- - "~>"
|
117
104
|
- !ruby/object:Gem::Version
|
118
|
-
version:
|
105
|
+
version: 2.14.2
|
119
106
|
description: Handcrafted prototypes for Rails.
|
120
107
|
email:
|
121
108
|
- contact@kiskolabs.com
|
@@ -123,43 +110,38 @@ executables: []
|
|
123
110
|
extensions: []
|
124
111
|
extra_rdoc_files: []
|
125
112
|
files:
|
113
|
+
- Gemfile
|
114
|
+
- README.md
|
115
|
+
- Rakefile
|
126
116
|
- app/controllers/carpentry/prototypes_controller.rb
|
117
|
+
- lib/carpentry.rb
|
127
118
|
- lib/carpentry/engine.rb
|
128
|
-
- lib/carpentry/no_robots_middleware.rb
|
129
119
|
- lib/carpentry/rails/routes.rb
|
130
120
|
- lib/carpentry/version.rb
|
131
|
-
- lib/carpentry.rb
|
132
121
|
- lib/generators/carpentry/install/install_generator.rb
|
133
122
|
- lib/tasks/carpentry_tasks.rake
|
134
|
-
- Rakefile
|
135
|
-
- Gemfile
|
136
|
-
- README.md
|
137
123
|
homepage: https://github.com/kiskolabs/carpentry
|
138
124
|
licenses:
|
139
125
|
- MIT
|
126
|
+
metadata: {}
|
140
127
|
post_install_message:
|
141
128
|
rdoc_options: []
|
142
129
|
require_paths:
|
143
130
|
- lib
|
144
131
|
required_ruby_version: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
132
|
requirements:
|
147
|
-
- -
|
133
|
+
- - ">="
|
148
134
|
- !ruby/object:Gem::Version
|
149
|
-
version: 1.
|
135
|
+
version: 2.1.0
|
150
136
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
|
-
none: false
|
152
137
|
requirements:
|
153
|
-
- -
|
138
|
+
- - ">="
|
154
139
|
- !ruby/object:Gem::Version
|
155
140
|
version: '0'
|
156
|
-
segments:
|
157
|
-
- 0
|
158
|
-
hash: -2787984229922370110
|
159
141
|
requirements: []
|
160
142
|
rubyforge_project:
|
161
|
-
rubygems_version:
|
143
|
+
rubygems_version: 2.4.6
|
162
144
|
signing_key:
|
163
|
-
specification_version:
|
145
|
+
specification_version: 4
|
164
146
|
summary: Protyping engine for Rails.
|
165
147
|
test_files: []
|
@@ -1,18 +0,0 @@
|
|
1
|
-
module Carpentry
|
2
|
-
class NoRobotsMiddleware
|
3
|
-
def initialize(app)
|
4
|
-
@app = app
|
5
|
-
end
|
6
|
-
|
7
|
-
def call(env)
|
8
|
-
status, headers, response = @app.call(env)
|
9
|
-
|
10
|
-
if env["carpentry.prototype"] && status == 200
|
11
|
-
no_robots_tag = %{<meta name="robots" content="noindex, nofollow"/>\n}
|
12
|
-
response.body = response.body.sub("</head>", "#{no_robots_tag}</head>")
|
13
|
-
end
|
14
|
-
|
15
|
-
[status, headers, response]
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|