ui_bibz 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +44 -0
  3. data/.travis.yml +13 -0
  4. data/Gemfile +15 -0
  5. data/Gemfile.lock +171 -0
  6. data/MIT-LICENSE +20 -0
  7. data/README.md +728 -0
  8. data/README.rdoc +0 -0
  9. data/Rakefile +34 -0
  10. data/config/locales/en.yml +14 -0
  11. data/config/locales/fr.yml +14 -0
  12. data/doc/images/alert.png +0 -0
  13. data/doc/images/breadcrumb.png +0 -0
  14. data/doc/images/button.png +0 -0
  15. data/doc/images/button_dropdown.png +0 -0
  16. data/doc/images/button_group.png +0 -0
  17. data/doc/images/button_link.png +0 -0
  18. data/doc/images/button_split_dropdown.png +0 -0
  19. data/doc/images/glyph.png +0 -0
  20. data/doc/images/list.png +0 -0
  21. data/doc/images/nav.png +0 -0
  22. data/doc/images/panel.png +0 -0
  23. data/doc/images/table.png +0 -0
  24. data/doc/images/table_pagination_per_page.png +0 -0
  25. data/doc/images/table_panel.png +0 -0
  26. data/doc/images/table_search_field.png +0 -0
  27. data/doc/images/ui-bibz-logo-without-border.gif +0 -0
  28. data/doc/images/ui-bibz-logo.gif +0 -0
  29. data/lib/tasks/ui_bibz_tasks.rake +4 -0
  30. data/lib/ui_bibz/concerns/models/searchable.rb +93 -0
  31. data/lib/ui_bibz/helpers/meta_helper.rb +27 -0
  32. data/lib/ui_bibz/helpers/ui_helper.rb +108 -0
  33. data/lib/ui_bibz/helpers/utils_helper.rb +9 -0
  34. data/lib/ui_bibz/rails/engine.rb +39 -0
  35. data/lib/ui_bibz/ui/alert.rb +67 -0
  36. data/lib/ui_bibz/ui/breadcrumb/breadcrumb.rb +54 -0
  37. data/lib/ui_bibz/ui/breadcrumb/components/breadcrumb_link.rb +62 -0
  38. data/lib/ui_bibz/ui/button/button.rb +65 -0
  39. data/lib/ui_bibz/ui/button/button_dropdown.rb +56 -0
  40. data/lib/ui_bibz/ui/button/button_group.rb +62 -0
  41. data/lib/ui_bibz/ui/button/button_link.rb +66 -0
  42. data/lib/ui_bibz/ui/button/button_split_dropdown.rb +80 -0
  43. data/lib/ui_bibz/ui/component.rb +137 -0
  44. data/lib/ui_bibz/ui/dropdown/components/dropdown_list.rb +73 -0
  45. data/lib/ui_bibz/ui/dropdown/dropdown.rb +101 -0
  46. data/lib/ui_bibz/ui/glyph.rb +92 -0
  47. data/lib/ui_bibz/ui/grid/components/col.rb +74 -0
  48. data/lib/ui_bibz/ui/grid/components/row.rb +32 -0
  49. data/lib/ui_bibz/ui/grid/grid.rb +108 -0
  50. data/lib/ui_bibz/ui/jumbotron.rb +58 -0
  51. data/lib/ui_bibz/ui/label.rb +58 -0
  52. data/lib/ui_bibz/ui/list/components/list.rb +105 -0
  53. data/lib/ui_bibz/ui/list/list_group.rb +78 -0
  54. data/lib/ui_bibz/ui/nav/components/nav_link.rb +68 -0
  55. data/lib/ui_bibz/ui/nav/nav.rb +65 -0
  56. data/lib/ui_bibz/ui/panel.rb +101 -0
  57. data/lib/ui_bibz/ui/table/components/actions.rb +44 -0
  58. data/lib/ui_bibz/ui/table/components/column.rb +34 -0
  59. data/lib/ui_bibz/ui/table/components/columns.rb +16 -0
  60. data/lib/ui_bibz/ui/table/components/store.rb +67 -0
  61. data/lib/ui_bibz/ui/table/components/table_action.rb +21 -0
  62. data/lib/ui_bibz/ui/table/table.rb +146 -0
  63. data/lib/ui_bibz/ui/table/table_pagination.rb +29 -0
  64. data/lib/ui_bibz/ui/table/table_pagination_per_page.rb +53 -0
  65. data/lib/ui_bibz/ui/table/table_panel.rb +66 -0
  66. data/lib/ui_bibz/ui/table/table_search_field.rb +62 -0
  67. data/lib/ui_bibz/ui/table/ux/actionable.rb +59 -0
  68. data/lib/ui_bibz/ui/table/ux/paginable.rb +35 -0
  69. data/lib/ui_bibz/ui/table/ux/searchable.rb +47 -0
  70. data/lib/ui_bibz/ui/table/ux/sortable.rb +93 -0
  71. data/lib/ui_bibz/ui/ui.rb +14 -0
  72. data/lib/ui_bibz/utils/internationalization.rb +30 -0
  73. data/lib/ui_bibz/version.rb +3 -0
  74. data/lib/ui_bibz.rb +60 -0
  75. data/test/dummy/README.rdoc +28 -0
  76. data/test/dummy/Rakefile +6 -0
  77. data/test/dummy/app/assets/images/.keep +0 -0
  78. data/test/dummy/app/assets/javascripts/application.js +13 -0
  79. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  80. data/test/dummy/app/controllers/application_controller.rb +5 -0
  81. data/test/dummy/app/controllers/concerns/.keep +0 -0
  82. data/test/dummy/app/helpers/application_helper.rb +2 -0
  83. data/test/dummy/app/mailers/.keep +0 -0
  84. data/test/dummy/app/models/.keep +0 -0
  85. data/test/dummy/app/models/concerns/.keep +0 -0
  86. data/test/dummy/app/models/user.rb +5 -0
  87. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  88. data/test/dummy/bin/bundle +3 -0
  89. data/test/dummy/bin/rails +4 -0
  90. data/test/dummy/bin/rake +4 -0
  91. data/test/dummy/bin/setup +29 -0
  92. data/test/dummy/config/application.rb +26 -0
  93. data/test/dummy/config/boot.rb +5 -0
  94. data/test/dummy/config/database.yml +25 -0
  95. data/test/dummy/config/environment.rb +5 -0
  96. data/test/dummy/config/environments/development.rb +41 -0
  97. data/test/dummy/config/environments/production.rb +79 -0
  98. data/test/dummy/config/environments/test.rb +42 -0
  99. data/test/dummy/config/initializers/assets.rb +11 -0
  100. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  101. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  102. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  103. data/test/dummy/config/initializers/inflections.rb +16 -0
  104. data/test/dummy/config/initializers/mime_types.rb +4 -0
  105. data/test/dummy/config/initializers/session_store.rb +3 -0
  106. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  107. data/test/dummy/config/locales/en.yml +23 -0
  108. data/test/dummy/config/routes.rb +57 -0
  109. data/test/dummy/config/secrets.yml +22 -0
  110. data/test/dummy/config.ru +4 -0
  111. data/test/dummy/db/migrate/20150123191721_user.rb +4 -0
  112. data/test/dummy/db/migrate/20150123191805_create_users.rb +12 -0
  113. data/test/dummy/db/schema.rb +25 -0
  114. data/test/dummy/lib/assets/.keep +0 -0
  115. data/test/dummy/log/.keep +0 -0
  116. data/test/dummy/public/404.html +67 -0
  117. data/test/dummy/public/422.html +67 -0
  118. data/test/dummy/public/500.html +66 -0
  119. data/test/dummy/public/favicon.ico +0 -0
  120. data/test/dummy/test/fixtures/users.yml +13 -0
  121. data/test/dummy/test/models/user_test.rb +7 -0
  122. data/test/factories/user.rb +8 -0
  123. data/test/store_test.rb +46 -0
  124. data/test/support/factory_girl.rb +6 -0
  125. data/test/test_helper.rb +23 -0
  126. data/test/ui/button_test.rb +56 -0
  127. data/test/ui/component_test.rb +21 -0
  128. data/test/ui/dropdown_test.rb +18 -0
  129. data/test/ui/glyph_test.rb +23 -0
  130. data/test/ui/grid_test.rb +46 -0
  131. data/test/ui/list_group_test.rb +28 -0
  132. data/test/ui/nav_test.rb +27 -0
  133. data/test/ui/panel_test.rb +52 -0
  134. data/test/ui/table_test.rb +178 -0
  135. data/test/ui_bibz_test.rb +13 -0
  136. data/test/ui_helper_test.rb +44 -0
  137. data/ui_bibz.gemspec +36 -0
  138. data/vendor/assets/javascripts/ui_bibz.js.coffee +24 -0
  139. data/vendor/assets/stylesheets/ui_bibz.sass +46 -0
  140. metadata +398 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8c22d9f108a0c988e153472f8e671e0bf3620645
