rabl 0.14.1 → 0.14.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (168) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +2 -1
  3. data/CHANGELOG.md +5 -0
  4. data/README.md +0 -1
  5. data/fixtures/ashared/NOTES +10 -0
  6. data/fixtures/ashared/views_rails_6/layouts/application.html.erb +13 -0
  7. data/fixtures/ashared/views_rails_6/posts/_show_footer_script.js.erb +1 -0
  8. data/fixtures/ashared/views_rails_6/posts/date.rabl +3 -0
  9. data/fixtures/ashared/views_rails_6/posts/index.html.erb +3 -0
  10. data/fixtures/ashared/views_rails_6/posts/index.rabl +12 -0
  11. data/fixtures/ashared/views_rails_6/posts/renderer.rabl +8 -0
  12. data/fixtures/ashared/views_rails_6/posts/renderer_partial.rabl +4 -0
  13. data/fixtures/ashared/views_rails_6/posts/show.html.erb +3 -0
  14. data/fixtures/ashared/views_rails_6/posts/show.rabl +25 -0
  15. data/fixtures/ashared/views_rails_6/posts/show.rabl_test_v1.rabl +7 -0
  16. data/fixtures/ashared/views_rails_6/users/index.json.rabl +3 -0
  17. data/fixtures/ashared/views_rails_6/users/phone_number.json.rabl +8 -0
  18. data/fixtures/ashared/views_rails_6/users/phone_number.xml.rabl +1 -0
  19. data/fixtures/ashared/views_rails_6/users/show.json.rabl +16 -0
  20. data/fixtures/ashared/views_rails_6/users/show.rabl_test_v1.rabl +3 -0
  21. data/fixtures/padrino_test/app/views +1 -1
  22. data/fixtures/padrino_test/db/migrate +1 -1
  23. data/fixtures/padrino_test/models +1 -1
  24. data/fixtures/padrino_test/test/app/controllers/posts_controller_test.rb +1 -1
  25. data/fixtures/padrino_test/test/app/controllers/users_controller_test.rb +1 -1
  26. data/fixtures/rails2/app/models +1 -1
  27. data/fixtures/rails2/app/views +1 -1
  28. data/fixtures/rails2/db/migrate +1 -1
  29. data/fixtures/rails2/test/functionals/posts_controller_test.rb +1 -1
  30. data/fixtures/rails2/test/functionals/users_controller_test.rb +1 -1
  31. data/fixtures/rails3/app/models +1 -1
  32. data/fixtures/rails3/app/views +1 -1
  33. data/fixtures/rails3/db/migrate +1 -1
  34. data/fixtures/rails3/test/functional/posts_controller_test.rb +1 -1
  35. data/fixtures/rails3/test/functional/users_controller_test.rb +1 -1
  36. data/fixtures/rails3_2/app/models +1 -1
  37. data/fixtures/rails3_2/app/views +1 -1
  38. data/fixtures/rails3_2/db/migrate +1 -1
  39. data/fixtures/rails3_2/test/functional/posts_controller_test.rb +1 -1
  40. data/fixtures/rails3_2/test/functional/users_controller_test.rb +1 -1
  41. data/fixtures/rails4/app/models +1 -1
  42. data/fixtures/rails4/app/views +1 -1
  43. data/fixtures/rails4/db/migrate +1 -1
  44. data/fixtures/rails4/test/functional/posts_controller_test.rb +1 -1
  45. data/fixtures/rails4/test/functional/users_controller_test.rb +1 -1
  46. data/fixtures/rails5/app/controllers/posts_controller.rb +1 -1
  47. data/fixtures/rails5/app/controllers/users_controller.rb +1 -1
  48. data/fixtures/rails5/app/helpers +1 -1
  49. data/fixtures/rails5/app/models +1 -1
  50. data/fixtures/rails5/app/views +1 -1
  51. data/fixtures/rails5/db/migrate +1 -1
  52. data/fixtures/rails5/test/functional/posts_controller_test.rb +1 -1
  53. data/fixtures/rails5/test/functional/users_controller_test.rb +1 -1
  54. data/fixtures/rails5_api/app/controllers/posts_controller.rb +1 -1
  55. data/fixtures/rails5_api/app/controllers/users_controller.rb +1 -1
  56. data/fixtures/rails5_api/app/helpers +1 -1
  57. data/fixtures/rails5_api/app/models +1 -1
  58. data/fixtures/rails5_api/app/views +1 -1
  59. data/fixtures/rails5_api/db/migrate +1 -1
  60. data/fixtures/rails5_api/test/functional/posts_controller_test.rb +1 -1
  61. data/fixtures/rails5_api/test/functional/users_controller_test.rb +1 -1
  62. data/fixtures/rails6/.gitignore +35 -0
  63. data/fixtures/rails6/Gemfile +58 -0
  64. data/fixtures/rails6/README.md +24 -0
  65. data/fixtures/rails6/Rakefile +14 -0
  66. data/fixtures/rails6/app/assets/config/manifest.js +2 -0
  67. data/fixtures/rails6/app/assets/images/.keep +0 -0
  68. data/fixtures/rails6/app/assets/stylesheets/application.css +15 -0
  69. data/fixtures/rails6/app/channels/application_cable/channel.rb +4 -0
  70. data/fixtures/rails6/app/channels/application_cable/connection.rb +4 -0
  71. data/fixtures/rails6/app/controllers/application_controller.rb +2 -0
  72. data/fixtures/rails6/app/controllers/concerns/.keep +0 -0
  73. data/fixtures/rails6/app/controllers/posts_controller.rb +17 -0
  74. data/fixtures/rails6/app/controllers/users_controller.rb +11 -0
  75. data/fixtures/rails6/app/helpers +1 -0
  76. data/fixtures/rails6/app/javascript/channels/consumer.js +6 -0
  77. data/fixtures/rails6/app/javascript/channels/index.js +5 -0
  78. data/fixtures/rails6/app/javascript/packs/application.js +17 -0
  79. data/fixtures/rails6/app/jobs/application_job.rb +7 -0
  80. data/fixtures/rails6/app/mailers/application_mailer.rb +4 -0
  81. data/fixtures/rails6/app/models +1 -0
  82. data/fixtures/rails6/app/views +1 -0
  83. data/fixtures/rails6/babel.config.js +72 -0
  84. data/fixtures/rails6/bin/bundle +105 -0
  85. data/fixtures/rails6/bin/rails +9 -0
  86. data/fixtures/rails6/bin/rake +9 -0
  87. data/fixtures/rails6/bin/setup +36 -0
  88. data/fixtures/rails6/bin/spring +17 -0
  89. data/fixtures/rails6/bin/webpack +19 -0
  90. data/fixtures/rails6/bin/webpack-dev-server +19 -0
  91. data/fixtures/rails6/bin/yarn +11 -0
  92. data/fixtures/rails6/config.ru +5 -0
  93. data/fixtures/rails6/config/application.rb +19 -0
  94. data/fixtures/rails6/config/boot.rb +4 -0
  95. data/fixtures/rails6/config/cable.yml +10 -0
  96. data/fixtures/rails6/config/credentials.yml.enc +1 -0
  97. data/fixtures/rails6/config/database.yml +25 -0
  98. data/fixtures/rails6/config/environment.rb +5 -0
  99. data/fixtures/rails6/config/environments/development.rb +62 -0
  100. data/fixtures/rails6/config/environments/production.rb +112 -0
  101. data/fixtures/rails6/config/environments/test.rb +48 -0
  102. data/fixtures/rails6/config/initializers/application_controller_renderer.rb +8 -0
  103. data/fixtures/rails6/config/initializers/assets.rb +14 -0
  104. data/fixtures/rails6/config/initializers/backtrace_silencers.rb +7 -0
  105. data/fixtures/rails6/config/initializers/content_security_policy.rb +27 -0
  106. data/fixtures/rails6/config/initializers/cookies_serializer.rb +5 -0
  107. data/fixtures/rails6/config/initializers/filter_parameter_logging.rb +4 -0
  108. data/fixtures/rails6/config/initializers/inflections.rb +16 -0
  109. data/fixtures/rails6/config/initializers/mime_types.rb +6 -0
  110. data/fixtures/rails6/config/initializers/wrap_parameters.rb +14 -0
  111. data/fixtures/rails6/config/locales/en.yml +33 -0
  112. data/fixtures/rails6/config/puma.rb +35 -0
  113. data/fixtures/rails6/config/routes.rb +8 -0
  114. data/fixtures/rails6/config/spring.rb +6 -0
  115. data/fixtures/rails6/config/storage.yml +34 -0
  116. data/fixtures/rails6/config/webpack/development.js +5 -0
  117. data/fixtures/rails6/config/webpack/environment.js +3 -0
  118. data/fixtures/rails6/config/webpack/production.js +5 -0
  119. data/fixtures/rails6/config/webpack/test.js +5 -0
  120. data/fixtures/rails6/config/webpacker.yml +95 -0
  121. data/fixtures/rails6/db/migrate/20111002092016_create_users.rb +11 -0
  122. data/fixtures/rails6/db/migrate/20111002092019_create_posts.rb +10 -0
  123. data/fixtures/rails6/db/migrate/20111002092024_create_phone_numbers.rb +12 -0
  124. data/fixtures/rails6/db/schema.rb +41 -0
  125. data/fixtures/rails6/db/seeds.rb +7 -0
  126. data/fixtures/rails6/lib/assets/.keep +0 -0
  127. data/fixtures/rails6/lib/tasks/.keep +0 -0
  128. data/fixtures/rails6/log/.keep +0 -0
  129. data/fixtures/rails6/package.json +15 -0
  130. data/fixtures/rails6/postcss.config.js +12 -0
  131. data/fixtures/rails6/public/404.html +67 -0
  132. data/fixtures/rails6/public/422.html +67 -0
  133. data/fixtures/rails6/public/500.html +66 -0
  134. data/fixtures/rails6/public/apple-touch-icon-precomposed.png +0 -0
  135. data/fixtures/rails6/public/apple-touch-icon.png +0 -0
  136. data/fixtures/rails6/public/favicon.ico +0 -0
  137. data/fixtures/rails6/public/robots.txt +1 -0
  138. data/fixtures/rails6/storage/.keep +0 -0
  139. data/fixtures/rails6/test/application_system_test_case.rb +5 -0
  140. data/fixtures/rails6/test/channels/application_cable/connection_test.rb +11 -0
  141. data/fixtures/rails6/test/controllers/.keep +0 -0
  142. data/fixtures/rails6/test/fixtures/.keep +0 -0
  143. data/fixtures/rails6/test/fixtures/files/.keep +0 -0
  144. data/fixtures/rails6/test/functional/posts_controller_test.rb +1 -0
  145. data/fixtures/rails6/test/functional/users_controller_test.rb +1 -0
  146. data/fixtures/rails6/test/helpers/.keep +0 -0
  147. data/fixtures/rails6/test/integration/.keep +0 -0
  148. data/fixtures/rails6/test/mailers/.keep +0 -0
  149. data/fixtures/rails6/test/models/.keep +0 -0
  150. data/fixtures/rails6/test/system/.keep +0 -0
  151. data/fixtures/rails6/test/test_helper.rb +27 -0
  152. data/fixtures/rails6/tmp/.keep +0 -0
  153. data/fixtures/rails6/vendor/.keep +0 -0
  154. data/fixtures/rails6/yarn.lock +7201 -0
  155. data/fixtures/sinatra_test/db/migrate +1 -1
  156. data/fixtures/sinatra_test/models +1 -1
  157. data/fixtures/sinatra_test/test/functional/posts_controller_test.rb +1 -1
  158. data/fixtures/sinatra_test/test/functional/users_controller_test.rb +1 -1
  159. data/fixtures/sinatra_test/views +1 -1
  160. data/lib/rabl.rb +3 -3
  161. data/lib/rabl/engine.rb +4 -2
  162. data/lib/rabl/railtie.rb +1 -1
  163. data/lib/rabl/template.rb +21 -1
  164. data/lib/rabl/version.rb +1 -1
  165. data/rabl.gemspec +0 -2
  166. data/test/integration/rails6/posts_controller_test.rb +185 -0
  167. data/test/integration/rails6/users_controller_test.rb +87 -0
  168. metadata +113 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 3278a66ba6ca1b6bbbba630f618972311efa3ffa
