bootstrap_haml_helpers 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc8b968fe6c95572bb117b884f6a46e457232ca0
4
- data.tar.gz: 22d253e9dda7202fea56ee64000bfbe832d4c27d
3
+ metadata.gz: 998f77effeaf0b78c17734ba0331d1a4c10b6bb7
4
+ data.tar.gz: bdaba40007af7982967fbf0f8fbf21b1bc0b62c7
5
5
  SHA512:
6
- metadata.gz: 5a3b3a758d2db12661a500caff6d26097d3a3d254a8de9044238ae74bab3fb5bc379a534f81bc5acc3bb00311a4617d9c512e04ae5c3246c81b319631002a2fb
7
- data.tar.gz: a711f259f59eddfc99c82c38e423f705c0baa31ecd5b39a711d28b67708766b556cd556084eb1d62bee6f7623a107891d55a6f11fa2bcae8abaebeb9a2a5ecd8
6
+ metadata.gz: 32f26dd4fd40ef5e3021c120fbaf903887641e6cce3ee86d17b5524dc93fd1c608d14bf2b20a06a7223655cef776e862bb15ea9b02ec14345b3478deb93a6243
7
+ data.tar.gz: 3268c085ffeec3ab54bf500cbf85386afb5f22d1e161b17e37f7f6cd3a6758e3fb8fa4537874b07f64321382048862128927a99a0761264390493951afed8f25
data/README.md CHANGED
@@ -14,7 +14,7 @@ To integrate our gem into your application, follow these steps:
14
14
 
15
15
  CI
16
16
  ----
17
- bootstrap_haml_helpers runs on [Travis CI](https://magnum.travis-ci.com/lumoslabs/bootstrap_haml_helpers)
17
+ bootstrap_haml_helpers runs on public [Travis CI](https://magnum.travis-ci.com/lumoslabs/bootstrap_haml_helpers).
18
18
 
19
19
  Versioning
20
20
  ----
@@ -4,5 +4,9 @@ module BootstrapHamlHelpers
4
4
  def container(*args, &block)
5
5
  BootstrapHamlHelpers::Scaffolding::Container.build(*args, &block)
6
6
  end
7
+
8
+ def progress_bar(*args, &blk)
9
+ BootstrapHamlHelpers::Components::ProgressBar.build(*args, &blk)
10
+ end
7
11
  end
8
12
  end
@@ -0,0 +1,28 @@
1
+ module BootstrapHamlHelpers::Components
2
+ class ProgressBar < BootstrapHamlHelpers::Component::Base
3
+ tag_name :div
4
+ default_css_class 'progress'
5
+
6
+ def initialize(options = {}, &block)
7
+ striped = options.delete(:striped)
8
+ animated = options.delete(:animated)
9
+ type = options.delete(:type)
10
+
11
+ super(options, &block)
12
+
13
+ add_attribute(:class, "progress-striped") if striped
14
+ add_attribute(:class, "progress-striped active") if animated
15
+ add_attribute(:class, "progress-#{type}") if type
16
+
17
+ end
18
+
19
+ def bar(percentage, *args, &block)
20
+ options = args.extract_options!
21
+
22
+ type = options.delete(:type)
23
+ type_string = " bar-#{type}" if type
24
+ view_context.content_tag(:div, nil, class: "bar#{type_string}", style: "width: #{percentage}%")
25
+ end
26
+
27
+ end
28
+ end
@@ -1,11 +1,10 @@
1
1
  require 'rails'
2
2
  require 'bootstrap_haml_helpers/engine'
3
3
 
4
- require "compass-rails"
5
- require "compass"
6
- require 'haml'
7
4
  require 'sass-rails'
5
+ require 'sass'
8
6
  require 'bootstrap-sass'
7
+ require 'haml'
9
8
 
10
9
  module BootstrapHamlHelpers
11
10
  end
@@ -1,3 +1,3 @@
1
1
  module BootstrapHamlHelpers
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap_haml_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
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: 2014-09-09 00:00:00.000000000 Z
11
+ date: 2015-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,70 +30,56 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 2.3.1.0
33
+ version: 2.3.1.3
34
34
  type: :runtime
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: 2.3.1.0
40
+ version: 2.3.1.3
41
41
  - !ruby/object:Gem::Dependency
42
- name: compass-rails
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ~>
46
- - !ruby/object:Gem::Version
47
- version: 1.0.3
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ~>
53
- - !ruby/object:Gem::Version
54
- version: 1.0.3
55
- - !ruby/object:Gem::Dependency
56
- name: compass
42
+ name: haml
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
45
  - - ~>
60
46
  - !ruby/object:Gem::Version
61
- version: 0.12.0
47
+ version: 3.1.7
62
48
  type: :runtime
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
52
  - - ~>
67
53
  - !ruby/object:Gem::Version
68
- version: 0.12.0
54
+ version: 3.1.7
69
55
  - !ruby/object:Gem::Dependency
70
- name: haml
56
+ name: sass-rails
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
59
  - - ~>
74
60
  - !ruby/object:Gem::Version
75
- version: 3.1.7
61
+ version: '3.2'
76
62
  type: :runtime
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
66
  - - ~>
81
67
  - !ruby/object:Gem::Version
82
- version: 3.1.7
68
+ version: '3.2'
83
69
  - !ruby/object:Gem::Dependency
84
- name: sass-rails
70
+ name: sass
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
- - - ~>
73
+ - - '='
88
74
  - !ruby/object:Gem::Version
89
- version: 3.2.5
75
+ version: 3.2.19
90
76
  type: :runtime
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
- - - ~>
80
+ - - '='
95
81
  - !ruby/object:Gem::Version
96
- version: 3.2.5
82
+ version: 3.2.19
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: sqlite3
99
85
  requirement: !ruby/object:Gem::Requirement
@@ -134,6 +120,7 @@ files:
134
120
  - app/helpers/bootstrap_haml_helpers/application_helper.rb
135
121
  - app/models/bootstrap_haml_helpers/component/base.rb
136
122
  - app/models/bootstrap_haml_helpers/component/inheritable_traits.rb
123
+ - app/models/bootstrap_haml_helpers/components/progress_bar.rb
137
124
  - app/models/bootstrap_haml_helpers/scaffolding/container.rb
138
125
  - lib/bootstrap_haml_helpers/controller_helpers.rb
139
126
  - lib/bootstrap_haml_helpers/engine.rb
@@ -168,4 +155,3 @@ signing_key:
168
155
  specification_version: 4
169
156
  summary: Convenient, clean wrappers for Twitter Bootstrap components and scaffolding.
170
157
  test_files: []
171
- has_rdoc: