apipie-rails 0.3.6 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +13 -3
  3. data/CHANGELOG.md +33 -0
  4. data/Gemfile +3 -3
  5. data/Gemfile.rails41 +1 -0
  6. data/Gemfile.rails42 +7 -1
  7. data/Gemfile.rails50 +7 -0
  8. data/Gemfile.rails51 +7 -0
  9. data/README.rst +12 -12
  10. data/apipie-rails.gemspec +2 -3
  11. data/app/controllers/apipie/apipies_controller.rb +10 -6
  12. data/config/locales/it.yml +31 -0
  13. data/config/locales/ja.yml +31 -0
  14. data/lib/apipie/apipie_module.rb +6 -4
  15. data/lib/apipie/application.rb +6 -11
  16. data/lib/apipie/dsl_definition.rb +2 -2
  17. data/lib/apipie/extractor/recorder.rb +5 -9
  18. data/lib/apipie/extractor/writer.rb +18 -13
  19. data/lib/apipie/extractor.rb +2 -2
  20. data/lib/apipie/param_description.rb +16 -1
  21. data/lib/apipie/validator.rb +3 -3
  22. data/lib/apipie/version.rb +1 -1
  23. data/lib/apipie-rails.rb +1 -0
  24. data/lib/tasks/apipie.rake +5 -1
  25. data/spec/controllers/apipies_controller_spec.rb +12 -12
  26. data/spec/controllers/concerns_controller_spec.rb +2 -2
  27. data/spec/controllers/users_controller_spec.rb +93 -74
  28. data/spec/dummy/app/controllers/application_controller.rb +1 -1
  29. data/spec/dummy/app/controllers/concerns/sample_controller.rb +5 -5
  30. data/spec/dummy/app/controllers/users_controller.rb +11 -10
  31. data/spec/dummy/config/environments/development.rb +3 -0
  32. data/spec/dummy/config/environments/production.rb +3 -0
  33. data/spec/dummy/config/environments/test.rb +3 -0
  34. data/spec/dummy/config/initializers/apipie.rb +1 -1
  35. data/spec/dummy/config/routes.rb +1 -1
  36. data/spec/spec_helper.rb +27 -0
  37. metadata +10 -22
  38. data/Gemfile.rails32 +0 -6
  39. data/Gemfile.rails40 +0 -5
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apipie-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Pokorny
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-02-18 00:00:00.000000000 Z
12
+ date: 2017-04-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -17,28 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: 3.0.20
21
- type: :development
22
- prerelease: false
23
- version_requirements: !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- version: 3.0.20
28
- - !ruby/object:Gem::Dependency
29
- name: json
30
- requirement: !ruby/object:Gem::Requirement
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
34
- version: '0'
20
+ version: '4.1'
35
21
  type: :runtime
36
22
  prerelease: false
37
23
  version_requirements: !ruby/object:Gem::Requirement
38
24
  requirements:
39
25
  - - ">="
40
26
  - !ruby/object:Gem::Version
41
- version: '0'
27
+ version: '4.1'
42
28
  - !ruby/object:Gem::Dependency
43
29
  name: rspec-rails
44
30
  requirement: !ruby/object:Gem::Requirement
@@ -151,10 +137,10 @@ files:
151
137
  - APACHE-LICENSE-2.0
152
138
  - CHANGELOG.md
153
139
  - Gemfile
154
- - Gemfile.rails32
155
- - Gemfile.rails40
156
140
  - Gemfile.rails41
157
141
  - Gemfile.rails42
142
+ - Gemfile.rails50
143
+ - Gemfile.rails51
158
144
  - MIT-LICENSE
159
145
  - NOTICE
160
146
  - README.rst
@@ -191,6 +177,8 @@ files:
191
177
  - config/locales/de.yml
192
178
  - config/locales/en.yml
193
179
  - config/locales/es.yml
180
+ - config/locales/it.yml
181
+ - config/locales/ja.yml
194
182
  - config/locales/pl.yml
195
183
  - config/locales/pt-BR.yml
196
184
  - config/locales/ru.yml
@@ -303,7 +291,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
303
291
  requirements:
304
292
  - - ">="
305
293
  - !ruby/object:Gem::Version
306
- version: '0'
294
+ version: 2.0.0
307
295
  required_rubygems_version: !ruby/object:Gem::Requirement
308
296
  requirements:
309
297
  - - ">="
@@ -311,7 +299,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
311
299
  version: '0'
312
300
  requirements: []
313
301
  rubyforge_project:
314
- rubygems_version: 2.2.0
302
+ rubygems_version: 2.4.5
315
303
  signing_key:
316
304
  specification_version: 4
317
305
  summary: Rails REST API documentation tool
data/Gemfile.rails32 DELETED
@@ -1,6 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec
4
-
5
- gem 'rails', '~> 3.2.0'
6
- gem 'test-unit', '~> 3.0'
data/Gemfile.rails40 DELETED
@@ -1,5 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec
4
-
5
- gem 'rails', '~> 4.0.0'