smooth 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +21 -0
  3. data/Gemfile +10 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +29 -0
  6. data/Rakefile +24 -0
  7. data/app/assets/images/smooth/.keep +0 -0
  8. data/app/assets/javascripts/smooth/.keep +0 -0
  9. data/app/controllers/.keep +0 -0
  10. data/app/helpers/.keep +0 -0
  11. data/app/mailers/.keep +0 -0
  12. data/app/models/.keep +0 -0
  13. data/app/views/.keep +0 -0
  14. data/config/routes.rb +2 -0
  15. data/lib/smooth.rb +64 -0
  16. data/lib/smooth/api.rb +72 -0
  17. data/lib/smooth/api/policy.rb +18 -0
  18. data/lib/smooth/api/tracking.rb +31 -0
  19. data/lib/smooth/cache.rb +19 -0
  20. data/lib/smooth/command.rb +55 -0
  21. data/lib/smooth/command/instrumented.rb +51 -0
  22. data/lib/smooth/configuration.rb +25 -0
  23. data/lib/smooth/documentation.rb +31 -0
  24. data/lib/smooth/dsl.rb +36 -0
  25. data/lib/smooth/event.rb +27 -0
  26. data/lib/smooth/example.rb +6 -0
  27. data/lib/smooth/ext/core.rb +5 -0
  28. data/lib/smooth/ext/mutations.rb +1 -0
  29. data/lib/smooth/query.rb +62 -0
  30. data/lib/smooth/resource.rb +173 -0
  31. data/lib/smooth/resource/tracking.rb +17 -0
  32. data/lib/smooth/serializer.rb +94 -0
  33. data/lib/smooth/version.rb +3 -0
  34. data/smooth.gemspec +36 -0
  35. data/spec/dummy/README.rdoc +28 -0
  36. data/spec/dummy/Rakefile +6 -0
  37. data/spec/dummy/app/apis/application_api.rb +34 -0
  38. data/spec/dummy/app/assets/images/.keep +0 -0
  39. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  40. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  41. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  42. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  43. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  44. data/spec/dummy/app/mailers/.keep +0 -0
  45. data/spec/dummy/app/models/.keep +0 -0
  46. data/spec/dummy/app/models/author.rb +2 -0
  47. data/spec/dummy/app/models/book.rb +2 -0
  48. data/spec/dummy/app/models/concerns/.keep +0 -0
  49. data/spec/dummy/app/resources/books.rb +103 -0
  50. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  51. data/spec/dummy/bin/bundle +3 -0
  52. data/spec/dummy/bin/rails +4 -0
  53. data/spec/dummy/bin/rake +4 -0
  54. data/spec/dummy/config.ru +4 -0
  55. data/spec/dummy/config/application.rb +30 -0
  56. data/spec/dummy/config/boot.rb +5 -0
  57. data/spec/dummy/config/database.yml +25 -0
  58. data/spec/dummy/config/environment.rb +5 -0
  59. data/spec/dummy/config/environments/development.rb +37 -0
  60. data/spec/dummy/config/environments/production.rb +82 -0
  61. data/spec/dummy/config/environments/test.rb +39 -0
  62. data/spec/dummy/config/initializers/assets.rb +8 -0
  63. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  64. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  65. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  66. data/spec/dummy/config/initializers/inflections.rb +16 -0
  67. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  68. data/spec/dummy/config/initializers/session_store.rb +3 -0
  69. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  70. data/spec/dummy/config/locales/en.yml +23 -0
  71. data/spec/dummy/config/routes.rb +3 -0
  72. data/spec/dummy/config/secrets.yml +22 -0
  73. data/spec/dummy/db/development.sqlite3 +0 -0
  74. data/spec/dummy/db/migrate/20140822065900_create_books.rb +11 -0
  75. data/spec/dummy/db/migrate/20140822065916_create_authors.rb +9 -0
  76. data/spec/dummy/db/schema.rb +30 -0
  77. data/spec/dummy/db/test.sqlite3 +0 -0
  78. data/spec/dummy/lib/assets/.keep +0 -0
  79. data/spec/dummy/log/.keep +0 -0
  80. data/spec/dummy/public/404.html +67 -0
  81. data/spec/dummy/public/422.html +67 -0
  82. data/spec/dummy/public/500.html +66 -0
  83. data/spec/dummy/public/favicon.ico +0 -0
  84. data/spec/lib/smooth/api/policy_spec.rb +5 -0
  85. data/spec/lib/smooth/api_spec.rb +23 -0
  86. data/spec/lib/smooth/cache_spec.rb +8 -0
  87. data/spec/lib/smooth/command_spec.rb +36 -0
  88. data/spec/lib/smooth/configuration_spec.rb +16 -0
  89. data/spec/lib/smooth/event_spec.rb +20 -0
  90. data/spec/lib/smooth/example_spec.rb +5 -0
  91. data/spec/lib/smooth/query_spec.rb +5 -0
  92. data/spec/lib/smooth/resource_spec.rb +38 -0
  93. data/spec/lib/smooth/serializer_spec.rb +26 -0
  94. data/spec/spec_helper.rb +18 -0
  95. metadata +394 -0
