amber_component 0.0.4 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/CONTRIBUTING.md +2 -2
  3. data/Gemfile.lock +9 -9
  4. data/README.md +424 -4
  5. data/banner.png +0 -0
  6. data/lib/amber_component/minitest_test_case.rb +10 -0
  7. data/lib/amber_component/props.rb +1 -1
  8. data/lib/amber_component/test_helper.rb +34 -0
  9. data/lib/amber_component/version.rb +1 -1
  10. data/lib/generators/amber_component/install_generator.rb +20 -1
  11. data/lib/generators/amber_component/templates/application_component_test_case.rb +7 -0
  12. data/lib/generators/amber_component_generator.rb +56 -4
  13. data/lib/generators/component_generator.rb +9 -0
  14. data/lib/generators/templates/component.rb.erb +3 -1
  15. data/lib/generators/templates/component_test.rb.erb +11 -3
  16. data/lib/generators/templates/style.css.erb +1 -1
  17. data/lib/generators/templates/style.sass.erb +3 -0
  18. data/lib/generators/templates/style.scss.erb +5 -0
  19. data/lib/generators/templates/view.haml.erb +9 -0
  20. data/lib/generators/templates/view.html.erb.erb +8 -0
  21. data/lib/generators/templates/view.slim.erb +6 -0
  22. metadata +11 -31
  23. data/docs/.bundle/config +0 -2
  24. data/docs/.gitignore +0 -5
  25. data/docs/404.html +0 -25
  26. data/docs/Gemfile +0 -37
  27. data/docs/Gemfile.lock +0 -89
  28. data/docs/README.md +0 -19
  29. data/docs/_config.yml +0 -148
  30. data/docs/_data/amber_component.yml +0 -3
  31. data/docs/_sass/_variables.scss +0 -2
  32. data/docs/_sass/color_schemes/amber_component.scss +0 -11
  33. data/docs/_sass/custom/custom.scss +0 -60
  34. data/docs/api/index.md +0 -8
  35. data/docs/assets/images/logo_wide.png +0 -0
  36. data/docs/changelog/index.md +0 -8
  37. data/docs/favicon.ico +0 -0
  38. data/docs/getting_started/index.md +0 -8
  39. data/docs/getting_started/installation.md +0 -7
  40. data/docs/getting_started/ruby_support.md +0 -7
  41. data/docs/getting_started/wireframes.md +0 -7
  42. data/docs/index.md +0 -17
  43. data/docs/introduction/basic_usage.md +0 -7
  44. data/docs/introduction/index.md +0 -8
  45. data/docs/introduction/why_amber_component.md +0 -7
  46. data/docs/resources/index.md +0 -8
  47. data/docs/styles/index.md +0 -8
  48. data/docs/styles/usage.md +0 -7
  49. data/docs/views/index.md +0 -8
  50. data/docs/views/usage.md +0 -7
  51. data/lib/generators/templates/view.html.erb +0 -3
data/docs/favicon.ico DELETED
Binary file
@@ -1,8 +0,0 @@
1
- ---
2
- layout: default
3
- title: Getting started
4
- nav_order: 3
5
- has_children: true
6
- ---
7
-
8
- # Getting started
@@ -1,7 +0,0 @@
1
- ---
2
- layout: default
3
- title: Installation
4
- parent: Getting started
5
- ---
6
-
7
- # Installation
@@ -1,7 +0,0 @@
1
- ---
2
- layout: default
3
- title: Ruby support
4
- parent: Getting started
5
- ---
6
-
7
- # Ruby support
@@ -1,7 +0,0 @@
1
- ---
2
- layout: default
3
- title: Wireframes
4
- parent: Getting started
5
- ---
6
-
7
- # Wireframes
data/docs/index.md DELETED
@@ -1,17 +0,0 @@
1
- ---
2
- layout: default
3
- title: Home
4
- nav_order: 1
5
- permalink: /
6
- ---
7
-
8
- # AmberComponent (v{{ site.data.amber_component.version }})
9
-
10
- A simple component library which seamlessly hooks into your Rails project and allows you to create simple backend components. They work like mini controllers which are bound with their view.
11
-
12
- Created by [Garbus Beach]({{ site.data.amber_component.garbus_beach_url }}){:target="_blank"}
13
- and
14
- [Mateusz Drewniak]({{ site.data.amber_component.mateusz_drewniak_url }}){:target="_blank"}.
15
-
16
- [Get started now](#getting-started){: .btn .btn-primary .fs-5 .mb-4 .mb-md-0 .mr-2 }
17
- [View it on GitHub](https://github.com/amber-ruby/amber_component){: .btn .fs-5 .mb-4 .mb-md-0 target="_blank"}
@@ -1,7 +0,0 @@
1
- ---
2
- layout: default
3
- title: Basic usage
4
- parent: Introduction
5
- ---
6
-
7
- # Basic usage
@@ -1,8 +0,0 @@
1
- ---
2
- layout: default
3
- title: Introduction
4
- nav_order: 2
5
- has_children: true
6
- ---
7
-
8
- # Introduction
@@ -1,7 +0,0 @@
1
- ---
2
- layout: default
3
- title: Why AmberComponent?
4
- parent: Introduction
5
- ---
6
-
7
- # Why AmberComponent?
@@ -1,8 +0,0 @@
1
- ---
2
- layout: default
3
- title: Resources
4
- nav_order: 7
5
- has_children: true
6
- ---
7
-
8
- # Resources
data/docs/styles/index.md DELETED
@@ -1,8 +0,0 @@
1
- ---
2
- layout: default
3
- title: Styles
4
- nav_order: 5
5
- has_children: true
6
- ---
7
-
8
- # Styles
data/docs/styles/usage.md DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- layout: default
3
- title: Usage
4
- parent: Styles
5
- ---
6
-
7
- # Usage
data/docs/views/index.md DELETED
@@ -1,8 +0,0 @@
1
- ---
2
- layout: default
3
- title: Views
4
- nav_order: 4
5
- has_children: true
6
- ---
7
-
8
- # Views
data/docs/views/usage.md DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- layout: default
3
- title: Usage
4
- parent: Views
5
- ---
6
-
7
- # Usage
@@ -1,3 +0,0 @@
1
- <h2 class='<%= singular_table_name %>'>
2
- Hello from <b><%= class_name %></b>, initialized at: <%%= @time %>
3
- </h2>