wrap_it 0.1.5 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +17 -11
- data/.rspec +2 -0
- data/Gemfile +0 -3
- data/Gemfile.rails4 +5 -0
- data/Gemfile.sinatra +5 -0
- data/README.md +138 -24
- data/Rakefile +14 -1
- data/lib/wrap_it/base.rb +47 -20
- data/lib/wrap_it/callbacks.rb +10 -5
- data/lib/wrap_it/container.rb +91 -38
- data/lib/wrap_it/enums.rb +1 -1
- data/lib/wrap_it/frameworks.rb +24 -0
- data/lib/wrap_it/helpers.rb +74 -0
- data/lib/wrap_it/module_helpers.rb +23 -0
- data/lib/wrap_it/sections.rb +81 -0
- data/lib/wrap_it/switches.rb +11 -10
- data/lib/wrap_it/text_container.rb +6 -1
- data/lib/wrap_it/version.rb +1 -1
- data/lib/wrap_it.rb +9 -63
- data/log/development.log +174 -0
- data/sections_explained.md +70 -0
- data/spec/frameworks/log/development.log +1633 -0
- data/spec/frameworks/rails_app.rb +61 -0
- data/spec/frameworks/sinatra_app.rb +32 -0
- data/spec/{rails → integration}/base_spec.rb +7 -7
- data/spec/integration/container_spec.rb +92 -0
- data/spec/integration/examples_spec.rb +54 -0
- data/spec/integration/text_container_spec.rb +13 -0
- data/spec/lib/base_spec.rb +0 -6
- data/spec/lib/container_spec.rb +1 -6
- data/spec/lib/helpers_spec.rb +26 -0
- data/spec/lib/html_class_spec.rb +2 -2
- data/spec/lib/sections_spec.rb +72 -0
- data/spec/lib/text_container_spec.rb +19 -0
- data/spec/spec_helper.rb +8 -0
- data/spec/support/example_groups/integration_example_group.rb +72 -0
- data/spec/support/example_groups/wrap_it_example_group.rb +6 -4
- data/wrap_it.gemspec +7 -4
- metadata +49 -25
- data/spec/internal/log/test.log +0 -619
- data/spec/rails/container_spec.rb +0 -30
- data/spec/support/example_groups/rails_example_group.rb +0 -79
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wrap_it
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexey Ovchinnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '10.1'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '10.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: redcarpet
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,42 +58,42 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: '0.8'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: '0.8'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ~>
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '2.14'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ~>
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '2.14'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rspec-html-matchers
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ~>
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
89
|
+
version: '0.4'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ~>
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
96
|
+
version: '0.4'
|
97
97
|
description: Set of classes and modules for creating HTML helpers
|
98
98
|
email:
|
99
99
|
- alexiss@cybernetlab.ru
|
@@ -102,8 +102,11 @@ extensions: []
|
|
102
102
|
extra_rdoc_files: []
|
103
103
|
files:
|
104
104
|
- .gitignore
|
105
|
+
- .rspec
|
105
106
|
- .rubocop.yml
|
106
107
|
- Gemfile
|
108
|
+
- Gemfile.rails4
|
109
|
+
- Gemfile.sinatra
|
107
110
|
- README.md
|
108
111
|
- Rakefile
|
109
112
|
- config.ru
|
@@ -114,36 +117,50 @@ files:
|
|
114
117
|
- lib/wrap_it/container.rb
|
115
118
|
- lib/wrap_it/derived_attributes.rb
|
116
119
|
- lib/wrap_it/enums.rb
|
120
|
+
- lib/wrap_it/frameworks.rb
|
121
|
+
- lib/wrap_it/helpers.rb
|
117
122
|
- lib/wrap_it/html_class.rb
|
118
123
|
- lib/wrap_it/html_data.rb
|
119
124
|
- lib/wrap_it/link.rb
|
125
|
+
- lib/wrap_it/module_helpers.rb
|
120
126
|
- lib/wrap_it/no_rails.rb
|
121
127
|
- lib/wrap_it/rails.rb
|
128
|
+
- lib/wrap_it/sections.rb
|
122
129
|
- lib/wrap_it/switches.rb
|
123
130
|
- lib/wrap_it/text_container.rb
|
124
131
|
- lib/wrap_it/version.rb
|
125
|
-
-
|
132
|
+
- log/development.log
|
133
|
+
- sections_explained.md
|
134
|
+
- spec/frameworks/log/development.log
|
135
|
+
- spec/frameworks/rails_app.rb
|
136
|
+
- spec/frameworks/sinatra_app.rb
|
137
|
+
- spec/integration/base_spec.rb
|
138
|
+
- spec/integration/container_spec.rb
|
139
|
+
- spec/integration/examples_spec.rb
|
140
|
+
- spec/integration/text_container_spec.rb
|
126
141
|
- spec/lib/arguments_array_spec.rb
|
127
142
|
- spec/lib/base_spec.rb
|
128
143
|
- spec/lib/callbacks_spec.rb
|
129
144
|
- spec/lib/container_spec.rb
|
130
145
|
- spec/lib/derived_attributes_spec.rb
|
131
146
|
- spec/lib/enums_spec.rb
|
147
|
+
- spec/lib/helpers_spec.rb
|
132
148
|
- spec/lib/html_class_spec.rb
|
133
149
|
- spec/lib/html_data_spec.rb
|
134
150
|
- spec/lib/link_spec.rb
|
151
|
+
- spec/lib/sections_spec.rb
|
135
152
|
- spec/lib/switches_spec.rb
|
136
|
-
- spec/
|
137
|
-
- spec/rails/container_spec.rb
|
153
|
+
- spec/lib/text_container_spec.rb
|
138
154
|
- spec/spec_helper.rb
|
139
|
-
- spec/support/example_groups/
|
155
|
+
- spec/support/example_groups/integration_example_group.rb
|
140
156
|
- spec/support/example_groups/wrap_it_example_group.rb
|
141
157
|
- spec/support/shared_examples/base_module.rb
|
142
158
|
- wrap_it.gemspec
|
143
159
|
homepage: https://github.com/cybernetlab/wrap_it
|
144
160
|
licenses:
|
145
161
|
- MIT
|
146
|
-
metadata:
|
162
|
+
metadata:
|
163
|
+
issue_tracker: https://github.com/cybernetlab/wrap_it/issues
|
147
164
|
post_install_message:
|
148
165
|
rdoc_options: []
|
149
166
|
require_paths:
|
@@ -167,21 +184,28 @@ summary: This library provides set of classes and modules with simple DSL for qu
|
|
167
184
|
and easy creating html helpers with your own DSL. It's usefull for implementing
|
168
185
|
CSS frameworks, or making your own.
|
169
186
|
test_files:
|
170
|
-
- spec/
|
187
|
+
- spec/frameworks/log/development.log
|
188
|
+
- spec/frameworks/rails_app.rb
|
189
|
+
- spec/frameworks/sinatra_app.rb
|
190
|
+
- spec/integration/base_spec.rb
|
191
|
+
- spec/integration/container_spec.rb
|
192
|
+
- spec/integration/examples_spec.rb
|
193
|
+
- spec/integration/text_container_spec.rb
|
171
194
|
- spec/lib/arguments_array_spec.rb
|
172
195
|
- spec/lib/base_spec.rb
|
173
196
|
- spec/lib/callbacks_spec.rb
|
174
197
|
- spec/lib/container_spec.rb
|
175
198
|
- spec/lib/derived_attributes_spec.rb
|
176
199
|
- spec/lib/enums_spec.rb
|
200
|
+
- spec/lib/helpers_spec.rb
|
177
201
|
- spec/lib/html_class_spec.rb
|
178
202
|
- spec/lib/html_data_spec.rb
|
179
203
|
- spec/lib/link_spec.rb
|
204
|
+
- spec/lib/sections_spec.rb
|
180
205
|
- spec/lib/switches_spec.rb
|
181
|
-
- spec/
|
182
|
-
- spec/rails/container_spec.rb
|
206
|
+
- spec/lib/text_container_spec.rb
|
183
207
|
- spec/spec_helper.rb
|
184
|
-
- spec/support/example_groups/
|
208
|
+
- spec/support/example_groups/integration_example_group.rb
|
185
209
|
- spec/support/example_groups/wrap_it_example_group.rb
|
186
210
|
- spec/support/shared_examples/base_module.rb
|
187
211
|
has_rdoc:
|