jqgrid-jquery-rails 4.5.200 → 4.5.201
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.rubocop.yml +17 -0
- data/CHANGELOG.md +143 -0
- data/Gemfile +1 -0
- data/README.md +1 -1
- data/Rakefile +13 -2
- data/jqgrid-jquery-rails.gemspec +29 -26
- data/lib/jqgrid-jquery-rails.rb +3 -2
- data/lib/jqgrid-jquery-rails/engine.rb +1 -0
- data/lib/jqgrid-jquery-rails/version.rb +2 -1
- data/script/rails +5 -2
- data/spec/features/asset_pipeline_spec.rb +4 -3
- data/spec/jqgrid-jquery-rails_spec.rb +2 -1
- data/spec/spec_helper.rb +5 -4
- data/spec/test_app/Rakefile +3 -1
- data/spec/test_app/app/controllers/application_controller.rb +2 -1
- data/spec/test_app/config/application.rb +33 -23
- data/spec/test_app/config/boot.rb +2 -1
- data/spec/test_app/config/environment.rb +1 -0
- data/spec/test_app/config/environments/development.rb +6 -3
- data/spec/test_app/config/environments/test.rb +4 -2
- data/spec/test_app/config/initializers/secret_token.rb +4 -1
- data/spec/test_app/config/initializers/session_store.rb +3 -1
- data/spec/test_app/config/initializers/wrap_parameters.rb +4 -2
- data/spec/test_app/config/routes.rb +2 -1
- data/spec/test_app/db/schema.rb +7 -4
- data/spec/test_app/script/rails +3 -1
- metadata +22 -6
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzM4NGRhNmE1ZGFhOTFhODdkNzQ0NjFiODI3ZTBjMzE0NDRkODMxOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YmE2ZTE5MDVkYTQ5OGFiZWI1NGVhYzY3MmVjYmQxMGFkOGEwZTc3OQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDNlMTY4M2JiYzljYTJkYmE3YTdmYWQ2YWJjNTBjOWJlMWE1Yjg1ZDI3MjQ0
|
10
|
+
NDQ4NzQ3ZDg0OWQ4ZDZlODIzYjljZTI2ODM1M2FjMDgxMmFhNzZkYmM5OTY3
|
11
|
+
Yzg4MWIzMTFmY2RjMjM0MTQ1NDU3ZjE5ZGI0ZDE4ODIxMjcwMGU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzNkMDExNmIwYjk1OTA0Nzc5Nzg0NjY3YTI4MWMzOWFiNjVlMWFkNmQyZWEw
|
14
|
+
MDY3NGEyMzVhN2E3NTJlYTU5ODBhZTU5NjE4OGJkMTM3MGU4NjkyMGQ4ZDg2
|
15
|
+
ZDI4YTBlNzc4NWEwMTQzZGM1NTllOTI5YTA1NzRlZGU2MzljMzE=
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# This is the configuration used to check the rubocop source code.
|
2
|
+
|
3
|
+
AllCops:
|
4
|
+
Includes:
|
5
|
+
- !ruby/regexp /\.gemspec$/
|
6
|
+
- Gemfile
|
7
|
+
- Rakefile
|
8
|
+
Excludes: []
|
9
|
+
|
10
|
+
Documentation:
|
11
|
+
Enabled: false
|
12
|
+
|
13
|
+
EmptyLines:
|
14
|
+
Enabled: false
|
15
|
+
|
16
|
+
HashSyntax:
|
17
|
+
EnforcedStyle: hash_rockets
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,143 @@
|
|
1
|
+
CHANGELOG
|
2
|
+
=========
|
3
|
+
|
4
|
+
4.5.201 / 2014-02-18
|
5
|
+
--------------------
|
6
|
+
|
7
|
+
- `NEW` - add ruby lint checks (via rubocop), fix flagged items | [#51][]
|
8
|
+
- `IMPROVE` - update `semantic` gem version | [#49][]
|
9
|
+
- `NEW` - add [CHANGELOG](CHANGELOG.md) | [#47][]
|
10
|
+
- `IMPROVE` - update `railties` - gem dependency | [#45][]
|
11
|
+
- `IMPROVE` - update gem version in [README](README.md) | [#43][]
|
12
|
+
|
13
|
+
|
14
|
+
4.5.200 / 2013-12-23
|
15
|
+
--------------------
|
16
|
+
|
17
|
+
- `FIX` - add newline to asset file | [#41][]
|
18
|
+
- `NEW` - add spec for dummy Rails app | [#39][]
|
19
|
+
- `IMPROVE` - add dependency, coverage, code climate badges to [README](README.md) | [#37][]
|
20
|
+
- `IMPROVE` - add build status badge to [README](README.md) | [#35][]
|
21
|
+
- `NEW` - add specification files for ruby version | [#34][]
|
22
|
+
- `IMPROVE` - remove version requirement for `jquery-ui` | [#32][]
|
23
|
+
- `IMPROVE` - update gem `jquery-rails` to v4.1.1 | [#30][]
|
24
|
+
|
25
|
+
|
26
|
+
4.5.2.0 / 2013-09-13
|
27
|
+
--------------------
|
28
|
+
|
29
|
+
- `IMPROVE` - update jqGrid to v4.5.2 | [#26][]
|
30
|
+
|
31
|
+
|
32
|
+
4.5.1.0 / 2013-09-13
|
33
|
+
--------------------
|
34
|
+
|
35
|
+
- `IMPROVE` - update jqGrid to v4.5.1 | [#24][]
|
36
|
+
|
37
|
+
|
38
|
+
4.5.0.0 / 2013-09-13
|
39
|
+
--------------------
|
40
|
+
|
41
|
+
- `NEW` - update jqGrid to v4.5.0 | [#22][]
|
42
|
+
|
43
|
+
|
44
|
+
4.4.5.0 / 2013-09-12
|
45
|
+
--------------------
|
46
|
+
|
47
|
+
- `IMPROVE` - update jqGrid to v4.4.5 | [#20][]
|
48
|
+
|
49
|
+
|
50
|
+
4.4.4.0 / 2013-09-12
|
51
|
+
--------------------
|
52
|
+
|
53
|
+
- `IMPROVE` - update jqGrid to v4.4.4 | [#18][]
|
54
|
+
|
55
|
+
|
56
|
+
4.4.3.0 / 2013-09-12
|
57
|
+
--------------------
|
58
|
+
|
59
|
+
- `IMPROVE` - update jqGrid to v4.4.3 | [#16][]
|
60
|
+
|
61
|
+
|
62
|
+
4.4.2.0 / 2013-09-12
|
63
|
+
--------------------
|
64
|
+
|
65
|
+
- `IMPROVE` - update jqGrid to v4.4.2 | [#14][]
|
66
|
+
|
67
|
+
|
68
|
+
4.4.1.0 / 2013-09-12
|
69
|
+
--------------------
|
70
|
+
|
71
|
+
- `IMPROVE` - update jqGrid to v4.4.1 | [#13][]
|
72
|
+
|
73
|
+
|
74
|
+
4.4.0.0 / 2013-09-12
|
75
|
+
--------------------
|
76
|
+
|
77
|
+
- `NEW` - update jqGrid to v4.4.0 | [#12][]
|
78
|
+
|
79
|
+
|
80
|
+
4.3.3.0 / 2013-09-12
|
81
|
+
--------------------
|
82
|
+
|
83
|
+
- `IMPROVE` - update jqGrid to v4.3.3 | [#11][]
|
84
|
+
|
85
|
+
|
86
|
+
4.3.2.0 / 2013-09-12
|
87
|
+
--------------------
|
88
|
+
|
89
|
+
- `IMPROVE` - update jqGrid to v4.3.2 | [#10][]
|
90
|
+
|
91
|
+
|
92
|
+
4.3.1.0 / 2013-09-12
|
93
|
+
--------------------
|
94
|
+
|
95
|
+
- `IMPROVE` - update jqGrid to v4.3.1 | [#9][]
|
96
|
+
|
97
|
+
|
98
|
+
4.3.0.0 / 2013-09-06
|
99
|
+
--------------------
|
100
|
+
|
101
|
+
- `IMPROVE` - update [README](README.md) with minor changes
|
102
|
+
- `NEW` - update jqGrid to v4.3.0
|
103
|
+
|
104
|
+
|
105
|
+
4.2.0.0 / 2013-07-28
|
106
|
+
--------------------
|
107
|
+
|
108
|
+
- `NEW` - initial release
|
109
|
+
|
110
|
+
|
111
|
+
Legend
|
112
|
+
------
|
113
|
+
|
114
|
+
- `BREAK` - breaking changes
|
115
|
+
- `FIX` - bug fix
|
116
|
+
- `IMPROVE` - improvement of existing feature
|
117
|
+
- `NEW` - new feature
|
118
|
+
|
119
|
+
<!--- The following link definition list is generated by PimpMyChangelog --->
|
120
|
+
[#9]: https://github.com/jhx/gem-jqgrid-jquery-rails/issues/9
|
121
|
+
[#10]: https://github.com/jhx/gem-jqgrid-jquery-rails/issues/10
|
122
|
+
[#11]: https://github.com/jhx/gem-jqgrid-jquery-rails/issues/11
|
123
|
+
[#12]: https://github.com/jhx/gem-jqgrid-jquery-rails/issues/12
|
124
|
+
[#13]: https://github.com/jhx/gem-jqgrid-jquery-rails/issues/13
|
125
|
+
[#14]: https://github.com/jhx/gem-jqgrid-jquery-rails/issues/14
|
126
|
+
[#16]: https://github.com/jhx/gem-jqgrid-jquery-rails/issues/16
|
127
|
+
[#18]: https://github.com/jhx/gem-jqgrid-jquery-rails/issues/18
|
128
|
+
[#20]: https://github.com/jhx/gem-jqgrid-jquery-rails/issues/20
|
129
|
+
[#22]: https://github.com/jhx/gem-jqgrid-jquery-rails/issues/22
|
130
|
+
[#24]: https://github.com/jhx/gem-jqgrid-jquery-rails/issues/24
|
131
|
+
[#26]: https://github.com/jhx/gem-jqgrid-jquery-rails/issues/26
|
132
|
+
[#30]: https://github.com/jhx/gem-jqgrid-jquery-rails/issues/30
|
133
|
+
[#32]: https://github.com/jhx/gem-jqgrid-jquery-rails/issues/32
|
134
|
+
[#34]: https://github.com/jhx/gem-jqgrid-jquery-rails/issues/34
|
135
|
+
[#35]: https://github.com/jhx/gem-jqgrid-jquery-rails/issues/35
|
136
|
+
[#37]: https://github.com/jhx/gem-jqgrid-jquery-rails/issues/37
|
137
|
+
[#39]: https://github.com/jhx/gem-jqgrid-jquery-rails/issues/39
|
138
|
+
[#41]: https://github.com/jhx/gem-jqgrid-jquery-rails/issues/41
|
139
|
+
[#43]: https://github.com/jhx/gem-jqgrid-jquery-rails/issues/43
|
140
|
+
[#45]: https://github.com/jhx/gem-jqgrid-jquery-rails/issues/45
|
141
|
+
[#47]: https://github.com/jhx/gem-jqgrid-jquery-rails/issues/47
|
142
|
+
[#49]: https://github.com/jhx/gem-jqgrid-jquery-rails/issues/49
|
143
|
+
[#51]: https://github.com/jhx/gem-jqgrid-jquery-rails/issues/51
|
data/Gemfile
CHANGED
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -1,4 +1,7 @@
|
|
1
1
|
#!/usr/bin/env rake
|
2
|
+
# encoding: utf-8
|
3
|
+
require 'rubocop/rake_task'
|
4
|
+
|
2
5
|
begin
|
3
6
|
require 'bundler/setup'
|
4
7
|
rescue LoadError
|
@@ -20,7 +23,7 @@ RDoc::Task.new(:rdoc) do |rdoc|
|
|
20
23
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
21
24
|
end
|
22
25
|
|
23
|
-
APP_RAKEFILE = File.expand_path(
|
26
|
+
APP_RAKEFILE = File.expand_path('../spec/test_app/Rakefile', __FILE__)
|
24
27
|
load 'rails/tasks/engine.rake'
|
25
28
|
|
26
29
|
Bundler::GemHelper.install_tasks
|
@@ -29,4 +32,12 @@ require 'rspec/core/rake_task'
|
|
29
32
|
|
30
33
|
RSpec::Core::RakeTask.new(:spec)
|
31
34
|
|
32
|
-
task :default => :spec
|
35
|
+
task :default => [:rubocop, :spec]
|
36
|
+
|
37
|
+
#------------------------------------------------------ ruby lint/style checks
|
38
|
+
desc 'Runs rubocop lint tool against the gem.'
|
39
|
+
task :rubocop do
|
40
|
+
Rubocop::RakeTask.new(:rubocop) do |task|
|
41
|
+
# task.fail_on_error = true
|
42
|
+
end
|
43
|
+
end # task
|
data/jqgrid-jquery-rails.gemspec
CHANGED
@@ -1,34 +1,37 @@
|
|
1
|
-
#
|
1
|
+
# encoding: utf-8
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
4
|
require 'jqgrid-jquery-rails/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
7
|
+
spec.name = 'jqgrid-jquery-rails'
|
8
8
|
spec.version = JqgridJquery::Rails::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
11
|
-
spec.description =
|
12
|
-
|
13
|
-
spec.
|
14
|
-
|
9
|
+
spec.authors = ['Doc Walker']
|
10
|
+
spec.email = ['doc.walker@jameshardie.com']
|
11
|
+
spec.description = 'Provides the `jqGrid` jQuery plugin packaged for ' \
|
12
|
+
'the Rails 3.1+ asset pipeline.'
|
13
|
+
spec.summary = 'Provides the `jqGrid` jQuery plugin packaged for ' \
|
14
|
+
'the Rails 3.1+ asset pipeline.'
|
15
|
+
spec.homepage = 'https://github.com/jhx/gem-jqgrid-jquery-rails'
|
16
|
+
spec.license = 'MIT'
|
15
17
|
|
16
|
-
spec.files = `git ls-files`.split(
|
17
|
-
spec.executables = spec.files.grep(
|
18
|
-
spec.test_files = spec.files.grep(
|
19
|
-
spec.require_paths = [
|
20
|
-
|
21
|
-
spec.add_dependency
|
22
|
-
spec.add_dependency
|
23
|
-
spec.add_dependency
|
24
|
-
|
25
|
-
spec.add_development_dependency
|
26
|
-
spec.add_development_dependency
|
27
|
-
spec.add_development_dependency
|
28
|
-
spec.add_development_dependency
|
29
|
-
spec.add_development_dependency
|
30
|
-
spec.add_development_dependency
|
31
|
-
spec.add_development_dependency
|
32
|
-
spec.add_development_dependency
|
33
|
-
spec.add_development_dependency
|
18
|
+
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
19
|
+
spec.executables = spec.files.grep(/^bin\//) { |f| File.basename(f) }
|
20
|
+
spec.test_files = spec.files.grep(/^(test|spec|features)\//)
|
21
|
+
spec.require_paths = ['lib']
|
22
|
+
|
23
|
+
spec.add_dependency 'railties', '>= 3.1'
|
24
|
+
spec.add_dependency 'jquery-rails'
|
25
|
+
spec.add_dependency 'jquery-ui-rails'
|
26
|
+
|
27
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
28
|
+
spec.add_development_dependency 'capybara', '~> 2.2.0'
|
29
|
+
spec.add_development_dependency 'coveralls', '~> 0.7.0'
|
30
|
+
spec.add_development_dependency 'launchy', '~> 2.4.2'
|
31
|
+
spec.add_development_dependency 'rails', '~> 3.2.14'
|
32
|
+
spec.add_development_dependency 'rake', '~> 10.1.0'
|
33
|
+
spec.add_development_dependency 'rspec-rails', '~> 2.14.0'
|
34
|
+
spec.add_development_dependency 'rubocop', '~> 0.18.1'
|
35
|
+
spec.add_development_dependency 'semantic', '~> 1.3.0'
|
36
|
+
spec.add_development_dependency 'sqlite3', '~> 1.3.8'
|
34
37
|
end
|
data/lib/jqgrid-jquery-rails.rb
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
|
2
|
-
require
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'jqgrid-jquery-rails/version'
|
3
|
+
require 'jqgrid-jquery-rails/engine' if defined?(::Rails)
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# encoding: utf-8
|
1
2
|
module JqgridJquery
|
2
3
|
module Rails
|
3
4
|
# Refer to Semantic Versioning 2.0.0 (http://semver.org).
|
@@ -8,6 +9,6 @@ module JqgridJquery
|
|
8
9
|
# "4.5.200" is jqGrid v4.5.2 + gem release 0
|
9
10
|
# "4.5.201" is jqGrid v4.5.2 + gem release 1
|
10
11
|
# "4.5.210" is jqGrid v4.5.2 + gem release 10
|
11
|
-
VERSION =
|
12
|
+
VERSION = '4.5.201'
|
12
13
|
end
|
13
14
|
end
|
data/script/rails
CHANGED
@@ -1,8 +1,11 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
#
|
2
|
+
# encoding: utf-8
|
3
|
+
# This command will automatically be run when you run "rails" with Rails 3
|
4
|
+
# gems installed from the root of your application.
|
3
5
|
|
4
6
|
ENGINE_ROOT = File.expand_path('../..', __FILE__)
|
5
|
-
ENGINE_PATH = File.expand_path(
|
7
|
+
ENGINE_PATH = File.expand_path(
|
8
|
+
'../../lib/jqgrid-jquery-rails/engine', __FILE__)
|
6
9
|
|
7
10
|
require 'rails/all'
|
8
11
|
require 'rails/engine/commands'
|
@@ -1,21 +1,22 @@
|
|
1
|
+
# encoding: utf-8
|
1
2
|
require 'spec_helper'
|
2
3
|
|
3
4
|
feature 'Asset pipeline' do
|
4
5
|
scenario 'Browser requests application javascript' do
|
5
6
|
visit asset_path('application.js')
|
6
7
|
# save_and_open_page # for debugging (opens page in browser)
|
7
|
-
|
8
|
+
|
8
9
|
expect(page).to have_text(<<-EOF
|
9
10
|
* @license jqGrid 4.5.2 - jQuery Grid
|
10
11
|
* Copyright (c) 2008, Tony Tomov, tony@trirand.com
|
11
12
|
EOF
|
12
13
|
)
|
13
14
|
end # scenario
|
14
|
-
|
15
|
+
|
15
16
|
scenario 'Browser requests application stylesheet' do
|
16
17
|
visit asset_path('application.css')
|
17
18
|
# save_and_open_page # for debugging (opens page in browser)
|
18
|
-
|
19
|
+
|
19
20
|
expect(page).to have_text('.ui-jqgrid')
|
20
21
|
end # scenario
|
21
22
|
end # feature
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# encoding: utf-8
|
1
2
|
require 'spec_helper'
|
2
3
|
require 'semantic'
|
3
4
|
|
@@ -5,7 +6,7 @@ describe JqgridJquery::Rails do
|
|
5
6
|
context 'VERSION constant' do
|
6
7
|
it 'is a valid SemVer string (semver.org)' do
|
7
8
|
version = JqgridJquery::Rails::VERSION
|
8
|
-
expect { Semantic::Version.new version }.to_not raise_error
|
9
|
+
expect { Semantic::Version.new version }.to_not raise_error
|
9
10
|
end # it
|
10
11
|
end # context
|
11
12
|
end # describe
|
data/spec/spec_helper.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# encoding: utf-8
|
1
2
|
# This file was generated by the `rspec --init` command. Conventionally, all
|
2
3
|
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
3
4
|
# Require this file using `require "spec_helper"` to ensure that it is only
|
@@ -7,9 +8,9 @@
|
|
7
8
|
require 'coveralls'
|
8
9
|
Coveralls.wear!
|
9
10
|
|
10
|
-
ENV[
|
11
|
+
ENV['RAILS_ENV'] ||= 'test'
|
11
12
|
|
12
|
-
require File.expand_path(
|
13
|
+
require File.expand_path('../../spec/test_app/config/environment', __FILE__)
|
13
14
|
|
14
15
|
require 'capybara/rspec'
|
15
16
|
require 'rspec/rails'
|
@@ -20,7 +21,7 @@ include Sprockets::Helpers::IsolatedHelper
|
|
20
21
|
|
21
22
|
# Requires supporting ruby files with custom matchers and macros, etc,
|
22
23
|
# in spec/support/ and its subdirectories.
|
23
|
-
Dir[Rails.root.join(
|
24
|
+
Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
|
24
25
|
|
25
26
|
RSpec.configure do |config|
|
26
27
|
# ## Mock Framework
|
@@ -34,7 +35,7 @@ RSpec.configure do |config|
|
|
34
35
|
config.treat_symbols_as_metadata_keys_with_true_values = true
|
35
36
|
config.run_all_when_everything_filtered = true
|
36
37
|
config.filter_run :focus
|
37
|
-
|
38
|
+
|
38
39
|
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
39
40
|
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
40
41
|
|
data/spec/test_app/Rakefile
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
#!/usr/bin/env rake
|
2
|
+
# encoding: utf-8
|
2
3
|
# 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
|
4
|
+
# for example lib/tasks/capistrano.rake, and they will automatically be
|
5
|
+
# available to Rake.
|
4
6
|
|
5
7
|
require File.expand_path('../config/application', __FILE__)
|
6
8
|
|
@@ -1,42 +1,49 @@
|
|
1
|
+
# encoding: utf-8
|
1
2
|
require File.expand_path('../boot', __FILE__)
|
2
3
|
|
3
4
|
# Pick the frameworks you want:
|
4
|
-
require
|
5
|
-
require
|
6
|
-
require
|
7
|
-
require
|
8
|
-
require
|
5
|
+
require 'active_record/railtie'
|
6
|
+
require 'action_controller/railtie'
|
7
|
+
require 'action_mailer/railtie'
|
8
|
+
require 'active_resource/railtie'
|
9
|
+
require 'sprockets/railtie'
|
9
10
|
# require "rails/test_unit/railtie"
|
10
11
|
|
11
12
|
Bundler.require(*Rails.groups)
|
12
|
-
require
|
13
|
+
require 'jqgrid-jquery-rails'
|
13
14
|
|
14
15
|
module TestApp
|
15
16
|
class Application < Rails::Application
|
16
|
-
# Settings in config/environments/* take precedence over those specified
|
17
|
-
# Application configuration should go into files in
|
18
|
-
# -- all .rb files in that directory are
|
17
|
+
# Settings in config/environments/* take precedence over those specified
|
18
|
+
# here. Application configuration should go into files in
|
19
|
+
# config/initializers -- all .rb files in that directory are
|
20
|
+
# automatically loaded.
|
19
21
|
|
20
22
|
# Custom directories with classes and modules you want to be autoloadable.
|
21
23
|
# config.autoload_paths += %W(#{config.root}/extras)
|
22
24
|
|
23
|
-
# Only load the plugins named here, in the order given (default is
|
25
|
+
# Only load the plugins named here, in the order given (default is
|
26
|
+
# alphabetical).
|
24
27
|
# :all can be used as a placeholder for all plugins not explicitly named.
|
25
28
|
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
26
29
|
|
27
30
|
# Activate observers that should always be running.
|
28
|
-
# config.active_record.observers = :cacher, :garbage_collector,
|
31
|
+
# config.active_record.observers = :cacher, :garbage_collector,
|
32
|
+
# :forum_observer
|
29
33
|
|
30
|
-
# Set Time.zone default to the specified zone and make Active Record
|
31
|
-
# Run "rake -D time" for a list of tasks for
|
34
|
+
# Set Time.zone default to the specified zone and make Active Record
|
35
|
+
# auto-convert to this zone. Run "rake -D time" for a list of tasks for
|
36
|
+
# finding time zone names. Default is UTC.
|
32
37
|
# config.time_zone = 'Central Time (US & Canada)'
|
33
38
|
|
34
|
-
# The default locale is :en and all translations from
|
35
|
-
# config
|
39
|
+
# The default locale is :en and all translations from
|
40
|
+
# config/locales/*.rb,yml are auto loaded.
|
41
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales',
|
42
|
+
# '*.{rb,yml}').to_s]
|
36
43
|
# config.i18n.default_locale = :de
|
37
44
|
|
38
45
|
# Configure the default encoding used in templates for Ruby 1.9.
|
39
|
-
config.encoding =
|
46
|
+
config.encoding = 'utf-8'
|
40
47
|
|
41
48
|
# Configure sensitive parameters which will be filtered from the log file.
|
42
49
|
config.filter_parameters += [:password]
|
@@ -44,21 +51,24 @@ module TestApp
|
|
44
51
|
# Enable escaping HTML in JSON.
|
45
52
|
config.active_support.escape_html_entities_in_json = true
|
46
53
|
|
47
|
-
# Use SQL instead of Active Record's schema dumper when creating the
|
48
|
-
# This is necessary if your schema can't be completely dumped
|
49
|
-
# like if you have constraints or database-specific
|
54
|
+
# Use SQL instead of Active Record's schema dumper when creating the
|
55
|
+
# database. This is necessary if your schema can't be completely dumped
|
56
|
+
# by the schema dumper, like if you have constraints or database-specific
|
57
|
+
# column types
|
50
58
|
# config.active_record.schema_format = :sql
|
51
59
|
|
52
60
|
# Enforce whitelist mode for mass assignment.
|
53
|
-
# This will create an empty whitelist of attributes available for
|
54
|
-
# in your app. As such, your models will
|
55
|
-
#
|
61
|
+
# This will create an empty whitelist of attributes available for
|
62
|
+
# mass-assignment for all models in your app. As such, your models will
|
63
|
+
# need to explicitly whitelist or blacklist accessible parameters by
|
64
|
+
# using an attr_accessible or attr_protected declaration.
|
56
65
|
config.active_record.whitelist_attributes = true
|
57
66
|
|
58
67
|
# Enable the asset pipeline
|
59
68
|
config.assets.enabled = true
|
60
69
|
|
61
|
-
# Version of your assets, change this if you want to expire all your
|
70
|
+
# Version of your assets, change this if you want to expire all your
|
71
|
+
# assets
|
62
72
|
config.assets.version = '1.0'
|
63
73
|
end
|
64
74
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# encoding: utf-8
|
1
2
|
require 'rubygems'
|
2
3
|
gemfile = File.expand_path('../../../../Gemfile', __FILE__)
|
3
4
|
|
@@ -7,4 +8,4 @@ if File.exist?(gemfile)
|
|
7
8
|
Bundler.setup
|
8
9
|
end
|
9
10
|
|
10
|
-
|
11
|
+
$LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
|
@@ -1,9 +1,12 @@
|
|
1
|
+
# encoding: utf-8
|
1
2
|
TestApp::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in
|
3
|
+
# Settings specified here will take precedence over those in
|
4
|
+
# config/application.rb
|
3
5
|
|
4
6
|
# In the development environment your application's code is reloaded on
|
5
|
-
# every request. This slows down response time but is perfect for
|
6
|
-
# since you don't have to restart the web server when you make
|
7
|
+
# every request. This slows down response time but is perfect for
|
8
|
+
# development since you don't have to restart the web server when you make
|
9
|
+
# code changes.
|
7
10
|
config.cache_classes = false
|
8
11
|
|
9
12
|
# Log error messages when you accidentally call methods on nil.
|
@@ -1,5 +1,7 @@
|
|
1
|
+
# encoding: utf-8
|
1
2
|
TestApp::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in
|
3
|
+
# Settings specified here will take precedence over those in
|
4
|
+
# config/application.rb
|
3
5
|
|
4
6
|
# The test environment is used exclusively to run your application's
|
5
7
|
# test suite. You never need to work with it otherwise. Remember that
|
@@ -9,7 +11,7 @@ TestApp::Application.configure do
|
|
9
11
|
|
10
12
|
# Configure static asset server for tests with Cache-Control for performance
|
11
13
|
config.serve_static_assets = true
|
12
|
-
config.static_cache_control =
|
14
|
+
config.static_cache_control = 'public, max-age=3600'
|
13
15
|
|
14
16
|
# Log error messages when you accidentally call methods on nil
|
15
17
|
config.whiny_nils = true
|
@@ -1,7 +1,10 @@
|
|
1
|
+
# encoding: utf-8
|
1
2
|
# Be sure to restart your server when you modify this file.
|
2
3
|
|
3
4
|
# Your secret key for verifying the integrity of signed cookies.
|
4
5
|
# If you change this key, all old signed cookies will become invalid!
|
5
6
|
# Make sure the secret is at least 30 characters and all random,
|
6
7
|
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
-
TestApp::Application.config.secret_token = '
|
8
|
+
TestApp::Application.config.secret_token = '5b809d9363fd61076807b0f9468166b' \
|
9
|
+
'4ff57d39259be745752da9e50f528e4c32c14827df60b8e894ad3c7a902654e5e8b5bd2f' \
|
10
|
+
'6a51b1db7dc4b82ee426f1b77'
|
@@ -1,6 +1,8 @@
|
|
1
|
+
# encoding: utf-8
|
1
2
|
# Be sure to restart your server when you modify this file.
|
2
3
|
|
3
|
-
TestApp::Application.config.session_store
|
4
|
+
TestApp::Application.config.session_store \
|
5
|
+
:cookie_store, :key => '_test_app_session'
|
4
6
|
|
5
7
|
# Use the database for sessions instead of the cookie-based default,
|
6
8
|
# which shouldn't be used to store highly confidential information
|
@@ -1,11 +1,13 @@
|
|
1
|
+
# encoding: utf-8
|
1
2
|
# Be sure to restart your server when you modify this file.
|
2
3
|
#
|
3
4
|
# This file contains settings for ActionController::ParamsWrapper which
|
4
5
|
# is enabled by default.
|
5
6
|
|
6
|
-
# Enable parameter wrapping for JSON. You can disable this by setting :format
|
7
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format
|
8
|
+
# to an empty array.
|
7
9
|
ActiveSupport.on_load(:action_controller) do
|
8
|
-
wrap_parameters format
|
10
|
+
wrap_parameters :format => [:json]
|
9
11
|
end
|
10
12
|
|
11
13
|
# Disable root element in JSON by default.
|
data/spec/test_app/db/schema.rb
CHANGED
@@ -1,15 +1,18 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
# This file is auto-generated from the current state of the database. Instead
|
3
3
|
# of editing this file, please use the migrations feature of Active Record to
|
4
|
-
# incrementally modify your database, and then regenerate this schema
|
4
|
+
# incrementally modify your database, and then regenerate this schema
|
5
|
+
# definition.
|
5
6
|
#
|
6
7
|
# Note that this schema.rb definition is the authoritative source for your
|
7
8
|
# database schema. If you need to create the application database on another
|
8
9
|
# 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
|
10
|
-
# you'll amass, the slower it'll run and the greater likelihood
|
10
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more
|
11
|
+
# migrations you'll amass, the slower it'll run and the greater likelihood
|
12
|
+
# for issues).
|
11
13
|
#
|
12
|
-
# It's strongly recommended to check this file into your version control
|
14
|
+
# It's strongly recommended to check this file into your version control
|
15
|
+
# system.
|
13
16
|
|
14
17
|
ActiveRecord::Schema.define(:version => 0) do
|
15
18
|
|
data/spec/test_app/script/rails
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
#
|
2
|
+
# encoding: utf-8
|
3
|
+
# This command will automatically be run when you run "rails" with Rails 3
|
4
|
+
# gems installed from the root of your application.
|
3
5
|
|
4
6
|
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
7
|
require File.expand_path('../../config/boot', __FILE__)
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jqgrid-jquery-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.5.
|
4
|
+
version: 4.5.201
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Doc Walker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ! '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ! '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -150,20 +150,34 @@ dependencies:
|
|
150
150
|
- - ~>
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: 2.14.0
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rubocop
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ~>
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 0.18.1
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ~>
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 0.18.1
|
153
167
|
- !ruby/object:Gem::Dependency
|
154
168
|
name: semantic
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|
156
170
|
requirements:
|
157
171
|
- - ~>
|
158
172
|
- !ruby/object:Gem::Version
|
159
|
-
version: 1.
|
173
|
+
version: 1.3.0
|
160
174
|
type: :development
|
161
175
|
prerelease: false
|
162
176
|
version_requirements: !ruby/object:Gem::Requirement
|
163
177
|
requirements:
|
164
178
|
- - ~>
|
165
179
|
- !ruby/object:Gem::Version
|
166
|
-
version: 1.
|
180
|
+
version: 1.3.0
|
167
181
|
- !ruby/object:Gem::Dependency
|
168
182
|
name: sqlite3
|
169
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -188,9 +202,11 @@ extra_rdoc_files: []
|
|
188
202
|
files:
|
189
203
|
- .gitignore
|
190
204
|
- .rspec
|
205
|
+
- .rubocop.yml
|
191
206
|
- .ruby-gemset
|
192
207
|
- .ruby-version
|
193
208
|
- .travis.yml
|
209
|
+
- CHANGELOG.md
|
194
210
|
- Gemfile
|
195
211
|
- LICENSE.txt
|
196
212
|
- README.md
|