jqgrid-jquery-rails 4.5.2.0 → 4.5.200

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +13 -5
  2. data/.gitignore +6 -1
  3. data/.rspec +2 -0
  4. data/.ruby-gemset +1 -0
  5. data/.ruby-version +1 -0
  6. data/.travis.yml +4 -0
  7. data/Gemfile +5 -1
  8. data/README.md +8 -3
  9. data/Rakefile +32 -1
  10. data/jqgrid-jquery-rails.gemspec +8 -1
  11. data/lib/jqgrid-jquery-rails/version.rb +8 -7
  12. data/script/rails +8 -0
  13. data/spec/features/asset_pipeline_spec.rb +21 -0
  14. data/spec/jqgrid-jquery-rails_spec.rb +11 -0
  15. data/spec/spec_helper.rb +56 -0
  16. data/spec/test_app/Rakefile +7 -0
  17. data/spec/test_app/app/assets/javascripts/application.js +2 -0
  18. data/spec/test_app/app/assets/stylesheets/application.css +4 -0
  19. data/spec/test_app/app/controllers/application_controller.rb +6 -0
  20. data/spec/test_app/app/views/application/index.html.erb +0 -0
  21. data/spec/test_app/app/views/layouts/application.html.erb +14 -0
  22. data/spec/test_app/config.ru +4 -0
  23. data/spec/test_app/config/application.rb +64 -0
  24. data/spec/test_app/config/boot.rb +10 -0
  25. data/spec/test_app/config/database.yml +25 -0
  26. data/spec/test_app/config/environment.rb +5 -0
  27. data/spec/test_app/config/environments/development.rb +37 -0
  28. data/spec/test_app/config/environments/test.rb +37 -0
  29. data/spec/test_app/config/initializers/secret_token.rb +7 -0
  30. data/spec/test_app/config/initializers/session_store.rb +8 -0
  31. data/spec/test_app/config/initializers/wrap_parameters.rb +14 -0
  32. data/spec/test_app/config/routes.rb +3 -0
  33. data/spec/test_app/db/schema.rb +16 -0
  34. data/spec/test_app/public/404.html +26 -0
  35. data/spec/test_app/public/422.html +26 -0
  36. data/spec/test_app/public/500.html +25 -0
  37. data/spec/test_app/public/favicon.ico +0 -0
  38. data/spec/test_app/script/rails +6 -0
  39. data/vendor/assets/javascripts/i18n/grid.locale-ar.js +126 -126
  40. data/vendor/assets/javascripts/i18n/grid.locale-fa.js +144 -144
  41. data/vendor/assets/javascripts/i18n/grid.locale-fi.js +129 -129
  42. data/vendor/assets/javascripts/i18n/grid.locale-fr.js +126 -126
  43. data/vendor/assets/javascripts/i18n/grid.locale-hr.js +161 -161
  44. data/vendor/assets/javascripts/i18n/grid.locale-hr1250.js +161 -161
  45. data/vendor/assets/javascripts/i18n/grid.locale-id.js +168 -168
  46. data/vendor/assets/javascripts/i18n/grid.locale-is.js +126 -126
  47. data/vendor/assets/javascripts/i18n/grid.locale-mne.js +128 -128
  48. data/vendor/assets/javascripts/i18n/grid.locale-no.js +1 -1
  49. data/vendor/assets/javascripts/i18n/grid.locale-sr-latin.js +128 -128
  50. data/vendor/assets/javascripts/i18n/grid.locale-sr.js +128 -128
  51. data/vendor/assets/javascripts/i18n/grid.locale-th.js +128 -128
  52. data/vendor/assets/javascripts/jqgrid-jquery-rails.js +1 -1
  53. metadata +163 -8
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b5b9f3d87138099509b1150beadbefc50fb6dea2
4
- data.tar.gz: 711aca08a0156704ed0c7d7bccbd30903c2ef5dc
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YTRlZGJlMTI1NjE3NWE0OGQ5YmRhYzYyNmQ5ZWM4ODcwZmFlOWE3Yw==
5
+ data.tar.gz: !binary |-
6
+ ZDYyNmM1YmIxNTgyYTE3MjVhZjYyZTQ4ZDk2MmUzYzcxNGEzZDk2NA==
5
7
  SHA512:
