pliny 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +5 -13
  2. data/README.md +1 -2
  3. data/lib/pliny/commands/creator.rb +3 -3
  4. data/lib/pliny/commands/generator/base.rb +6 -2
  5. data/lib/pliny/commands/generator/endpoint.rb +3 -3
  6. data/lib/pliny/commands/generator/mediator.rb +2 -2
  7. data/lib/pliny/commands/generator/migration.rb +1 -1
  8. data/lib/pliny/commands/generator/model.rb +3 -3
  9. data/lib/pliny/commands/generator/serializer.rb +2 -2
  10. data/lib/pliny/config_helpers.rb +1 -1
  11. data/lib/pliny/tasks/db.rake +23 -4
  12. data/lib/pliny/templates/endpoint.erb +4 -4
  13. data/lib/pliny/templates/endpoint_acceptance_test.erb +5 -5
  14. data/lib/pliny/templates/endpoint_test.erb +1 -1
  15. data/lib/pliny/version.rb +1 -1
  16. data/{template → lib/template}/.env.sample +0 -0
  17. data/{template → lib/template}/.env.test +0 -0
  18. data/{template → lib/template}/.gitignore +0 -0
  19. data/{template → lib/template}/.rspec +0 -0
  20. data/lib/template/.ruby-version +1 -0
  21. data/{template → lib/template}/Gemfile +7 -10
  22. data/{template → lib/template}/LICENSE +0 -0
  23. data/{template → lib/template}/Procfile +0 -0
  24. data/{template → lib/template}/README.md +0 -0
  25. data/lib/template/Rakefile +6 -0
  26. data/{template → lib/template}/bin/console +2 -10
  27. data/{template → lib/template}/bin/run +0 -0
  28. data/{template → lib/template}/bin/setup +1 -1
  29. data/{template → lib/template}/config.ru +0 -0
  30. data/{template → lib/template}/config/config.rb +1 -1
  31. data/{template → lib/template}/config/initializers/database.rb +0 -0
  32. data/{template → lib/template}/config/initializers/rollbar.rb +0 -0
  33. data/{template → lib/template}/config/puma.rb +0 -0
  34. data/{template → lib/template}/db/schema.sql +0 -0
  35. data/{template → lib/template}/db/seeds.rb +0 -0
  36. data/{template → lib/template}/docs/schema/meta.json +0 -0
  37. data/{template → lib/template}/docs/schema/schemata/.gitkeep +0 -0
  38. data/{template → lib/template}/lib/application.rb +0 -0
  39. data/{template → lib/template}/lib/endpoints/base.rb +0 -0
  40. data/{template → lib/template}/lib/endpoints/root.rb +0 -0
  41. data/{template → lib/template}/lib/initializer.rb +0 -0
  42. data/{template → lib/template}/lib/mediators/base.rb +0 -0
  43. data/{template → lib/template}/lib/routes.rb +0 -0
  44. data/{template → lib/template}/lib/serializers/base.rb +0 -0
  45. data/lib/template/lib/tasks/spec.rake +10 -0
  46. data/{template → lib/template}/spec/spec_helper.rb +1 -0
  47. data/{template → lib/template}/spec/support/auto_define_rack_app.rb +0 -0
  48. data/{template → lib/template}/spec/support/log.rb +0 -0
  49. data/spec/commands/generator/endpoint_spec.rb +44 -2
  50. data/spec/integration_spec.rb +17 -7
  51. data/spec/spec_helper.rb +14 -1
  52. data/spec/support/config.rb +8 -0
  53. data/spec/support/endpoints.rb +8 -0
  54. metadata +134 -97
  55. data/template/.ruby-version +0 -1
  56. data/template/Gemfile.lock +0 -138
  57. data/template/Rakefile +0 -14
@@ -0,0 +1,6 @@
1
+ require "pliny/tasks"
2
+
3
+ # Add your rake tasks to lib/tasks!
4
+ Dir["./lib/tasks/*.rake"].each { |task| load task }
5
+
6
+ task :default => :spec
@@ -3,17 +3,9 @@
3
3
  require_relative '../lib/application'
