spirit 0.1.0.pre.2 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/spirit/manifest.rb +3 -2
- data/lib/spirit/render/templates/navigation.rb +3 -1
- data/lib/spirit/version.rb +1 -1
- data/views/header.haml +1 -1
- data/views/multi.haml +2 -2
- data/views/short.haml +2 -2
- metadata +10 -7
data/lib/spirit/manifest.rb
CHANGED
@@ -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
|
data/lib/spirit/version.rb
CHANGED
data/views/header.haml
CHANGED
data/views/multi.haml
CHANGED
@@ -6,11 +6,11 @@
|
|
6
6
|
%p= question
|
7
7
|
|
8
8
|
.row.collapse
|
9
|
-
.
|
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
|
-
.
|
14
|
+
.large-2.small-1.columns
|
15
15
|
%a.button.submit.small.expand.postfix.radius{href: '#'} Submit
|
16
16
|
|
data/views/short.haml
CHANGED
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.
|
5
|
-
prerelease:
|
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-
|
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:
|
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:
|
248
|
+
version: '0'
|
249
|
+
segments:
|
250
|
+
- 0
|
251
|
+
hash: 96703733558518260
|
249
252
|
requirements: []
|
250
253
|
rubyforge_project:
|
251
|
-
rubygems_version: 1.8.
|
254
|
+
rubygems_version: 1.8.24
|
252
255
|
signing_key:
|
253
256
|
specification_version: 3
|
254
257
|
summary: Parses Genie Markup Language
|