bootstrap-editable-rails 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (23) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +4 -13
  3. data/bootstrap-editable-rails.gemspec +1 -1
  4. data/lib/bootstrap-editable-rails.rb +2 -1
  5. data/lib/bootstrap-editable-rails/version.rb +1 -1
  6. data/vendor/assets/images/{clear.png → bootstrap-editable/clear.png} +0 -0
  7. data/vendor/assets/images/{loading.gif → bootstrap-editable/loading.gif} +0 -0
  8. data/vendor/assets/javascripts/bootstrap-editable.js +2245 -1149
  9. data/vendor/assets/javascripts/bootstrap-editable.min.js +7 -5
  10. data/vendor/assets/javascripts/inputs-ext/address/address.js +170 -0
  11. data/vendor/assets/javascripts/inputs-ext/typeaheadjs/lib/typeahead.js +1139 -0
  12. data/vendor/assets/javascripts/inputs-ext/typeaheadjs/typeaheadjs.js +86 -0
  13. data/vendor/assets/javascripts/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.js +499 -0
  14. data/vendor/assets/javascripts/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.min.js +1 -0
  15. data/vendor/assets/javascripts/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js +9521 -0
  16. data/vendor/assets/javascripts/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.min.js +261 -0
  17. data/vendor/assets/javascripts/inputs-ext/wysihtml5/wysihtml5.js +138 -0
  18. data/vendor/assets/stylesheets/{bootstrap-editable.css → bootstrap-editable.scss} +198 -15
  19. data/vendor/assets/stylesheets/inputs-ext/address/address.css +9 -0
  20. data/vendor/assets/stylesheets/inputs-ext/typeaheadjs/lib/typeahead.js-bootstrap.css +49 -0
  21. data/vendor/assets/stylesheets/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.css +102 -0
  22. data/vendor/assets/stylesheets/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysiwyg-color.css +67 -0
  23. metadata +54 -48
