lissio 0.1.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,33 @@
1
+ require 'opal-spec'
2
+ require 'lissio'
3
+
4
+ ##
5
+ # Spec helpers
6
+ module OpalSpec
7
+ class Example
8
+ # Add some html to the document for tests to use. Code is added then
9
+ # removed before each example is run.
10
+ #
11
+ # describe "some feature" do
12
+ # html "<div>bar</div>"
13
+ #
14
+ # it "should have bar content" do
15
+ # # ...
16
+ # end
17
+ # end
18
+ #
19
+ # @param [String] html_string html content
20
+ def self.html(html_string = "")
21
+ html = %Q{<div id="vienna-spec-test-div">#{html_string}</div>}
22
+
23
+ before do
24
+ @_spec_html = Element.parse(html)
25
+ @_spec_html.append_to_body
26
+ end
27
+
28
+ after do
29
+ @_spec_html.remove
30
+ end
31
+ end
32
+ end
33
+ end
metadata ADDED
@@ -0,0 +1,154 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lissio
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0.beta1
5
+ platform: ruby
6
+ authors:
7
+ - meh.
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-12-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: opal
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 0.5.5
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 0.5.5
27
+ - !ruby/object:Gem::Dependency
28
+ name: opal-browser
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rack
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: opal-spec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: thor
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description: ".."
98
+ email: meh@schizofreni.co
99
+ executables: []
100
+ extensions: []
101
+ extra_rdoc_files: []
102
+ files:
103
+ - ".gitignore"
104
+ - Gemfile
105
+ - Gemfile.lock
106
+ - README.md
107
+ - Rakefile
108
+ - lib/lissio.rb
109
+ - lib/lissio/server.rb
110
+ - lissio.gemspec
111
+ - opal/lissio.rb
112
+ - opal/lissio/adapter.rb
113
+ - opal/lissio/adapter/rest.rb
114
+ - opal/lissio/adapter/storage.rb
115
+ - opal/lissio/application.rb
116
+ - opal/lissio/collection.rb
117
+ - opal/lissio/component.rb
118
+ - opal/lissio/component/alert.rb
119
+ - opal/lissio/component/container.rb
120
+ - opal/lissio/component/markdown.rb
121
+ - opal/lissio/component/tooltip.rb
122
+ - opal/lissio/model.rb
123
+ - opal/lissio/router.rb
124
+ - opal/lissio/version.rb
125
+ - spec/route_spec.rb
126
+ - spec/router_spec.rb
127
+ - spec/spec_helper.rb
128
+ homepage: https://github.com/meh/lissio
129
+ licenses: []
130
+ metadata: {}
131
+ post_install_message:
132
+ rdoc_options: []
133
+ require_paths:
134
+ - lib
135
+ required_ruby_version: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ required_rubygems_version: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - ">"
143
+ - !ruby/object:Gem::Version
144
+ version: 1.3.1
145
+ requirements: []
146
+ rubyforge_project:
147
+ rubygems_version: 2.1.5
148
+ signing_key:
149
+ specification_version: 4
150
+ summary: "."
151
+ test_files:
152
+ - spec/route_spec.rb
153
+ - spec/router_spec.rb
154
+ - spec/spec_helper.rb