4
4
 
5
5
  def basic_prompt(target_self, nest_level, pry)
6
- # override CONSOLE_BANNER to include something like a release identifier
6
+ # override DEPLOYMENT to identify console sessions (eg: staging/production/etc)
7
7
  nesting = nest_level.zero? ? "" : ":#{nest_level}"
8
- "[#{pry.input_array.size}] #{console_prefix}(#{Pry.view_clip(target_self)})#{nesting}"
9
- end
10
-
11
- def console_prefix
12
- if Config.console_banner
13
- Config.console_banner
14
- elsif Config.rack_env == "production"
15
- "production"
16
- end
8
+ "[#{pry.input_array.size}] #{Config.deployment}(#{Pry.view_clip(target_self)})#{nesting}"
17
9
  end
18
10
 
19
11
  Pry.prompt = [
File without changes
@@ -5,7 +5,7 @@ function main {
5
5
 
6
6
  add_new_env_vars
7
7
  bundle install
8
- bundle exec rake db:setup db:schema:load db:migrate
8
+ bundle exec rake db:setup
9
9
  }
10
10
 
11
11
  function add_new_env_vars {
File without changes
@@ -13,13 +13,13 @@ module Config
13
13
  mandatory :database_url, string
14
14
 
15
15
  # Optional -- value is returned or `nil` if it wasn't present.
16
- optional :console_banner, string
17
16
  optional :placeholder, string
18
17
  optional :versioning_default, string
19
18
  optional :versioning_app_name, string
20
19
 
21
20
  # Override -- value is returned or the set default.
22
21
  override :db_pool, 5, int
22
+ override :deployment, 'production', string
23
23
  override :port, 5000, int
24
24
  override :puma_max_threads, 16, int
25
25
  override :puma_min_threads, 1, int
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,10 @@
1
+ # define our own version of the spec task because rspec might not be available
2
+ # in the production environment, so we can't rely on RSpec::Core::RakeTask
3
+ desc "Run all app specs"
4
+ task :spec do
5
+ require "rspec/core"
6
+ code = RSpec::Core::Runner.run(
7
+ ["./spec"],
8
+ $stderr, $stdout)
9
+ exit(code) unless code == 0
10
+ end
@@ -36,6 +36,7 @@ RSpec.configure do |config|
36
36
  DatabaseCleaner.clean
37
37
  end
38
38
 
39
+ config.expect_with :minitest
39
40
  config.run_all_when_everything_filtered = true
40
41
  config.filter_run :focus
41
42
 
File without changes
@@ -4,12 +4,54 @@ require 'spec_helper'
4
4
 
5
5
  describe Pliny::Commands::Generator::Endpoint do
6
6
  subject { Pliny::Commands::Generator::Endpoint.new(model_name, {}, StringIO.new) }
7
+ let(:model_name) { 'resource_history' }
7
8
 
8
9
  describe '#url_path' do
9
- let(:model_name) { 'resource_history' }
10
-
11
10
  it 'builds a URL path' do
12
11
  assert_equal '/resource-histories', subject.url_path
13
12
  end
14
13
  end
14
+
15
+ describe 'template' do
16
+ before do
17
+ # render the stub endpoint template to a string
18
+ template = subject.render_template("endpoint.erb",
19
+ plural_class_name: "Artists",
20
+ url_path: "/artists")
21
+
22
+ # eval and assign it to rack_app so tests are pointing to it
23
+ @rack_app = eval(template)
24
+ end
25
+
26
+ it "defines a stub GET /" do
27
+ get "/artists"
28
+ assert_equal 200, last_response.status
29
+ assert_equal [], MultiJson.decode(last_response.body)
30
+ end
31
+
32
+ it "defines a stub POST /" do
33
+ post "/artists"
34
+ assert_equal 201, last_response.status
35
+ assert_equal Hash.new, MultiJson.decode(last_response.body)
36
+ end
37
+
38
+ it "defines a stub GET /:id" do
39
+ get "/artists/123"
40
+ assert_equal 200, last_response.status
41
+ assert_equal Hash.new, MultiJson.decode(last_response.body)
42
+ end
43
+
44
+ it "defines a stub PATCH /:id" do
45
+ patch "/artists/123"
46
+ assert_equal 200, last_response.status
47
+ assert_equal Hash.new, MultiJson.decode(last_response.body)
48
+ end
49
+
50
+ it "defines a stub DELETE /:id" do
51
+ delete "/artists/123"
52
+ assert_equal 200, last_response.status
53
+ assert_equal Hash.new, MultiJson.decode(last_response.body)
54
+ end
55
+
56
+ end
15
57
  end
@@ -1,19 +1,29 @@
1
1
  require "spec_helper"
2
2
 
3
3
  describe "Pliny integration test" do
4
- before do
4
+ before(:all) do
5
5
  FileUtils.rm_rf("/tmp/plinytest")
6
6
  FileUtils.mkdir_p("/tmp/plinytest")
7
7
  Dir.chdir("/tmp/plinytest")
8
- end
9
8
 
10
- it "works" do
11
9
  bash "pliny-new myapp"
12
10
  bash_app "bin/setup"
13
- assert File.exists?("./myapp/Gemfile.lock")
14
- bash_app "pliny-generate model artist"
15
- assert File.exists?("./myapp/lib/models/artist.rb")
16
- # could use something like bin/run in the template app to facilitate testing this
11
+ end
12
+
13
+ describe "bin/setup" do
14
+ it "generates .env" do
15
+ assert File.exists?("./myapp/.env")
16
+ end
17
+ end
18
+
19
+ describe "pliny-generate model" do
20
+ before(:all) do
21
+ bash_app "pliny-generate model artist"
22
+ end
23
+
24
+ it "creates the model file" do
25
+ assert File.exists?("./myapp/lib/models/artist.rb")
26
+ end
17
27
  end
18
28
 
19
29
  def bash(cmd)
data/spec/spec_helper.rb CHANGED
@@ -2,9 +2,15 @@
2
2
  ENV["RACK_ENV"] = "test"
3
3
 
4
4
  require "bundler"
5
- Bundler.require(:default, :test)
5
+ Bundler.require
6
+
7
+ require "rack/test"
8
+ require "sinatra/namespace"
9
+ require "sinatra/router"
10
+ require "timecop"
6
11
 
7
12
  require_relative "../lib/pliny"
13
+ Pliny::Utils.require_glob("./spec/support/**/*.rb")
8
14
 
9
15
  RSpec.configure do |config|
10
16
  config.include Rack::Test::Methods
@@ -23,4 +29,11 @@ RSpec.configure do |config|
23
29
  # the seed, which is printed after each run.
24
30
  # --seed 1234
25
31
  config.order = 'random'
32
+
33
+ # the rack app to be tested with rack-test:
34
+ def app
35
+ @rack_app || fail("Missing @rack_app")
36
+ end
26
37
  end
38
+
39
+ Pliny.stdout = StringIO.new
@@ -0,0 +1,8 @@
1
+ # Supress the "use RbConfig instead" warning.
2
+ Object.send(:remove_const, :Config) if Object.const_defined?(:Config)
3
+
4
+ module Config
5
+ def self.pretty_json
6
+ true
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ # create Endpoints::Base so we can test subclasses generated by Pliny:
2
+ module Endpoints
3
+ class Base < Sinatra::Base
4
+ register Sinatra::Namespace
5
+ helpers Pliny::Helpers::Encode
6
+ helpers Pliny::Helpers::Params
7
+ end
8
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pliny
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandur Leach
@@ -9,280 +9,314 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-11-02 00:00:00.000000000 Z
12
+ date: 2015-01-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ~>
18
+ - - "~>"
19
19
  - !ruby/object:Gem::Version
20
20
  version: '4.1'
21
- - - ! '>='
21
+ - - ">="
22
22
  - !ruby/object:Gem::Version
23
23
  version: 4.1.0
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
- - - ~>
28
+ - - "~>"
29
29
  - !ruby/object:Gem::Version
30
30
  version: '4.1'
31
- - - ! '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 4.1.0
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: multi_json
36
36
  requirement: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.9'
41
- - - ! '>='
41
+ - - ">="
42
42
  - !ruby/object:Gem::Version
43
43
  version: 1.9.3
44
44
  type: :runtime
45
45
  prerelease: false
46
46
  version_requirements: !ruby/object:Gem::Requirement
47
47
  requirements:
48
- - - ~>
48
+ - - "~>"
49
49
  - !ruby/object:Gem::Version
50
50
  version: '1.9'
51
- - - ! '>='
51
+ - - ">="
52
52
  - !ruby/object:Gem::Version
53
53
  version: 1.9.3
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: pg
56
56
  requirement: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - ~>
58
+ - - "~>"
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0.17'
61
- - - ! '>='
61
+ - - ">="
62
62
  - !ruby/object:Gem::Version
63
63
  version: 0.17.1
64
64
  type: :runtime
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - ~>
68
+ - - "~>"
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0.17'
71
- - - ! '>='
71
+ - - ">="
72
72
  - !ruby/object:Gem::Version
73
73
  version: 0.17.1
74
74
  - !ruby/object:Gem::Dependency
75
75
  name: prmd
76
76
  requirement: !ruby/object:Gem::Requirement
77
77
  requirements:
78
- - - ~>
78
+ - - '='
79
79
  - !ruby/object:Gem::Version
80
- version: '0.1'
81
- - - ! '>='
82
- - !ruby/object:Gem::Version
83
- version: 0.1.1
80
+ version: 0.6.1
84
81
  type: :runtime
85
82
  prerelease: false
86
83
  version_requirements: !ruby/object:Gem::Requirement
87
84
  requirements:
88
- - - ~>
89
- - !ruby/object:Gem::Version
90
- version: '0.1'
91
- - - ! '>='
85
+ - - '='
92
86
  - !ruby/object:Gem::Version
93
- version: 0.1.1
87
+ version: 0.6.1
94
88
  - !ruby/object:Gem::Dependency
95
89
  name: sequel
96
90
  requirement: !ruby/object:Gem::Requirement
97
91
  requirements:
98
- - - ~>
92
+ - - "~>"
99
93
  - !ruby/object:Gem::Version
100
94
  version: '4.9'
101
- - - ! '>='
95
+ - - ">="
102
96
  - !ruby/object:Gem::Version
103
97
  version: 4.9.0
104
98
  type: :runtime
105
99
  prerelease: false
106
100
  version_requirements: !ruby/object:Gem::Requirement
107
101
  requirements:
108
- - - ~>
102
+ - - "~>"
109
103
  - !ruby/object:Gem::Version
110
104
  version: '4.9'
111
- - - ! '>='
105
+ - - ">="
112
106
  - !ruby/object:Gem::Version
113
107
  version: 4.9.0
114
108
  - !ruby/object:Gem::Dependency
115
109
  name: sinatra
116
110
  requirement: !ruby/object:Gem::Requirement
117
111
  requirements:
118
- - - ~>
112
+ - - "~>"
119
113
  - !ruby/object:Gem::Version
120
114
  version: '1.4'
121
- - - ! '>='
115
+ - - ">="
122
116
  - !ruby/object:Gem::Version
123
117
  version: 1.4.5
124
118
  type: :runtime
125
119
  prerelease: false
126
120
  version_requirements: !ruby/object:Gem::Requirement
127
121
  requirements:
128
- - - ~>
122
+ - - "~>"
129
123
  - !ruby/object:Gem::Version
130
124
  version: '1.4'
131
- - - ! '>='
125
+ - - ">="
132
126
  - !ruby/object:Gem::Version
133
127
  version: 1.4.5
134
128
  - !ruby/object:Gem::Dependency
135
129
  name: http_accept
136
130
  requirement: !ruby/object:Gem::Requirement
137
131
  requirements:
138
- - - ~>
132
+ - - "~>"
139
133
  - !ruby/object:Gem::Version
140
134
  version: '0.1'
141
- - - ! '>='
135
+ - - ">="
142
136
  - !ruby/object:Gem::Version
143
137
  version: 0.1.5
144
138
  type: :runtime
145
139
  prerelease: false
146
140
  version_requirements: !ruby/object:Gem::Requirement
147
141
  requirements:
148
- - - ~>
142
+ - - "~>"
149
143
  - !ruby/object:Gem::Version
150
144
  version: '0.1'
151
- - - ! '>='
145
+ - - ">="
152
146
  - !ruby/object:Gem::Version
153
147
  version: 0.1.5
154
148
  - !ruby/object:Gem::Dependency
155
149
  name: sinatra-router
156
150
  requirement: !ruby/object:Gem::Requirement
157
151
  requirements:
158
- - - ~>
152
+ - - "~>"
159
153
  - !ruby/object:Gem::Version
160
154
  version: '0.2'
161
- - - ! '>='
155
+ - - ">="
162
156
  - !ruby/object:Gem::Version
163
157
  version: 0.2.3
164
158
  type: :runtime
165
159
  prerelease: false
166
160
  version_requirements: !ruby/object:Gem::Requirement
167
161
  requirements:
168
- - - ~>
162
+ - - "~>"
169
163
  - !ruby/object:Gem::Version
170
164
  version: '0.2'
171
- - - ! '>='
165
+ - - ">="
172
166
  - !ruby/object:Gem::Version
173
167
  version: 0.2.3
174
168
  - !ruby/object:Gem::Dependency
175
169
  name: thor
176
170
  requirement: !ruby/object:Gem::Requirement
177
171
  requirements:
178
- - - ~>
172
+ - - "~>"
179
173
  - !ruby/object:Gem::Version
180
174
  version: '0.19'
181
- - - ! '>='
175
+ - - ">="
182
176
  - !ruby/object:Gem::Version
183
177
  version: 0.19.1
184
178
  type: :runtime
185
179
  prerelease: false
186
180
  version_requirements: !ruby/object:Gem::Requirement
187
181
  requirements:
188
- - - ~>
182
+ - - "~>"
189
183
  - !ruby/object:Gem::Version
190
184
  version: '0.19'
191
- - - ! '>='
185
+ - - ">="
192
186
  - !ruby/object:Gem::Version
193
187
  version: 0.19.1
194
188
  - !ruby/object:Gem::Dependency
195
189
  name: rake
196
190
  requirement: !ruby/object:Gem::Requirement
197
191
  requirements:
198
- - - ~>
192
+ - - "~>"
199
193
  - !ruby/object:Gem::Version
200
194
  version: '0.8'
201
- - - ! '>='
195
+ - - ">="
202
196
  - !ruby/object:Gem::Version
203
197
  version: 0.8.7
204
198
  type: :development
205
199
  prerelease: false
206
200
  version_requirements: !ruby/object:Gem::Requirement
207
201
  requirements:
208
- - - ~>
202
+ - - "~>"
209
203
  - !ruby/object:Gem::Version
210
204
  version: '0.8'
211
- - - ! '>='
205
+ - - ">="
212
206
  - !ruby/object:Gem::Version
213
207
  version: 0.8.7
214
208
  - !ruby/object:Gem::Dependency
215
209
  name: rack-test
216
210
  requirement: !ruby/object:Gem::Requirement
217
211
  requirements:
218
- - - ~>
212
+ - - "~>"
219
213
  - !ruby/object:Gem::Version
220
214
  version: '0.6'
221
- - - ! '>='
215
+ - - ">="
222
216
  - !ruby/object:Gem::Version
223
217
  version: 0.6.2
224
218
  type: :development
225
219
  prerelease: false
226
220
  version_requirements: !ruby/object:Gem::Requirement
227
221
  requirements:
228
- - - ~>
222
+ - - "~>"
229
223
  - !ruby/object:Gem::Version
230
224
  version: '0.6'
231
- - - ! '>='
225
+ - - ">="
232
226
  - !ruby/object:Gem::Version
233
227
  version: 0.6.2
234
228
  - !ruby/object:Gem::Dependency
235
229
  name: rr
236
230
  requirement: !ruby/object:Gem::Requirement
237
231
  requirements:
238
- - - ~>
232
+ - - "~>"
239
233
  - !ruby/object:Gem::Version
240
234
  version: '1.1'
241
- - - ! '>='
235
+ - - ">="
242
236
  - !ruby/object:Gem::Version
243
237
  version: 1.1.2
244
238
  type: :development
245
239
  prerelease: false
246
240
  version_requirements: !ruby/object:Gem::Requirement
247
241
  requirements:
248
- - - ~>
242
+ - - "~>"
249
243
  - !ruby/object:Gem::Version
250
244
  version: '1.1'
251
- - - ! '>='
245
+ - - ">="
252
246
  - !ruby/object:Gem::Version
253
247
  version: 1.1.2
248
+ - !ruby/object:Gem::Dependency
249
+ name: rspec
250
+ requirement: !ruby/object:Gem::Requirement
251
+ requirements:
252
+ - - "~>"
253
+ - !ruby/object:Gem::Version
254
+ version: '3.1'
255
+ - - ">="
256
+ - !ruby/object:Gem::Version
257
+ version: 3.1.0
258
+ type: :development
259
+ prerelease: false
260
+ version_requirements: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - "~>"
263
+ - !ruby/object:Gem::Version
264
+ version: '3.1'
265
+ - - ">="
266
+ - !ruby/object:Gem::Version
267
+ version: 3.1.0
268
+ - !ruby/object:Gem::Dependency
269
+ name: sinatra-contrib
270
+ requirement: !ruby/object:Gem::Requirement
271
+ requirements:
272
+ - - "~>"
273
+ - !ruby/object:Gem::Version
274
+ version: '1.4'
275
+ - - ">="
276
+ - !ruby/object:Gem::Version
277
+ version: 1.4.2
278
+ type: :development
279
+ prerelease: false
280
+ version_requirements: !ruby/object:Gem::Requirement
281
+ requirements:
282
+ - - "~>"
283
+ - !ruby/object:Gem::Version
284
+ version: '1.4'
285
+ - - ">="
286
+ - !ruby/object:Gem::Version
287
+ version: 1.4.2
254
288
  - !ruby/object:Gem::Dependency
255
289
  name: timecop
256
290
  requirement: !ruby/object:Gem::Requirement
257
291
  requirements:
258
- - - ~>
292
+ - - "~>"
259
293
  - !ruby/object:Gem::Version
260
294
  version: '0.7'
261
- - - ! '>='
295
+ - - ">="
262
296
  - !ruby/object:Gem::Version
263
297
  version: 0.7.1
264
298
  type: :development
265
299
  prerelease: false
266
300
  version_requirements: !ruby/object:Gem::Requirement
267
301
  requirements:
268
- - - ~>
302
+ - - "~>"
269
303
  - !ruby/object:Gem::Version
270
304
  version: '0.7'
271
- - - ! '>='
305
+ - - ">="
272
306
  - !ruby/object:Gem::Version
273
307
  version: 0.7.1
274
308
  - !ruby/object:Gem::Dependency
275
309
  name: pry
276
310
  requirement: !ruby/object:Gem::Requirement
277
311
  requirements:
278
- - - ! '>='
312
+ - - ">="
279
313
  - !ruby/object:Gem::Version
280
314
  version: '0'
281
315
  type: :development
282
316
  prerelease: false
283
317
  version_requirements: !ruby/object:Gem::Requirement
284
318
  requirements:
285
- - - ! '>='
319
+ - - ">="
286
320
  - !ruby/object:Gem::Version
287
321
  version: '0'
288
322
  description: Pliny is a set of base classes and helpers to help developers write excellent
@@ -341,6 +375,39 @@ files:
341
375
  - lib/pliny/templates/serializer_test.erb
342
376
  - lib/pliny/utils.rb
343
377
  - lib/pliny/version.rb
378
+ - lib/template/.env.sample
379
+ - lib/template/.env.test
380
+ - lib/template/.gitignore
381
+ - lib/template/.rspec
382
+ - lib/template/.ruby-version
383
+ - lib/template/Gemfile
384
+ - lib/template/LICENSE
385
+ - lib/template/Procfile
386
+ - lib/template/README.md
387
+ - lib/template/Rakefile
388
+ - lib/template/bin/console
389
+ - lib/template/bin/run
390
+ - lib/template/bin/setup
391
+ - lib/template/config.ru
392
+ - lib/template/config/config.rb
393
+ - lib/template/config/initializers/database.rb
394
+ - lib/template/config/initializers/rollbar.rb
395
+ - lib/template/config/puma.rb
396
+ - lib/template/db/schema.sql
397
+ - lib/template/db/seeds.rb
398
+ - lib/template/docs/schema/meta.json
399
+ - lib/template/docs/schema/schemata/.gitkeep
400
+ - lib/template/lib/application.rb
401
+ - lib/template/lib/endpoints/base.rb
402
+ - lib/template/lib/endpoints/root.rb
403
+ - lib/template/lib/initializer.rb
404
+ - lib/template/lib/mediators/base.rb
405
+ - lib/template/lib/routes.rb
406
+ - lib/template/lib/serializers/base.rb
407
+ - lib/template/lib/tasks/spec.rake
408
+ - lib/template/spec/spec_helper.rb
409
+ - lib/template/spec/support/auto_define_rack_app.rb
410
+ - lib/template/spec/support/log.rb
344
411
  - spec/commands/creator_spec.rb
345
412
  - spec/commands/generator/base_spec.rb
346
413
  - spec/commands/generator/endpoint_spec.rb
@@ -358,39 +425,8 @@ files:
358
425
  - spec/request_store_spec.rb
359
426
  - spec/router_spec.rb
360
427
  - spec/spec_helper.rb
361
- - template/.env.sample
362
- - template/.env.test
363
- - template/.gitignore
364
- - template/.rspec
365
- - template/.ruby-version
366
- - template/Gemfile
367
- - template/Gemfile.lock
368
- - template/LICENSE
369
- - template/Procfile
370
- - template/README.md
371
- - template/Rakefile
372
- - template/bin/console
373
- - template/bin/run
374
- - template/bin/setup
375
- - template/config.ru
376
- - template/config/config.rb
377
- - template/config/initializers/database.rb
378
- - template/config/initializers/rollbar.rb
379
- - template/config/puma.rb
380
- - template/db/schema.sql
381
- - template/db/seeds.rb
382
- - template/docs/schema/meta.json
383
- - template/docs/schema/schemata/.gitkeep
384
- - template/lib/application.rb
385
- - template/lib/endpoints/base.rb
386
- - template/lib/endpoints/root.rb
387
- - template/lib/initializer.rb
388
- - template/lib/mediators/base.rb
389
- - template/lib/routes.rb
390
- - template/lib/serializers/base.rb
391
- - template/spec/spec_helper.rb
392
- - template/spec/support/auto_define_rack_app.rb
393
- - template/spec/support/log.rb
428
+ - spec/support/config.rb
429
+ - spec/support/endpoints.rb
394
430
  homepage: https://github.com/interagent/pliny
395
431
  licenses:
396
432
  - MIT
@@ -401,12 +437,12 @@ require_paths:
401
437
  - lib
402
438
  required_ruby_version: !ruby/object:Gem::Requirement
403
439
  requirements:
404
- - - ! '>='
440
+ - - ">="
405
441
  - !ruby/object:Gem::Version
406
442
  version: '0'
407
443
  required_rubygems_version: !ruby/object:Gem::Requirement
408
444
  requirements:
409
- - - ! '>='
445
+ - - ">="
410
446
  - !ruby/object:Gem::Version
411
447
  version: '0'
412
448
  requirements: []
@@ -416,3 +452,4 @@ signing_key:
416
452
  specification_version: 4
417
453
  summary: Basic tooling to support API apps in Sinatra
418
454
  test_files: []
455
+ has_rdoc: