bootstrap_helpers 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. data/.gitignore +5 -0
  2. data/Gemfile +4 -0
  3. data/Rakefile +1 -0
  4. data/bootstrap_helpers.gemspec +23 -0
  5. data/lib/bootstrap_helpers.rb +3 -0
  6. data/lib/bootstrap_helpers/railtie.rb +9 -0
  7. data/lib/bootstrap_helpers/version.rb +3 -0
  8. data/lib/bootstrap_helpers/view_helpers.rb +20 -0
  9. data/test_app/.gitignore +4 -0
  10. data/test_app/.rspec +1 -0
  11. data/test_app/Gemfile +19 -0
  12. data/test_app/Guardfile +22 -0
  13. data/test_app/README +256 -0
  14. data/test_app/Rakefile +7 -0
  15. data/test_app/app/controllers/application_controller.rb +3 -0
  16. data/test_app/app/controllers/samples_controller.rb +7 -0
  17. data/test_app/app/helpers/application_helper.rb +2 -0
  18. data/test_app/app/views/layouts/application.html.erb +14 -0
  19. data/test_app/app/views/samples/bootstrap_form_input.html.erb +3 -0
  20. data/test_app/app/views/samples/index.html.erb +3 -0
  21. data/test_app/config.ru +4 -0
  22. data/test_app/config/application.rb +42 -0
  23. data/test_app/config/boot.rb +6 -0
  24. data/test_app/config/database.yml +22 -0
  25. data/test_app/config/environment.rb +5 -0
  26. data/test_app/config/environments/development.rb +26 -0
  27. data/test_app/config/environments/production.rb +49 -0
  28. data/test_app/config/environments/test.rb +35 -0
  29. data/test_app/config/initializers/backtrace_silencers.rb +7 -0
  30. data/test_app/config/initializers/inflections.rb +10 -0
  31. data/test_app/config/initializers/mime_types.rb +5 -0
  32. data/test_app/config/initializers/secret_token.rb +7 -0
  33. data/test_app/config/initializers/session_store.rb +8 -0
  34. data/test_app/config/locales/en.yml +5 -0
  35. data/test_app/config/routes.rb +6 -0
  36. data/test_app/db/seeds.rb +7 -0
  37. data/test_app/doc/README_FOR_APP +2 -0
  38. data/test_app/lib/tasks/.gitkeep +0 -0
  39. data/test_app/public/404.html +26 -0
  40. data/test_app/public/422.html +26 -0
  41. data/test_app/public/500.html +26 -0
  42. data/test_app/public/favicon.ico +0 -0
  43. data/test_app/public/images/rails.png +0 -0
  44. data/test_app/public/javascripts/application.js +2 -0
  45. data/test_app/public/javascripts/bootstrap-alerts.js +124 -0
  46. data/test_app/public/javascripts/bootstrap-buttons.js +62 -0
  47. data/test_app/public/javascripts/bootstrap-dropdown.js +55 -0
  48. data/test_app/public/javascripts/bootstrap-modal.js +260 -0
  49. data/test_app/public/javascripts/bootstrap-scrollspy.js +107 -0
  50. data/test_app/public/javascripts/bootstrap-tabs.js +80 -0
  51. data/test_app/public/javascripts/bootstrap-twipsy-popover.js +90 -0
  52. data/test_app/public/javascripts/bootstrap-twipsy.js +321 -0
  53. data/test_app/public/javascripts/jquery-ui.js +11729 -0
  54. data/test_app/public/javascripts/jquery-ui.min.js +412 -0
  55. data/test_app/public/javascripts/jquery.js +8981 -0
  56. data/test_app/public/javascripts/jquery.min.js +18 -0
  57. data/test_app/public/javascripts/jquery_ujs.js +363 -0
  58. data/test_app/public/robots.txt +5 -0
  59. data/test_app/public/stylesheets/.gitkeep +0 -0
  60. data/test_app/public/stylesheets/bootstrap.css +2467 -0
  61. data/test_app/script/rails +6 -0
  62. data/test_app/spec/requests/bootstrap_form_input_spec.rb +18 -0
  63. data/test_app/spec/spec_helper.rb +34 -0
  64. data/test_app/vendor/plugins/.gitkeep +0 -0
  65. metadata +131 -0
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby1.8
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'
@@ -0,0 +1,18 @@
1
+ require 'spec_helper'
2
+
3
+ describe SamplesController do
4
+
5
+ it 'visit root page' do
6
+ visit root_path
7
+ page.should have_selector("form.sample_form")
8
+ page.should have_selector(".sample_form legend", :text=>'Sample form')
9
+ page.should have_selector('.sample_form .clearfix')
10
+ page.should have_selector('.sample_form .clearfix label', :text=>'Sample input')
11
+ end
12
+
13
+ it 'should proper generate bootstrap form input' do
14
+ visit bootstrap_form_input_path
15
+ page.should have_selector("div.clearfix")
16
+ end
17
+
18
+ end
@@ -0,0 +1,34 @@
1
+ # This file is copied to spec/ when you run 'rails generate rspec:install'
2
+ ENV["RAILS_ENV"] ||= 'test'
3
+ require File.expand_path("../../config/environment", __FILE__)
4
+ require 'rspec/rails'
5
+ require 'rspec/autorun'
6
+ require 'capybara/rspec'
7
+
8
+ # Requires supporting ruby files with custom matchers and macros, etc,
9
+ # in spec/support/ and its subdirectories.
10
+ Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
11
+
12
+ RSpec.configure do |config|
13
+ # == Mock Framework
14
+ #
15
+ # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
16
+ #
17
+ # config.mock_with :mocha
18
+ # config.mock_with :flexmock
19
+ # config.mock_with :rr
20
+ config.mock_with :rspec
21
+
22
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
23
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
24
+
25
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
26
+ # examples within a transaction, remove the following line or assign false
27
+ # instead of true.
28
+ config.use_transactional_fixtures = true
29
+
30
+ # If true, the base class of anonymous controllers will be inferred
31
+ # automatically. This will be the default behavior in future versions of
32
+ # rspec-rails.
33
+ config.infer_base_class_for_anonymous_controllers = false
34
+ end
File without changes
metadata ADDED
@@ -0,0 +1,131 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bootstrap_helpers
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Sergey Pchelincev
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-11-17 00:00:00 +02:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: Speed up bilding you interface with bootstrap
23
+ email:
24
+ - jalkoby91@gmail.com
25
+ executables: []
26
+
27
+ extensions: []
28
+
29
+ extra_rdoc_files: []
30
+
31
+ files:
32
+ - .gitignore
33
+ - Gemfile
34
+ - Rakefile
35
+ - bootstrap_helpers.gemspec
36
+ - lib/bootstrap_helpers.rb
37
+ - lib/bootstrap_helpers/railtie.rb
38
+ - lib/bootstrap_helpers/version.rb
39
+ - lib/bootstrap_helpers/view_helpers.rb
40
+ - test_app/.gitignore
41
+ - test_app/.rspec
42
+ - test_app/Gemfile
43
+ - test_app/Guardfile
44
+ - test_app/README
45
+ - test_app/Rakefile
46
+ - test_app/app/controllers/application_controller.rb
47
+ - test_app/app/controllers/samples_controller.rb
48
+ - test_app/app/helpers/application_helper.rb
49
+ - test_app/app/views/layouts/application.html.erb
50
+ - test_app/app/views/samples/bootstrap_form_input.html.erb
51
+ - test_app/app/views/samples/index.html.erb
52
+ - test_app/config.ru
53
+ - test_app/config/application.rb
54
+ - test_app/config/boot.rb
55
+ - test_app/config/database.yml
56
+ - test_app/config/environment.rb
57
+ - test_app/config/environments/development.rb
58
+ - test_app/config/environments/production.rb
59
+ - test_app/config/environments/test.rb
60
+ - test_app/config/initializers/backtrace_silencers.rb
61
+ - test_app/config/initializers/inflections.rb
62
+ - test_app/config/initializers/mime_types.rb
63
+ - test_app/config/initializers/secret_token.rb
64
+ - test_app/config/initializers/session_store.rb
65
+ - test_app/config/locales/en.yml
66
+ - test_app/config/routes.rb
67
+ - test_app/db/seeds.rb
68
+ - test_app/doc/README_FOR_APP
69
+ - test_app/lib/tasks/.gitkeep
70
+ - test_app/public/404.html
71
+ - test_app/public/422.html
72
+ - test_app/public/500.html
73
+ - test_app/public/favicon.ico
74
+ - test_app/public/images/rails.png
75
+ - test_app/public/javascripts/application.js
76
+ - test_app/public/javascripts/bootstrap-alerts.js
77
+ - test_app/public/javascripts/bootstrap-buttons.js
78
+ - test_app/public/javascripts/bootstrap-dropdown.js
79
+ - test_app/public/javascripts/bootstrap-modal.js
80
+ - test_app/public/javascripts/bootstrap-scrollspy.js
81
+ - test_app/public/javascripts/bootstrap-tabs.js
82
+ - test_app/public/javascripts/bootstrap-twipsy-popover.js
83
+ - test_app/public/javascripts/bootstrap-twipsy.js
84
+ - test_app/public/javascripts/jquery-ui.js
85
+ - test_app/public/javascripts/jquery-ui.min.js
86
+ - test_app/public/javascripts/jquery.js
87
+ - test_app/public/javascripts/jquery.min.js
88
+ - test_app/public/javascripts/jquery_ujs.js
89
+ - test_app/public/robots.txt
90
+ - test_app/public/stylesheets/.gitkeep
91
+ - test_app/public/stylesheets/bootstrap.css
92
+ - test_app/script/rails
93
+ - test_app/spec/requests/bootstrap_form_input_spec.rb
94
+ - test_app/spec/spec_helper.rb
95
+ - test_app/vendor/plugins/.gitkeep
96
+ has_rdoc: true
97
+ homepage: ""
98
+ licenses: []
99
+
100
+ post_install_message:
101
+ rdoc_options: []
102
+
103
+ require_paths:
104
+ - lib
105
+ required_ruby_version: !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ hash: 3
111
+ segments:
112
+ - 0
113
+ version: "0"
114
+ required_rubygems_version: !ruby/object:Gem::Requirement
115
+ none: false
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ hash: 3
120
+ segments:
121
+ - 0
122
+ version: "0"
123
+ requirements: []
124
+
125
+ rubyforge_project: bootstrap_helpers
126
+ rubygems_version: 1.5.3
127
+ signing_key:
128
+ specification_version: 3
129
+ summary: Early version of collection bootstrap helpers for Rails 3.x
130
+ test_files: []
131
+