@@ -0,0 +1,9 @@
1
+ .editable-address {
2
+ display: block;
3
+ margin-bottom: 5px;
4
+ }
5
+
6
+ .editable-address span {
7
+ width: 70px;
8
+ display: inline-block;
9
+ }
@@ -0,0 +1,49 @@
1
+ .twitter-typeahead .tt-query,
2
+ .twitter-typeahead .tt-hint {
3
+ margin-bottom: 0;
4
+ }
5
+
6
+ .tt-dropdown-menu {
7
+ min-width: 160px;
8
+ margin-top: 2px;
9
+ padding: 5px 0;
10
+ background-color: #fff;
11
+ border: 1px solid #ccc;
12
+ border: 1px solid rgba(0,0,0,.2);
13
+ *border-right-width: 2px;
14
+ *border-bottom-width: 2px;
15
+ -webkit-border-radius: 6px;
16
+ -moz-border-radius: 6px;
17
+ border-radius: 6px;
18
+ -webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2);
19
+ -moz-box-shadow: 0 5px 10px rgba(0,0,0,.2);
20
+ box-shadow: 0 5px 10px rgba(0,0,0,.2);
21
+ -webkit-background-clip: padding-box;
22
+ -moz-background-clip: padding;
23
+ background-clip: padding-box;
24
+ }
25
+
26
+ .tt-suggestion {
27
+ display: block;
28
+ padding: 3px 20px;
29
+ }
30
+
31
+ .tt-suggestion.tt-is-under-cursor {
32
+ color: #fff;
33
+ background-color: #0081c2;
34
+ background-image: -moz-linear-gradient(top, #0088cc, #0077b3);
35
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));
36
+ background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);
37
+ background-image: -o-linear-gradient(top, #0088cc, #0077b3);
38
+ background-image: linear-gradient(to bottom, #0088cc, #0077b3);
39
+ background-repeat: repeat-x;
40
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0)
41
+ }
42
+
43
+ .tt-suggestion.tt-is-under-cursor a {
44
+ color: #fff;
45
+ }
46
+
47
+ .tt-suggestion p {
48
+ margin: 0;
49
+ }
@@ -0,0 +1,102 @@
1
+ ul.wysihtml5-toolbar {
2
+ margin: 0;
3
+ padding: 0;
4
+ display: block;
5
+ }
6
+
7
+ ul.wysihtml5-toolbar::after {
8
+ clear: both;
9
+ display: table;
10
+ content: "";
11
+ }
12
+
13
+ ul.wysihtml5-toolbar > li {
14
+ float: left;
15
+ display: list-item;
16
+ list-style: none;
17
+ margin: 0 5px 10px 0;
18
+ }
19
+
20
+ ul.wysihtml5-toolbar a[data-wysihtml5-command=bold] {
21
+ font-weight: bold;
22
+ }
23
+
24
+ ul.wysihtml5-toolbar a[data-wysihtml5-command=italic] {
25
+ font-style: italic;
26
+ }
27
+
28
+ ul.wysihtml5-toolbar a[data-wysihtml5-command=underline] {
29
+ text-decoration: underline;
30
+ }
31
+
32
+ ul.wysihtml5-toolbar a.btn.wysihtml5-command-active {
33
+ background-image: none;
34
+ -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);
35
+ -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);
36
+ box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);
37
+ background-color: #E6E6E6;
38
+ background-color: #D9D9D9;
39
+ outline: 0;
40
+ }
41
+
42
+ ul.wysihtml5-commands-disabled .dropdown-menu {
43
+ display: none !important;
44
+ }
45
+
46
+ ul.wysihtml5-toolbar div.wysihtml5-colors {
47
+ display:block;
48
+ width: 50px;
49
+ height: 20px;
50
+ margin-top: 2px;
51
+ margin-left: 5px;
52
+ position: absolute;
53
+ pointer-events: none;
54
+ }
55
+
56
+ ul.wysihtml5-toolbar a.wysihtml5-colors-title {
57
+ padding-left: 70px;
58
+ }
59
+
60
+ ul.wysihtml5-toolbar div[data-wysihtml5-command-value="black"] {
61
+ background: black !important;
62
+ }
63
+
64
+ ul.wysihtml5-toolbar div[data-wysihtml5-command-value="silver"] {
65
+ background: silver !important;
66
+ }
67
+
68
+ ul.wysihtml5-toolbar div[data-wysihtml5-command-value="gray"] {
69
+ background: gray !important;
70
+ }
71
+
72
+ ul.wysihtml5-toolbar div[data-wysihtml5-command-value="maroon"] {
73
+ background: maroon !important;
74
+ }
75
+
76
+ ul.wysihtml5-toolbar div[data-wysihtml5-command-value="red"] {
77
+ background: red !important;
78
+ }
79
+
80
+ ul.wysihtml5-toolbar div[data-wysihtml5-command-value="purple"] {
81
+ background: purple !important;
82
+ }
83
+
84
+ ul.wysihtml5-toolbar div[data-wysihtml5-command-value="green"] {
85
+ background: green !important;
86
+ }
87
+
88
+ ul.wysihtml5-toolbar div[data-wysihtml5-command-value="olive"] {
89
+ background: olive !important;
90
+ }
91
+
92
+ ul.wysihtml5-toolbar div[data-wysihtml5-command-value="navy"] {
93
+ background: navy !important;
94
+ }
95
+
96
+ ul.wysihtml5-toolbar div[data-wysihtml5-command-value="blue"] {
97
+ background: blue !important;
98
+ }
99
+
100
+ ul.wysihtml5-toolbar div[data-wysihtml5-command-value="orange"] {
101
+ background: orange !important;
102
+ }
@@ -0,0 +1,67 @@
1
+ .wysiwyg-color-black {
2
+ color: black;
3
+ }
4
+
5
+ .wysiwyg-color-silver {
6
+ color: silver;
7
+ }
8
+
9
+ .wysiwyg-color-gray {
10
+ color: gray;
11
+ }
12
+
13
+ .wysiwyg-color-white {
14
+ color: white;
15
+ }
16
+
17
+ .wysiwyg-color-maroon {
18
+ color: maroon;
19
+ }
20
+
21
+ .wysiwyg-color-red {
22
+ color: red;
23
+ }
24
+
25
+ .wysiwyg-color-purple {
26
+ color: purple;
27
+ }
28
+
29
+ .wysiwyg-color-fuchsia {
30
+ color: fuchsia;
31
+ }
32
+
33
+ .wysiwyg-color-green {
34
+ color: green;
35
+ }
36
+
37
+ .wysiwyg-color-lime {
38
+ color: lime;
39
+ }
40
+
41
+ .wysiwyg-color-olive {
42
+ color: olive;
43
+ }
44
+
45
+ .wysiwyg-color-yellow {
46
+ color: yellow;
47
+ }
48
+
49
+ .wysiwyg-color-navy {
50
+ color: navy;
51
+ }
52
+
53
+ .wysiwyg-color-blue {
54
+ color: blue;
55
+ }
56
+
57
+ .wysiwyg-color-teal {
58
+ color: teal;
59
+ }
60
+
61
+ .wysiwyg-color-aqua {
62
+ color: aqua;
63
+ }
64
+
65
+ .wysiwyg-color-orange {
66
+ color: orange;
67
+ }
metadata CHANGED
@@ -1,39 +1,36 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-editable-rails
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.5
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.6
6
5
  platform: ruby
