vitals 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +23 -3
  4. data/lib/vitals/utils.rb +4 -3
  5. data/lib/vitals/version.rb +1 -1
  6. data/lib/vitals.rb +13 -0
  7. data/vitals.gemspec +1 -1
  8. metadata +2 -184
  9. data/integration/multiverse/grape-on-rack/.gitignore +0 -7
  10. data/integration/multiverse/grape-on-rack/.rspec +0 -2
  11. data/integration/multiverse/grape-on-rack/.rubocop.yml +0 -2
  12. data/integration/multiverse/grape-on-rack/.rubocop_todo.yml +0 -50
  13. data/integration/multiverse/grape-on-rack/.travis.yml +0 -12
  14. data/integration/multiverse/grape-on-rack/Gemfile +0 -28
  15. data/integration/multiverse/grape-on-rack/Gemfile.lock +0 -187
  16. data/integration/multiverse/grape-on-rack/Guardfile +0 -8
  17. data/integration/multiverse/grape-on-rack/LICENSE +0 -21
  18. data/integration/multiverse/grape-on-rack/README.md +0 -88
  19. data/integration/multiverse/grape-on-rack/Rakefile +0 -27
  20. data/integration/multiverse/grape-on-rack/api/content_type.rb +0 -18
  21. data/integration/multiverse/grape-on-rack/api/entities.rb +0 -28
  22. data/integration/multiverse/grape-on-rack/api/get_json.rb +0 -24
  23. data/integration/multiverse/grape-on-rack/api/header_versioning.rb +0 -9
  24. data/integration/multiverse/grape-on-rack/api/path_versioning.rb +0 -9
  25. data/integration/multiverse/grape-on-rack/api/ping.rb +0 -8
  26. data/integration/multiverse/grape-on-rack/api/post_json.rb +0 -11
  27. data/integration/multiverse/grape-on-rack/api/post_put.rb +0 -24
  28. data/integration/multiverse/grape-on-rack/api/rescue_from.rb +0 -11
  29. data/integration/multiverse/grape-on-rack/api/upload_file.rb +0 -22
  30. data/integration/multiverse/grape-on-rack/api/wrap_response.rb +0 -14
  31. data/integration/multiverse/grape-on-rack/api/wrap_response_decorator.rb +0 -15
  32. data/integration/multiverse/grape-on-rack/app/acme_app.rb +0 -49
  33. data/integration/multiverse/grape-on-rack/app/api.rb +0 -18
  34. data/integration/multiverse/grape-on-rack/config/application.rb +0 -23
  35. data/integration/multiverse/grape-on-rack/config/boot.rb +0 -2
  36. data/integration/multiverse/grape-on-rack/config/environment.rb +0 -3
  37. data/integration/multiverse/grape-on-rack/config/newrelic.yml +0 -255
  38. data/integration/multiverse/grape-on-rack/config.ru +0 -11
  39. data/integration/multiverse/grape-on-rack/public/errors/404.html +0 -15
  40. data/integration/multiverse/grape-on-rack/public/errors/500.html +0 -15
  41. data/integration/multiverse/grape-on-rack/public/images/index.html +0 -1
  42. data/integration/multiverse/grape-on-rack/public/images/rack-logo.png +0 -0
  43. data/integration/multiverse/grape-on-rack/public/index.html +0 -23
  44. data/integration/multiverse/grape-on-rack/public/scripts/jquery-1.7.1.min.js +0 -4
  45. data/integration/multiverse/grape-on-rack/public/scripts/ring.js +0 -17
  46. data/integration/multiverse/grape-on-rack/spec/api/post_put_spec.rb +0 -21
  47. data/integration/multiverse/grape-on-rack/spec/fixtures/grape_logo.png +0 -0
  48. data/integration/multiverse/grape-on-rack/spec/spec_helper.rb +0 -24
  49. data/integration/multiverse/grape-on-rails/.gitignore +0 -16
  50. data/integration/multiverse/grape-on-rails/.rspec +0 -2
  51. data/integration/multiverse/grape-on-rails/.rubocop.yml +0 -6
  52. data/integration/multiverse/grape-on-rails/.rubocop_todo.yml +0 -33
  53. data/integration/multiverse/grape-on-rails/.travis.yml +0 -17
  54. data/integration/multiverse/grape-on-rails/Gemfile +0 -22
  55. data/integration/multiverse/grape-on-rails/Gemfile.lock +0 -238
  56. data/integration/multiverse/grape-on-rails/README.md +0 -29
  57. data/integration/multiverse/grape-on-rails/Rakefile +0 -16
  58. data/integration/multiverse/grape-on-rails/app/api/acme/ping.rb +0 -8
  59. data/integration/multiverse/grape-on-rails/app/api/acme/post.rb +0 -10
  60. data/integration/multiverse/grape-on-rails/app/api/acme/protected.rb +0 -13
  61. data/integration/multiverse/grape-on-rails/app/api/acme/raise.rb +0 -8
  62. data/integration/multiverse/grape-on-rails/app/api/api.rb +0 -8
  63. data/integration/multiverse/grape-on-rails/app/assets/images/rails.png +0 -0
  64. data/integration/multiverse/grape-on-rails/app/assets/javascripts/application.js +0 -15
  65. data/integration/multiverse/grape-on-rails/app/assets/javascripts/welcome.js.coffee +0 -3
  66. data/integration/multiverse/grape-on-rails/app/assets/stylesheets/application.css +0 -13
  67. data/integration/multiverse/grape-on-rails/app/assets/stylesheets/welcome.css.scss +0 -3
  68. data/integration/multiverse/grape-on-rails/app/controllers/application_controller.rb +0 -3
  69. data/integration/multiverse/grape-on-rails/app/controllers/welcome_controller.rb +0 -4
  70. data/integration/multiverse/grape-on-rails/app/helpers/application_helper.rb +0 -2
  71. data/integration/multiverse/grape-on-rails/app/helpers/welcome_helper.rb +0 -2
  72. data/integration/multiverse/grape-on-rails/app/mailers/.gitkeep +0 -0
  73. data/integration/multiverse/grape-on-rails/app/models/.gitkeep +0 -0
  74. data/integration/multiverse/grape-on-rails/app/views/layouts/application.html.erb +0 -14
  75. data/integration/multiverse/grape-on-rails/app/views/welcome/index.html.erb +0 -6
  76. data/integration/multiverse/grape-on-rails/bin/bundle +0 -3
  77. data/integration/multiverse/grape-on-rails/bin/rails +0 -4
  78. data/integration/multiverse/grape-on-rails/bin/rake +0 -4
  79. data/integration/multiverse/grape-on-rails/config/application.rb +0 -65
  80. data/integration/multiverse/grape-on-rails/config/boot.rb +0 -6
  81. data/integration/multiverse/grape-on-rails/config/database.travis.yml +0 -4
  82. data/integration/multiverse/grape-on-rails/config/database.yml +0 -16
  83. data/integration/multiverse/grape-on-rails/config/environment.rb +0 -5
  84. data/integration/multiverse/grape-on-rails/config/environments/development.rb +0 -29
  85. data/integration/multiverse/grape-on-rails/config/environments/production.rb +0 -65
  86. data/integration/multiverse/grape-on-rails/config/environments/test.rb +0 -33
  87. data/integration/multiverse/grape-on-rails/config/initializers/backtrace_silencers.rb +0 -7
  88. data/integration/multiverse/grape-on-rails/config/initializers/inflections.rb +0 -15
  89. data/integration/multiverse/grape-on-rails/config/initializers/mime_types.rb +0 -5
  90. data/integration/multiverse/grape-on-rails/config/initializers/reload_api.rb +0 -13
  91. data/integration/multiverse/grape-on-rails/config/initializers/secret_token.rb +0 -1
  92. data/integration/multiverse/grape-on-rails/config/initializers/session_store.rb +0 -8
  93. data/integration/multiverse/grape-on-rails/config/initializers/vitals.rb +0 -8
  94. data/integration/multiverse/grape-on-rails/config/initializers/wrap_parameters.rb +0 -14
  95. data/integration/multiverse/grape-on-rails/config/locales/en.yml +0 -5
  96. data/integration/multiverse/grape-on-rails/config/routes.rb +0 -5
  97. data/integration/multiverse/grape-on-rails/config.ru +0 -4
  98. data/integration/multiverse/grape-on-rails/db/schema.rb +0 -16
  99. data/integration/multiverse/grape-on-rails/db/seeds.rb +0 -7
  100. data/integration/multiverse/grape-on-rails/doc/README_FOR_APP +0 -2
  101. data/integration/multiverse/grape-on-rails/lib/assets/.gitkeep +0 -0
  102. data/integration/multiverse/grape-on-rails/lib/tasks/.gitkeep +0 -0
  103. data/integration/multiverse/grape-on-rails/log/.gitkeep +0 -0
  104. data/integration/multiverse/grape-on-rails/public/404.html +0 -26
  105. data/integration/multiverse/grape-on-rails/public/422.html +0 -26
  106. data/integration/multiverse/grape-on-rails/public/500.html +0 -25
  107. data/integration/multiverse/grape-on-rails/public/favicon.ico +0 -0
  108. data/integration/multiverse/grape-on-rails/public/robots.txt +0 -5
  109. data/integration/multiverse/grape-on-rails/script/rails +0 -6
  110. data/integration/multiverse/grape-on-rails/spec/api/ping_spec.rb +0 -15
  111. data/integration/multiverse/grape-on-rails/spec/spec_helper.rb +0 -15
  112. data/integration/multiverse/rails42_app/.gitignore +0 -18
  113. data/integration/multiverse/rails42_app/Gemfile +0 -49
  114. data/integration/multiverse/rails42_app/Gemfile.lock +0 -167
  115. data/integration/multiverse/rails42_app/README.rdoc +0 -28
  116. data/integration/multiverse/rails42_app/Rakefile +0 -6
  117. data/integration/multiverse/rails42_app/app/assets/images/.keep +0 -0
  118. data/integration/multiverse/rails42_app/app/assets/javascripts/application.js +0 -16
  119. data/integration/multiverse/rails42_app/app/assets/javascripts/posts.coffee +0 -3
  120. data/integration/multiverse/rails42_app/app/assets/stylesheets/application.css +0 -15
  121. data/integration/multiverse/rails42_app/app/assets/stylesheets/posts.scss +0 -3
  122. data/integration/multiverse/rails42_app/app/assets/stylesheets/scaffolds.scss +0 -73
  123. data/integration/multiverse/rails42_app/app/controllers/application_controller.rb +0 -5
  124. data/integration/multiverse/rails42_app/app/controllers/concerns/.keep +0 -0
  125. data/integration/multiverse/rails42_app/app/controllers/posts_controller.rb +0 -75
  126. data/integration/multiverse/rails42_app/app/helpers/application_helper.rb +0 -2
  127. data/integration/multiverse/rails42_app/app/helpers/posts_helper.rb +0 -2
  128. data/integration/multiverse/rails42_app/app/jobs/foobar_cleanup_job.rb +0 -7
  129. data/integration/multiverse/rails42_app/app/mailers/.keep +0 -0
  130. data/integration/multiverse/rails42_app/app/models/.keep +0 -0
  131. data/integration/multiverse/rails42_app/app/models/concerns/.keep +0 -0
  132. data/integration/multiverse/rails42_app/app/models/post.rb +0 -2
  133. data/integration/multiverse/rails42_app/app/views/layouts/application.html.erb +0 -14
  134. data/integration/multiverse/rails42_app/app/views/posts/_form.html.erb +0 -21
  135. data/integration/multiverse/rails42_app/app/views/posts/edit.html.erb +0 -6
  136. data/integration/multiverse/rails42_app/app/views/posts/index.html.erb +0 -27
  137. data/integration/multiverse/rails42_app/app/views/posts/index.json.jbuilder +0 -4
  138. data/integration/multiverse/rails42_app/app/views/posts/new.html.erb +0 -5
  139. data/integration/multiverse/rails42_app/app/views/posts/show.html.erb +0 -9
  140. data/integration/multiverse/rails42_app/app/views/posts/show.json.jbuilder +0 -1
  141. data/integration/multiverse/rails42_app/bin/bundle +0 -3
  142. data/integration/multiverse/rails42_app/bin/rails +0 -9
  143. data/integration/multiverse/rails42_app/bin/rake +0 -9
  144. data/integration/multiverse/rails42_app/bin/setup +0 -29
  145. data/integration/multiverse/rails42_app/bin/spring +0 -15
  146. data/integration/multiverse/rails42_app/config/application.rb +0 -26
  147. data/integration/multiverse/rails42_app/config/boot.rb +0 -3
  148. data/integration/multiverse/rails42_app/config/database.yml +0 -25
  149. data/integration/multiverse/rails42_app/config/environment.rb +0 -5
  150. data/integration/multiverse/rails42_app/config/environments/development.rb +0 -41
  151. data/integration/multiverse/rails42_app/config/environments/production.rb +0 -79
  152. data/integration/multiverse/rails42_app/config/environments/test.rb +0 -42
  153. data/integration/multiverse/rails42_app/config/initializers/assets.rb +0 -11
  154. data/integration/multiverse/rails42_app/config/initializers/backtrace_silencers.rb +0 -7
  155. data/integration/multiverse/rails42_app/config/initializers/cookies_serializer.rb +0 -3
  156. data/integration/multiverse/rails42_app/config/initializers/filter_parameter_logging.rb +0 -4
  157. data/integration/multiverse/rails42_app/config/initializers/inflections.rb +0 -16
  158. data/integration/multiverse/rails42_app/config/initializers/mime_types.rb +0 -4
  159. data/integration/multiverse/rails42_app/config/initializers/session_store.rb +0 -3
  160. data/integration/multiverse/rails42_app/config/initializers/vitals.rb +0 -15
  161. data/integration/multiverse/rails42_app/config/initializers/wrap_parameters.rb +0 -14
  162. data/integration/multiverse/rails42_app/config/locales/en.yml +0 -23
  163. data/integration/multiverse/rails42_app/config/routes.rb +0 -57
  164. data/integration/multiverse/rails42_app/config/secrets.yml +0 -22
  165. data/integration/multiverse/rails42_app/config.ru +0 -4
  166. data/integration/multiverse/rails42_app/db/migrate/20160321140358_create_posts.rb +0 -9
  167. data/integration/multiverse/rails42_app/db/schema.rb +0 -22
  168. data/integration/multiverse/rails42_app/db/seeds.rb +0 -7
  169. data/integration/multiverse/rails42_app/lib/assets/.keep +0 -0
  170. data/integration/multiverse/rails42_app/lib/tasks/.keep +0 -0
  171. data/integration/multiverse/rails42_app/log/.keep +0 -0
  172. data/integration/multiverse/rails42_app/public/404.html +0 -67
  173. data/integration/multiverse/rails42_app/public/422.html +0 -67
  174. data/integration/multiverse/rails42_app/public/500.html +0 -66
  175. data/integration/multiverse/rails42_app/public/favicon.ico +0 -0
  176. data/integration/multiverse/rails42_app/public/robots.txt +0 -5
  177. data/integration/multiverse/rails42_app/test/controllers/.keep +0 -0
  178. data/integration/multiverse/rails42_app/test/controllers/posts_controller_test.rb +0 -49
  179. data/integration/multiverse/rails42_app/test/fixtures/.keep +0 -0
  180. data/integration/multiverse/rails42_app/test/fixtures/posts.yml +0 -7
  181. data/integration/multiverse/rails42_app/test/helpers/.keep +0 -0
  182. data/integration/multiverse/rails42_app/test/integration/.keep +0 -0
  183. data/integration/multiverse/rails42_app/test/integration/vitals_flow_test.rb +0 -96
  184. data/integration/multiverse/rails42_app/test/jobs/foobar_cleanup_job_test.rb +0 -7
  185. data/integration/multiverse/rails42_app/test/mailers/.keep +0 -0
  186. data/integration/multiverse/rails42_app/test/models/.keep +0 -0
  187. data/integration/multiverse/rails42_app/test/models/post_test.rb +0 -7
  188. data/integration/multiverse/rails42_app/test/test_helper.rb +0 -11
  189. data/integration/multiverse_helper.rb +0 -16
  190. data/integration/multiverse_spec.rb +0 -40
