spirit 0.1.0.pre.2 → 0.2

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.
@@ -1,6 +1,7 @@
1
1
  # ~*~ encoding: utf-8 ~*~
2
2
  require 'active_support/core_ext/hash'
3
3
  require 'active_support/core_ext/string'
4
+ require 'yaml'
4
5
 
5
6
  module Spirit
6
7
 
@@ -30,7 +31,7 @@ module Spirit
30
31
  # @param [String] source
31
32
  # @return [Manifest] manifest
32
33
  def self.load(source)
33
- new YAML.load source
34
+ new ::YAML.load source
34
35
  rescue ::Psych::SyntaxError => e
35
36
  raise ManifestError, 'Unexpected syntax error - ' + e.message
36
37
  end
@@ -39,7 +40,7 @@ module Spirit
39
40
  # @param [String] path
40
41
  # @return [Manifest] manifest
41
42
  def self.load_file(path)
42
- File.open(path, 'r:utf-8') { |f| new YAML.load f.read }
43
+ File.open(path, 'r:utf-8') { |f| new ::YAML.load f.read }
43
44
  rescue ::Psych::SyntaxError => e
44
45
  raise ManifestError, 'Unexpected syntax error - ' + e.message
45
46
  end
@@ -24,7 +24,9 @@ module Spirit
24
24
 
25
25
  # Renders the navigation bar in HTML.
26
26
  def render(locals={})
27
- super locals.merge(sections: @sections)
27
+ # FIXME disabled for now
28
+ ''
29
+ # super locals.merge(sections: @sections)
28
30
  end
29
31
 
30
32
  end
@@ -1,4 +1,4 @@
1
1
  # ~*~ encoding: utf-8 ~*~
2
2
  module Spirit
3
- VERSION = '0.1.0.pre.2'
3
+ VERSION = '0.2'
4
4
  end
@@ -2,4 +2,4 @@
2
2
  -haml_tag ('h%d' % level).to_sym do
3
3
  %a.anchor{name: name, href: '#' + name, 'data-magellan-destination' => name}
4
4
  %i.foundicon-paper-clip
5
- =text
5
+ = text
@@ -6,11 +6,11 @@
6
6
  %p= question
7
7
 
8
8
  .row.collapse
9
- .ten.mobile-three.columns
9
+ .large-10.small-3.columns
10
10
  -options.each do |value, label|
11
11
  %label{for: 'answer'}
12
12
  %input{name: 'answer', type: 'radio', value: value}
13
13
  = label
14
- .two.mobile-one.columns
14
+ .large-2.small-1.columns
15
15
  %a.button.submit.small.expand.postfix.radius{href: '#'} Submit
16
16
 
@@ -6,7 +6,7 @@
6
6
  %p= question
7
7
 
8
8
  .row.collapse
9
- .ten.mobile-three.columns
9
+ .large-10.small-3.columns
10
10
  %input{name: 'answer', type: 'text'}
11
- .two.mobile-one.columns
11
+ .large-2.small-1.columns
12
12
  %a.button.small.submit.expand.postfix.radius{href: '#'} Submit
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spirit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.2
5
- prerelease: 6
4
+ version: '0.2'
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jiunn Haur Lim
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-27 00:00:00.000000000 Z
12
+ date: 2013-03-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: haml
@@ -239,16 +239,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
239
239
  version: '0'
240
240
  segments:
241
241
  - 0
242
- hash: -1724555947133005026
242
+ hash: 96703733558518260
243
243
  required_rubygems_version: !ruby/object:Gem::Requirement
244
244
  none: false
245
245
  requirements:
246
- - - ! '>'
246
+ - - ! '>='
247
247
  - !ruby/object:Gem::Version
248
- version: 1.3.1
248
+ version: '0'
249
+ segments:
250
+ - 0
251
+ hash: 96703733558518260
249
252
  requirements: []
250
253
  rubyforge_project:
251
- rubygems_version: 1.8.25
254
+ rubygems_version: 1.8.24
252
255
  signing_key:
253
256
  specification_version: 3
254
257
  summary: Parses Genie Markup Language