6
- metadata.gz: d3130acebcb2d0f707a3b355b9abf02e102336d219d3fe75a4491f1157ff68aa364e20e0b5a47f94933979745d6df761b6c24e1fa94af246219a2faf9ef41df5
7
- data.tar.gz: adefb4c5b3dcc2847a3075f48f54051436c5cc58b8e6e95b47f314b621c314080d28c0472ab9671ebed20ac982a2fe463d81215aac3ecca64f74c7e0229532f0
8
+ metadata.gz: !binary |-
9
+ MzQ0NGMxMzk4MWY4OTQ5YzNkMzFkZTc4YzQwYTQwNTM2OTFkZGUzYzlmYmMy
10
+ YmM1NWMwOTFlNTlhMmFlZTM5NTE5NzYxNzk5ZTc2ODU2NDA5NTRmNjI4MjZl
11
+ ZDRkYjcwN2UzZjIwMDJlMTBiODc2NTljOWQ3NTA5ZjQxZTlmZGM=
12
+ data.tar.gz: !binary |-
13
+ ZDJlYTc3ODU0N2RmN2E2NGVmOTAwMGFjODkzZDdkOTYwYWUzMTk0ZGUyZTAy
14
+ OWY4OTk4ZTExYjJiMmJhM2Q3N2U0NmY4Y2Y4OTQxZjMzOGQzNWZjOWExMTQ5
15
+ MWM0MjdlNDczOGEwOGYxODY0MmE0ZmYxMzdkYWEyOTJjMWUxOGI=
data/.gitignore CHANGED
@@ -9,9 +9,14 @@ _yardoc
9
9
  coverage
10
10
  doc/
11
11
  lib/bundler/man