4
+ data.tar.gz: 03155c74f62d36939e283385ee5e94fe97dbccb4
5
+ SHA512:
6
+ metadata.gz: 9ce5c3f73a5c1024b33488c7e9d21dd261e283b0f1dd34b60eddbf387c0b9819b4e5bd7c70feb509bd4cf22aafa5195e36568329ad4ff3b376812c9e18e0ae3e
7
+ data.tar.gz: 01adb5e71d609887af681e12af05e5cd704e1603cc215b8f09d102cfea0dea1401059c667f6dbce144841ec8b95d57ffa309c4ea3c8bc218bf5477fb6270731c
data/.gitignore ADDED
@@ -0,0 +1,44 @@
1
+ .bundle/
2
+ log/*.log
3
+ pkg/
4
+ test/dummy/db/*.sqlite3
5
+ test/dummy/db/*.sqlite3-journal
6
+ test/dummy/log/*.log
7
+ test/dummy/tmp/
8
+ test/dummy/.sass-cache
9
+ *.rbc
10
+ capybara-*.html
11
+ .rspec
12
+ /log
13
+ /tmp
14
+ /db/*.sqlite3
15
+ /public/system
16
+ /coverage/
17
+ /spec/tmp
18
+ **.orig
19
+ rerun.txt
20
+ pickle-email-*.html
21
+
22
+ # TODO Comment out these rules if you are OK with secrets being uploaded to the repo
23
+ config/initializers/secret_token.rb
24
+ config/secrets.yml
25
+
26
+ ## Environment normalisation:
27
+ /.bundle
28
+ /vendor/bundle
29
+
30
+ # these should all be checked in to normalise the environment:
31
+ # Gemfile.lock, .ruby-version, .ruby-gemset
32
+
33
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
34
+ .rvmrc
35
+ .ruby-gemset
36
+ .ruby-version
37
+
38
+ # if using bower-rails ignore default bower_components path bower.json files
39
+ /vendor/assets/bower_components
40
+ *.bowerrc
41
+ bower.json
42
+
43
+ tags
44
+ /rdoc
data/.travis.yml ADDED
@@ -0,0 +1,13 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.0
4
+ branches:
5
+ only:
6
+ - master
7
+ install:
8
+ - "travis_retry bundle install"
9
+ gemfile:
10
+ - gemfiles/rails4.2.gemfile
11
+ addons:
12
+ code_climate:
13
+ repo_token: 95196f8dbe3406321c6e7b406585532102784f0a3d4141a25f53937eedb844b6 bundle exec rake
data/Gemfile ADDED
@@ -0,0 +1,15 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Declare your gem's dependencies in ui_bibz.gemspec.
4
+ # Bundler will treat runtime dependencies like base dependencies, and
5
+ # development dependencies will be added by default to the :development group.
6
+ gemspec
7
+
8
+ # Declare any dependencies that are still in development here instead of in
9
+ # your gemspec. These might include edge Rails or gems from your path or
10
+ # Git. Remember to move these dependencies to your gemspec before releasing
11
+ # your gem to rubygems.org.
12
+
13
+ # To use a debugger
14
+ gem 'byebug', group: [:development, :test]
15
+ gem 'awesome_print', group: [:development, :test]
data/Gemfile.lock ADDED
@@ -0,0 +1,171 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ ui_bibz (0.9.0)
5
+ haml
6
+ haml-rails
7
+ rails (~> 4.2.0)
8
+ sass-rails (~> 5.0.1)
9
+ will-paginate-i18n
10
+ will_paginate (~> 3.0.6)
11
+ will_paginate-bootstrap
12
+
13
+ GEM
14
+ remote: https://rubygems.org/
15
+ specs:
16
+ actionmailer (4.2.0)
17
+ actionpack (= 4.2.0)
18
+ actionview (= 4.2.0)
19
+ activejob (= 4.2.0)
20
+ mail (~> 2.5, >= 2.5.4)
21
+ rails-dom-testing (~> 1.0, >= 1.0.5)
22
+ actionpack (4.2.0)
23
+ actionview (= 4.2.0)
24
+ activesupport (= 4.2.0)
25
+ rack (~> 1.6.0)
26
+ rack-test (~> 0.6.2)
27
+ rails-dom-testing (~> 1.0, >= 1.0.5)
28
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
29
+ actionview (4.2.0)
30
+ activesupport (= 4.2.0)
31
+ builder (~> 3.1)
32
+ erubis (~> 2.7.0)
33
+ rails-dom-testing (~> 1.0, >= 1.0.5)
34
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
35
+ activejob (4.2.0)
36
+ activesupport (= 4.2.0)
37
+ globalid (>= 0.3.0)
38
+ activemodel (4.2.0)
39
+ activesupport (= 4.2.0)
40
+ builder (~> 3.1)
41
+ activerecord (4.2.0)
42
+ activemodel (= 4.2.0)
43
+ activesupport (= 4.2.0)
44
+ arel (~> 6.0)
45
+ activesupport (4.2.0)
46
+ i18n (~> 0.7)
47
+ json (~> 1.7, >= 1.7.7)
48
+ minitest (~> 5.1)
49
+ thread_safe (~> 0.3, >= 0.3.4)
50
+ tzinfo (~> 1.1)
51
+ arel (6.0.0)
52
+ awesome_print (1.6.1)
53
+ builder (3.2.2)
54
+ byebug (3.5.1)
55
+ columnize (~> 0.8)
56
+ debugger-linecache (~> 1.2)
57
+ slop (~> 3.6)
58
+ codeclimate-test-reporter (0.4.6)
59
+ simplecov (>= 0.7.1, < 1.0.0)
60
+ columnize (0.9.0)
61
+ debugger-linecache (1.2.0)
62
+ docile (1.1.5)
63
+ erubis (2.7.0)
64
+ factory_girl (4.5.0)
65
+ activesupport (>= 3.0.0)
66
+ factory_girl_rails (4.5.0)
67
+ factory_girl (~> 4.5.0)
68
+ railties (>= 3.0.0)
69
+ globalid (0.3.3)
70
+ activesupport (>= 4.1.0)
71
+ haml (4.0.6)
72
+ tilt
73
+ haml-rails (0.9.0)
74
+ actionpack (>= 4.0.1)
75
+ activesupport (>= 4.0.1)
76
+ haml (>= 4.0.6, < 5.0)
77
+ html2haml (>= 1.0.1)
78
+ railties (>= 4.0.1)
79
+ hike (1.2.3)
80
+ html2haml (2.0.0)
81
+ erubis (~> 2.7.0)
82
+ haml (~> 4.0.0)
83
+ nokogiri (~> 1.6.0)
84
+ ruby_parser (~> 3.5)
85
+ i18n (0.7.0)
86
+ json (1.8.2)
87
+ loofah (2.0.1)
88
+ nokogiri (>= 1.5.9)
89
+ mail (2.6.3)
90
+ mime-types (>= 1.16, < 3)
91
+ mime-types (2.4.3)
92
+ mini_portile (0.6.2)
93
+ minitest (5.5.1)
94
+ multi_json (1.10.1)
95
+ nokogiri (1.6.5)
96
+ mini_portile (~> 0.6.0)
97
+ rack (1.6.0)
98
+ rack-test (0.6.3)
99
+ rack (>= 1.0)
100
+ rails (4.2.0)
101
+ actionmailer (= 4.2.0)
102
+ actionpack (= 4.2.0)
103
+ actionview (= 4.2.0)
104
+ activejob (= 4.2.0)
105
+ activemodel (= 4.2.0)
106
+ activerecord (= 4.2.0)
107
+ activesupport (= 4.2.0)
108
+ bundler (>= 1.3.0, < 2.0)
109
+ railties (= 4.2.0)
110
+ sprockets-rails
111
+ rails-deprecated_sanitizer (1.0.3)
112
+ activesupport (>= 4.2.0.alpha)
113
+ rails-dom-testing (1.0.5)
114
+ activesupport (>= 4.2.0.beta, < 5.0)
115
+ nokogiri (~> 1.6.0)
116
+ rails-deprecated_sanitizer (>= 1.0.1)
117
+ rails-html-sanitizer (1.0.1)
118
+ loofah (~> 2.0)
119
+ railties (4.2.0)
120
+ actionpack (= 4.2.0)
121
+ activesupport (= 4.2.0)
122
+ rake (>= 0.8.7)
123
+ thor (>= 0.18.1, < 2.0)
124
+ rake (10.4.2)
125
+ ruby_parser (3.6.5)
126
+ sexp_processor (~> 4.1)
127
+ sass (3.4.13)
128
+ sass-rails (5.0.1)
129
+ railties (>= 4.0.0, < 5.0)
130
+ sass (~> 3.1)
131
+ sprockets (>= 2.8, < 4.0)
132
+ sprockets-rails (>= 2.0, < 4.0)
133
+ tilt (~> 1.1)
134
+ sexp_processor (4.5.0)
135
+ simplecov (0.9.1)
136
+ docile (~> 1.1.0)
137
+ multi_json (~> 1.0)
138
+ simplecov-html (~> 0.8.0)
139
+ simplecov-html (0.8.0)
140
+ slop (3.6.0)
141
+ sprockets (2.12.3)
142
+ hike (~> 1.2)
143
+ multi_json (~> 1.0)
144
+ rack (~> 1.0)
145
+ tilt (~> 1.1, != 1.3.0)
146
+ sprockets-rails (2.2.4)
147
+ actionpack (>= 3.0)
148
+ activesupport (>= 3.0)
149
+ sprockets (>= 2.8, < 4.0)
150
+ sqlite3 (1.3.10)
151
+ thor (0.19.1)
152
+ thread_safe (0.3.4)
153
+ tilt (1.4.1)
154
+ tzinfo (1.2.2)
155
+ thread_safe (~> 0.1)
156
+ will-paginate-i18n (0.1.15)
157
+ will_paginate (3.0.7)
158
+ will_paginate-bootstrap (1.0.1)
159
+ will_paginate (>= 3.0.3)
160
+
161
+ PLATFORMS
162
+ ruby
163
+
164
+ DEPENDENCIES
165
+ awesome_print
166
+ byebug
167
+ codeclimate-test-reporter
168
+ factory_girl_rails (~> 4.0)
169
+ minitest
170
+ sqlite3
171
+ ui_bibz!
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2015 Thooams
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.