zurb-rush 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. data/.gitignore +17 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE +22 -0
  4. data/README.md +146 -0
  5. data/Rakefile +2 -0
  6. data/lib/zurb-rush.rb +8 -0
  7. data/lib/zurb-rush/form_builder.rb +32 -0
  8. data/lib/zurb-rush/railtie.rb +7 -0
  9. data/lib/zurb-rush/version.rb +3 -0
  10. data/lib/zurb-rush/view_helpers.rb +75 -0
  11. data/test_app/.gitignore +17 -0
  12. data/test_app/Gemfile +17 -0
  13. data/test_app/README.rdoc +261 -0
  14. data/test_app/Rakefile +7 -0
  15. data/test_app/app/assets/images/rails.png +0 -0
  16. data/test_app/app/assets/javascripts/application.js +16 -0
  17. data/test_app/app/assets/stylesheets/application.scss +1 -0
  18. data/test_app/app/assets/stylesheets/foundation_and_overrides.scss +60 -0
  19. data/test_app/app/controllers/application_controller.rb +3 -0
  20. data/test_app/app/controllers/demo_controller.rb +5 -0
  21. data/test_app/app/helpers/application_helper.rb +2 -0
  22. data/test_app/app/helpers/demo_helper.rb +2 -0
  23. data/test_app/app/mailers/.gitkeep +0 -0
  24. data/test_app/app/models/.gitkeep +0 -0
  25. data/test_app/app/views/demo/index.html.haml +54 -0
  26. data/test_app/app/views/layouts/application.html.erb +29 -0
  27. data/test_app/config.ru +4 -0
  28. data/test_app/config/application.rb +68 -0
  29. data/test_app/config/boot.rb +6 -0
  30. data/test_app/config/environment.rb +5 -0
  31. data/test_app/config/environments/development.rb +31 -0
  32. data/test_app/config/environments/production.rb +64 -0
  33. data/test_app/config/environments/test.rb +35 -0
  34. data/test_app/config/initializers/backtrace_silencers.rb +7 -0
  35. data/test_app/config/initializers/inflections.rb +15 -0
  36. data/test_app/config/initializers/mime_types.rb +5 -0
  37. data/test_app/config/initializers/secret_token.rb +7 -0
  38. data/test_app/config/initializers/session_store.rb +8 -0
  39. data/test_app/config/initializers/wrap_parameters.rb +10 -0
  40. data/test_app/config/locales/en.yml +5 -0
  41. data/test_app/config/routes.rb +4 -0
  42. data/test_app/lib/assets/.gitkeep +0 -0
  43. data/test_app/lib/tasks/.gitkeep +0 -0
  44. data/test_app/log/.gitkeep +0 -0
  45. data/test_app/public/404.html +26 -0
  46. data/test_app/public/422.html +26 -0
  47. data/test_app/public/500.html +25 -0
  48. data/test_app/public/favicon.ico +0 -0
  49. data/test_app/public/robots.txt +5 -0
  50. data/test_app/script/rails +6 -0
  51. data/test_app/vendor/assets/javascripts/.gitkeep +0 -0
  52. data/test_app/vendor/assets/stylesheets/.gitkeep +0 -0
  53. data/test_app/vendor/plugins/.gitkeep +0 -0
  54. data/zurb-rush.gemspec +19 -0
  55. metadata +149 -0
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ TestApp::Application.config.secret_token = '6928c6b896f50bfe928e876052e679d1d741b3ef98a83c323a2100c3fdb1bb5138aba4042c7cae17cf7393e360977e93091c80e48684fc656be7d7c1b27d00fb'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ TestApp::Application.config.session_store :cookie_store, key: '_test_app_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # TestApp::Application.config.session_store :active_record_store
@@ -0,0 +1,10 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json]
9
+ end
10
+
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,4 @@
1
+ TestApp::Application.routes.draw do
2
+ root :to => 'demo#index'
3
+ match ":action", :controller => "demo"
4
+ end
File without changes
File without changes
File without changes
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </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,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
File without changes
@@ -0,0 +1,19 @@
1
+ require File.expand_path('../lib/zurb-rush/version', __FILE__)
2
+
3
+ Gem::Specification.new do |gem|
4
+ gem.authors = ["Clinton Dreisbach"]
5
+ gem.email = ["crnixon@gmail.com"]
6
+ gem.description = %q{ZurbRush is a collection of Rails helpers and a form builder for Zurb Foundation 3.}
7
+ gem.summary = %q{ZurbRush is a collection of Rails helpers and a form builder for Zurb Foundation 3.}
8
+ gem.homepage = ""
9
+
10
+ gem.files = `git ls-files`.split($\)
11
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
12
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
13
+ gem.name = "zurb-rush"
14
+ gem.require_paths = ["lib"]
15
+ gem.version = ZurbRush::VERSION
16
+ gem.add_dependency 'zurb-foundation', '~> 3.0.1'
17
+ gem.add_dependency 'humanize', '~> 1.1.0'
18
+ gem.add_dependency 'actionpack', '~> 3.2.1'
19
+ end
metadata ADDED
@@ -0,0 +1,149 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: zurb-rush
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Clinton Dreisbach
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-08-24 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: zurb-foundation
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.0.1
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 3.0.1
30
+ - !ruby/object:Gem::Dependency
31
+ name: humanize
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 1.1.0
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 1.1.0
46
+ - !ruby/object:Gem::Dependency
47
+ name: actionpack
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 3.2.1
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 3.2.1
62
+ description: ZurbRush is a collection of Rails helpers and a form builder for Zurb
63
+ Foundation 3.
64
+ email:
65
+ - crnixon@gmail.com
66
+ executables: []
67
+ extensions: []
68
+ extra_rdoc_files: []
69
+ files:
70
+ - .gitignore
71
+ - Gemfile
72
+ - LICENSE
73
+ - README.md
74
+ - Rakefile
75
+ - lib/zurb-rush.rb
76
+ - lib/zurb-rush/form_builder.rb
77
+ - lib/zurb-rush/railtie.rb
78
+ - lib/zurb-rush/version.rb
79
+ - lib/zurb-rush/view_helpers.rb
80
+ - test_app/.gitignore
81
+ - test_app/Gemfile
82
+ - test_app/README.rdoc
83
+ - test_app/Rakefile
84
+ - test_app/app/assets/images/rails.png
85
+ - test_app/app/assets/javascripts/application.js
86
+ - test_app/app/assets/stylesheets/application.scss
87
+ - test_app/app/assets/stylesheets/foundation_and_overrides.scss
88
+ - test_app/app/controllers/application_controller.rb
89
+ - test_app/app/controllers/demo_controller.rb
90
+ - test_app/app/helpers/application_helper.rb
91
+ - test_app/app/helpers/demo_helper.rb
92
+ - test_app/app/mailers/.gitkeep
93
+ - test_app/app/models/.gitkeep
94
+ - test_app/app/views/demo/index.html.haml
95
+ - test_app/app/views/layouts/application.html.erb
96
+ - test_app/config.ru
97
+ - test_app/config/application.rb
98
+ - test_app/config/boot.rb
99
+ - test_app/config/environment.rb
100
+ - test_app/config/environments/development.rb
101
+ - test_app/config/environments/production.rb
102
+ - test_app/config/environments/test.rb
103
+ - test_app/config/initializers/backtrace_silencers.rb
104
+ - test_app/config/initializers/inflections.rb
105
+ - test_app/config/initializers/mime_types.rb
106
+ - test_app/config/initializers/secret_token.rb
107
+ - test_app/config/initializers/session_store.rb
108
+ - test_app/config/initializers/wrap_parameters.rb
109
+ - test_app/config/locales/en.yml
110
+ - test_app/config/routes.rb
111
+ - test_app/lib/assets/.gitkeep
112
+ - test_app/lib/tasks/.gitkeep
113
+ - test_app/log/.gitkeep
114
+ - test_app/public/404.html
115
+ - test_app/public/422.html
116
+ - test_app/public/500.html
117
+ - test_app/public/favicon.ico
118
+ - test_app/public/robots.txt
119
+ - test_app/script/rails
120
+ - test_app/vendor/assets/javascripts/.gitkeep
121
+ - test_app/vendor/assets/stylesheets/.gitkeep
122
+ - test_app/vendor/plugins/.gitkeep
123
+ - zurb-rush.gemspec
124
+ homepage: ''
125
+ licenses: []
126
+ post_install_message:
127
+ rdoc_options: []
128
+ require_paths:
129
+ - lib
130
+ required_ruby_version: !ruby/object:Gem::Requirement
131
+ none: false
132
+ requirements:
133
+ - - ! '>='
134
+ - !ruby/object:Gem::Version
135
+ version: '0'
136
+ required_rubygems_version: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ requirements: []
143
+ rubyforge_project:
144
+ rubygems_version: 1.8.23
145
+ signing_key:
146
+ specification_version: 3
147
+ summary: ZurbRush is a collection of Rails helpers and a form builder for Zurb Foundation
148
+ 3.
149
+ test_files: []