grape-swagger-rails 0.0.8 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/.rspec +3 -0
  3. data/.travis.yml +10 -0
  4. data/Gemfile +1 -2
  5. data/README.md +35 -21
  6. data/Rakefile +25 -0
  7. data/app/assets/images/grape_swagger_rails/explorer_icons.png +0 -0
  8. data/app/assets/javascripts/grape_swagger_rails/application.js +2 -13
  9. data/app/assets/javascripts/grape_swagger_rails/swagger-oauth.js +211 -0
  10. data/app/assets/javascripts/grape_swagger_rails/swagger-ui.min.js +1 -1
  11. data/app/assets/javascripts/grape_swagger_rails/swagger.js +1521 -1398
  12. data/app/assets/stylesheets/grape_swagger_rails/application.css +4 -13
  13. data/app/assets/stylesheets/grape_swagger_rails/reset.css +125 -0
  14. data/app/assets/stylesheets/grape_swagger_rails/screen.css.erb +545 -391
  15. data/app/controllers/grape_swagger_rails/application_controller.rb +3 -3
  16. data/app/views/grape_swagger_rails/application/index.html.erb +13 -7
  17. data/grape-swagger-rails.gemspec +21 -8
  18. data/lib/grape-swagger-rails.rb +16 -13
  19. data/lib/grape-swagger-rails/engine.rb +1 -0
  20. data/lib/grape-swagger-rails/version.rb +1 -1
  21. data/lib/javascripts/base64.js +134 -0
  22. data/lib/tasks/swagger_ui.rake +98 -0
  23. data/spec/dummy/.gitignore +16 -0
  24. data/spec/dummy/Rakefile +5 -0
  25. data/spec/dummy/app/api/api.rb +31 -0
  26. data/spec/dummy/app/assets/javascripts/application.js +3 -0
  27. data/spec/dummy/app/assets/stylesheets/application.css +4 -0
  28. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  29. data/spec/dummy/app/controllers/welcome_controller.rb +4 -0
  30. data/spec/dummy/app/views/layouts/_messages.html.erb +5 -0
  31. data/spec/dummy/app/views/layouts/application.html.erb +16 -0
  32. data/spec/dummy/app/views/welcome/index.html.erb +3 -0
  33. data/spec/dummy/bin/bundle +3 -0
  34. data/spec/dummy/bin/rails +8 -0
  35. data/spec/dummy/bin/rake +8 -0
  36. data/spec/dummy/bin/spring +18 -0
  37. data/spec/dummy/config.ru +4 -0
  38. data/spec/dummy/config/application.rb +23 -0
  39. data/spec/dummy/config/boot.rb +10 -0
  40. data/spec/dummy/config/environment.rb +3 -0
  41. data/spec/dummy/config/environments/development.rb +34 -0
  42. data/spec/dummy/config/environments/production.rb +79 -0
  43. data/spec/dummy/config/environments/test.rb +39 -0
  44. data/spec/dummy/config/initializers/assets.rb +1 -0
  45. data/spec/dummy/config/initializers/cookies_serializer.rb +1 -0
  46. data/spec/dummy/config/initializers/session_store.rb +1 -0
  47. data/spec/dummy/config/initializers/swagger.rb +3 -0
  48. data/spec/dummy/config/routes.rb +5 -0
  49. data/spec/dummy/config/secrets.yml +8 -0
  50. data/spec/dummy/public/.gitignore +2 -0
  51. data/spec/dummy/public/404.html +67 -0
  52. data/spec/dummy/public/422.html +67 -0
  53. data/spec/dummy/public/500.html +66 -0
  54. data/spec/dummy/public/favicon.ico +0 -0
  55. data/spec/dummy/public/robots.txt +5 -0
  56. data/spec/dummy/vendor/assets/javascripts/.keep +0 -0
  57. data/spec/dummy/vendor/assets/stylesheets/.keep +0 -0
  58. data/spec/features/grape-swagger-rails_spec.rb +15 -0
  59. data/spec/features/swagger_spec.rb +116 -0
  60. data/spec/features/welcome_spec.rb +10 -0
  61. data/spec/spec_helper.rb +15 -0
  62. data/spec/support/capybara.rb +5 -0
  63. data/spec/support/rails.rb +1 -0
  64. metadata +283 -31
  65. data/app/assets/javascripts/grape_swagger_rails/swagger-ui.js.erb +0 -2129
  66. data/app/assets/stylesheets/grape_swagger_rails/highlight.default.css +0 -135
