bootstrap_haml_helpers 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/bootstrap_haml_helpers/component/base.rb +16 -1
- data/lib/bootstrap_haml_helpers/version.rb +1 -1
- metadata +21 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82236dc876f2d367ef3cfb20ae6f096f7ff7b51b
|
4
|
+
data.tar.gz: 0d0520d6a7005aeae58fbfa1c95e429b16ad049e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a59921fceb401471265645e9acbd73e28681d263e3e585ff4436d0743ecb0de91f777d2776515e947f4fb6d42ef8362ae269d3e87a6560df22021b6edb537ec4
|
7
|
+
data.tar.gz: 7ae3b48dc350558d00c1e6ca03cc5760f325c2df412b3eefb27b8f9f1fa3f78dfa5c0303e1a2fdc93071710a63a889ec04cb26d674a789028c455fa07e7e6c59
|
@@ -5,7 +5,6 @@ module BootstrapHamlHelpers
|
|
5
5
|
include InheritableTraits
|
6
6
|
traits :tag_name, :default_css_class, :partial_path
|
7
7
|
|
8
|
-
cattr_accessor :view_context
|
9
8
|
attr_accessor :attributes, :component_options, :content, :content_block, :content_string,
|
10
9
|
:controller, :output_buffer
|
11
10
|
|
@@ -31,6 +30,22 @@ module BootstrapHamlHelpers
|
|
31
30
|
def teardown_context
|
32
31
|
self.view_context = nil
|
33
32
|
end
|
33
|
+
|
34
|
+
def view_context
|
35
|
+
Thread.current[:view_context]
|
36
|
+
end
|
37
|
+
|
38
|
+
def view_context=(view_context)
|
39
|
+
Thread.current[:view_context] = view_context
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
def view_context
|
44
|
+
self.class.view_context
|
45
|
+
end
|
46
|
+
|
47
|
+
def view_context=(view_context)
|
48
|
+
self.class.view_context = view_context
|
34
49
|
end
|
35
50
|
|
36
51
|
def content_type
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap_haml_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seung-Hyo Choi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -42,70 +42,70 @@ dependencies:
|
|
42
42
|
name: haml
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: sass-rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: sass
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: sqlite3
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
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
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rspec-rails
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
description: Convenient, clean wrappers for Twitter Bootstrap components and scaffolding.
|
@@ -115,6 +115,9 @@ executables: []
|
|
115
115
|
extensions: []
|
116
116
|
extra_rdoc_files: []
|
117
117
|
files:
|
118
|
+
- MIT-LICENSE
|
119
|
+
- README.md
|
120
|
+
- Rakefile
|
118
121
|
- app/assets/javascripts/bootstrap_haml_helpers/index.js
|
119
122
|
- app/assets/stylesheets/bootstrap_haml_helpers/index.css.sass
|
120
123
|
- app/helpers/bootstrap_haml_helpers/application_helper.rb
|
@@ -122,16 +125,13 @@ files:
|
|
122
125
|
- app/models/bootstrap_haml_helpers/component/inheritable_traits.rb
|
123
126
|
- app/models/bootstrap_haml_helpers/components/progress_bar.rb
|
124
127
|
- app/models/bootstrap_haml_helpers/scaffolding/container.rb
|
128
|
+
- lib/bootstrap_haml_helpers.rb
|
125
129
|
- lib/bootstrap_haml_helpers/component.rb
|
126
130
|
- lib/bootstrap_haml_helpers/controller_helpers.rb
|
127
131
|
- lib/bootstrap_haml_helpers/engine.rb
|
128
132
|
- lib/bootstrap_haml_helpers/spec_view_helpers.rb
|
129
133
|
- lib/bootstrap_haml_helpers/version.rb
|
130
|
-
- lib/bootstrap_haml_helpers.rb
|
131
134
|
- lib/tasks/bootstrap_haml_helpers_tasks.rake
|
132
|
-
- MIT-LICENSE
|
133
|
-
- Rakefile
|
134
|
-
- README.md
|
135
135
|
homepage: http://www.lumosity.com
|
136
136
|
licenses: []
|
137
137
|
metadata: {}
|
@@ -141,17 +141,17 @@ require_paths:
|
|
141
141
|
- lib
|
142
142
|
required_ruby_version: !ruby/object:Gem::Requirement
|
143
143
|
requirements:
|
144
|
-
- -
|
144
|
+
- - ">="
|
145
145
|
- !ruby/object:Gem::Version
|
146
146
|
version: '0'
|
147
147
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
|
-
- -
|
149
|
+
- - ">="
|
150
150
|
- !ruby/object:Gem::Version
|
151
151
|
version: '0'
|
152
152
|
requirements: []
|
153
153
|
rubyforge_project:
|
154
|
-
rubygems_version: 2.
|
154
|
+
rubygems_version: 2.2.3
|
155
155
|
signing_key:
|
156
156
|
specification_version: 4
|
157
157
|
summary: Convenient, clean wrappers for Twitter Bootstrap components and scaffolding.
|