homeostasis 0.0.19 → 0.0.20

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.
Files changed (5) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +9 -11
  3. data/lib/homeostasis.rb +8 -3
  4. data/lib/version.rb +1 -1
  5. metadata +14 -22
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 29dcc2b4397bb7c515c5d67b0c4023582e35c581
4
+ data.tar.gz: 0ad4251a352413f53195c03bcd62cde40c7f2680
5
+ SHA512:
6
+ metadata.gz: 915f5d2f633ffbee0129823ec48c87f63c19a843801313558c5ef93db32353ce7cb1949f352707a8aff9acad4f2e066b9a33e4c94aba0bbf5a53a7b387e1d4d3
7
+ data.tar.gz: bfb11f8694edebfc353a91b2c66b8906c52559828aac6258bb973324551f75319d66279c87bd8c977344ac24b44f417324b5405f7ca33fa48672dad2a3b5e708
data/README.md CHANGED
@@ -102,14 +102,6 @@ In your views:
102
102
  %h1= front[:title]
103
103
  %p= front[:desc]
104
104
 
105
- Note the 2-space indentation is required. This works for HTML, Markdown, and
106
- ERB comments as well:
107
-
108
- ---
109
- :title: Lorem Ipsum
110
- ---
111
- Continue as normal
112
-
113
105
  You can configure which files to check in `controller.rb`. Here's the default:
114
106
 
115
107
  Homeostasis::Front.config(:matcher => /\.erb|\.haml|\.html|\.md$/)
@@ -182,9 +174,15 @@ slashes to URLs.
182
174
  TODO
183
175
  ====
184
176
 
185
- * override `render` to handle multi rendering
186
- * make each plugin optional
187
- * setup homeostasis website
177
+ * ruby 2.1 support
178
+ * fix directory structure to use standard gem directories
179
+ * fix front matter yaml to handle symbols/strings (look into Hashie)
180
+ * fix filenames like 'jquery-1.9.1.js'
181
+ * fix `render` to work with Front/Multi plugins (maybe override Tilt#render? instead of using hooks)
182
+ * fix `render` to handle multi rendering
183
+ * fix sitemap "." in URL
184
+ * fix images in RSS
185
+ * fix plugin architecture to make each optional
188
186
 
189
187
  License
190
188
  =======
data/lib/homeostasis.rb CHANGED
@@ -42,6 +42,10 @@ module Homeostasis
42
42
  File.basename(path).split('.')[1..-1].reverse.map { |ext| Tilt[ext] }.compact
43
43
  end
44
44
 
45
+ def self.tilt_exts_for(path)
46
+ File.basename(path).split('.')[1..-1].reverse.select { |ext| Tilt[ext] }
47
+ end
48
+
45
49
  def self.read(path)
46
50
  File.read(path, encoding: 'UTF-8')
47
51
  end
@@ -284,7 +288,8 @@ module Homeostasis
284
288
 
285
289
  def self.preamble_load(path)
286
290
  return nil if path.nil? || path !~ @@matcher
287
- Preamble.load(path)
291
+ data = Preamble.load(path)
292
+ [data.metadata, data.content]
288
293
  rescue
289
294
  [{}, Helpers.read(path)]
290
295
  end
@@ -321,7 +326,7 @@ module Homeostasis
321
326
 
322
327
  def before_render
323
328
  if @stasis.path && !ignore?(@stasis.path)
324
- exts = File.basename(@stasis.path).split('.')[2..-1]
329
+ exts = Helpers.tilt_exts_for(@stasis.path)
325
330
  return if exts.nil? || exts.length < 2
326
331
 
327
332
  yaml, body = Front.preamble_load(@stasis.path)
@@ -353,7 +358,7 @@ module Homeostasis
353
358
  def self.drop_tilt_exts(path)
354
359
  dirname = File.dirname(path)
355
360
  basename = File.basename(path)
356
- exts = basename.split('.')[2..-1]
361
+ exts = Helpers.tilt_exts_for(basename)
357
362
  return path if exts.nil? || exts.length < 1
358
363
 
359
364
  exts.each do |ext|
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Homeostasis
2
- VERSION = '0.0.19'
2
+ VERSION = '0.0.20'
3
3
  end
metadata CHANGED
@@ -1,62 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: homeostasis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.19
5
- prerelease:
4
+ version: 0.0.20
6
5
  platform: ruby
7
6
  authors:
8
7
  - Hugh Bien
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-09-22 00:00:00.000000000 Z
11
+ date: 2014-08-12 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: stasis
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: preamble
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: tilt
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  description: Provides asset stamping using git revisions, environments, and a few
@@ -69,30 +62,29 @@ extra_rdoc_files: []
69
62
  files:
70
63
  - LICENSE.md
71
64
  - README.md
72
- - lib/version.rb
73
65
  - lib/homeostasis.rb
66
+ - lib/version.rb
74
67
  homepage: https://github.com/hughbien/homeostasis
75
68
  licenses: []
69
+ metadata: {}
76
70
  post_install_message:
77
71
  rdoc_options: []
78
72
  require_paths:
79
73
  - lib
80
74
  required_ruby_version: !ruby/object:Gem::Requirement
81
- none: false
82
75
  requirements:
83
- - - ! '>='
76
+ - - ">="
84
77
  - !ruby/object:Gem::Version
85
78
  version: '0'
86
79
  required_rubygems_version: !ruby/object:Gem::Requirement
87
- none: false
88
80
  requirements:
89
- - - ! '>='
81
+ - - ">="
90
82
  - !ruby/object:Gem::Version
91
83
  version: 1.3.6
92
84
  requirements: []
93
85
  rubyforge_project:
94
- rubygems_version: 1.8.23
86
+ rubygems_version: 2.2.0
95
87
  signing_key:
96
- specification_version: 3
88
+ specification_version: 4
97
89
  summary: Stasis plugin for asset stamping and more.
98
90
  test_files: []