4
- data.tar.gz: 8b01a9837edb00add1cc9ba51a4fbd81c5b0cd15
2
+ SHA256:
3
+ metadata.gz: 3ad87035852538a80f4fa99e9eef0b5bf75023ddba90b23fb5547e751bb7dc44
4
+ data.tar.gz: 050337e1fd66397e645bc5b4c5e9e08e97e58a518e4d4a212d32127e4ab46988
5
5
  SHA512:
6
- metadata.gz: 6b7e34e9c1f6b7ee7f5660147805671bf6ee54252be2199cd7cecf5f78ce4b3ff876884fe072bb2b1633288542e5e9cc8db79990b139086bb718b2ee4eb483da
7
- data.tar.gz: 735b6dc4e773a9ea3613aada27e2ee57afe987a5defd8c5260962ac690191b05fce69722765793d6858083910b685d4b9cde8eaaa5aaadbbd91cae235f15f995
6
+ metadata.gz: e15a88017ad0820bf671a71d6f81b2acacf0c012caf8e597af36da4c1bd457af41cdfa833932193a746f38a1b00e86c3aab26360a9637c8c4db4fe66de10c156
7
+ data.tar.gz: 981a56f68a7d8faff5777f6c124fc17c3c60bf9211d7d197abf2fe3ebb224d0ff03148f3e9a4fa0527d868921a3d6cfa909a0bbc3e6c651652ebde7f53631163
data/.travis.yml CHANGED
@@ -9,9 +9,10 @@ rvm:
9
9
  - 2.3
