nyauth 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/responders/nyauth/app_responder.rb +1 -7
  4. data/lib/nyauth/rails.rb +1 -7
  5. data/lib/nyauth/route.rb +5 -0
  6. data/lib/nyauth/version.rb +1 -1
  7. data/spec/dummy/config/environments/test.rb +1 -0
  8. data/spec/dummy/db/test.sqlite3 +0 -0
  9. data/spec/dummy/log/test.log +3606 -0
  10. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/1-v7tFLPkD6uyCpAKjAKORwPg5YalyY-SYwjNGTiHQo.cache +1 -0
  11. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/122B1KZyQmgyJoX7uc4JINcUDUmcMHJsbf5JopBIpSg.cache +2 -0
  12. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/2W23wCoDaNvkpc-htXrPJ_4wwRXsCB8sDUi-vlecXRY.cache +1 -0
  13. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/7V6PNJ6qL8fDJnJ1QuYt7VTSrRt2hsRH5oG0ky5HVO8.cache +0 -0
  14. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/8UAh9fJot2eROIl2PFflmIp2Q0G3oNNzBxCYx6AWaTw.cache +3 -0
  15. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/9ubNouw4TJzEvjLjCNu8X3HYc_UdmBtXPe7nxUikKzY.cache +1 -0
  16. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/AbUoISEQvIvt4YkMvG9KFL1km0uAgyI3jLaBfJ6YHys.cache +0 -0
  17. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/DK6c5xJ8kSeXSqJlndPmMohu6AMbxDTYw3amSuVkoTs.cache +2 -0
  18. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/DyIv0fbwJkRmRQOSnZm_KzUs22xxzO82wcpU1IIsHHs.cache +1 -0
  19. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/E16A8LE9OYp6k-WBc2Egdmn6XL_-ipcmDOYBOfBITqs.cache +2 -0
  20. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/EGILbSm92CBXW0Z6Mp6o2YygxS4b8Hhd2CW8igzKuRM.cache +1 -0
  21. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/FIPwj786RByADaWtmUkp2eeWQvQ_QmX1ER1sGGOKgqo.cache +1 -0
  22. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/Fo9EHolUACmT7eKdJVmIzktbVgFRBZQkcCGHFfpD7u0.cache +1 -0
  23. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/KiPxsMrAEr8OMX4H_Q8MSOgJ0PuFTQf2yX0S4kZsDVs.cache +1 -0
  24. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/MOFKxz_tW8kLUBoOEGHUXFU5VytKJk-7FDiHfg-bm34.cache +1 -0
  25. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/Mt0xQ0T_E6t-RgmAgdaRppkiOsWd61GFxPTeo7N-6X4.cache +1 -0
  26. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/Tpj_x0CkqGAEMDgH-JGBkdkajznkLbbiVVZOxEqURxU.cache +0 -0
  27. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/cCSmnUtKzAmaCXjpVzF7r1o9PGSfB-29uIhnA2z3DaQ.cache +1 -0
  28. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/lANr4VX8LDWQ3kMj0yoqyqiwK3SEqtIXkA-22639ZQQ.cache +2 -0
  29. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/lzQHK3QCbJU3Nd5o7PCXKLRQzMnpvRrqQij3AU88zO8.cache +0 -0
  30. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/mKfHoait9-j98PxObraQnsOWSk7xeFfrgppKbFtsUP0.cache +1 -0
  31. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/nUpHC2Ihupqv9BSXSSQ_5UnQgCc4ZCw6L6G0jvgovRU.cache +0 -0
  32. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/s0L4Qc1LxOsV_VIoN33m851q4i5lQVM1ygIhke4UJhM.cache +2 -0
  33. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/yYe_bLwTAh9hsZoH8SZgC6Dbr3nL_YOq9yPhiaOgbAA.cache +1 -0
  34. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/zR1DqIdG-kQRrFfJcMA5u5QqOpEtN3kg6ZKosd8od_4.cache +0 -0
  35. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/zsFy9esxJILHEYEl6_Z8DiVmOe3AtWOqYd4k46b-14s.cache +0 -0
  36. metadata +55 -49
  37. data/spec/dummy/tmp/capybara/capybara-201503142131285774508896.html +0 -1
  38. data/spec/dummy/tmp/capybara/capybara-201503142131502672526321.html +0 -1
  39. data/spec/dummy/tmp/capybara/capybara-201503142132597161072575.html +0 -16
  40. data/spec/dummy/tmp/capybara/capybara-201503142147454003977122.html +0 -16
  41. data/spec/dummy/tmp/capybara/capybara-201503150030597512321952.html +0 -1
  42. data/spec/dummy/tmp/capybara/capybara-201503172332094559831059.html +0 -15
  43. data/spec/dummy/tmp/capybara/capybara-201503172332489943616503.html +0 -15
  44. data/spec/dummy/tmp/capybara/capybara-201503172333245353296202.html +0 -15
  45. data/spec/dummy/tmp/capybara/capybara-201503172335156567049015.html +0 -15
  46. data/spec/dummy/tmp/capybara/capybara-201503172339176031196898.html +0 -15
  47. data/spec/dummy/tmp/capybara/capybara-201503172340144947026095.html +0 -15
  48. data/spec/dummy/tmp/capybara/capybara-201503172341585213923875.html +0 -15
  49. data/spec/dummy/tmp/capybara/capybara-201503172342188836603353.html +0 -15
  50. data/spec/dummy/tmp/capybara/capybara-201503172344586782457691.html +0 -15
  51. data/spec/dummy/tmp/capybara/capybara-201503172346495241516033.html +0 -15
  52. data/spec/dummy/tmp/capybara/capybara-201503172354248621830336.html +0 -15
  53. data/spec/dummy/tmp/capybara/capybara-20150623002226753539811.html +0 -15
  54. data/spec/dummy/tmp/capybara/capybara-201507112215421960933759.html +0 -1
  55. data/spec/dummy/tmp/capybara/capybara-20150711221603434494315.html +0 -1
  56. data/spec/dummy/tmp/capybara/capybara-201507112216361494719582.html +0 -21
  57. data/spec/dummy/tmp/capybara/capybara-201507112233431710633186.html +0 -20
  58. data/spec/dummy/tmp/capybara/capybara-201507140024395867592984.html +0 -14
  59. data/spec/dummy/tmp/capybara/capybara-201507140036006205629508.html +0 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 605ca48dcffe6766bbbcb05ee79da68e50e0a605
