foundation-rails-helpers 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +1 -0
  4. data/app/helpers/foundation/rails/helpers/foundation_rails_helpers_application_helper.rb +34 -0
  5. data/lib/foundation-rails-helpers.rb +1 -0
  6. data/lib/foundation/rails/helpers.rb +6 -0
  7. data/lib/foundation/rails/helpers/alert.rb +18 -0
  8. data/lib/foundation/rails/helpers/element.rb +47 -0
  9. data/lib/foundation/rails/helpers/engine.rb +9 -0
  10. data/lib/foundation/rails/helpers/label.rb +18 -0
  11. data/lib/foundation/rails/helpers/panel.rb +14 -0
  12. data/lib/foundation/rails/helpers/version.rb +7 -0
  13. data/spec/alert_spec.rb +8 -0
  14. data/spec/dummy/Gemfile +5 -0
  15. data/spec/dummy/Gemfile.lock +87 -0
  16. data/spec/dummy/README.rdoc +28 -0
  17. data/spec/dummy/Rakefile +6 -0
  18. data/spec/dummy/app/assets/javascripts/application.js +8 -0
  19. data/spec/dummy/app/assets/stylesheets/application.css +4 -0
  20. data/spec/dummy/app/assets/stylesheets/foundation_and_overrides.scss +4 -0
  21. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  22. data/spec/dummy/app/controllers/styleguide_controller.rb +4 -0
  23. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  24. data/spec/dummy/app/helpers/styleguide_helper.rb +2 -0
  25. data/spec/dummy/app/views/layouts/application.html.erb +19 -0
  26. data/spec/dummy/app/views/styleguide/show.html.erb +109 -0
  27. data/spec/dummy/bin/bundle +3 -0
  28. data/spec/dummy/bin/rails +4 -0
  29. data/spec/dummy/bin/rake +4 -0
  30. data/spec/dummy/config.ru +4 -0
  31. data/spec/dummy/config/application.rb +23 -0
  32. data/spec/dummy/config/boot.rb +3 -0
  33. data/spec/dummy/config/database.yml +25 -0
  34. data/spec/dummy/config/environment.rb +5 -0
  35. data/spec/dummy/config/environments/development.rb +29 -0
  36. data/spec/dummy/config/environments/production.rb +80 -0
  37. data/spec/dummy/config/environments/test.rb +36 -0
  38. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  39. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  40. data/spec/dummy/config/initializers/inflections.rb +16 -0
  41. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  42. data/spec/dummy/config/initializers/secret_token.rb +12 -0
  43. data/spec/dummy/config/initializers/session_store.rb +3 -0
  44. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  45. data/spec/dummy/config/locales/en.yml +23 -0
  46. data/spec/dummy/config/routes.rb +2 -0
  47. data/spec/dummy/db/seeds.rb +7 -0
  48. data/spec/dummy/log/development.log +0 -0
  49. data/spec/dummy/public/404.html +58 -0
  50. data/spec/dummy/public/422.html +58 -0
  51. data/spec/dummy/public/500.html +57 -0
  52. data/spec/dummy/public/favicon.ico +0 -0
  53. data/spec/dummy/public/robots.txt +5 -0
  54. data/spec/dummy/test/controllers/styleguide_controller_test.rb +9 -0
  55. data/spec/dummy/test/helpers/styleguide_helper_test.rb +4 -0
  56. data/spec/dummy/test/test_helper.rb +15 -0
  57. data/spec/spec_helper.rb +4 -0
  58. metadata +188 -0