7
- authors:
6
+ authors:
8
7
  - Toru KAWAMURA
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-05-30 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
11
+
12
+ date: 2014-06-05 00:00:00 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
15
  name: railties
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '3.1'
22
- type: :runtime
23
16
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '3.1'
17
+ requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - ">="
20
+ - !ruby/object:Gem::Version
21
+ version: "3.1"
22
+ type: :runtime
23
+ version_requirements: *id001
30
24
  description: In-place editing with Twitter Bootstrap for Rails
31
- email:
25
+ email:
32
26
  - tkawa@4bit.net
33
27
  executables: []
28
+
34
29
  extensions: []
30
+
35
31
  extra_rdoc_files: []
36
- files:
32
+
33
+ files:
37
34
  - .gitignore
38
35
  - Gemfile
39
36
  - LICENSE.txt
@@ -43,40 +40,49 @@ files:
43
40
  - lib/bootstrap-editable-rails.rb
44
41
  - lib/bootstrap-editable-rails/version.rb
45
42
  - lib/bootstrap-editable-rails/view_helper.rb
46
- - vendor/assets/images/clear.png
47
- - vendor/assets/images/loading.gif
43
+ - vendor/assets/images/bootstrap-editable/clear.png
44
+ - vendor/assets/images/bootstrap-editable/loading.gif
48
45
  - vendor/assets/javascripts/bootstrap-editable-rails.js.coffee
49
46
  - vendor/assets/javascripts/bootstrap-editable.js
50
47
  - vendor/assets/javascripts/bootstrap-editable.min.js
51
- - vendor/assets/stylesheets/bootstrap-editable.css
52
- homepage: https://github.com/tkawa/bootstrap-editable-rails
48
+ - vendor/assets/javascripts/inputs-ext/address/address.js
49
+ - vendor/assets/javascripts/inputs-ext/typeaheadjs/lib/typeahead.js
50
+ - vendor/assets/javascripts/inputs-ext/typeaheadjs/typeaheadjs.js
51
+ - vendor/assets/javascripts/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.js
52
+ - vendor/assets/javascripts/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.min.js
53
+ - vendor/assets/javascripts/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js
54
+ - vendor/assets/javascripts/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.min.js
55
+ - vendor/assets/javascripts/inputs-ext/wysihtml5/wysihtml5.js
56
+ - vendor/assets/stylesheets/bootstrap-editable.scss
57
+ - vendor/assets/stylesheets/inputs-ext/address/address.css
58
+ - vendor/assets/stylesheets/inputs-ext/typeaheadjs/lib/typeahead.js-bootstrap.css
59
+ - vendor/assets/stylesheets/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.css
60
+ - vendor/assets/stylesheets/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysiwyg-color.css
61
+ homepage: https://github.com/bootstrap-ruby/bootstrap-editable-rails
53
62
  licenses: []
63
+
64
+ metadata: {}
65
+
54
66
  post_install_message:
55
67
  rdoc_options: []
56
- require_paths:
68
+
69
+ require_paths:
57
70
  - lib
58
- required_ruby_version: !ruby/object:Gem::Requirement
59
- none: false
60
- requirements:
61
- - - ! '>='
62
- - !ruby/object:Gem::Version
63
- version: '0'
64
- segments:
65
- - 0
66
- hash: 415651154148220374
67
- required_rubygems_version: !ruby/object:Gem::Requirement
68
- none: false
69
- requirements:
70
- - - ! '>='
71
- - !ruby/object:Gem::Version
72
- version: '0'
73
- segments:
74
- - 0
75
- hash: 415651154148220374
71
+ required_ruby_version: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - &id002
74
+ - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: "0"
77
+ required_rubygems_version: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - *id002
76
80
  requirements: []
81
+
77
82
  rubyforge_project:
78
- rubygems_version: 1.8.24
83
+ rubygems_version: 2.0.14
79
84
  signing_key:
80
- specification_version: 3
85
+ specification_version: 4
81
86
  summary: In-place editing with Twitter Bootstrap for Rails
82
87
  test_files: []
88
+