@@ -1,238 +0,0 @@
1
- PATH
2
- remote: ../../../
3
- specs:
4
- vitals (0.3.0)
5
- statsd-ruby (~> 1.3.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actionmailer (4.2.5.1)
11
- actionpack (= 4.2.5.1)
12
- actionview (= 4.2.5.1)
13
- activejob (= 4.2.5.1)
14
- mail (~> 2.5, >= 2.5.4)
15
- rails-dom-testing (~> 1.0, >= 1.0.5)
16
- actionpack (4.2.5.1)
17
- actionview (= 4.2.5.1)
18
- activesupport (= 4.2.5.1)
19
- rack (~> 1.6)
20
- rack-test (~> 0.6.2)
21
- rails-dom-testing (~> 1.0, >= 1.0.5)
22
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
23
- actionview (4.2.5.1)
24
- activesupport (= 4.2.5.1)
25
- builder (~> 3.1)
26
- erubis (~> 2.7.0)
27
- rails-dom-testing (~> 1.0, >= 1.0.5)
28
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
29
- activejob (4.2.5.1)
30
- activesupport (= 4.2.5.1)
31
- globalid (>= 0.3.0)
32
- activemodel (4.2.5.1)
33
- activesupport (= 4.2.5.1)
34
- builder (~> 3.1)
35
- activerecord (4.2.5.1)
36
- activemodel (= 4.2.5.1)
37
- activesupport (= 4.2.5.1)
38
- arel (~> 6.0)
39
- activesupport (4.2.5.1)
40
- i18n (~> 0.7)
41
- json (~> 1.7, >= 1.7.7)
42
- minitest (~> 5.1)
43
- thread_safe (~> 0.3, >= 0.3.4)
44
- tzinfo (~> 1.1)
45
- addressable (2.4.0)
46
- arel (6.0.3)
47
- ast (2.2.0)
48
- axiom-types (0.1.1)
49
- descendants_tracker (~> 0.0.4)
50
- ice_nine (~> 0.11.0)
51
- thread_safe (~> 0.3, >= 0.3.1)
52
- builder (3.2.2)
53
- capybara (2.6.2)
54
- addressable
55
- mime-types (>= 1.16)
56
- nokogiri (>= 1.3.3)
57
- rack (>= 1.0.0)
58
- rack-test (>= 0.5.4)
59
- xpath (~> 2.0)
60
- childprocess (0.5.9)
61
- ffi (~> 1.0, >= 1.0.11)
62
- coercible (1.0.0)
63
- descendants_tracker (~> 0.0.1)
64
- coffee-rails (4.1.1)
65
- coffee-script (>= 2.2.0)
66
- railties (>= 4.0.0, < 5.1.x)
67
- coffee-script (2.4.1)
68
- coffee-script-source
69
- execjs
70
- coffee-script-source (1.10.0)
71
- concurrent-ruby (1.0.0)
72
- descendants_tracker (0.0.4)
73
- thread_safe (~> 0.3, >= 0.3.1)
74
- diff-lcs (1.2.5)
75
- equalizer (0.0.11)
76
- erubis (2.7.0)
77
- execjs (2.6.0)
78
- ffi (1.9.10)
79
- globalid (0.3.6)
80
- activesupport (>= 4.1.0)
81
- grape (0.14.0)
82
- activesupport
83
- builder
84
- hashie (>= 2.1.0)
85
- multi_json (>= 1.3.2)
86
- multi_xml (>= 0.5.2)
87
- rack (>= 1.3.0)
88
- rack-accept
89
- rack-mount
90
- virtus (>= 1.0.0)
91
- hashie (3.4.3)
92
- i18n (0.7.0)
93
- ice_nine (0.11.2)
94
- jquery-rails (4.1.0)
95
- rails-dom-testing (~> 1.0)
96
- railties (>= 4.2.0)
97
- thor (>= 0.14, < 2.0)
98
- json (1.8.3)
99
- loofah (2.0.3)
100
- nokogiri (>= 1.5.9)
101
- mail (2.6.3)
102
- mime-types (>= 1.16, < 3)
103
- mime-types (2.99)
104
- mini_portile2 (2.0.0)
105
- minitest (5.8.4)
106
- multi_json (1.11.2)
107
- multi_xml (0.5.5)
108
- nokogiri (1.6.7.2)
109
- mini_portile2 (~> 2.0.0.rc2)
110
- parser (2.3.0.2)
111
- ast (~> 2.2)
112
- powerpack (0.1.1)
113
- rack (1.6.4)
114
- rack-accept (0.4.5)
115
- rack (>= 0.4)
116
- rack-mount (0.8.3)
117
- rack (>= 1.0.0)
118
- rack-test (0.6.3)
119
- rack (>= 1.0)
120
- rails (4.2.5.1)
121
- actionmailer (= 4.2.5.1)
122
- actionpack (= 4.2.5.1)
123
- actionview (= 4.2.5.1)
124
- activejob (= 4.2.5.1)
125
- activemodel (= 4.2.5.1)
126
- activerecord (= 4.2.5.1)
127
- activesupport (= 4.2.5.1)
128
- bundler (>= 1.3.0, < 2.0)
129
- railties (= 4.2.5.1)
130
- sprockets-rails
131
- rails-deprecated_sanitizer (1.0.3)
132
- activesupport (>= 4.2.0.alpha)
133
- rails-dom-testing (1.0.7)
134
- activesupport (>= 4.2.0.beta, < 5.0)
135
- nokogiri (~> 1.6.0)
136
- rails-deprecated_sanitizer (>= 1.0.1)
137
- rails-html-sanitizer (1.0.3)
138
- loofah (~> 2.0)
139
- railties (4.2.5.1)
140
- actionpack (= 4.2.5.1)
141
- activesupport (= 4.2.5.1)
142
- rake (>= 0.8.7)
143
- thor (>= 0.18.1, < 2.0)
144
- rainbow (2.1.0)
145
- rake (10.5.0)
146
- rspec (3.4.0)
147
- rspec-core (~> 3.4.0)
148
- rspec-expectations (~> 3.4.0)
149
- rspec-mocks (~> 3.4.0)
150
- rspec-core (3.4.2)
151
- rspec-support (~> 3.4.0)
152
- rspec-expectations (3.4.0)
153
- diff-lcs (>= 1.2.0, < 2.0)
154
- rspec-support (~> 3.4.0)
155
- rspec-mocks (3.4.1)
156
- diff-lcs (>= 1.2.0, < 2.0)
157
- rspec-support (~> 3.4.0)
158
- rspec-rails (3.4.2)
159
- actionpack (>= 3.0, < 4.3)
160
- activesupport (>= 3.0, < 4.3)
161
- railties (>= 3.0, < 4.3)
162
- rspec-core (~> 3.4.0)
163
- rspec-expectations (~> 3.4.0)
164
- rspec-mocks (~> 3.4.0)
165
- rspec-support (~> 3.4.0)
166
- rspec-support (3.4.1)
167
- rubocop (0.37.0)
168
- parser (>= 2.3.0.2, < 3.0)
169
- powerpack (~> 0.1)
170
- rainbow (>= 1.99.1, < 3.0)
171
- ruby-progressbar (~> 1.7)
172
- unicode-display_width (~> 0.3)
173
- ruby-progressbar (1.7.5)
174
- rubyzip (1.1.7)
175
- sass (3.4.21)
176
- sass-rails (5.0.4)
177
- railties (>= 4.0.0, < 5.0)
178
- sass (~> 3.1)
179
- sprockets (>= 2.8, < 4.0)
180
- sprockets-rails (>= 2.0, < 4.0)
181
- tilt (>= 1.1, < 3)
182
- selenium-webdriver (2.50.0)
183
- childprocess (~> 0.5)
184
- multi_json (~> 1.0)
185
- rubyzip (~> 1.0)
186
- websocket (~> 1.0)
187
- sprockets (3.5.2)
188
- concurrent-ruby (~> 1.0)
189
- rack (> 1, < 3)
190
- sprockets-rails (3.0.1)
191
- actionpack (>= 4.0)
192
- activesupport (>= 4.0)
193
- sprockets (>= 3.0.0)
194
- sqlite3 (1.3.11)
195
- statsd-ruby (1.3.0)
196
- thor (0.19.1)
197
- thread_safe (0.3.5)
198
- tilt (2.0.2)
199
- tzinfo (1.2.2)
200
- thread_safe (~> 0.1)
201
- uglifier (2.7.2)
202
- execjs (>= 0.3.0)
203
- json (>= 1.8.0)
204
- unicode-display_width (0.3.1)
205
- virtus (1.0.5)
206
- axiom-types (~> 0.1)
207
- coercible (~> 1.0)
208
- descendants_tracker (~> 0.0, >= 0.0.3)
209
- equalizer (~> 0.0, >= 0.0.9)
210
- websocket (1.2.2)
211
- xpath (2.0.0)
212
- nokogiri (~> 1.3)
213
- zip-zip (0.3)
214
- rubyzip (>= 1.0.0)
215
-
216
- PLATFORMS
217
- ruby
218
-
219
- DEPENDENCIES
220
- capybara
221
- coffee-rails
222
- grape
223
- jquery-rails
224
- nokogiri
225
- rails
226
- rspec
227
- rspec-rails
228
- rubocop
229
- sass
230
- sass-rails
231
- selenium-webdriver
232
- sqlite3
233
- uglifier
234
- vitals!
235
- zip-zip
236
-
237
- BUNDLED WITH
238
- 1.11.2
@@ -1,29 +0,0 @@
1
- Grape on Rails
2
- ==============
3
-
4
- [![Build Status](https://travis-ci.org/ruby-grape/grape-on-rails.svg?branch=master)](https://travis-ci.org/ruby-grape/grape-on-rails)
5
- [![Dependency Status](https://gemnasium.com/ruby-grape/grape-on-rails.svg)](https://gemnasium.com/ruby-grape/grape-on-rails)
6
- [![Code Climate](https://codeclimate.com/github/ruby-grape/grape-on-rails.svg)](https://codeclimate.com/github/ruby-grape/grape-on-rails)
7
-
8
- A [Grape](http://github.com/ruby-grape/grape) API mounted on Rails.
9
-
10
- * [ping](app/api/acme/ping.rb): a hello world `GET` API
11
- * [post](app/api/acme/post.rb): post JSON data
12
- * [raise](app/api/acme/raise.rb): raise an error, Rails handling exceptions
13
- * [protected](app/api/acme/protected.rb): API protected with rudimentary Basic Authentication
14
-
15
- See
16
- ---
17
-
18
- An instance of this app is running on [grape-on-rails.herokuapp.com](http://grape-on-rails.herokuapp.com).
19
-
20
- Run
21
- ---
22
-
23
- ```
24
- bundle install
25
- rails s
26
- ```
27
-
28
- Try http://localhost:3000/api/ping or http://localhost:3000/api/protected/ping with _username_ and _password_.
29
-
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env rake
2
-
3
- require File.expand_path('../config/application', __FILE__)
4
-
5
- GrapeOnRails::Application.load_tasks
6
-
7
- if Rails.env.test? || Rails.env.development?
8
- require 'rspec/core/rake_task'
9
-
10
- Rake::Task[:default].prerequisites.clear
11
-
12
- require 'rubocop/rake_task'
13
- RuboCop::RakeTask.new(:rubocop)
14
-
15
- task default: [:rubocop, :spec]
16
- end
@@ -1,8 +0,0 @@
1
- module Acme
2
- class Ping < Grape::API
3
- desc 'Returns pong.'
4
- get :ping do
5
- { ping: params[:pong] || 'pong' }
6
- end
7
- end
8
- end
@@ -1,10 +0,0 @@
1
- module Acme
2
- class Post < Grape::API
3
- desc 'Creates a spline that can be reticulated.'
4
- resource :spline do
5
- post do
6
- { reticulated: params[:reticulated] }
7
- end
8
- end
9
- end
10
- end
@@ -1,13 +0,0 @@
1
- module Acme
2
- class Protected < Grape::API
3
- namespace :protected do
4
- http_basic do |username, password|
5
- username == 'username' && password == 'password'
6
- end
7
- desc 'Returns pong if username=username and password=password.'
8
- get :ping do
9
- { ping: 'pong' }
10
- end
11
- end
12
- end
13
- end
@@ -1,8 +0,0 @@
1
- module Acme
2
- class Raise < Grape::API
3
- desc 'Raises an exception.'
4
- get :raise do
5
- raise 'Unexpected error.'
6
- end
7
- end
8
- end
@@ -1,8 +0,0 @@
1
- class API < Grape::API
2
- prefix 'api'
3
- format :json
4
- mount Acme::Ping
5
- mount Acme::Raise
6
- mount Acme::Protected
7
- mount Acme::Post
8
- end
@@ -1,15 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // the compiled file.
9
- //
10
- // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
- // GO AFTER THE REQUIRES BELOW.
12
- //
13
- //= require jquery
14
- //= require jquery_ujs
15
- //= require_tree .
@@ -1,3 +0,0 @@
1
- # Place all the behaviors and hooks related to the matching controller here.
2
- # All this logic will automatically be available in application.js.
3
- # You can use CoffeeScript in this file: http://coffeescript.org/
@@ -1,13 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the top of the
9
- * compiled file, but it's generally better to create a new file per style scope.
10
- *
11
- *= require_self
12
- *= require_tree .
13
- */
@@ -1,3 +0,0 @@
1
- // Place all the styles related to the welcome controller here.
2
- // They will automatically be included in application.css.
3
- // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -1,3 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- protect_from_forgery
3
- end
@@ -1,4 +0,0 @@
1
- class WelcomeController < ApplicationController
2
- def index
3
- end
4
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,2 +0,0 @@
1
- module WelcomeHelper
2
- end
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>GrapeOnRails</title>
5
- <%= stylesheet_link_tag "application", :media => "all" %>
6
- <%= javascript_include_tag "application" %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>
@@ -1,6 +0,0 @@
1
- <h1>Grape Mounted on Rails 4</h1>
2
- <ul>
3
- <li><a href='/api/ping'>Ping</a></li>
4
- <li><a href='/api/protected/ping'>Ping w/ Basic Auth</a> (username: <em>username</em>, password: <em>password</em>)</li>
5
- </ul>
6
- <a href="https://github.com/ruby-grape/grape-on-rails">Fork me on Github</a>
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
- load Gem.bin_path('bundler', 'bundle')
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path('../../config/application', __FILE__)
3
- require_relative '../config/boot'
4
- require 'rails/commands'
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require_relative '../config/boot'
3
- require 'rake'
4
- Rake.application.run
@@ -1,65 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- # Pick the frameworks you want:
4
- require 'active_record/railtie'
5
- require 'action_controller/railtie'
6
- require 'action_mailer/railtie'
7
- require 'sprockets/railtie'
8
- # require "rails/test_unit/railtie"
9
-
10
- if defined?(Bundler)
11
- # If you precompile assets before deploying to production, use this line
12
- Bundler.require(*Rails.groups(assets: %w(development test)))
13
- # If you want your assets lazily compiled in production, use this line
14
- # Bundler.require(:default, :assets, Rails.env)
15
- end
16
-
17
- module GrapeOnRails
18
- class Application < Rails::Application
19
- # Settings in config/environments/* take precedence over those specified here.
20
- # Application configuration should go into files in config/initializers
21
- # -- all .rb files in that directory are automatically loaded.
22
-
23
- # Custom directories with classes and modules you want to be autoloadable.
24
- # config.autoload_paths += %W(#{config.root}/extras)
25
-
26
- # Auto-load API and its subdirectories
27
- config.paths.add 'app/api', glob: '**/*.rb'
28
- config.autoload_paths += Dir["#{Rails.root}/app/api/*"]
29
-
30
- # Only load the plugins named here, in the order given (default is alphabetical).
31
- # :all can be used as a placeholder for all plugins not explicitly named.
32
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
33
-
34
- # Activate observers that should always be running.
35
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
36
-
37
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
38
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
39
- # config.time_zone = 'Central Time (US & Canada)'
40
-
41
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
42
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
43
- # config.i18n.default_locale = :de
44
-
45
- # Configure the default encoding used in templates for Ruby 1.9.
46
- config.encoding = 'utf-8'
47
-
48
- # Configure sensitive parameters which will be filtered from the log file.
49
- config.filter_parameters += [:password]
50
-
51
- # Enable escaping HTML in JSON.
52
- config.active_support.escape_html_entities_in_json = true
53
-
54
- # Use SQL instead of Active Record's schema dumper when creating the database.
55
- # This is necessary if your schema can't be completely dumped by the schema dumper,
56
- # like if you have constraints or database-specific column types
57
- # config.active_record.schema_format = :sql
58
-
59
- # Enable the asset pipeline
60
- config.assets.enabled = true
61
-
62
- # Version of your assets, change this if you want to expire all your assets
63
- config.assets.version = '1.0'
64
- end
65
- end
@@ -1,6 +0,0 @@
1
- require 'rubygems'
2
-
3
- # Set up gems listed in the Gemfile.
4
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
5
-
6
- require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
@@ -1,4 +0,0 @@
1
- test:
2
- adapter: postgresql
3
- database: grape_on_rails_test
4
- username: postgres
@@ -1,16 +0,0 @@
1
- default: &default
2
- adapter: sqlite3
3
- pool: 5
4
- timeout: 5000
5
-
6
- development:
7
- <<: *default
8
- database: db/development.sqlite3
9
-
10
- # Warning: The database defined as "test" will be erased and
11
- # re-generated from your development database when you run "rake".
12
- # Do not set this db to the same as development or production.
13
- test:
14
- <<: *default
15
- database: db/test.sqlite3
16
-
@@ -1,5 +0,0 @@
1
- # Load the rails application
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the rails application
5
- GrapeOnRails::Application.initialize!
@@ -1,29 +0,0 @@
1
- GrapeOnRails::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- config.eager_load = false
5
-
6
- # In the development environment your application's code is reloaded on
7
- # every request. This slows down response time but is perfect for development
8
- # since you don't have to restart the web server when you make code changes.
9
- config.cache_classes = false
10
-
11
- # Show full error reports and disable caching
12
- config.consider_all_requests_local = true
13
- config.action_controller.perform_caching = false
14
-
15
- # Don't care if the mailer can't send
16
- config.action_mailer.raise_delivery_errors = false
17
-
18
- # Print deprecation notices to the Rails logger
19
- config.active_support.deprecation = :log
20
-
21
- # Only use best-standards-support built into browsers
22
- config.action_dispatch.best_standards_support = :builtin
23
-
24
- # Do not compress assets
25
- config.assets.compress = false
26
-
27
- # Expands the lines which load the assets
28
- config.assets.debug = true
29
- end
@@ -1,65 +0,0 @@
1
- GrapeOnRails::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- config.eager_load = true
5
-
6
- # Code is not reloaded between requests
7
- config.cache_classes = true
8
-
9
- # Full error reports are disabled and caching is turned on
10
- config.consider_all_requests_local = false
11
- config.action_controller.perform_caching = true
12
-
13
- # Disable Rails's static asset server (Apache or nginx will already do this)
14
- config.serve_static_files = false
15
-
16
- # Compress JavaScripts and CSS
17
- config.assets.compress = true
18
-
19
- # Don't fallback to assets pipeline if a precompiled asset is missed
20
- config.assets.compile = false
21
-
22
- # Generate digests for assets URLs
23
- config.assets.digest = true
24
-
25
- # Defaults to nil and saved in location specified by config.assets.prefix
26
- # config.assets.manifest = YOUR_PATH
27
-
28
- # Specifies the header that your server uses for sending files
29
- # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
30
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
31
-
32
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
33
- # config.force_ssl = true
34
-
35
- # See everything in the log (default is :info)
36
- # config.log_level = :debug
37
-
38
- # Prepend all log lines with the following tags
39
- # config.log_tags = [ :subdomain, :uuid ]
40
-
41
- # Use a different logger for distributed setups
42
- # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
43
-
44
- # Use a different cache store in production
45
- # config.cache_store = :mem_cache_store
46
-
47
- # Enable serving of images, stylesheets, and JavaScripts from an asset server
48
- # config.action_controller.asset_host = "http://assets.example.com"
49
-
50
- # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
51
- # config.assets.precompile += %w( search.js )
52
-
53
- # Disable delivery errors, bad email addresses will be ignored
54
- # config.action_mailer.raise_delivery_errors = false
55
-
56
- # Enable threaded mode
57
- # config.threadsafe!
58
-
59
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
60
- # the I18n.default_locale when a translation can not be found)
61
- config.i18n.fallbacks = true
62
-
63
- # Send deprecation notices to registered listeners
64
- config.active_support.deprecation = :notify
65
- end