4
- data.tar.gz: 84b8217ba7289109542a26f74cca461566c43616
3
+ metadata.gz: 52716de1c677f6ce21afc860a01e77f344044698
4
+ data.tar.gz: 356ea1bc8a34c7d72f0792794dcc01242fe9ecbd
5
5
  SHA512:
6
- metadata.gz: 1f142720f5b6388a9e04890c85589f5b50dd9260298a35de3502b234a02ff3e4f07a1cddbc0563212487e40c4dea9037949c0d4f4069b4d2146a9b16a2115128
7
- data.tar.gz: d2ab07b6852a6d869032b6f66b149b809882ed338bd85455ca4040c5c558e8fc24f868a6b80688c38c71f4af8ab78c2e35dc50da7902502067773afbafe5c344
6
+ metadata.gz: 579895bb751bcc14a30e191567d7a6c43ddad922dd89d7bc10c441841cbb6ad4364b192ee20b9c32f98742d4a82d3501731ac0e862d171db553209788324843d
7
+ data.tar.gz: d421b721c37802b4a4299b835cc3888117ebcb0ec9d203066bf90fd2a4f62472eef5f6699c6dc4b73148227d6ae65ef68026e837f96c60472bdfe71d66547eb9
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Nyauth
2
2
 
3
- Simple & modualbe authentication gem
3
+ Simple & modulable authentication gem
4
4
 
5
5
  [CHANGE LOG](https://github.com/ppworks/nyauth/blob/master/CHANGELOG.md)
6
6
 
@@ -8,13 +8,7 @@ module Nyauth
8
8
  if @default_response
9
9
  @default_response.call(options)
10
10
  else
11
- if Rails.version >= "5"
12
- controller.default_render(options) do
13
- raise ActionView::MissingTemplate.new([], "", [], true, [])
14
- end
15
- else
16
- controller.default_render(options)
17
- end
11
+ controller.render(options)
18
12
  end
19
13
  end
20
14
  end
data/lib/nyauth/rails.rb CHANGED
@@ -1,12 +1,6 @@
1
1
  require 'nyauth/route'
2
2
  module ActionDispatch::Routing
3
3
  class Mapper
4
- include Nyauth::Route
5
-
6
- def initialize_with_nyauth(*args)
7
- initialize_without_nyauth(*args)
8
- nyauth_concerns
9
- end
10
- alias_method_chain :initialize, :nyauth
4
+ prepend Nyauth::Route
11
5
  end
12
6
  end
data/lib/nyauth/route.rb CHANGED
@@ -1,5 +1,10 @@
1
1
  module Nyauth
2
2
  module Route
3
+ def initialize(*args)
4
+ super(*args)
5
+ nyauth_concerns
6
+ end
7
+
3
8
  def nyauth_concerns
4
9
  concern :nyauth_registrable do
5
10
  resource :registration, only: %i(new create)
@@ -1,3 +1,3 @@
1
1
  module Nyauth
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
@@ -41,4 +41,5 @@ Rails.application.configure do
41
41
  # config.action_view.raise_on_missing_translations = true
42
42
 
43
43
  config.action_mailer.default_url_options = { host: 'www.example.com' }
44
+ config.cache_store = :memory_store
44
45
  end
Binary file