10
10
  - 2.4
11
11
  - 2.5
12
+ - 2.6
12
13
  notifications:
13
14
  recipients:
14
15
  - nesquena@gmail.com
15
16
  - databyte@gmail.com
16
17
  before_install:
17
- - gem install bundler
18
+ - gem install bundler -v 1.17.3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.14.2 (September 10th, 2019)
4
+
5
+ * Made Rails 6 compatible (@jpawlyn)
6
+ * Drop EOL'd property from gemspec (@olleolleolle)
7
+
3
8
  ## 0.14.1 (April 28th, 2019)
4
9
 
5
10
  * Many adjustments and various non-breaking fixes
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # RABL #
2
2
 
3
3
  [![Continuous Integration status](https://secure.travis-ci.org/nesquena/rabl.svg)](http://travis-ci.org/nesquena/rabl)
4
- [![Dependency Status](https://gemnasium.com/nesquena/rabl.svg)](https://gemnasium.com/nesquena/rabl)
5
4
  [![Code Climate](https://codeclimate.com/github/nesquena/rabl.svg)](https://codeclimate.com/github/nesquena/rabl)
6
5
 
7
6
  RABL (Ruby API Builder Language) is a Rails and [Padrino](http://padrinorb.com) ruby templating system for generating JSON, XML, MessagePack, PList and BSON.
@@ -88,3 +88,13 @@ cp ../rails5/test/test_helper.rb ./test/test_helper.rb
88
88
  # Do a bunch of junk with gemfiles and test helpers and such
89
89
 
90
90
  # end Rails 5 API mode
91
+
92
+ # Rails 6
93
+
94
+ cd fixtures/rails6
95
+ ln -s "../../ashared/models" app/models
96
+ ln -s "../../ashared/views_rails_6/" app/views
97
+ ln -s "../../ashared/helpers" app/helpers
98
+ ln -s ../../../../test/integration/rails6/posts_controller_test.rb test/functional/posts_controller_test.rb
99
+ ln -s ../../../../test/integration/rails6/users_controller_test.rb test/functional/users_controller_test.rb
100
+ echo "Mime::Type.register 'application/vnd.rabl-test_v1+json', :rabl_test_v1" >> config/initializers/mime_types.rb
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>RABL ROCKS!</title>
5
+ </head>
6
+ <body>
7
+ <%= yield %>
8
+
9
+ <%= javascript_tag do %>
10
+ <%= yield(:footer_scripts) %>
11
+ <% end %>
12
+ </body>
13
+ </html>
@@ -0,0 +1 @@
1
+ var output = <%= render(template: 'posts/show', formats: :json).html_safe %>;
@@ -0,0 +1,3 @@
1
+ code(:day) { |d| d.day }
2
+ code(:hour) { |d| d.hour }
3
+ code(:full) { |d| d.iso8601 }
@@ -0,0 +1,3 @@
1
+ <%= content_for :footer_scripts do %>
2
+ var output = <%= render(template: 'posts/index', formats: :json).html_safe %>;
3
+ <% end %>
@@ -0,0 +1,12 @@
1
+ collection @posts => :articles
2
+ cache ['kittens!', @posts]
3
+
4
+ extends "posts/show"
5
+
6
+ node(:created_by_admin, :if => lambda { |p| p.user.is_admin }) do |p|
7
+ true
8
+ end
9
+
10
+ child({ :user => :admin }, { :if => lambda { |p| p.user.is_admin }}) do |p|
11
+ extends "users/show"
12
+ end
@@ -0,0 +1,8 @@
1
+ object @post
2
+ cache @post
3
+
4
+ attributes :title, :body
5
+
6
+ node :partial do |p|
7
+ partial('posts/renderer_partial', object: p)
8
+ end
@@ -0,0 +1,4 @@
1
+ object @post
2
+ cache @post
3
+
4
+ attributes :title, :body
@@ -0,0 +1,3 @@
1
+ <%= content_for :footer_scripts do %>
2
+ <%= render partial: "show_footer_script", formats: :js %>
3
+ <% end %>
@@ -0,0 +1,25 @@
1
+ object @post
2
+ cache @post
3
+
4
+ attributes :title, :body
5
+ attributes :created_at => :posted_at
6
+
7
+ child :user do
8
+ extends "users/show"
9
+ end
10
+
11
+ glue :user do
12
+ attributes :username => :author_name
13
+ end
14
+
15
+ code(:created_date) do |p|
16
+ partial("posts/date", :object => p.created_at)
17
+ end
18
+
19
+ node(:post) do |post|
20
+ [post.title, post.body]
21
+ end
22
+
23
+ node(:foo) { helper_foo }
24
+
25
+ node(:created_at_in_words) {|p| time_ago_in_words(p.created_at) }
@@ -0,0 +1,7 @@
1
+ object @post
2
+
3
+ attribute :title => :title_v1
4
+
5
+ child :user do
6
+ extends "users/show"
7
+ end
@@ -0,0 +1,3 @@
1
+ collection @users
2
+
3
+ extends "users/show", :locals => { :reversed => true }
@@ -0,0 +1,8 @@
1
+ attributes :prefix, :suffix, :area_code
2
+ attributes :is_primary => :primary
3
+
4
+ if locals[:reversed]
5
+ node(:reversed) { |n| n.formatted.reverse }
6
+ else
7
+ node(:formatted) { |n| n.formatted }
8
+ end
@@ -0,0 +1 @@
1
+ fixtures/ashared/views_rails_6/users/phone_number.json.rabl
@@ -0,0 +1,16 @@
1
+ object @user => :person
2
+
3
+ attributes :username, :email, :location
4
+ attributes :created_at => :registered_at
5
+
6
+ node :role do |user|
7
+ user.is_admin ? 'admin' : 'normal'
8
+ end
9
+
10
+ child :phone_numbers => :pnumbers do
11
+ extends "users/phone_number"
12
+ end
13
+
14
+ node :node_numbers do |u|
15
+ partial("users/phone_number", :object => u.phone_numbers, :locals => { :reversed => locals[:reversed].presence })
16
+ end
@@ -0,0 +1,3 @@
1
+ object @user => :person
2
+
3
+ attribute :username => :username_v1
@@ -1 +1 @@
1
- fixtures/padrino_test/app/../../ashared/views/
1
+ ../../ashared/views/
@@ -1 +1 @@
1
- fixtures/padrino_test/db/../../ashared/migrate
1
+ ../../ashared/migrate
@@ -1 +1 @@
1
- fixtures/padrino_test/../ashared/models
1
+ ../ashared/models
@@ -1 +1 @@
1
- fixtures/padrino_test/test/app/controllers/../../../../../test/integration/posts_controller_test.rb
1
+ ../../../../../test/integration/posts_controller_test.rb
@@ -1 +1 @@
1
- fixtures/padrino_test/test/app/controllers/../../../../../test/integration/users_controller_test.rb
1
+ ../../../../../test/integration/users_controller_test.rb
@@ -1 +1 @@
1
- fixtures/rails2/app/../../ashared/models
1
+ ../../ashared/models
@@ -1 +1 @@
1
- fixtures/rails2/app/../../ashared/views/
1
+ ../../ashared/views/
@@ -1 +1 @@
1
- fixtures/rails2/db/../../ashared/migrate
1
+ ../../ashared/migrate
@@ -1 +1 @@
1
- fixtures/rails2/test/functionals/../../../../test/integration/posts_controller_test.rb
1
+ ../../../../test/integration/posts_controller_test.rb
@@ -1 +1 @@
1
- fixtures/rails2/test/functionals/../../../../test/integration/users_controller_test.rb
1
+ ../../../../test/integration/users_controller_test.rb
@@ -1 +1 @@
1
- fixtures/rails3/app/../../ashared/models
1
+ ../../ashared/models
@@ -1 +1 @@
1
- fixtures/rails3/app/../../ashared/views/
1
+ ../../ashared/views/
@@ -1 +1 @@
1
- fixtures/rails3/db/../../ashared/migrate
1
+ ../../ashared/migrate
@@ -1 +1 @@
1
- fixtures/rails3/test/functional/../../../../test/integration/posts_controller_test.rb
1
+ ../../../../test/integration/posts_controller_test.rb
@@ -1 +1 @@
1
- fixtures/rails3/test/functional/../../../../test/integration/users_controller_test.rb
1
+ ../../../../test/integration/users_controller_test.rb
@@ -1 +1 @@
1
- fixtures/rails3_2/app/../../ashared/models
1
+ ../../ashared/models
@@ -1 +1 @@
1
- fixtures/rails3_2/app/../../ashared/views_rails_3/
1
+ ../../ashared/views_rails_3/
@@ -1 +1 @@
1
- fixtures/rails3_2/db/../../ashared/migrate
1
+ ../../ashared/migrate
@@ -1 +1 @@
1
- fixtures/rails3_2/test/functional/../../../../test/integration/rails3_2/posts_controller_test.rb
1
+ ../../../../test/integration/rails3_2/posts_controller_test.rb
@@ -1 +1 @@
1
- fixtures/rails3_2/test/functional/../../../../test/integration/rails3_2/users_controller_test.rb
1
+ ../../../../test/integration/rails3_2/users_controller_test.rb
@@ -1 +1 @@
1
- fixtures/rails4/app/../../ashared/models
1
+ ../../ashared/models
@@ -1 +1 @@
1
- fixtures/rails4/app/../../ashared/views_rails_3
1
+ ../../ashared/views_rails_3
@@ -1 +1 @@
1
- fixtures/rails4/db/../../ashared/migrate
1
+ ../../ashared/migrate
@@ -1 +1 @@
1
- fixtures/rails4/test/functional/../../../../test/integration/rails4/posts_controller_test.rb
1
+ ../../../../test/integration/rails4/posts_controller_test.rb
@@ -1 +1 @@
1
- fixtures/rails4/test/functional/../../../../test/integration/rails4/users_controller_test.rb
1
+ ../../../../test/integration/rails4/users_controller_test.rb
@@ -1 +1 @@
1
- fixtures/rails5/app/controllers/../../../ashared/controllers_rails_5/posts_controller.rb
1
+ ../../../ashared/controllers_rails_5/posts_controller.rb
@@ -1 +1 @@
1
- fixtures/rails5/app/controllers/../../../ashared/controllers_rails_5/users_controller.rb
1
+ ../../../ashared/controllers_rails_5/users_controller.rb
@@ -1 +1 @@
1
- fixtures/rails5/app/../../ashared/helpers
1
+ ../../ashared/helpers
@@ -1 +1 @@
1
- fixtures/rails5/app/../../ashared/models
1
+ ../../ashared/models
@@ -1 +1 @@
1
- fixtures/rails5/app/../../ashared/views_rails_3/
1
+ ../../ashared/views_rails_3/
@@ -1 +1 @@
1
- fixtures/rails5/db/../../ashared/migrate
1
+ ../../ashared/migrate
@@ -1 +1 @@
1
- fixtures/rails5/test/functional/../../../../test/integration/rails5/posts_controller_test.rb
1
+ ../../../../test/integration/rails5/posts_controller_test.rb
@@ -1 +1 @@
1
- fixtures/rails5/test/functional/../../../../test/integration/rails5/users_controller_test.rb
1
+ ../../../../test/integration/rails5/users_controller_test.rb
@@ -1 +1 @@
1
- fixtures/rails5_api/app/controllers/../../../ashared/controllers_rails_5/posts_controller.rb
1
+ ../../../ashared/controllers_rails_5/posts_controller.rb
@@ -1 +1 @@
1
- fixtures/rails5_api/app/controllers/../../../ashared/controllers_rails_5/users_controller.rb
1
+ ../../../ashared/controllers_rails_5/users_controller.rb
@@ -1 +1 @@
1
- fixtures/rails5_api/app/../../ashared/helpers
1
+ ../../ashared/helpers
@@ -1 +1 @@
1
- fixtures/rails5_api/app/../../ashared/models
1
+ ../../ashared/models
@@ -1 +1 @@
1
- fixtures/rails5_api/app/../../ashared/views_rails_3/
1
+ ../../ashared/views_rails_3/
@@ -1 +1 @@
1
- fixtures/rails5_api/db/../../ashared/migrate
1
+ ../../ashared/migrate
@@ -1 +1 @@
1
- fixtures/rails5_api/test/functional/../../../../test/integration/rails5/posts_controller_test.rb
1
+ ../../../../test/integration/rails5/posts_controller_test.rb
@@ -1 +1 @@
1
- fixtures/rails5_api/test/functional/../../../../test/integration/rails5/users_controller_test.rb
1
+ ../../../../test/integration/rails5/users_controller_test.rb
@@ -0,0 +1,35 @@
1
+ # See https://help.github.com/articles/ignoring-files for more about ignoring files.
2
+ #
3
+ # If you find yourself ignoring temporary files generated by your text editor
4
+ # or operating system, you probably want to add a global ignore instead:
5
+ # git config --global core.excludesfile '~/.gitignore_global'
6
+
7
+ # Ignore bundler config.
8
+ /.bundle
9
+
10
+ # Ignore the default SQLite database.
11
+ /db/*.sqlite3
12
+ /db/*.sqlite3-journal
13
+
14
+ # Ignore all logfiles and tempfiles.
15
+ /log/*
16
+ /tmp/*
17
+ !/log/.keep
18
+ !/tmp/.keep
19
+
20
+ # Ignore uploaded files in development.
21
+ /storage/*
22
+ !/storage/.keep
23
+
24
+ /public/assets
25
+ .byebug_history
26
+
27
+ # Ignore master key for decrypting credentials and more.
28
+ /config/master.key
29
+
30
+ /public/packs
31
+ /public/packs-test
32
+ /node_modules
33
+ /yarn-error.log
34
+ yarn-debug.log*
35
+ .yarn-integrity
@@ -0,0 +1,58 @@
1
+ source 'https://rubygems.org'
2
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3
+
4
+ # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
5
+ gem 'rails', '~> 6.0.0'
6
+ # Use sqlite3 as the database for Active Record
7
+ gem 'sqlite3', '~> 1.4'
8
+ # Use Puma as the app server
9
+ gem 'puma', '~> 3.11'
10
+ # Use SCSS for stylesheets
11
+ gem 'sass-rails', '~> 5'
12
+ # Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
13
+ gem 'webpacker', '~> 4.0'
14
+ # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
15
+ gem 'turbolinks', '~> 5'
16
+ # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
17
+ gem 'jbuilder', '~> 2.5'
18
+ # Use Redis adapter to run Action Cable in production
19
+ # gem 'redis', '~> 4.0'
20
+ # Use Active Model has_secure_password
21
+ # gem 'bcrypt', '~> 3.1.7'
22
+
23
+ # Use Active Storage variant
24
+ # gem 'image_processing', '~> 1.2'
25
+
26
+ # Reduces boot times through caching; required in config/boot.rb
27
+ gem 'bootsnap', '>= 1.4.2', require: false
28
+
29
+ group :development, :test do
30
+ # Call 'byebug' anywhere in the code to stop execution and get a debugger console
31
+ gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
32
+ end
33
+
34
+ group :development do
35
+ # Access an interactive console on exception pages or by calling 'console' anywhere in the code.
36
+ gem 'web-console', '>= 3.3.0'
37
+ gem 'listen', '>= 3.0.5', '< 3.2'
38
+ # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
39
+ gem 'spring'
40
+ gem 'spring-watcher-listen', '~> 2.0.0'
41
+ end
42
+
43
+ group :test do
44
+ # Adds support for Capybara system testing and selenium driver
45
+ gem 'capybara', '>= 2.15'
46
+ gem 'selenium-webdriver'
47
+ # Easy installation and use of web drivers to run system tests with browsers
48
+ gem 'webdrivers'
49
+ end
50
+
51
+ # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
52
+ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
53
+
54
+ # gem 'rabl', path: File.expand_path(File.dirname(__FILE__) + '/../../')
55
+ gem 'rabl', path: '../..'
56
+ gem 'riot', group: 'test'
57
+ gem 'rr', '1.1.2', group: 'test'
58
+ gem 'responders', '~> 3.0'