@@ -0,0 +1,57 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/500.html -->
52
+ <div class="dialog">
53
+ <h1>We're sorry, but something went wrong.</h1>
54
+ </div>
55
+ <p>If you are the application owner check the logs for more information.</p>
56
+ </body>
57
+ </html>
File without changes
@@ -0,0 +1,5 @@
1
+ # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2
+ #
3
+ # To ban all spiders from the entire site uncomment the next two lines:
4
+ # User-agent: *
5
+ # Disallow: /
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ class StyleguideControllerTest < ActionController::TestCase
4
+ test "should get show" do
5
+ get :show
6
+ assert_response :success
7
+ end
8
+
9
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class StyleguideHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,15 @@
1
+ ENV["RAILS_ENV"] ||= "test"
2
+ require File.expand_path('../../config/environment', __FILE__)
3
+ require 'rails/test_help'
4
+
5
+ class ActiveSupport::TestCase
6
+ ActiveRecord::Migration.check_pending!
7
+
8
+ # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
9
+ #
10
+ # Note: You'll currently still have to declare fixtures explicitly in integration tests
11
+ # -- they do not yet inherit this setting
12
+ fixtures :all
13
+
14
+ # Add more helper methods to be used by all tests here...
15
+ end
@@ -0,0 +1,4 @@
1
+ require File.expand_path("../dummy/config/environment", __FILE__)
2
+
3
+ RSpec.configure do |config|
4
+ end
metadata ADDED
@@ -0,0 +1,188 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: foundation-rails-helpers
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Kyle Decot
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-06-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: pry
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: This gem is designed to provide an easy to use objected based approach
56
+ to creating Zurb Foundation HTML elements using a elegant DSL.
57
+ email:
58
+ - kyle.decot@icloud.com
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - MIT-LICENSE
64
+ - Rakefile
65
+ - app/helpers/foundation/rails/helpers/foundation_rails_helpers_application_helper.rb
66
+ - lib/foundation-rails-helpers.rb
67
+ - lib/foundation/rails/helpers.rb
68
+ - lib/foundation/rails/helpers/alert.rb
69
+ - lib/foundation/rails/helpers/element.rb
70
+ - lib/foundation/rails/helpers/engine.rb
71
+ - lib/foundation/rails/helpers/label.rb
72
+ - lib/foundation/rails/helpers/panel.rb
73
+ - lib/foundation/rails/helpers/version.rb
74
+ - spec/alert_spec.rb
75
+ - spec/dummy/Gemfile
76
+ - spec/dummy/Gemfile.lock
77
+ - spec/dummy/README.rdoc
78
+ - spec/dummy/Rakefile
79
+ - spec/dummy/app/assets/javascripts/application.js
80
+ - spec/dummy/app/assets/stylesheets/application.css
81
+ - spec/dummy/app/assets/stylesheets/foundation_and_overrides.scss
82
+ - spec/dummy/app/controllers/application_controller.rb
83
+ - spec/dummy/app/controllers/styleguide_controller.rb
84
+ - spec/dummy/app/helpers/application_helper.rb
85
+ - spec/dummy/app/helpers/styleguide_helper.rb
86
+ - spec/dummy/app/views/layouts/application.html.erb
87
+ - spec/dummy/app/views/styleguide/show.html.erb
88
+ - spec/dummy/bin/bundle
89
+ - spec/dummy/bin/rails
90
+ - spec/dummy/bin/rake
91
+ - spec/dummy/config.ru
92
+ - spec/dummy/config/application.rb
93
+ - spec/dummy/config/boot.rb
94
+ - spec/dummy/config/database.yml
95
+ - spec/dummy/config/environment.rb
96
+ - spec/dummy/config/environments/development.rb
97
+ - spec/dummy/config/environments/production.rb
98
+ - spec/dummy/config/environments/test.rb
99
+ - spec/dummy/config/initializers/backtrace_silencers.rb
100
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
101
+ - spec/dummy/config/initializers/inflections.rb
102
+ - spec/dummy/config/initializers/mime_types.rb
103
+ - spec/dummy/config/initializers/secret_token.rb
104
+ - spec/dummy/config/initializers/session_store.rb
105
+ - spec/dummy/config/initializers/wrap_parameters.rb
106
+ - spec/dummy/config/locales/en.yml
107
+ - spec/dummy/config/routes.rb
108
+ - spec/dummy/db/seeds.rb
109
+ - spec/dummy/log/development.log
110
+ - spec/dummy/public/404.html
111
+ - spec/dummy/public/422.html
112
+ - spec/dummy/public/500.html
113
+ - spec/dummy/public/favicon.ico
114
+ - spec/dummy/public/robots.txt
115
+ - spec/dummy/test/controllers/styleguide_controller_test.rb
116
+ - spec/dummy/test/helpers/styleguide_helper_test.rb
117
+ - spec/dummy/test/test_helper.rb
118
+ - spec/spec_helper.rb
119
+ homepage: http://www.kyledecot.com/
120
+ licenses:
121
+ - MIT
122
+ metadata: {}
123
+ post_install_message:
124
+ rdoc_options: []
125
+ require_paths:
126
+ - lib
127
+ required_ruby_version: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ required_rubygems_version: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: '0'
137
+ requirements: []
138
+ rubyforge_project:
139
+ rubygems_version: 2.2.2
140
+ signing_key:
141
+ specification_version: 4
142
+ summary: Easily create Zurb Foundation objects using a DSL
143
+ test_files:
144
+ - spec/alert_spec.rb
145
+ - spec/dummy/app/assets/javascripts/application.js
146
+ - spec/dummy/app/assets/stylesheets/application.css
147
+ - spec/dummy/app/assets/stylesheets/foundation_and_overrides.scss
148
+ - spec/dummy/app/controllers/application_controller.rb
149
+ - spec/dummy/app/controllers/styleguide_controller.rb
150
+ - spec/dummy/app/helpers/application_helper.rb
151
+ - spec/dummy/app/helpers/styleguide_helper.rb
152
+ - spec/dummy/app/views/layouts/application.html.erb
153
+ - spec/dummy/app/views/styleguide/show.html.erb
154
+ - spec/dummy/bin/bundle
155
+ - spec/dummy/bin/rails
156
+ - spec/dummy/bin/rake
157
+ - spec/dummy/config/application.rb
158
+ - spec/dummy/config/boot.rb
159
+ - spec/dummy/config/database.yml
160
+ - spec/dummy/config/environment.rb
161
+ - spec/dummy/config/environments/development.rb
162
+ - spec/dummy/config/environments/production.rb
163
+ - spec/dummy/config/environments/test.rb
164
+ - spec/dummy/config/initializers/backtrace_silencers.rb
165
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
166
+ - spec/dummy/config/initializers/inflections.rb
167
+ - spec/dummy/config/initializers/mime_types.rb
168
+ - spec/dummy/config/initializers/secret_token.rb
169
+ - spec/dummy/config/initializers/session_store.rb
170
+ - spec/dummy/config/initializers/wrap_parameters.rb
171
+ - spec/dummy/config/locales/en.yml
172
+ - spec/dummy/config/routes.rb
173
+ - spec/dummy/config.ru
174
+ - spec/dummy/db/seeds.rb
175
+ - spec/dummy/Gemfile
176
+ - spec/dummy/Gemfile.lock
177
+ - spec/dummy/log/development.log
178
+ - spec/dummy/public/404.html
179
+ - spec/dummy/public/422.html
180
+ - spec/dummy/public/500.html
181
+ - spec/dummy/public/favicon.ico
182
+ - spec/dummy/public/robots.txt
183
+ - spec/dummy/Rakefile
184
+ - spec/dummy/README.rdoc
185
+ - spec/dummy/test/controllers/styleguide_controller_test.rb
186
+ - spec/dummy/test/helpers/styleguide_helper_test.rb
187
+ - spec/dummy/test/test_helper.rb
188
+ - spec/spec_helper.rb