sitepress-rails 3.1.3 → 3.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3591c53ea80a07772ac1cd0f99adb3ce860843e3c7c2812dfb74cbc9dae8612a
4
- data.tar.gz: f64dfdb7bd9a2e36901b1698cc65f5d3b9da8d7353f2e24d545d59ca57114b32
3
+ metadata.gz: 8e6ef711927c4283d7250f9edcb6efc80118fefdc0f85d0477194a0f363dbb19
4
+ data.tar.gz: 6430ce2fbd548de7f9a120326ed798a214b433398708830ac0c2d62928a1a42e
5
5
  SHA512:
6
- metadata.gz: 302bbfa697edc84526cbc4b66ec7200338db18275ce82f2eea40162e6b92ba49842934e04bb6351e4fea6d73e05e48ffad7a7d2334b2667276cd81fd87d8288d
7
- data.tar.gz: 5420ab9f275d7abcd680fba93d5f515cba18fbf9c805952fe09f66481a41e56639fed0431ffbb6603732005a09ca06330685a6170f83edf282140b8f99275661
6
+ metadata.gz: 9a50bbe5b0f97cff4a756da7501dd46656f594fc7a43ca075534dd7d5a1deab925bb51845a1dcdca4e71a44f8c89524cf81b2e83f12a835b157d207f5ce6fbac
7
+ data.tar.gz: 2b28bf5a1aa4ea05172882b1b12cfc5542cebef15cd5466f3ee05b4431524bf44091930c400b948d8c6b38fcc021451a1cc2800fc57903b295f7cd0bd728111e
@@ -18,6 +18,12 @@ module Sitepress
18
18
  load site_file if site_file
19
19
  end
20
20
 
21
+ # Set the path for the site configuration file.
22
+ paths.add "app/markdown", with: [
23
+ File.expand_path("./markdown"), # When Sitepress is launched via `sitepress server`.
24
+ "app/markdown" # When Sitepress is launched embedded in Rails project.
25
+ ], autoload: true
26
+
21
27
  # Load paths from `Sitepress#site` into rails so it can render views, helpers, etc. properly.
22
28
  initializer :set_sitepress_paths, before: :set_autoload_paths do |app|
23
29
  app.paths["app/helpers"].push site.helpers_path.expand_path
@@ -48,6 +54,7 @@ module Sitepress
48
54
  end
49
55
 
50
56
  private
57
+
51
58
  def sitepress_configuration
52
59
  Sitepress.configuration
53
60
  end
@@ -9,9 +9,12 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Brad Gessler"]
10
10
  spec.email = ["bradgessler@gmail.com"]
11
11
  spec.licenses = ["MIT"]
12
-
13
12
  spec.summary = %q{Sitepress rails integration.}
14
- spec.homepage = "https://github.com/sitepress/sitepress"
13
+ spec.homepage = "https://sitepress.cc/"
14
+
15
+ spec.metadata["homepage_uri"] = spec.homepage
16
+ spec.metadata["source_code_uri"] = "https://github.com/sitepress/sitepress"
17
+ spec.metadata["changelog_uri"] = "https://github.com/sitepress/sitepress/tags"
15
18
 
16
19
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
20
  spec.bindir = "exe"