enableplaceholder-jquery-rails 1.2.2.pre.2
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.
- checksums.yaml +15 -0
- data/.gitignore +22 -0
- data/.rspec +2 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +4 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +60 -0
- data/Rakefile +32 -0
- data/enableplaceholder-jquery-rails.gemspec +33 -0
- data/lib/enableplaceholder-jquery-rails/engine.rb +6 -0
- data/lib/enableplaceholder-jquery-rails/version.rb +13 -0
- data/lib/enableplaceholder-jquery-rails.rb +2 -0
- data/script/rails +8 -0
- data/spec/enableplaceholder-jquery-rails_spec.rb +11 -0
- data/spec/features/asset_pipeline_spec.rb +9 -0
- data/spec/spec_helper.rb +53 -0
- data/spec/test_app/Rakefile +7 -0
- data/spec/test_app/app/assets/javascripts/application.js +1 -0
- data/spec/test_app/app/controllers/application_controller.rb +6 -0
- data/spec/test_app/app/views/application/index.html.erb +0 -0
- data/spec/test_app/app/views/layouts/application.html.erb +14 -0
- data/spec/test_app/config/application.rb +64 -0
- data/spec/test_app/config/boot.rb +10 -0
- data/spec/test_app/config/database.yml +25 -0
- data/spec/test_app/config/environment.rb +5 -0
- data/spec/test_app/config/environments/development.rb +37 -0
- data/spec/test_app/config/environments/test.rb +37 -0
- data/spec/test_app/config/initializers/secret_token.rb +7 -0
- data/spec/test_app/config/initializers/session_store.rb +8 -0
- data/spec/test_app/config/initializers/wrap_parameters.rb +14 -0
- data/spec/test_app/config/routes.rb +2 -0
- data/spec/test_app/config.ru +4 -0
- data/spec/test_app/db/schema.rb +16 -0
- data/spec/test_app/public/404.html +26 -0
- data/spec/test_app/public/422.html +26 -0
- data/spec/test_app/public/500.html +25 -0
- data/spec/test_app/public/favicon.ico +0 -0
- data/spec/test_app/script/rails +6 -0
- data/vendor/assets/javascripts/enableplaceholder-jquery-rails.js +1 -0
- data/vendor/assets/javascripts/jquery.enablePlaceholder.js +72 -0
- metadata +253 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
!binary "U0hBMQ==":
|
|
3
|
+
metadata.gz: !binary |-
|
|
4
|
+
YjU3YTNiZjM2M2EyMDAxYmM1YmUzZTNkNjJjMjYyYmVkMThlODA2MA==
|
|
5
|
+
data.tar.gz: !binary |-
|
|
6
|
+
NTU2NWY0OTNlNzU1OTMzYjc0MjFjMWI0YTA1M2I2N2Q4NzllMmEwOA==
|
|
7
|
+
SHA512:
|
|
8
|
+
metadata.gz: !binary |-
|
|
9
|
+
NzI3YjgxZDI3YmYyNjIyOWI4YjIyMGZhYjUwNDI2NTcxZTBmN2QzZWY5Njlh
|
|
10
|
+
MjA1M2NlMmVjYWYyZjJhNzI3MmE1N2VhMTM5NzI2NDRiZGI4Y2EwYTM3NWM4
|
|
11
|
+
MTBjZGMwOTIxY2FhMjI3ZjQ0OTlkN2E3N2MzMmUwNzJhZjhhZDk=
|
|
12
|
+
data.tar.gz: !binary |-
|
|
13
|
+
ZGI1Y2QyNGI0ZTY4ODAzYjRmMTUwOWEwY2QxMTM5MmY2NjU5ZGIwMGExNjkz
|
|
14
|
+
MmRkMzMzZTYwZTEwYWEyNTRmNmI3ZTc0MzVhOGJmYWRiZGVjNmE2N2NlMzkw
|
|
15
|
+
ODMxMTQ5MzY3OWI0MGI0ZDA0ZmIyY2QwOWQ3ZGMwZDMyOTZmMDA=
|
data/.gitignore
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
*.gem
|
|
2
|
+
*.rbc
|
|
3
|
+
.bundle
|
|
4
|
+
.config
|
|
5
|
+
.yardoc
|
|
6
|
+
Gemfile.lock
|
|
7
|
+
InstalledFiles
|
|
8
|
+
_yardoc
|
|
9
|
+
coverage
|
|
10
|
+
doc/
|
|
11
|
+
lib/bundler/man
|
|
12
|
+
log/*.log
|
|
13
|
+
pkg/
|
|
14
|
+
rdoc
|
|
15
|
+
spec/reports
|
|
16
|
+
spec/test_app/db/*.sqlite3
|
|
17
|
+
spec/test_app/log/*.log
|
|
18
|
+
spec/test_app/tmp/
|
|
19
|
+
spec/test_app/.sass-cache
|
|
20
|
+
test/tmp
|
|
21
|
+
test/version_tmp
|
|
22
|
+
tmp
|
data/.rspec
ADDED
data/.ruby-gemset
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
global
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.9.3-p484
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) 2013 Doc Walker
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# enableplaceholder-jquery-rails
|
|
2
|
+
[](http://badge.fury.io/rb/enableplaceholder-jquery-rails)
|
|
3
|
+
[](https://travis-ci.org/jhx/gem-enableplaceholder-jquery-rails)
|
|
4
|
+
[](https://gemnasium.com/jhx/gem-enableplaceholder-jquery-rails)
|
|
5
|
+
[](https://codeclimate.com/github/jhx/gem-enableplaceholder-jquery-rails)
|
|
6
|
+
[](https://coveralls.io/r/jhx/gem-enableplaceholder-jquery-rails)
|
|
7
|
+
|
|
8
|
+
> Gemified by Doc Walker
|
|
9
|
+
|
|
10
|
+
Provides the `enablePlaceholder` jQuery plugin packaged for the Rails 3.1+ asset pipeline.
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
Add these lines to your application's `Gemfile`:
|
|
15
|
+
|
|
16
|
+
```rb
|
|
17
|
+
# enablePlaceholder jquery plugin packaged for the rails asset pipeline
|
|
18
|
+
gem 'enableplaceholder-jquery-rails', '~> 1.2.2'
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
And then execute:
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
$ bundle
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Or install it yourself as:
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
$ gem install enableplaceholder-jquery-rails
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Gem version notes:
|
|
34
|
+
|
|
35
|
+
- x.y.z version will track the `enablePlaceholder` plugin version;
|
|
36
|
+
- It may contain a suffix to differentiate versions of the gem based on the same `enablePlaceholder` plugin version;
|
|
37
|
+
|
|
38
|
+
## Usage
|
|
39
|
+
|
|
40
|
+
Add these lines to `app/assets/javascripts/application.js`
|
|
41
|
+
|
|
42
|
+
```js
|
|
43
|
+
// provides HTML5 placeholder behavior for old browsers
|
|
44
|
+
// from gem 'enableplaceholder-jquery-rails':
|
|
45
|
+
//= require enableplaceholder-jquery-rails
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Contributing
|
|
49
|
+
|
|
50
|
+
1. Fork it
|
|
51
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
52
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
53
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
|
54
|
+
5. Create new Pull Request
|
|
55
|
+
|
|
56
|
+
## Acknowledgements
|
|
57
|
+
|
|
58
|
+
- [enablePlaceholder](https://github.com/marioizquierdo/enablePlaceholder) jQuery plugin
|
|
59
|
+
- [RailsCast #245](http://railscasts.com/episodes/245-new-gem-with-bundler) New Gem with Bundler -- inspiration
|
|
60
|
+
- [Gemify Assets for Rails](http://prioritized.net/blog/gemify-assets-for-rails/) -- guidance
|
data/Rakefile
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#!/usr/bin/env rake
|
|
2
|
+
begin
|
|
3
|
+
require 'bundler/setup'
|
|
4
|
+
rescue LoadError
|
|
5
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
|
6
|
+
end
|
|
7
|
+
begin
|
|
8
|
+
require 'rdoc/task'
|
|
9
|
+
rescue LoadError
|
|
10
|
+
require 'rdoc/rdoc'
|
|
11
|
+
require 'rake/rdoctask'
|
|
12
|
+
RDoc::Task = Rake::RDocTask
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
|
16
|
+
rdoc.rdoc_dir = 'rdoc'
|
|
17
|
+
rdoc.title = 'EnableplaceholderJquery::Rails'
|
|
18
|
+
rdoc.options << '--line-numbers'
|
|
19
|
+
rdoc.rdoc_files.include('README.rdoc')
|
|
20
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
APP_RAKEFILE = File.expand_path("../spec/test_app/Rakefile", __FILE__)
|
|
24
|
+
load 'rails/tasks/engine.rake'
|
|
25
|
+
|
|
26
|
+
Bundler::GemHelper.install_tasks
|
|
27
|
+
|
|
28
|
+
require 'rspec/core/rake_task'
|
|
29
|
+
|
|
30
|
+
RSpec::Core::RakeTask.new(:spec)
|
|
31
|
+
|
|
32
|
+
task :default => :spec
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
+
require 'enableplaceholder-jquery-rails/version'
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |spec|
|
|
7
|
+
spec.name = "enableplaceholder-jquery-rails"
|
|
8
|
+
spec.version = EnableplaceholderJquery::Rails::VERSION
|
|
9
|
+
spec.authors = ["Doc Walker"]
|
|
10
|
+
spec.email = ["doc.walker@jameshardie.com"]
|
|
11
|
+
spec.description = %q{Provides the `enablePlaceholder` jQuery plugin packaged for the Rails 3.1+ asset pipeline.}
|
|
12
|
+
spec.summary = %q{Provides the `enablePlaceholder` jQuery plugin packaged for the Rails 3.1+ asset pipeline.}
|
|
13
|
+
spec.homepage = "https://github.com/jhx/gem-enableplaceholder-jquery-rails"
|
|
14
|
+
spec.license = "MIT"
|
|
15
|
+
|
|
16
|
+
spec.files = `git ls-files`.split($/)
|
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
19
|
+
spec.require_paths = ["lib"]
|
|
20
|
+
|
|
21
|
+
spec.add_dependency "railties", "~> 3.1"
|
|
22
|
+
spec.requirements << "jQuery"
|
|
23
|
+
|
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
|
25
|
+
spec.add_development_dependency "capybara"
|
|
26
|
+
spec.add_development_dependency "coveralls"
|
|
27
|
+
spec.add_development_dependency "launchy"
|
|
28
|
+
spec.add_development_dependency "rails", "~> 3.1"
|
|
29
|
+
spec.add_development_dependency "rake"
|
|
30
|
+
spec.add_development_dependency "rspec-rails"
|
|
31
|
+
spec.add_development_dependency "semantic"
|
|
32
|
+
spec.add_development_dependency "sqlite3"
|
|
33
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module EnableplaceholderJquery
|
|
2
|
+
module Rails
|
|
3
|
+
# Use enablePlaceholder version; append a pre-release version identifier
|
|
4
|
+
# if gem is updated without updating version of enablePlaceholder.
|
|
5
|
+
# Examples:
|
|
6
|
+
# "2.0.0-1"
|
|
7
|
+
# "2.0.0-rc1"
|
|
8
|
+
# "2.0.0-pre"
|
|
9
|
+
# "2.0.0-beta"
|
|
10
|
+
# Refer to Semantic Versioning 2.0.0 (http://semver.org).
|
|
11
|
+
VERSION = "1.2.2-2"
|
|
12
|
+
end
|
|
13
|
+
end
|
data/script/rails
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
ENGINE_ROOT = File.expand_path('../..', __FILE__)
|
|
5
|
+
ENGINE_PATH = File.expand_path('../../lib/enableplaceholder-jquery-rails/engine', __FILE__)
|
|
6
|
+
|
|
7
|
+
require 'rails/all'
|
|
8
|
+
require 'rails/engine/commands'
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
require 'semantic'
|
|
3
|
+
|
|
4
|
+
describe EnableplaceholderJquery::Rails do
|
|
5
|
+
context 'VERSION constant' do
|
|
6
|
+
it 'is a valid SemVer string (semver.org)' do
|
|
7
|
+
version = EnableplaceholderJquery::Rails::VERSION
|
|
8
|
+
expect { Semantic::Version.new version }.to_not raise_error()
|
|
9
|
+
end # it
|
|
10
|
+
end # context
|
|
11
|
+
end # describe
|
data/spec/spec_helper.rb
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
|
2
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
|
3
|
+
# Require this file using `require "spec_helper"` to ensure that it is only
|
|
4
|
+
# loaded once.
|
|
5
|
+
#
|
|
6
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
|
7
|
+
require 'coveralls'
|
|
8
|
+
Coveralls.wear!
|
|
9
|
+
|
|
10
|
+
ENV["RAILS_ENV"] ||= 'test'
|
|
11
|
+
|
|
12
|
+
require File.expand_path("../../spec/test_app/config/environment", __FILE__)
|
|
13
|
+
|
|
14
|
+
require 'capybara/rspec'
|
|
15
|
+
require 'rspec/rails'
|
|
16
|
+
require 'rspec/autorun'
|
|
17
|
+
|
|
18
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
|
19
|
+
# in spec/support/ and its subdirectories.
|
|
20
|
+
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
|
|
21
|
+
|
|
22
|
+
RSpec.configure do |config|
|
|
23
|
+
# ## Mock Framework
|
|
24
|
+
#
|
|
25
|
+
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
|
26
|
+
#
|
|
27
|
+
# config.mock_with :mocha
|
|
28
|
+
# config.mock_with :flexmock
|
|
29
|
+
# config.mock_with :rr
|
|
30
|
+
|
|
31
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
|
32
|
+
config.run_all_when_everything_filtered = true
|
|
33
|
+
config.filter_run :focus
|
|
34
|
+
|
|
35
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
|
36
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
|
37
|
+
|
|
38
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
|
39
|
+
# examples within a transaction, remove the following line or assign false
|
|
40
|
+
# instead of true.
|
|
41
|
+
config.use_transactional_fixtures = true
|
|
42
|
+
|
|
43
|
+
# If true, the base class of anonymous controllers will be inferred
|
|
44
|
+
# automatically. This will be the default behavior in future versions of
|
|
45
|
+
# rspec-rails.
|
|
46
|
+
config.infer_base_class_for_anonymous_controllers = false
|
|
47
|
+
|
|
48
|
+
# Run specs in random order to surface order dependencies. If you find an
|
|
49
|
+
# order dependency and want to debug it, you can fix the order by providing
|
|
50
|
+
# the seed, which is printed after each run.
|
|
51
|
+
# --seed 1234
|
|
52
|
+
config.order = 'random'
|
|
53
|
+
end
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#!/usr/bin/env rake
|
|
2
|
+
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
|
3
|
+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
|
4
|
+
|
|
5
|
+
require File.expand_path('../config/application', __FILE__)
|
|
6
|
+
|
|
7
|
+
TestApp::Application.load_tasks
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//= require enableplaceholder-jquery-rails
|
|
File without changes
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
|
2
|
+
|
|
3
|
+
# Pick the frameworks you want:
|
|
4
|
+
require "active_record/railtie"
|
|
5
|
+
require "action_controller/railtie"
|
|
6
|
+
require "action_mailer/railtie"
|
|
7
|
+
require "active_resource/railtie"
|
|
8
|
+
require "sprockets/railtie"
|
|
9
|
+
# require "rails/test_unit/railtie"
|
|
10
|
+
|
|
11
|
+
Bundler.require(*Rails.groups)
|
|
12
|
+
require "enableplaceholder-jquery-rails"
|
|
13
|
+
|
|
14
|
+
module TestApp
|
|
15
|
+
class Application < Rails::Application
|
|
16
|
+
# Settings in config/environments/* take precedence over those specified here.
|
|
17
|
+
# Application configuration should go into files in config/initializers
|
|
18
|
+
# -- all .rb files in that directory are automatically loaded.
|
|
19
|
+
|
|
20
|
+
# Custom directories with classes and modules you want to be autoloadable.
|
|
21
|
+
# config.autoload_paths += %W(#{config.root}/extras)
|
|
22
|
+
|
|
23
|
+
# Only load the plugins named here, in the order given (default is alphabetical).
|
|
24
|
+
# :all can be used as a placeholder for all plugins not explicitly named.
|
|
25
|
+
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
|
26
|
+
|
|
27
|
+
# Activate observers that should always be running.
|
|
28
|
+
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
|
29
|
+
|
|
30
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
|
31
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
|
32
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
|
33
|
+
|
|
34
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
|
35
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
|
36
|
+
# config.i18n.default_locale = :de
|
|
37
|
+
|
|
38
|
+
# Configure the default encoding used in templates for Ruby 1.9.
|
|
39
|
+
config.encoding = "utf-8"
|
|
40
|
+
|
|
41
|
+
# Configure sensitive parameters which will be filtered from the log file.
|
|
42
|
+
config.filter_parameters += [:password]
|
|
43
|
+
|
|
44
|
+
# Enable escaping HTML in JSON.
|
|
45
|
+
config.active_support.escape_html_entities_in_json = true
|
|
46
|
+
|
|
47
|
+
# Use SQL instead of Active Record's schema dumper when creating the database.
|
|
48
|
+
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
|
49
|
+
# like if you have constraints or database-specific column types
|
|
50
|
+
# config.active_record.schema_format = :sql
|
|
51
|
+
|
|
52
|
+
# Enforce whitelist mode for mass assignment.
|
|
53
|
+
# This will create an empty whitelist of attributes available for mass-assignment for all models
|
|
54
|
+
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
|
|
55
|
+
# parameters by using an attr_accessible or attr_protected declaration.
|
|
56
|
+
config.active_record.whitelist_attributes = true
|
|
57
|
+
|
|
58
|
+
# Enable the asset pipeline
|
|
59
|
+
config.assets.enabled = true
|
|
60
|
+
|
|
61
|
+
# Version of your assets, change this if you want to expire all your assets
|
|
62
|
+
config.assets.version = '1.0'
|
|
63
|
+
end
|
|
64
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# SQLite version 3.x
|
|
2
|
+
# gem install sqlite3
|
|
3
|
+
#
|
|
4
|
+
# Ensure the SQLite 3 gem is defined in your Gemfile
|
|
5
|
+
# gem 'sqlite3'
|
|
6
|
+
development:
|
|
7
|
+
adapter: sqlite3
|
|
8
|
+
database: db/development.sqlite3
|
|
9
|
+
pool: 5
|
|
10
|
+
timeout: 5000
|
|
11
|
+
|
|
12
|
+
# Warning: The database defined as "test" will be erased and
|
|
13
|
+
# re-generated from your development database when you run "rake".
|
|
14
|
+
# Do not set this db to the same as development or production.
|
|
15
|
+
test:
|
|
16
|
+
adapter: sqlite3
|
|
17
|
+
database: db/test.sqlite3
|
|
18
|
+
pool: 5
|
|
19
|
+
timeout: 5000
|
|
20
|
+
|
|
21
|
+
production:
|
|
22
|
+
adapter: sqlite3
|
|
23
|
+
database: db/production.sqlite3
|
|
24
|
+
pool: 5
|
|
25
|
+
timeout: 5000
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
TestApp::Application.configure do
|
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
|
3
|
+
|
|
4
|
+
# In the development environment your application's code is reloaded on
|
|
5
|
+
# every request. This slows down response time but is perfect for development
|
|
6
|
+
# since you don't have to restart the web server when you make code changes.
|
|
7
|
+
config.cache_classes = false
|
|
8
|
+
|
|
9
|
+
# Log error messages when you accidentally call methods on nil.
|
|
10
|
+
config.whiny_nils = true
|
|
11
|
+
|
|
12
|
+
# Show full error reports and disable caching
|
|
13
|
+
config.consider_all_requests_local = true
|
|
14
|
+
config.action_controller.perform_caching = false
|
|
15
|
+
|
|
16
|
+
# Don't care if the mailer can't send
|
|
17
|
+
config.action_mailer.raise_delivery_errors = false
|
|
18
|
+
|
|
19
|
+
# Print deprecation notices to the Rails logger
|
|
20
|
+
config.active_support.deprecation = :log
|
|
21
|
+
|
|
22
|
+
# Only use best-standards-support built into browsers
|
|
23
|
+
config.action_dispatch.best_standards_support = :builtin
|
|
24
|
+
|
|
25
|
+
# Raise exception on mass assignment protection for Active Record models
|
|
26
|
+
config.active_record.mass_assignment_sanitizer = :strict
|
|
27
|
+
|
|
28
|
+
# Log the query plan for queries taking more than this (works
|
|
29
|
+
# with SQLite, MySQL, and PostgreSQL)
|
|
30
|
+
config.active_record.auto_explain_threshold_in_seconds = 0.5
|
|
31
|
+
|
|
32
|
+
# Do not compress assets
|
|
33
|
+
config.assets.compress = false
|
|
34
|
+
|
|
35
|
+
# Expands the lines which load the assets
|
|
36
|
+
config.assets.debug = true
|
|
37
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
TestApp::Application.configure do
|
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
|
3
|
+
|
|
4
|
+
# The test environment is used exclusively to run your application's
|
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
|
8
|
+
config.cache_classes = true
|
|
9
|
+
|
|
10
|
+
# Configure static asset server for tests with Cache-Control for performance
|
|
11
|
+
config.serve_static_assets = true
|
|
12
|
+
config.static_cache_control = "public, max-age=3600"
|
|
13
|
+
|
|
14
|
+
# Log error messages when you accidentally call methods on nil
|
|
15
|
+
config.whiny_nils = true
|
|
16
|
+
|
|
17
|
+
# Show full error reports and disable caching
|
|
18
|
+
config.consider_all_requests_local = true
|
|
19
|
+
config.action_controller.perform_caching = false
|
|
20
|
+
|
|
21
|
+
# Raise exceptions instead of rendering exception templates
|
|
22
|
+
config.action_dispatch.show_exceptions = false
|
|
23
|
+
|
|
24
|
+
# Disable request forgery protection in test environment
|
|
25
|
+
config.action_controller.allow_forgery_protection = false
|
|
26
|
+
|
|
27
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
|
28
|
+
# The :test delivery method accumulates sent emails in the
|
|
29
|
+
# ActionMailer::Base.deliveries array.
|
|
30
|
+
config.action_mailer.delivery_method = :test
|
|
31
|
+
|
|
32
|
+
# Raise exception on mass assignment protection for Active Record models
|
|
33
|
+
config.active_record.mass_assignment_sanitizer = :strict
|
|
34
|
+
|
|
35
|
+
# Print deprecation notices to the stderr
|
|
36
|
+
config.active_support.deprecation = :stderr
|
|
37
|
+
end
|
|
@@ -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 = '65a9756396061e1df1abad006962e69f21906a1edaf1b2b50dae89b3a53459bad80c10d9b14e5ab7767583a0aeaf40ed88c52d86d06a809e640268ead49d5a1e'
|
|
@@ -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,14 @@
|
|
|
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
|
+
|
|
11
|
+
# Disable root element in JSON by default.
|
|
12
|
+
ActiveSupport.on_load(:active_record) do
|
|
13
|
+
self.include_root_in_json = false
|
|
14
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# encoding: UTF-8
|
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
|
5
|
+
#
|
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
|
7
|
+
# database schema. If you need to create the application database on another
|
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
|
11
|
+
#
|
|
12
|
+
# It's strongly recommended to check this file into your version control system.
|
|
13
|
+
|
|
14
|
+
ActiveRecord::Schema.define(:version => 0) do
|
|
15
|
+
|
|
16
|
+
end
|
|
@@ -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,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'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//= require jquery.enablePlaceholder
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
/*
|
|
3
|
+
EnablePlaceholder jQuery plugin.
|
|
4
|
+
https://github.com/marioizquierdo/enablePlaceholder
|
|
5
|
+
version 1.2.2 (Oct 02, 2011)
|
|
6
|
+
|
|
7
|
+
Copyright (c) 2011 Mario Izquierdo
|
|
8
|
+
Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
9
|
+
and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";
|
|
12
|
+
var $, execute_plugin_method, on_focusin_clear_placeholder, on_focusout_show_placeholder;
|
|
13
|
+
$ = jQuery;
|
|
14
|
+
$.support.placeholder = document.createElement('input').placeholder != null;
|
|
15
|
+
$.EnablePlaceholder = {
|
|
16
|
+
"defaults": {
|
|
17
|
+
"withPlaceholderClass": "placeholder"
|
|
18
|
+
},
|
|
19
|
+
"alsoForModernBrowsers": false
|
|
20
|
+
};
|
|
21
|
+
execute_plugin_method = function($elements, options, lambda) {
|
|
22
|
+
var settings;
|
|
23
|
+
if (!$.support.placeholder || $.EnablePlaceholder.alsoForModernBrowsers) {
|
|
24
|
+
settings = $.extend({}, $.EnablePlaceholder.defaults, options);
|
|
25
|
+
return $elements.each(function() {
|
|
26
|
+
return lambda($(this), settings);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
on_focusin_clear_placeholder = function(input, settings) {
|
|
31
|
+
return input.bind('focus focusin keydown paste', function() {
|
|
32
|
+
return input.clearPlaceholder(settings);
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
on_focusout_show_placeholder = function(input, settings) {
|
|
36
|
+
return input.bind('blur focusout', function() {
|
|
37
|
+
return input.showPlaceholder(settings);
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
$.fn.enablePlaceholder = function(options) {
|
|
41
|
+
return execute_plugin_method(this, options, function(input, settings) {
|
|
42
|
+
on_focusin_clear_placeholder(input, settings);
|
|
43
|
+
on_focusout_show_placeholder(input, settings);
|
|
44
|
+
input.parents('form').submit(function() {
|
|
45
|
+
input.clearPlaceholder(settings);
|
|
46
|
+
return true;
|
|
47
|
+
});
|
|
48
|
+
$(window).unload(function() {
|
|
49
|
+
input.clearPlaceholder(settings);
|
|
50
|
+
return true;
|
|
51
|
+
});
|
|
52
|
+
return input.showPlaceholder(settings);
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
$.fn.showPlaceholder = function(options) {
|
|
56
|
+
return execute_plugin_method(this, options, function(input, settings) {
|
|
57
|
+
if (input.val() === "") {
|
|
58
|
+
return input.val(input.attr("placeholder")).addClass(settings.withPlaceholderClass).data('ph_active', true);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
$.fn.clearPlaceholder = function(options) {
|
|
63
|
+
return execute_plugin_method(this, options, function(input, settings) {
|
|
64
|
+
if (input.data('ph_active')) {
|
|
65
|
+
return input.val("").removeClass(settings.withPlaceholderClass).data('ph_active', false);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
$.fn.updatePlaceholder = function(new_placeholder_text, options) {
|
|
70
|
+
return this.clearPlaceholder(options).attr('placeholder', new_placeholder_text).showPlaceholder(options);
|
|
71
|
+
};
|
|
72
|
+
}).call(this);
|
metadata
ADDED
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: enableplaceholder-jquery-rails
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.2.2.pre.2
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Doc Walker
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2013-12-22 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: railties
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ~>
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '3.1'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ~>
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '3.1'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: bundler
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ~>
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '1.3'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ~>
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '1.3'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: capybara
|
|
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
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: coveralls
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - ! '>='
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0'
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - ! '>='
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '0'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: launchy
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - ! '>='
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '0'
|
|
76
|
+
type: :development
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - ! '>='
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '0'
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: rails
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - ~>
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '3.1'
|
|
90
|
+
type: :development
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - ~>
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: '3.1'
|
|
97
|
+
- !ruby/object:Gem::Dependency
|
|
98
|
+
name: rake
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - ! '>='
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: '0'
|
|
104
|
+
type: :development
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - ! '>='
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: '0'
|
|
111
|
+
- !ruby/object:Gem::Dependency
|
|
112
|
+
name: rspec-rails
|
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
|
114
|
+
requirements:
|
|
115
|
+
- - ! '>='
|
|
116
|
+
- !ruby/object:Gem::Version
|
|
117
|
+
version: '0'
|
|
118
|
+
type: :development
|
|
119
|
+
prerelease: false
|
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
+
requirements:
|
|
122
|
+
- - ! '>='
|
|
123
|
+
- !ruby/object:Gem::Version
|
|
124
|
+
version: '0'
|
|
125
|
+
- !ruby/object:Gem::Dependency
|
|
126
|
+
name: semantic
|
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
|
128
|
+
requirements:
|
|
129
|
+
- - ! '>='
|
|
130
|
+
- !ruby/object:Gem::Version
|
|
131
|
+
version: '0'
|
|
132
|
+
type: :development
|
|
133
|
+
prerelease: false
|
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
+
requirements:
|
|
136
|
+
- - ! '>='
|
|
137
|
+
- !ruby/object:Gem::Version
|
|
138
|
+
version: '0'
|
|
139
|
+
- !ruby/object:Gem::Dependency
|
|
140
|
+
name: sqlite3
|
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
|
142
|
+
requirements:
|
|
143
|
+
- - ! '>='
|
|
144
|
+
- !ruby/object:Gem::Version
|
|
145
|
+
version: '0'
|
|
146
|
+
type: :development
|
|
147
|
+
prerelease: false
|
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
149
|
+
requirements:
|
|
150
|
+
- - ! '>='
|
|
151
|
+
- !ruby/object:Gem::Version
|
|
152
|
+
version: '0'
|
|
153
|
+
description: Provides the `enablePlaceholder` jQuery plugin packaged for the Rails
|
|
154
|
+
3.1+ asset pipeline.
|
|
155
|
+
email:
|
|
156
|
+
- doc.walker@jameshardie.com
|
|
157
|
+
executables: []
|
|
158
|
+
extensions: []
|
|
159
|
+
extra_rdoc_files: []
|
|
160
|
+
files:
|
|
161
|
+
- .gitignore
|
|
162
|
+
- .rspec
|
|
163
|
+
- .ruby-gemset
|
|
164
|
+
- .ruby-version
|
|
165
|
+
- .travis.yml
|
|
166
|
+
- Gemfile
|
|
167
|
+
- LICENSE.txt
|
|
168
|
+
- README.md
|
|
169
|
+
- Rakefile
|
|
170
|
+
- enableplaceholder-jquery-rails.gemspec
|
|
171
|
+
- lib/enableplaceholder-jquery-rails.rb
|
|
172
|
+
- lib/enableplaceholder-jquery-rails/engine.rb
|
|
173
|
+
- lib/enableplaceholder-jquery-rails/version.rb
|
|
174
|
+
- script/rails
|
|
175
|
+
- spec/enableplaceholder-jquery-rails_spec.rb
|
|
176
|
+
- spec/features/asset_pipeline_spec.rb
|
|
177
|
+
- spec/spec_helper.rb
|
|
178
|
+
- spec/test_app/Rakefile
|
|
179
|
+
- spec/test_app/app/assets/javascripts/application.js
|
|
180
|
+
- spec/test_app/app/controllers/application_controller.rb
|
|
181
|
+
- spec/test_app/app/views/application/index.html.erb
|
|
182
|
+
- spec/test_app/app/views/layouts/application.html.erb
|
|
183
|
+
- spec/test_app/config.ru
|
|
184
|
+
- spec/test_app/config/application.rb
|
|
185
|
+
- spec/test_app/config/boot.rb
|
|
186
|
+
- spec/test_app/config/database.yml
|
|
187
|
+
- spec/test_app/config/environment.rb
|
|
188
|
+
- spec/test_app/config/environments/development.rb
|
|
189
|
+
- spec/test_app/config/environments/test.rb
|
|
190
|
+
- spec/test_app/config/initializers/secret_token.rb
|
|
191
|
+
- spec/test_app/config/initializers/session_store.rb
|
|
192
|
+
- spec/test_app/config/initializers/wrap_parameters.rb
|
|
193
|
+
- spec/test_app/config/routes.rb
|
|
194
|
+
- spec/test_app/db/schema.rb
|
|
195
|
+
- spec/test_app/public/404.html
|
|
196
|
+
- spec/test_app/public/422.html
|
|
197
|
+
- spec/test_app/public/500.html
|
|
198
|
+
- spec/test_app/public/favicon.ico
|
|
199
|
+
- spec/test_app/script/rails
|
|
200
|
+
- vendor/assets/javascripts/enableplaceholder-jquery-rails.js
|
|
201
|
+
- vendor/assets/javascripts/jquery.enablePlaceholder.js
|
|
202
|
+
homepage: https://github.com/jhx/gem-enableplaceholder-jquery-rails
|
|
203
|
+
licenses:
|
|
204
|
+
- MIT
|
|
205
|
+
metadata: {}
|
|
206
|
+
post_install_message:
|
|
207
|
+
rdoc_options: []
|
|
208
|
+
require_paths:
|
|
209
|
+
- lib
|
|
210
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
211
|
+
requirements:
|
|
212
|
+
- - ! '>='
|
|
213
|
+
- !ruby/object:Gem::Version
|
|
214
|
+
version: '0'
|
|
215
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
216
|
+
requirements:
|
|
217
|
+
- - ! '>'
|
|
218
|
+
- !ruby/object:Gem::Version
|
|
219
|
+
version: 1.3.1
|
|
220
|
+
requirements:
|
|
221
|
+
- jQuery
|
|
222
|
+
rubyforge_project:
|
|
223
|
+
rubygems_version: 2.1.11
|
|
224
|
+
signing_key:
|
|
225
|
+
specification_version: 4
|
|
226
|
+
summary: Provides the `enablePlaceholder` jQuery plugin packaged for the Rails 3.1+
|
|
227
|
+
asset pipeline.
|
|
228
|
+
test_files:
|
|
229
|
+
- spec/enableplaceholder-jquery-rails_spec.rb
|
|
230
|
+
- spec/features/asset_pipeline_spec.rb
|
|
231
|
+
- spec/spec_helper.rb
|
|
232
|
+
- spec/test_app/Rakefile
|
|
233
|
+
- spec/test_app/app/assets/javascripts/application.js
|
|
234
|
+
- spec/test_app/app/controllers/application_controller.rb
|
|
235
|
+
- spec/test_app/app/views/application/index.html.erb
|
|
236
|
+
- spec/test_app/app/views/layouts/application.html.erb
|
|
237
|
+
- spec/test_app/config.ru
|
|
238
|
+
- spec/test_app/config/application.rb
|
|
239
|
+
- spec/test_app/config/boot.rb
|
|
240
|
+
- spec/test_app/config/database.yml
|
|
241
|
+
- spec/test_app/config/environment.rb
|
|
242
|
+
- spec/test_app/config/environments/development.rb
|
|
243
|
+
- spec/test_app/config/environments/test.rb
|
|
244
|
+
- spec/test_app/config/initializers/secret_token.rb
|
|
245
|
+
- spec/test_app/config/initializers/session_store.rb
|
|
246
|
+
- spec/test_app/config/initializers/wrap_parameters.rb
|
|
247
|
+
- spec/test_app/config/routes.rb
|
|
248
|
+
- spec/test_app/db/schema.rb
|
|
249
|
+
- spec/test_app/public/404.html
|
|
250
|
+
- spec/test_app/public/422.html
|
|
251
|
+
- spec/test_app/public/500.html
|
|
252
|
+
- spec/test_app/public/favicon.ico
|
|
253
|
+
- spec/test_app/script/rails
|