backboneAX 0.0.1 → 0.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.
data/backboneAX.gemspec
CHANGED
|
@@ -4,7 +4,7 @@ require "backboneAX/version"
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |s|
|
|
6
6
|
s.name = "backboneAX"
|
|
7
|
-
s.version =
|
|
7
|
+
s.version = BackboneAX::VERSION
|
|
8
8
|
s.authors = ["Chris Douglas"]
|
|
9
9
|
s.email = ["dougo.chris@gmail.com"]
|
|
10
10
|
s.homepage = "https://github.com/dougochris/backboneAX"
|
|
@@ -86,20 +86,6 @@ module BackboneAX
|
|
|
86
86
|
end
|
|
87
87
|
end
|
|
88
88
|
|
|
89
|
-
def bx_field_switch(label, field_id, options = {})
|
|
90
|
-
capture_haml do
|
|
91
|
-
haml_tag(:div, options.merge({class: 'switch', id: field_id})) do
|
|
92
|
-
haml_tag(:div, {class: 'cb-enable'}) do
|
|
93
|
-
haml_tag(:span, 'On')
|
|
94
|
-
end
|
|
95
|
-
haml_tag(:div, {class: 'cb-disable'}) do
|
|
96
|
-
haml_tag(:span, 'Off')
|
|
97
|
-
end
|
|
98
|
-
haml_tag(:input, options.merge({class: 'hide', type: 'checkbox', id: field_id}))
|
|
99
|
-
end
|
|
100
|
-
end
|
|
101
|
-
end
|
|
102
|
-
|
|
103
89
|
#BUTTONS
|
|
104
90
|
def bx_btn(title, field_id, options = {})
|
|
105
91
|
capture_haml do
|
|
@@ -182,20 +168,6 @@ module BackboneAX
|
|
|
182
168
|
end
|
|
183
169
|
end
|
|
184
170
|
|
|
185
|
-
def bx_cg_switch(label, field_id, options = {})
|
|
186
|
-
bx_cg_group(label, field_id, options) do
|
|
187
|
-
haml_tag(:div, options.merge({class: 'switch', id: field_id})) do
|
|
188
|
-
haml_tag(:div, {class: 'cb-enable'}) do
|
|
189
|
-
haml_tag(:span, 'On')
|
|
190
|
-
end
|
|
191
|
-
haml_tag(:div, {class: 'cb-disable'}) do
|
|
192
|
-
haml_tag(:span, 'Off')
|
|
193
|
-
end
|
|
194
|
-
haml_tag(:input, options.merge({class: 'hide', type: 'checkbox', id: field_id}))
|
|
195
|
-
end
|
|
196
|
-
end
|
|
197
|
-
end
|
|
198
|
-
|
|
199
171
|
protected
|
|
200
172
|
def bx_cg_group(label, field_id, options = {}, &block)
|
|
201
173
|
capture_haml do
|
data/lib/backboneAX/version.rb
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module
|
|
2
|
-
VERSION = "0.0.
|
|
1
|
+
module BackboneAX
|
|
2
|
+
VERSION = "0.0.2"
|
|
3
3
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: backboneAX
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-02-
|
|
12
|
+
date: 2012-02-20 00:00:00.000000000Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: backbone Application Extensions for cleaner application development
|
|
15
15
|
email:
|
|
@@ -55,7 +55,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
55
55
|
version: '0'
|
|
56
56
|
segments:
|
|
57
57
|
- 0
|
|
58
|
-
hash:
|
|
58
|
+
hash: 3885906663943768990
|
|
59
59
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
60
|
none: false
|
|
61
61
|
requirements:
|
|
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
64
64
|
version: '0'
|
|
65
65
|
segments:
|
|
66
66
|
- 0
|
|
67
|
-
hash:
|
|
67
|
+
hash: 3885906663943768990
|
|
68
68
|
requirements: []
|
|
69
69
|
rubyforge_project: backboneAX
|
|
70
70
|
rubygems_version: 1.8.10
|