roboto 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/Gemfile.rails4-0 +2 -1
- data/Gemfile.rails4-0.lock +112 -99
- data/app/controllers/roboto/robots_controller.rb +2 -1
- data/lib/roboto/version.rb +1 -1
- data/roboto.gemspec +1 -0
- data/spec/generators/roboto/install_generator_spec.rb +2 -2
- data/spec/spec_helper.rb +1 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e931467013fcaa513a5da257cefec136940aea5a
|
4
|
+
data.tar.gz: 9451945ab7dde4fa7498c3e75358e3f229a3565a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce8a76fab4ae93a724c05474a1108be4a3e7319f48b3bf7055edb1d2c2af147a772dc75e479251af06fb169ad827b5f7991c10ba7861b414752603d31b3de9c2
|
7
|
+
data.tar.gz: b602b4a841454f90a09ac014c436474718738c483f3161dd6177035f228d42ebac9498b1ff7d5424c090c40537ed8b708b9b7f63c28eb04c4d0e10793896a639
|
data/.travis.yml
CHANGED
data/Gemfile.rails4-0
CHANGED
data/Gemfile.rails4-0.lock
CHANGED
@@ -1,142 +1,151 @@
|
|
1
1
|
GEM
|
2
2
|
remote: https://rubygems.org/
|
3
3
|
specs:
|
4
|
-
actionmailer (4.0.
|
5
|
-
actionpack (= 4.0.
|
6
|
-
mail (~> 2.5.4)
|
7
|
-
actionpack (4.0.
|
8
|
-
activesupport (= 4.0.
|
4
|
+
actionmailer (4.0.13)
|
5
|
+
actionpack (= 4.0.13)
|
6
|
+
mail (~> 2.5, >= 2.5.4)
|
7
|
+
actionpack (4.0.13)
|
8
|
+
activesupport (= 4.0.13)
|
9
9
|
builder (~> 3.1.0)
|
10
10
|
erubis (~> 2.7.0)
|
11
11
|
rack (~> 1.5.2)
|
12
12
|
rack-test (~> 0.6.2)
|
13
|
-
activemodel (4.0.
|
14
|
-
activesupport (= 4.0.
|
13
|
+
activemodel (4.0.13)
|
14
|
+
activesupport (= 4.0.13)
|
15
15
|
builder (~> 3.1.0)
|
16
|
-
activerecord (4.0.
|
17
|
-
activemodel (= 4.0.
|
16
|
+
activerecord (4.0.13)
|
17
|
+
activemodel (= 4.0.13)
|
18
18
|
activerecord-deprecated_finders (~> 1.0.2)
|
19
|
-
activesupport (= 4.0.
|
19
|
+
activesupport (= 4.0.13)
|
20
20
|
arel (~> 4.0.0)
|
21
|
-
activerecord-deprecated_finders (1.0.
|
22
|
-
activesupport (4.0.
|
23
|
-
i18n (~> 0.6, >= 0.6.
|
21
|
+
activerecord-deprecated_finders (1.0.4)
|
22
|
+
activesupport (4.0.13)
|
23
|
+
i18n (~> 0.6, >= 0.6.9)
|
24
24
|
minitest (~> 4.2)
|
25
25
|
multi_json (~> 1.3)
|
26
26
|
thread_safe (~> 0.1)
|
27
27
|
tzinfo (~> 0.3.37)
|
28
|
-
|
28
|
+
addressable (2.5.1)
|
29
|
+
public_suffix (~> 2.0, >= 2.0.2)
|
30
|
+
ammeter (1.1.4)
|
29
31
|
activesupport (>= 3.0)
|
30
32
|
railties (>= 3.0)
|
31
|
-
rspec (>= 2.2)
|
32
33
|
rspec-rails (>= 2.2)
|
33
|
-
arel (4.0.
|
34
|
-
atomic (1.1.14)
|
34
|
+
arel (4.0.2)
|
35
35
|
builder (3.1.4)
|
36
|
-
capybara (2.
|
36
|
+
capybara (2.14.4)
|
37
|
+
addressable
|
37
38
|
mime-types (>= 1.16)
|
38
39
|
nokogiri (>= 1.3.3)
|
39
40
|
rack (>= 1.0.0)
|
40
41
|
rack-test (>= 0.5.4)
|
41
42
|
xpath (~> 2.0)
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
diff-lcs (1.2.5)
|
43
|
+
coderay (1.1.1)
|
44
|
+
concurrent-ruby (1.0.5)
|
45
|
+
diff-lcs (1.3)
|
46
46
|
erubis (2.7.0)
|
47
|
-
fakefs (0.
|
48
|
-
ffi (1.9.
|
49
|
-
formatador (0.2.
|
50
|
-
guard (2.
|
47
|
+
fakefs (0.11.0)
|
48
|
+
ffi (1.9.18)
|
49
|
+
formatador (0.2.5)
|
50
|
+
guard (2.14.1)
|
51
51
|
formatador (>= 0.2.4)
|
52
|
-
listen (
|
52
|
+
listen (>= 2.7, < 4.0)
|
53
53
|
lumberjack (~> 1.0)
|
54
|
+
nenv (~> 0.1)
|
55
|
+
notiffany (~> 0.0)
|
54
56
|
pry (>= 0.9.12)
|
57
|
+
shellany (~> 0.0)
|
55
58
|
thor (>= 0.18.1)
|
56
|
-
guard-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
rb-fsevent (>= 0.9.
|
64
|
-
rb-inotify (>= 0.9)
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
59
|
+
guard-compat (1.2.1)
|
60
|
+
guard-rspec (4.7.3)
|
61
|
+
guard (~> 2.1)
|
62
|
+
guard-compat (~> 1.1)
|
63
|
+
rspec (>= 2.99.0, < 4.0)
|
64
|
+
i18n (0.8.4)
|
65
|
+
listen (3.1.5)
|
66
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
67
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
68
|
+
ruby_dep (~> 1.2)
|
69
|
+
lumberjack (1.0.12)
|
70
|
+
mail (2.6.6)
|
71
|
+
mime-types (>= 1.16, < 4)
|
69
72
|
method_source (0.8.2)
|
70
|
-
mime-types (
|
71
|
-
|
73
|
+
mime-types (3.1)
|
74
|
+
mime-types-data (~> 3.2015)
|
75
|
+
mime-types-data (3.2016.0521)
|
76
|
+
mini_portile2 (2.2.0)
|
72
77
|
minitest (4.7.5)
|
73
|
-
multi_json (1.
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
78
|
+
multi_json (1.12.1)
|
79
|
+
nenv (0.3.0)
|
80
|
+
nokogiri (1.8.0)
|
81
|
+
mini_portile2 (~> 2.2.0)
|
82
|
+
notiffany (0.1.1)
|
83
|
+
nenv (~> 0.1)
|
84
|
+
shellany (~> 0.0)
|
85
|
+
pry (0.10.4)
|
86
|
+
coderay (~> 1.1.0)
|
87
|
+
method_source (~> 0.8.1)
|
80
88
|
slop (~> 3.4)
|
81
|
-
|
82
|
-
rack
|
89
|
+
public_suffix (2.0.5)
|
90
|
+
rack (1.5.5)
|
91
|
+
rack-test (0.6.3)
|
83
92
|
rack (>= 1.0)
|
84
|
-
rails (4.0.
|
85
|
-
actionmailer (= 4.0.
|
86
|
-
actionpack (= 4.0.
|
87
|
-
activerecord (= 4.0.
|
88
|
-
activesupport (= 4.0.
|
93
|
+
rails (4.0.13)
|
94
|
+
actionmailer (= 4.0.13)
|
95
|
+
actionpack (= 4.0.13)
|
96
|
+
activerecord (= 4.0.13)
|
97
|
+
activesupport (= 4.0.13)
|
89
98
|
bundler (>= 1.3.0, < 2.0)
|
90
|
-
railties (= 4.0.
|
91
|
-
sprockets-rails (~> 2.0
|
92
|
-
railties (4.0.
|
93
|
-
actionpack (= 4.0.
|
94
|
-
activesupport (= 4.0.
|
99
|
+
railties (= 4.0.13)
|
100
|
+
sprockets-rails (~> 2.0)
|
101
|
+
railties (4.0.13)
|
102
|
+
actionpack (= 4.0.13)
|
103
|
+
activesupport (= 4.0.13)
|
95
104
|
rake (>= 0.8.7)
|
96
105
|
thor (>= 0.18.1, < 2.0)
|
97
|
-
rake (
|
98
|
-
rb-fsevent (0.
|
99
|
-
rb-inotify (0.9.
|
100
|
-
ffi (>= 0.5.0)
|
101
|
-
redcarpet (3.
|
102
|
-
rspec (
|
103
|
-
rspec-core (~>
|
104
|
-
rspec-expectations (~>
|
105
|
-
rspec-mocks (~>
|
106
|
-
rspec-core (
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
106
|
+
rake (12.0.0)
|
107
|
+
rb-fsevent (0.10.1)
|
108
|
+
rb-inotify (0.9.10)
|
109
|
+
ffi (>= 0.5.0, < 2)
|
110
|
+
redcarpet (3.4.0)
|
111
|
+
rspec (3.6.0)
|
112
|
+
rspec-core (~> 3.6.0)
|
113
|
+
rspec-expectations (~> 3.6.0)
|
114
|
+
rspec-mocks (~> 3.6.0)
|
115
|
+
rspec-core (3.6.0)
|
116
|
+
rspec-support (~> 3.6.0)
|
117
|
+
rspec-expectations (3.6.0)
|
118
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
119
|
+
rspec-support (~> 3.6.0)
|
120
|
+
rspec-mocks (3.6.0)
|
121
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
122
|
+
rspec-support (~> 3.6.0)
|
123
|
+
rspec-rails (3.6.0)
|
111
124
|
actionpack (>= 3.0)
|
112
125
|
activesupport (>= 3.0)
|
113
126
|
railties (>= 3.0)
|
114
|
-
rspec-core (~>
|
115
|
-
rspec-expectations (~>
|
116
|
-
rspec-mocks (~>
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
127
|
+
rspec-core (~> 3.6.0)
|
128
|
+
rspec-expectations (~> 3.6.0)
|
129
|
+
rspec-mocks (~> 3.6.0)
|
130
|
+
rspec-support (~> 3.6.0)
|
131
|
+
rspec-support (3.6.0)
|
132
|
+
ruby_dep (1.5.0)
|
133
|
+
shellany (0.0.1)
|
134
|
+
slop (3.6.0)
|
135
|
+
sprockets (3.7.1)
|
136
|
+
concurrent-ruby (~> 1.0)
|
137
|
+
rack (> 1, < 3)
|
138
|
+
sprockets-rails (2.3.3)
|
124
139
|
actionpack (>= 3.0)
|
125
140
|
activesupport (>= 3.0)
|
126
|
-
sprockets (
|
127
|
-
sqlite3 (1.3.
|
128
|
-
thor (0.
|
129
|
-
thread_safe (0.
|
130
|
-
|
131
|
-
|
132
|
-
timers (1.1.0)
|
133
|
-
treetop (1.4.15)
|
134
|
-
polyglot
|
135
|
-
polyglot (>= 0.3.1)
|
136
|
-
tzinfo (0.3.38)
|
137
|
-
xpath (2.0.0)
|
141
|
+
sprockets (>= 2.8, < 4.0)
|
142
|
+
sqlite3 (1.3.13)
|
143
|
+
thor (0.19.4)
|
144
|
+
thread_safe (0.3.6)
|
145
|
+
tzinfo (0.3.53)
|
146
|
+
xpath (2.1.0)
|
138
147
|
nokogiri (~> 1.3)
|
139
|
-
yard (0.
|
148
|
+
yard (0.9.9)
|
140
149
|
|
141
150
|
PLATFORMS
|
142
151
|
ruby
|
@@ -148,6 +157,10 @@ DEPENDENCIES
|
|
148
157
|
guard-rspec
|
149
158
|
rails (~> 4.0.0)
|
150
159
|
redcarpet
|
151
|
-
rspec-
|
160
|
+
rspec-expectations
|
161
|
+
rspec-rails (>= 3.6)
|
152
162
|
sqlite3
|
153
163
|
yard
|
164
|
+
|
165
|
+
BUNDLED WITH
|
166
|
+
1.13.5
|
@@ -1,7 +1,8 @@
|
|
1
1
|
module Roboto
|
2
2
|
class RobotsController < Roboto::ApplicationController
|
3
3
|
def show
|
4
|
-
|
4
|
+
render_sym = Rails.version.split(".")[0].to_i >= 5 ? :plain : :text
|
5
|
+
render render_sym => robot_contents,
|
5
6
|
:layout => false,
|
6
7
|
:content_type => 'text/plain'
|
7
8
|
end
|
data/lib/roboto/version.rb
CHANGED
data/roboto.gemspec
CHANGED
@@ -18,6 +18,7 @@ Gem::Specification.new do |gem|
|
|
18
18
|
gem.add_dependency 'rails', '>= 4.2'
|
19
19
|
|
20
20
|
gem.add_development_dependency 'rspec-rails', '>= 3.6'
|
21
|
+
gem.add_development_dependency 'rspec-expectations'
|
21
22
|
gem.add_development_dependency 'ammeter'
|
22
23
|
gem.add_development_dependency 'capybara'
|
23
24
|
gem.add_development_dependency 'fakefs'
|
@@ -8,7 +8,7 @@ describe Roboto::Generators::InstallGenerator do
|
|
8
8
|
|
9
9
|
describe 'presence of roboto configuration file' do
|
10
10
|
before do
|
11
|
-
@
|
11
|
+
@env_available = ["roboto_env", "staging", "production"]
|
12
12
|
create_fake_env
|
13
13
|
create_routes_rb
|
14
14
|
run_generator
|
@@ -40,6 +40,6 @@ describe Roboto::Generators::InstallGenerator do
|
|
40
40
|
def create_fake_env
|
41
41
|
destination = File.join(destination_root, "config/environments")
|
42
42
|
FileUtils.mkdir_p(destination)
|
43
|
-
@
|
43
|
+
@env_available.each {|env| FileUtils.touch(destination_root + "/config/environments/#{env}.rb")}
|
44
44
|
end
|
45
45
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roboto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Pickett
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '3.6'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec-expectations
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: ammeter
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -217,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
217
231
|
version: '0'
|
218
232
|
requirements: []
|
219
233
|
rubyforge_project:
|
220
|
-
rubygems_version: 2.
|
234
|
+
rubygems_version: 2.5.1
|
221
235
|
signing_key:
|
222
236
|
specification_version: 4
|
223
237
|
summary: A Rails Engine to help with robots.txt
|