cells-rails 0.0.7 → 0.0.8

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05ee3c22a3ba550a3b49e0211f09027266ba2b1d
4
- data.tar.gz: 2138fec9accdbe789f88899b84458e7c605c9992
3
+ metadata.gz: c14edde2815318b76d6600a5d9990d01453450aa
4
+ data.tar.gz: f9ab15d2448aea4ddc811e5a8df2b4394cbf8368
5
5
  SHA512:
6
- metadata.gz: 09e7bd48a9fec96bff53f3243323412d655c7a5b9c5b2b23022c60e5926e4ec5da180badc27bf59e04335fa0de1b69b42336a4b76355e601608968e87a605bd1
7
- data.tar.gz: 46282c8f28d538c0984dd857ba67e8ba0f35a6153d275475077c85fe45d0af87b4fbf16fa11906878e2c02a3b05e7c2b7098ad45b2c904fb6d039e219977c3eb
6
+ metadata.gz: cc631beedab021077e9989779e8d7db92e411863521ead73daea5adb2f0dde685fdae628df903bc6dedc030de70e7835f4467f17f4ae82079cf1abac44f71d8e
7
+ data.tar.gz: 02213c556a58b2f3e8ba7d2a5a41d3425ba9192ef92c779f54001e8e603f9b9d79bd15d94add724bcf3b6bb9913ba412e5f95d3d63c6e61c1d0899f5f2231618
@@ -1,6 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - ruby-head
3
+ - 2.3
4
4
  - 2.2
5
5
  - 2.1
6
6
  - 2.0.0
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.0.8
2
+
3
+ * Fix testing for `rspec-cells` in combination with Rails 5.1. Thanks @tiagoamaro.
4
+
1
5
  ## 0.0.7
2
6
 
3
7
  * Add `config.cells.include_template_engine = false` to turn off automatic
@@ -20,6 +20,7 @@ module Cell
20
20
  compute_asset_extname
21
21
  compute_asset_host
22
22
  compute_asset_path
23
+ favicon_link_tag
23
24
  font_path
24
25
  font_url
25
26
  image_path
@@ -6,15 +6,19 @@ module Cell
6
6
  return unless controller_class
7
7
 
8
8
  controller_class.new.tap do |ctl|
9
- ctl.request = action_controller_test_request
9
+ ctl.request = action_controller_test_request(controller_class)
10
10
  ctl.instance_variable_set :@routes, ::Rails.application.routes.url_helpers
11
11
  end
12
12
  end
13
13
 
14
- def action_controller_test_request
15
- if ::Rails.version.start_with?('5')
16
- ::ActionController::TestRequest.create
17
- else
14
+ def action_controller_test_request(controller_class)
15
+ if ::Rails::VERSION::MAJOR >= 5
16
+ if ::Rails::VERSION::MINOR >= 1 # ~> 5.1
17
+ ::ActionController::TestRequest.create(controller_class)
18
+ else # 5.0
19
+ ::ActionController::TestRequest.create
20
+ end
21
+ else #< 5
18
22
  ::ActionController::TestRequest.new
19
23
  end
20
24
  end
@@ -54,7 +54,7 @@ module Cell
54
54
  end
55
55
  end
56
56
 
57
- IncludeTemplateModules = -> (app) do
57
+ IncludeTemplateModules = ->(app) do
58
58
  return if app.config.cells.include_template_engine == false
59
59
 
60
60
  # yepp, this is happening. saves me a lot of coding in each extension.
@@ -1,5 +1,5 @@
1
1
  module Cells
2
2
  module Rails
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cells-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-28 00:00:00.000000000 Z
11
+ date: 2017-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cells