@@ -1,135 +0,0 @@
1
- /*
2
-
3
- Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
4
-
5
- */
6
-
7
- pre code {
8
- display: block; padding: 0.5em;
9
- background: #F0F0F0;
10
- }
11
-
12
- pre code,
13
- pre .subst,
14
- pre .tag .title,
15
- pre .lisp .title,
16
- pre .clojure .built_in,
17
- pre .nginx .title {
18
- color: black;
19
- }
20
-
21
- pre .string,
22
- pre .title,
23
- pre .constant,
24
- pre .parent,
25
- pre .tag .value,
26
- pre .rules .value,
27
- pre .rules .value .number,
28
- pre .preprocessor,
29
- pre .ruby .symbol,
30
- pre .ruby .symbol .string,
31
- pre .aggregate,
32
- pre .template_tag,
33
- pre .django .variable,
34
- pre .smalltalk .class,
35
- pre .addition,
36
- pre .flow,
37
- pre .stream,
38
- pre .bash .variable,
39
- pre .apache .tag,
40
- pre .apache .cbracket,
41
- pre .tex .command,
42
- pre .tex .special,
43
- pre .erlang_repl .function_or_atom,
44
- pre .markdown .header {
45
- color: #800;
46
- }
47
-
48
- pre .comment,
49
- pre .annotation,
50
- pre .template_comment,
51
- pre .diff .header,
52
- pre .chunk,
53
- pre .markdown .blockquote {
54
- color: #888;
55
- }
56
-
57
- pre .number,
58
- pre .date,
59
- pre .regexp,
60
- pre .literal,
61
- pre .smalltalk .symbol,
62
- pre .smalltalk .char,
63
- pre .go .constant,
64
- pre .change,
65
- pre .markdown .bullet,
66
- pre .markdown .link_url {
67
- color: #080;
68
- }
69
-
70
- pre .label,
71
- pre .javadoc,
72
- pre .ruby .string,
73
- pre .decorator,
74
- pre .filter .argument,
75
- pre .localvars,
76
- pre .array,
77
- pre .attr_selector,
78
- pre .important,
79
- pre .pseudo,
80
- pre .pi,
81
- pre .doctype,
82
- pre .deletion,
83
- pre .envvar,
84
- pre .shebang,
85
- pre .apache .sqbracket,
86
- pre .nginx .built_in,
87
- pre .tex .formula,
88
- pre .erlang_repl .reserved,
89
- pre .prompt,
90
- pre .markdown .link_label,
91
- pre .vhdl .attribute,
92
- pre .clojure .attribute,
93
- pre .coffeescript .property {
94
- color: #88F
95
- }
96
-
97
- pre .keyword,
98
- pre .id,
99
- pre .phpdoc,
100
- pre .title,
101
- pre .built_in,
102
- pre .aggregate,
103
- pre .css .tag,
104
- pre .javadoctag,
105
- pre .phpdoc,
106
- pre .yardoctag,
107
- pre .smalltalk .class,
108
- pre .winutils,
109
- pre .bash .variable,
110
- pre .apache .tag,
111
- pre .go .typename,
112
- pre .tex .command,
113
- pre .markdown .strong,
114
- pre .request,
115
- pre .status {
116
- font-weight: bold;
117
- }
118
-
119
- pre .markdown .emphasis {
120
- font-style: italic;
121
- }
122
-
123
- pre .nginx .built_in {
124
- font-weight: normal;
125
- }
126
-
127
- pre .coffeescript .javascript,
128
- pre .javascript .xml,
129
- pre .tex .formula,
130
- pre .xml .javascript,
131
- pre .xml .vbscript,
132
- pre .xml .css,
133
- pre .xml .cdata {
134
- opacity: 0.5;
135
- }