@@ -0,0 +1,8 @@
1
+ require "spec_helper"
2
+
3
+ describe "The Smooth Cache Adapter" do
4
+ it "should delegate to rails caching system" do
5
+ value = Smooth.cache.fetch(:key) { 2 }
6
+ expect(value).to equal(1)
7
+ end
8
+ end
@@ -0,0 +1,36 @@
1
+ require "spec_helper"
2
+
3
+ describe "The Smooth Command" do
4
+ let(:command) { Smooth.current_api.resource("Books").fetch(:command, :like) }
5
+
6
+ it "should allow for descriptions of the filters" do
7
+ expect(command.input_descriptions[:like]).not_to be_blank
8
+ expect(command.input_descriptions[:left_out]).to be_blank
9
+ end
10
+
11
+ it "should know the resource name" do
12
+ expect(command.resource_name).to eq("Books")
13
+ end
14
+
15
+ it "should know the command action" do
16
+ expect(command.command_action).to eq("like")
17
+ end
18
+
19
+ it "should know the event namespace" do
20
+ expect(command.event_namespace).to eq("like.book")
21
+ end
22
+
23
+ describe "Event Tracking Integration" do
24
+ it "should track events" do
25
+ bucket = []
26
+
27
+ Smooth.subscribe_to(/like.book/) do |event|
28
+ bucket << event
29
+ end
30
+
31
+ command.run()
32
+
33
+ expect(bucket).not_to be_empty
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,16 @@
1
+ require "spec_helper"
2
+
3
+ describe "Smooth Configuration" do
4
+ it "should be accessible from the module level" do
5
+ expect(Smooth.config.class).to equal(Smooth::Configuration)
6
+ end
7
+
8
+ it "should give me the various base classes for smooth objects" do
9
+ expect(Smooth.config.query_class).to equal(Smooth::Query)
10
+ expect(Smooth.config.command_class).to equal(Smooth::Command)
11
+ end
12
+
13
+ it "should enable event tracking by default" do
14
+ expect(Smooth.config.enable_event_tracking?).to eq(true)
15
+ end
16
+ end
@@ -0,0 +1,20 @@
1
+ require "spec_helper"
2
+
3
+ describe "The Smooth Event Tracking API" do
4
+ let(:events) { Smooth::Event }
5
+
6
+ it "should use the instrumentation system to implement a little pub sub" do
7
+ bucket = []
8
+
9
+ events.subscribe_to "test.smooth" do |event|
10
+ bucket << event
11
+ end
12
+
13
+ needle = rand(46**8).to_s(36)
14
+ events.track_event 'test.smooth', line: "what up #{ needle }?"
15
+
16
+ got_event = bucket.any? {|e| e.payload.line.include?(needle) }
17
+
18
+ expect(got_event).to equal(true)
19
+ end
20
+ end
@@ -0,0 +1,5 @@
1
+ require "spec_helper"
2
+
3
+ describe "The Smooth API Request Example" do
4
+
5
+ end
@@ -0,0 +1,5 @@
1
+ require "spec_helper"
2
+
3
+ describe "The Smooth Query" do
4
+
5
+ end
@@ -0,0 +1,38 @@
1
+ require "spec_helper"
2
+
3
+ describe "The Smooth Resource" do
4
+ let(:api) { Smooth.current_api }
5
+ let(:books) { api.resource("Books") }
6
+
7
+ it "should reference its parent api" do
8
+ expect(books.api).to be_present
9
+ end
10
+
11
+ it "should have a name" do
12
+ expect(books.name).to eq("Books")
13
+ end
14
+
15
+ it "should have a like command class" do
16
+ command = books.fetch(:command, :like)
17
+ expect(command).to respond_to(:run)
18
+ end
19
+
20
+ it "should have an update command class" do
21
+ command = books.fetch(:command, :update)
22
+ expect(command).to respond_to(:run)
23
+ end
24
+
25
+ it "should have a create command class" do
26
+ command = books.fetch(:command, :create)
27
+ expect(command).to respond_to(:run)
28
+ end
29
+
30
+ it "should generate a default serializer" do
31
+ expect(BookSerializer < Smooth::Serializer).to equal(true)
32
+ end
33
+
34
+ it "should generate a default query context" do
35
+ expect(BookQuery < Smooth::Query).to equal(true)
36
+ end
37
+
38
+ end
@@ -0,0 +1,26 @@
1
+ require "spec_helper"
2
+
3
+ describe "The Smooth Serializer" do
4
+ let(:books) { Smooth.current_api.resource("Books") }
5
+ let(:serializer) { books.fetch(:serializer, "Default") }
6
+
7
+ it "should configure the serializer" do
8
+ expect(serializer.schema_attributes).not_to be_empty
9
+ end
10
+
11
+ it "should relate to the book model" do
12
+ expect(Book.active_model_serializer).to equal(serializer)
13
+ end
14
+
15
+ it "should have documentation for its attributes" do
16
+ expect(serializer.documentation_for_attribute(:title).description).not_to be_blank
17
+ end
18
+
19
+ it "should have documentation for its relationships" do
20
+ expect(serializer.documentation_for_association(:author).description).not_to be_blank
21
+ end
22
+
23
+ it "should have documentation for its computed properties" do
24
+ expect(serializer.documentation_for_attribute(:computed_property).description).not_to be_blank
25
+ end
26
+ end
@@ -0,0 +1,18 @@
1
+ ENV['RAILS_ENV'] ||= 'test'
2
+
3
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
4
+
5
+ require 'rspec/rails'
6
+ require 'faker'
7
+ require 'rack/test'
8
+
9
+ Rails.backtrace_cleaner.remove_silencers!
10
+
11
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
12
+
13
+ RSpec.configure do |config|
14
+ config.mock_with :rspec
15
+ config.use_transactional_fixtures = true
16
+ config.infer_base_class_for_anonymous_controllers = false
17
+ config.order = "random"
18
+ end
metadata ADDED
@@ -0,0 +1,394 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: smooth
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Jonathan Soeder
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-08-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: hashie
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activesupport
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 4.0.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 4.0.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: activerecord
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 4.0.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 4.0.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: active_model_serializers
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: faker
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: mutations
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: bundler
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.3'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.3'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rake
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: pry
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: pry-nav
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rack-test
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: rails
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: rspec-rails
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: sqlite3
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ description: Smooth provides a simple DSL building powerful JSON APIs on top of ActiveRecord.
210
+ email:
211
+ - jonathan.soeder@gmail.com
212
+ executables: []
213
+ extensions: []
214
+ extra_rdoc_files: []
215
+ files:
216
+ - ".gitignore"
217
+ - Gemfile
218
+ - LICENSE.txt
219
+ - README.md
220
+ - Rakefile
221
+ - app/assets/images/smooth/.keep
222
+ - app/assets/javascripts/smooth/.keep
223
+ - app/controllers/.keep
224
+ - app/helpers/.keep
225
+ - app/mailers/.keep
226
+ - app/models/.keep
227
+ - app/views/.keep
228
+ - config/routes.rb
229
+ - lib/smooth.rb
230
+ - lib/smooth/api.rb
231
+ - lib/smooth/api/policy.rb
232
+ - lib/smooth/api/tracking.rb
233
+ - lib/smooth/cache.rb
234
+ - lib/smooth/command.rb
235
+ - lib/smooth/command/instrumented.rb
236
+ - lib/smooth/configuration.rb
237
+ - lib/smooth/documentation.rb
238
+ - lib/smooth/dsl.rb
239
+ - lib/smooth/event.rb
240
+ - lib/smooth/example.rb
241
+ - lib/smooth/ext/core.rb
242
+ - lib/smooth/ext/mutations.rb
243
+ - lib/smooth/query.rb
244
+ - lib/smooth/resource.rb
245
+ - lib/smooth/resource/tracking.rb
246
+ - lib/smooth/serializer.rb
247
+ - lib/smooth/version.rb
248
+ - smooth.gemspec
249
+ - spec/dummy/README.rdoc
250
+ - spec/dummy/Rakefile
251
+ - spec/dummy/app/apis/application_api.rb
252
+ - spec/dummy/app/assets/images/.keep
253
+ - spec/dummy/app/assets/javascripts/application.js
254
+ - spec/dummy/app/assets/stylesheets/application.css
255
+ - spec/dummy/app/controllers/application_controller.rb
256
+ - spec/dummy/app/controllers/concerns/.keep
257
+ - spec/dummy/app/helpers/application_helper.rb
258
+ - spec/dummy/app/mailers/.keep
259
+ - spec/dummy/app/models/.keep
260
+ - spec/dummy/app/models/author.rb
261
+ - spec/dummy/app/models/book.rb
262
+ - spec/dummy/app/models/concerns/.keep
263
+ - spec/dummy/app/resources/books.rb
264
+ - spec/dummy/app/views/layouts/application.html.erb
265
+ - spec/dummy/bin/bundle
266
+ - spec/dummy/bin/rails
267
+ - spec/dummy/bin/rake
268
+ - spec/dummy/config.ru
269
+ - spec/dummy/config/application.rb
270
+ - spec/dummy/config/boot.rb
271
+ - spec/dummy/config/database.yml
272
+ - spec/dummy/config/environment.rb
273
+ - spec/dummy/config/environments/development.rb
274
+ - spec/dummy/config/environments/production.rb
275
+ - spec/dummy/config/environments/test.rb
276
+ - spec/dummy/config/initializers/assets.rb
277
+ - spec/dummy/config/initializers/backtrace_silencers.rb
278
+ - spec/dummy/config/initializers/cookies_serializer.rb
279
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
280
+ - spec/dummy/config/initializers/inflections.rb
281
+ - spec/dummy/config/initializers/mime_types.rb
282
+ - spec/dummy/config/initializers/session_store.rb
283
+ - spec/dummy/config/initializers/wrap_parameters.rb
284
+ - spec/dummy/config/locales/en.yml
285
+ - spec/dummy/config/routes.rb
286
+ - spec/dummy/config/secrets.yml
287
+ - spec/dummy/db/development.sqlite3
288
+ - spec/dummy/db/migrate/20140822065900_create_books.rb
289
+ - spec/dummy/db/migrate/20140822065916_create_authors.rb
290
+ - spec/dummy/db/schema.rb
291
+ - spec/dummy/db/test.sqlite3
292
+ - spec/dummy/lib/assets/.keep
293
+ - spec/dummy/log/.keep
294
+ - spec/dummy/public/404.html
295
+ - spec/dummy/public/422.html
296
+ - spec/dummy/public/500.html
297
+ - spec/dummy/public/favicon.ico
298
+ - spec/lib/smooth/api/policy_spec.rb
299
+ - spec/lib/smooth/api_spec.rb
300
+ - spec/lib/smooth/cache_spec.rb
301
+ - spec/lib/smooth/command_spec.rb
302
+ - spec/lib/smooth/configuration_spec.rb
303
+ - spec/lib/smooth/event_spec.rb
304
+ - spec/lib/smooth/example_spec.rb
305
+ - spec/lib/smooth/query_spec.rb
306
+ - spec/lib/smooth/resource_spec.rb
307
+ - spec/lib/smooth/serializer_spec.rb
308
+ - spec/spec_helper.rb
309
+ homepage: http://smooth.io
310
+ licenses:
311
+ - MIT
312
+ metadata: {}
313
+ post_install_message:
314
+ rdoc_options: []
315
+ require_paths:
316
+ - lib
317
+ required_ruby_version: !ruby/object:Gem::Requirement
318
+ requirements:
319
+ - - ">="
320
+ - !ruby/object:Gem::Version
321
+ version: '0'
322
+ required_rubygems_version: !ruby/object:Gem::Requirement
323
+ requirements:
324
+ - - ">="
325
+ - !ruby/object:Gem::Version
326
+ version: '0'
327
+ requirements: []
328
+ rubyforge_project:
329
+ rubygems_version: 2.1.11
330
+ signing_key:
331
+ specification_version: 4
332
+ summary: Smooth provides a DSL for creating self-testing, self-documenting, highly
333
+ inspectable API endpoints which are able to generate extendable client libraries.
334
+ test_files:
335
+ - spec/dummy/README.rdoc
336
+ - spec/dummy/Rakefile
337
+ - spec/dummy/app/apis/application_api.rb
338
+ - spec/dummy/app/assets/images/.keep
339
+ - spec/dummy/app/assets/javascripts/application.js
340
+ - spec/dummy/app/assets/stylesheets/application.css
341
+ - spec/dummy/app/controllers/application_controller.rb
342
+ - spec/dummy/app/controllers/concerns/.keep
343
+ - spec/dummy/app/helpers/application_helper.rb
344
+ - spec/dummy/app/mailers/.keep
345
+ - spec/dummy/app/models/.keep
346
+ - spec/dummy/app/models/author.rb
347
+ - spec/dummy/app/models/book.rb
348
+ - spec/dummy/app/models/concerns/.keep
349
+ - spec/dummy/app/resources/books.rb
350
+ - spec/dummy/app/views/layouts/application.html.erb
351
+ - spec/dummy/bin/bundle
352
+ - spec/dummy/bin/rails
353
+ - spec/dummy/bin/rake
354
+ - spec/dummy/config.ru
355
+ - spec/dummy/config/application.rb
356
+ - spec/dummy/config/boot.rb
357
+ - spec/dummy/config/database.yml
358
+ - spec/dummy/config/environment.rb
359
+ - spec/dummy/config/environments/development.rb
360
+ - spec/dummy/config/environments/production.rb
361
+ - spec/dummy/config/environments/test.rb
362
+ - spec/dummy/config/initializers/assets.rb
363
+ - spec/dummy/config/initializers/backtrace_silencers.rb
364
+ - spec/dummy/config/initializers/cookies_serializer.rb
365
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
366
+ - spec/dummy/config/initializers/inflections.rb
367
+ - spec/dummy/config/initializers/mime_types.rb
368
+ - spec/dummy/config/initializers/session_store.rb
369
+ - spec/dummy/config/initializers/wrap_parameters.rb
370
+ - spec/dummy/config/locales/en.yml
371
+ - spec/dummy/config/routes.rb
372
+ - spec/dummy/config/secrets.yml
373
+ - spec/dummy/db/development.sqlite3
374
+ - spec/dummy/db/migrate/20140822065900_create_books.rb
375
+ - spec/dummy/db/migrate/20140822065916_create_authors.rb
376
+ - spec/dummy/db/schema.rb
377
+ - spec/dummy/db/test.sqlite3
378
+ - spec/dummy/lib/assets/.keep
379
+ - spec/dummy/log/.keep
380
+ - spec/dummy/public/404.html
381
+ - spec/dummy/public/422.html
382
+ - spec/dummy/public/500.html
383
+ - spec/dummy/public/favicon.ico
384
+ - spec/lib/smooth/api/policy_spec.rb
385
+ - spec/lib/smooth/api_spec.rb
386
+ - spec/lib/smooth/cache_spec.rb
387
+ - spec/lib/smooth/command_spec.rb
388
+ - spec/lib/smooth/configuration_spec.rb
389
+ - spec/lib/smooth/event_spec.rb
390
+ - spec/lib/smooth/example_spec.rb
391
+ - spec/lib/smooth/query_spec.rb
392
+ - spec/lib/smooth/resource_spec.rb
393
+ - spec/lib/smooth/serializer_spec.rb
394
+ - spec/spec_helper.rb