12
- pkg
12
+ log/*.log
13
+ pkg/
13
14
  rdoc
14
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
15
20
  test/tmp
16
21
  test/version_tmp
17
22
  tmp
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format progress
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
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 'ruby-1.9.3'
4
+ - 'ruby-2.0.0'
data/Gemfile CHANGED
@@ -1,4 +1,8 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in jqgridjqueryrails.gemspec
3
+ # Specify your gem's dependencies in jqgrid-jquery-rails.gemspec
4
4
  gemspec
5
+
6
+ # jquery(-ui)-rails is used by the dummy application
7
+ gem 'jquery-rails'
8
+ gem 'jquery-ui-rails'
data/README.md CHANGED
@@ -1,4 +1,9 @@
1
- # jqgrid-jquery-rails [![Gem Version](https://badge.fury.io/rb/jqgrid-jquery-rails.png)](http://badge.fury.io/rb/jqgrid-jquery-rails)
1
+ # jqgrid-jquery-rails
2
+ [![Gem Version](https://badge.fury.io/rb/jqgrid-jquery-rails.png)](http://badge.fury.io/rb/jqgrid-jquery-rails)
3
+ [![Build Status](https://travis-ci.org/jhx/gem-jqgrid-jquery-rails.png?branch=master)](https://travis-ci.org/jhx/gem-jqgrid-jquery-rails)
4
+ [![Dependency Status](https://gemnasium.com/jhx/gem-jqgrid-jquery-rails.png)](https://gemnasium.com/jhx/gem-jqgrid-jquery-rails)
5
+ [![Code Climate](https://codeclimate.com/github/jhx/gem-jqgrid-jquery-rails.png)](https://codeclimate.com/github/jhx/gem-jqgrid-jquery-rails)
6
+ [![Coverage Status](https://coveralls.io/repos/jhx/gem-jqgrid-jquery-rails/badge.png)](https://coveralls.io/r/jhx/gem-jqgrid-jquery-rails)
2
7
 
3
8
  > Gemified by Doc Walker
4
9
 
@@ -27,8 +32,8 @@ $ gem install jqgrid-jquery-rails
27
32
 
28
33
  Gem version notes:
29
34
 
30
- - x.y.z version will track the `jqGrid` plugin version;
31
- - It may contain a suffix to differentiate versions of the gem based on the same `jqGrid` plugin version;
35
+ - Version is in the format `X.Y.ZVV` where `X.Y.Z` is version of `jqGrid` plugin and `VV` is version of gem (with leading zero);
36
+ - Refer to Semantic Versioning 2.0.0 (http://semver.org);
32
37
 
33
38
  ## Usage
34
39
 
data/Rakefile CHANGED
@@ -1 +1,32 @@
1
- require "bundler/gem_tasks"
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 = 'JqgridJquery::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
@@ -23,5 +23,12 @@ Gem::Specification.new do |spec|
23
23
  spec.add_dependency "jquery-ui-rails"
24
24
 
25
25
  spec.add_development_dependency "bundler", "~> 1.3"
26
- spec.add_development_dependency "rake"
26
+ spec.add_development_dependency "capybara", "~> 2.2.0"
27
+ spec.add_development_dependency "coveralls", "~> 0.7.0"
28
+ spec.add_development_dependency "launchy", "~> 2.4.2"
29
+ spec.add_development_dependency "rails", "~> 3.2.14"
30
+ spec.add_development_dependency "rake", "~> 10.1.0"
31
+ spec.add_development_dependency "rspec-rails", "~> 2.14.0"
32
+ spec.add_development_dependency "semantic", "~> 1.2.1"
33
+ spec.add_development_dependency "sqlite3", "~> 1.3.8"
27
34
  end
@@ -1,12 +1,13 @@
1
1
  module JqgridJquery
2
2
  module Rails
3
- # Use jqGrid version; append a pre-release version identifier if gem
4
- # is updated without updating version of jqGrid.
5
- # Examples:
6
- # "2.0.0.rc1"
7
- # "2.0.0.pre"
8
- # "2.0.0.beta"
9
3
  # Refer to Semantic Versioning 2.0.0 (http://semver.org).
10
- VERSION = "4.5.2.0"
4
+ # Use jqGrid version (major, minor, patch) and append a gem
5
+ # version identifier (denoted as VV below); use leading zero.
6
+ # Examples:
7
+ # "X.Y.ZVV" is jqGrid vX.Y.Z + gem release VV
8
+ # "4.5.200" is jqGrid v4.5.2 + gem release 0
9
+ # "4.5.201" is jqGrid v4.5.2 + gem release 1
10
+ # "4.5.210" is jqGrid v4.5.2 + gem release 10
11
+ VERSION = "4.5.200"
11
12
  end
12
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/jqgrid-jquery-rails/engine', __FILE__)
6
+
7
+ require 'rails/all'
8
+ require 'rails/engine/commands'
@@ -0,0 +1,21 @@
1
+ require 'spec_helper'
2
+
3
+ feature 'Asset pipeline' do
4
+ scenario 'Browser requests application javascript' do
5
+ visit asset_path('application.js')
6
+ # save_and_open_page # for debugging (opens page in browser)
7
+
8
+ expect(page).to have_text(<<-EOF
9
+ * @license jqGrid 4.5.2 - jQuery Grid
10
+ * Copyright (c) 2008, Tony Tomov, tony@trirand.com
11
+ EOF
12
+ )
13
+ end # scenario
14
+
15
+ scenario 'Browser requests application stylesheet' do
16
+ visit asset_path('application.css')
17
+ # save_and_open_page # for debugging (opens page in browser)
18
+
19
+ expect(page).to have_text('.ui-jqgrid')
20
+ end # scenario
21
+ end # feature
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+ require 'semantic'
3
+
4
+ describe JqgridJquery::Rails do
5
+ context 'VERSION constant' do
6
+ it 'is a valid SemVer string (semver.org)' do
7
+ version = JqgridJquery::Rails::VERSION
8
+ expect { Semantic::Version.new version }.to_not raise_error()
9
+ end # it
10
+ end # context
11
+ end # describe
@@ -0,0 +1,56 @@
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
+ include Sprockets::Helpers::RailsHelper
19
+ include Sprockets::Helpers::IsolatedHelper
20
+
21
+ # Requires supporting ruby files with custom matchers and macros, etc,
22
+ # in spec/support/ and its subdirectories.
23
+ Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
24
+
25
+ RSpec.configure do |config|
26
+ # ## Mock Framework
27
+ #
28
+ # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
29
+ #
30
+ # config.mock_with :mocha
31
+ # config.mock_with :flexmock
32
+ # config.mock_with :rr
33
+
34
+ config.treat_symbols_as_metadata_keys_with_true_values = true
35
+ config.run_all_when_everything_filtered = true
36
+ config.filter_run :focus
37
+
38
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
39
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
40
+
41
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
42
+ # examples within a transaction, remove the following line or assign false
43
+ # instead of true.
44
+ config.use_transactional_fixtures = true
45
+
46
+ # If true, the base class of anonymous controllers will be inferred
47
+ # automatically. This will be the default behavior in future versions of
48
+ # rspec-rails.
49
+ config.infer_base_class_for_anonymous_controllers = false
50
+
51
+ # Run specs in random order to surface order dependencies. If you find an
52
+ # order dependency and want to debug it, you can fix the order by providing
53
+ # the seed, which is printed after each run.
54
+ # --seed 1234
55
+ config.order = 'random'
56
+ 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,2 @@
1
+ // provides jqgrid jquery plugin from gem 'jqgrid-jquery-rails':
2
+ //= require jqgrid-jquery-rails
@@ -0,0 +1,4 @@
1
+ /*
2
+ provides jqgrid jquery plugin from gem 'jqgrid-jquery-rails':
3
+ = require jqgrid-jquery-rails
4
+ */
@@ -0,0 +1,6 @@
1
+ class ApplicationController < ActionController::Base
2
+ protect_from_forgery
3
+
4
+ def index
5
+ end # index
6
+ end
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>TestApp</title>
5
+ <%= stylesheet_link_tag "application", :media => "all" %>
6
+ <%= javascript_include_tag "application" %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run TestApp::Application
@@ -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 "jqgrid-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,10 @@
1
+ require 'rubygems'
2
+ gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ if File.exist?(gemfile)
5
+ ENV['BUNDLE_GEMFILE'] = gemfile
6
+ require 'bundler'
7
+ Bundler.setup
8
+ end
9
+
10
+ $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -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,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ TestApp::Application.initialize!
@@ -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