remote_partial 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZGRkMzFiMGIyMmIzZWQ3YWU5NGJmMmE3ZjIxMzhmYmZiMTIyNGUxZQ==
4
+ NWQ4NDJjOWQxM2RmY2I0YzRiZTk2MDhkYjA0ZjIzMWIzYzA2Mjc3NA==
5
5
  data.tar.gz: !binary |-
6
- YTdlMWYzYzM5NTJlZWFjNDcyZWJlMTlhZDNjNGFkZWFmOTFkYWUyNw==
6
+ ODM1ODFmMzVjODc5ZGRmYjc2NjFiNzUxNTNmMWY1MTA1NmYwNGExYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YWE2ZjNmZTU2YjMwYzA4NzUwN2YxYWI1ZDJiNDE2OTU1ODM3ZjNkYThhYzRi
10
- ZDQzYzIxZTVjMmYxMWQwNGZlNjMwZTI2NTJjMjIyYjQzMDMzNmNhMTdkOTNk
11
- NGQ0MTUyZjc4ZTZhM2UyZjA5NThhOTA0OGFhYzE2NjdhNjg2MjY=
9
+ YzY3NThkZjNhZmQwYjdkYTBiOTAwZWExOTc1MWFhNmIyMjcyNTliZTNmMDZi
10
+ YjQ5NDk0NTI5NTY0MjU2MTEzNWI1YmFlYmE5NDVkYzUyMWZjMzBkOWE2ZmVm
11
+ MDA3Mzg0OTg0MzllYWFiMzU3OTZjZWM2MThhZGI5ODQwZTVkOGQ=
12
12
  data.tar.gz: !binary |-
13
- NTVkZGNiZTgxZDRhNTA1MWRkNjlkZmUxZDJlN2E4ZWU2NzU1M2M3MTA5NGQw
14
- NjgzMjc1ODhjNjVkNmZhOTM2MmMzYzBlZTVjNDRjNDZkNTM3YWI4YzM4NDE2
15
- N2QyMTA1ODhjZWMzMTY1ZGNjYzhkN2RiNzVkY2VlYTcxMWEyNzk=
13
+ MmExYzcyMmM2YmE2MjdiODE4Y2NkYjc0Y2NlMjVjMGQ0MjhkMjIyYTgzMzQ0
14
+ NDY0ZGExYzg2Y2E5NDYwMjBiMDJhYTk1ZTk2YjAwMTA0NmQ0YWVmZjFlZDUz
15
+ ODk0ZTVlNDFhY2NlMTZiZTcwOWVkN2ZlOTExNGY3YjA4NmM1Mzk=
@@ -30,10 +30,11 @@ With this defined:
30
30
 
31
31
  === Within a Rails environment
32
32
 
33
- The root is defined as Rails.root, and partials will be placed in the app/views
34
- folder. Paths relative to Rails.root will then be:
33
+ The root will be Rails.root, unless RemotePartial.root is explicitly defined.
35
34
 
36
- db/remote_partial --> location for yaml file storing state information
35
+ Partials will be placed in the app/views folder. Paths relative to root will then be:
36
+
37
+ db/remote_partial --> location for yaml file storing state information
37
38
  app/views/remote_partials --> output path, where partials will be created
38
39
 
39
40
  === Logging
@@ -10,7 +10,7 @@ module RemotePartial
10
10
 
11
11
  def self.partial_location
12
12
  if defined?(Rails)
13
- File.expand_path('app/views/remote_partials', Rails.root)
13
+ File.expand_path('app/views/remote_partials', root)
14
14
  else
15
15
  File.expand_path('remote_partials', root)
16
16
  end
@@ -1,14 +1,19 @@
1
1
  module RemotePartial
2
- VERSION = "0.7.2"
2
+ VERSION = "0.7.3"
3
3
  end
4
4
 
5
5
  # History
6
6
  # =======
7
7
  #
8
+ # 0.7.3 Improves folder location when root defined and Rails exists
9
+ # ------------------------------------------------------------------
10
+ # If a rails app was mounted within a rack app, the view path pointed
11
+ # at the mounted rails app location rather than being relative to the host
12
+ # rack app. This bug is fixed in this version.
13
+ #
8
14
  # 0.7.2 Adds facility to direct HTTP through proxy
9
15
  # ------------------------------------------------
10
16
  #
11
- #
12
17
  # 0.7.1 Ensures code works in standalone mode
13
18
  # -------------------------------------------
14
19
  # An additional require statement to load all the required libraries when not
@@ -133,3 +133,7 @@ I, [2013-11-26T08:04:39.077014 #3428] INFO -- : Preparing to test logging via a
133
133
  W, [2013-11-26T08:04:39.115809 #3428] WARN -- : Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
134
134
  I, [2013-11-26T08:04:39.198116 #3428] INFO -- : Preparing to test logging via assert_log_entry_added
135
135
  W, [2013-11-26T08:04:39.207608 #3428] WARN -- : Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
136
+ I, [2013-12-02T15:32:23.919684 #18410] INFO -- : Preparing to test logging via assert_log_entry_added
137
+ W, [2013-12-02T15:32:23.931269 #18410] WARN -- : Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
138
+ I, [2013-12-02T15:32:23.936440 #18410] INFO -- : Preparing to test logging via assert_log_entry_added
139
+ W, [2013-12-02T15:32:23.941199 #18410] WARN -- : Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remote_partial
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Nichols
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-26 00:00:00.000000000 Z
11
+ date: 2013-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri