sitepress-rails 3.1.2 → 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: 6c58152c6114a8b56271090b027096f9eb411e4d2e6eedb4811352b831d4be73
4
- data.tar.gz: b6535af5b029475d05e4e2fc9a3354a41b6f8d33d2533eddd1119f8f080e7409
3
+ metadata.gz: 8e6ef711927c4283d7250f9edcb6efc80118fefdc0f85d0477194a0f363dbb19
4
+ data.tar.gz: 6430ce2fbd548de7f9a120326ed798a214b433398708830ac0c2d62928a1a42e
5
5
  SHA512:
6
- metadata.gz: 75ebd2f408e8510263741b33052db92da2b91510bad929cc5f1770134666dca9ee08bccf0b0ae4bad668f8683209a4ee148e5fd68ce5240c73b46ac7a8b48338
7
- data.tar.gz: 9aa98bcba2c6f0332e1c5e7ef71986c40d3cb3a84cd8e97efc32fe811a6e9ff557384fe3e89fa4dbcbe4fc1852a97ad5cd26945b8178bcd4de0bba03469683ac
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
@@ -10,5 +10,10 @@ module Sitepress
10
10
  route "sitepress_root"
11
11
  route "sitepress_pages"
12
12
  end
13
+
14
+ def append_sitepress_path_to_tailwind_config
15
+ inject_into_file 'config/tailwind.config.js', ",\n './app/content/**/*.{erb,haml,html,slim,rb}'",
16
+ after: " './app/views/**/*.{erb,haml,html,slim}'"
17
+ end
13
18
  end
14
19
  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"