card 1.93.3 → 1.93.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/db/migrate/20170908114452_increase_text_size_for_delayed_jobs.rb +9 -0
- data/db/migrate_core_cards/data/cards/*header +2 -2
- data/lib/card/format/nest.rb +12 -5
- data/lib/card/format/nest/fetch.rb +1 -2
- data/lib/card/format/render.rb +2 -2
- data/lib/card/model/save_helper.rb +1 -1
- data/lib/card/set/format/haml_views.rb +7 -3
- data/lib/card/subcards.rb +27 -228
- data/lib/card/subcards/add.rb +121 -0
- data/lib/card/subcards/relate.rb +27 -0
- data/lib/card/subcards/remove.rb +42 -0
- data/lib/card/tasks/card/create.rake +35 -132
- data/lib/card/tasks/card/file_card_creator.rb +25 -0
- data/lib/card/tasks/card/file_card_creator/abstract_file_card.rb +44 -0
- data/lib/card/tasks/card/file_card_creator/abstract_file_card/migration_file.rb +49 -0
- data/lib/card/tasks/card/file_card_creator/abstract_file_card/ruby_file.rb +30 -0
- data/lib/card/tasks/card/file_card_creator/abstract_file_card/source_file.rb +36 -0
- data/lib/card/tasks/card/file_card_creator/haml_card.rb +42 -0
- data/lib/card/tasks/card/file_card_creator/output_helper.rb +50 -0
- data/lib/card/tasks/card/file_card_creator/script_card.rb +33 -0
- data/lib/card/tasks/card/file_card_creator/style_card.rb +25 -0
- data/lib/generators/card/template/template_generator.rb +1 -1
- data/mod/account/set/self/account_links.rb +1 -1
- data/mod/basic_formats/set/all/all_csv.rb +63 -0
- data/mod/basic_formats/set/all/json.rb +4 -1
- data/mod/bootstrap/db/migrate_cards/20170719163733_update_bootswatch_themes_to_4_beta.rb +5 -2
- data/mod/carrierwave/set/abstract/attachment.rb +1 -2
- data/mod/core/set/abstract/haml_file.rb +20 -0
- data/mod/core/set/all/chunk.rb +125 -0
- data/mod/core/set/all/collection.rb +2 -351
- data/mod/core/set/all/content.rb +26 -7
- data/mod/core/set/all/extended.rb +45 -0
- data/mod/core/set/all/haml.rb +3 -7
- data/mod/core/set/all/item.rb +92 -0
- data/mod/core/set/all/name.rb +36 -0
- data/mod/core/set/all/subcards.rb +21 -12
- data/mod/core/set/all/tabs.rb +50 -0
- data/mod/core/set/all/trash.rb +4 -0
- data/mod/core/spec/set/all/chunk_spec.rb +45 -0
- data/mod/core/spec/set/all/collection_spec.rb +6 -6
- data/mod/history/set/all/action_view.rb +1 -1
- data/mod/machines/lib/javascript/decko.js.coffee +3 -0
- data/mod/pointer/set/abstract/02_pointer/edit.rb +0 -2
- data/mod/search/set/abstract/search.rb +1 -1
- data/mod/search/set/all/filter.rb +0 -2
- data/mod/search/template/all/filter/_filter_input.haml +1 -1
- data/mod/search/template/all/filter/filter_form.haml +1 -1
- data/mod/standard/set/all/rich_html/editing.rb +1 -1
- data/mod/standard/set/all/rich_html/form.rb +6 -7
- data/mod/standard/set/all/rich_html/menu.rb +2 -3
- data/mod/standard/set/all/rich_html/toolbar.rb +3 -4
- data/mod/standard/set/type/cardtype.rb +1 -1
- data/mod/standard/spec/set/all/rich_html/editing_spec.rb +15 -4
- data/mod/tinymce_editor/db/migrate_cards/{20171113233150_update_tinymce_config.rb → 20171113233151_update_tinymce_config.rb} +1 -0
- metadata +25 -161
- data/.rspec +0 -4
- data/card.gemspec +0 -87
- data/db/seed/test/fixtures/.gitkeep +0 -0
- data/mod/bootstrap/vendor/bootstrap/.babelrc.js +0 -16
- data/mod/bootstrap/vendor/bootstrap/.editorconfig +0 -17
- data/mod/bootstrap/vendor/bootstrap/.eslintignore +0 -3
- data/mod/bootstrap/vendor/bootstrap/.gitattributes +0 -16
- data/mod/bootstrap/vendor/bootstrap/.github/CONTRIBUTING.md +0 -252
- data/mod/bootstrap/vendor/bootstrap/.github/ISSUE_TEMPLATE.md +0 -22
- data/mod/bootstrap/vendor/bootstrap/.gitignore +0 -46
- data/mod/bootstrap/vendor/bootstrap/.hound.yml +0 -19
- data/mod/bootstrap/vendor/bootstrap/.houndignore +0 -4
- data/mod/bootstrap/vendor/bootstrap/.travis.yml +0 -32
- data/mod/bootstrap/vendor/bootstrap/build/.htmllintrc +0 -19
- data/mod/bootstrap/vendor/bootstrap/build/.stylelintrc +0 -248
- data/mod/bootstrap/vendor/bootstrap/docs/4.0/examples/.stylelintrc +0 -12
- data/mod/bootstrap/vendor/bootstrap/js/.eslintrc.json +0 -240
- data/mod/bootstrap/vendor/bootstrap/js/tests/.eslintrc.json +0 -46
- data/mod/bootstrap/vendor/bootswatch/.gitignore +0 -7
- data/mod/bootstrap/vendor/bootswatch/.npmignore +0 -12
- data/mod/bootstrap/vendor/bootswatch/.travis.yml +0 -21
- data/mod/bootstrap/vendor/bootswatch/docs/.nojekyll +0 -0
- data/mod/bootstrap/vendor/bootswatch/docs/2/.travis.yml +0 -15
- data/mod/bootstrap/vendor/bootswatch/docs/2/bower_components/bootstrap/.bower.json +0 -20
- data/mod/bootstrap/vendor/bootswatch/docs/2/bower_components/bootstrap/.gitignore +0 -37
- data/mod/bootstrap/vendor/bootswatch/docs/2/bower_components/bootstrap/.travis.yml +0 -3
- data/mod/bootstrap/vendor/bootswatch/docs/2/bower_components/bootstrap/js/.jshintrc +0 -12
- data/mod/bootstrap/vendor/bootswatch/docs/2/bower_components/jquery/.bower.json +0 -20
- data/mod/bootstrap/vendor/bootswatch/docs/2/bower_components/jquery/.gitignore +0 -1
- data/mod/bootstrap/vendor/bootswatch/docs/2/swatchmaker/.gitignore +0 -1
- data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap-sass-official/.bower.json +0 -45
- data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/.bower.json +0 -44
- data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/grunt/.jshintrc +0 -7
- data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/js/.jscsrc +0 -42
- data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/js/.jshintrc +0 -15
- data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/.csscomb.json +0 -304
- data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/.csslintrc +0 -19
- data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/font-awesome/.bower.json +0 -14
- data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/font-awesome/.gitignore +0 -32
- data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/html5shiv/.bower.json +0 -25
- data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/jquery/.bower.json +0 -38
- data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/respond/.bower.json +0 -20
- data/mod/bootstrap/vendor/select2/.editorconfig +0 -6
- data/mod/bootstrap/vendor/select2/.github/CONTRIBUTING.md +0 -204
- data/mod/bootstrap/vendor/select2/.github/ISSUE_TEMPLATE.md +0 -46
- data/mod/bootstrap/vendor/select2/.github/PULL_REQUEST_TEMPLATE.md +0 -13
- data/mod/bootstrap/vendor/select2/.gitignore +0 -3
- data/mod/bootstrap/vendor/select2/.jshintignore +0 -4
- data/mod/bootstrap/vendor/select2/.jshintrc +0 -25
- data/mod/bootstrap/vendor/select2/.travis.yml +0 -22
- data/script/fetch_bootswatch_themes.rb +0 -38
- data/spec/config/initializers/core_extensions_spec.rb +0 -47
- data/spec/config/initializers/patches/active_job_spec.rb +0 -7
- data/spec/lib/card/action_spec.rb +0 -15
- data/spec/lib/card/auth_spec.rb +0 -58
- data/spec/lib/card/cache_spec.rb +0 -116
- data/spec/lib/card/chunk_spec.rb +0 -18
- data/spec/lib/card/codename_spec.rb +0 -66
- data/spec/lib/card/content_spec.rb +0 -428
- data/spec/lib/card/diff_spec.rb +0 -208
- data/spec/lib/card/format/nest_spec.rb +0 -13
- data/spec/lib/card/format/render_spec.rb +0 -26
- data/spec/lib/card/format_spec.rb +0 -117
- data/spec/lib/card/i18n_spec.rb +0 -24
- data/spec/lib/card/loader/Modfile +0 -2
- data/spec/lib/card/loader_spec.rb +0 -98
- data/spec/lib/card/migration/import_spec.rb +0 -80
- data/spec/lib/card/mod/loader/mod_dirs.rb +0 -8
- data/spec/lib/card/mod/loader/set_loader_spec.rb +0 -19
- data/spec/lib/card/mod/loader/set_pattern_loader_spec.rb +0 -19
- data/spec/lib/card/name/fields_and_traits_spec.rb +0 -18
- data/spec/lib/card/name_spec.rb +0 -70
- data/spec/lib/card/query/sorting_spec.rb +0 -68
- data/spec/lib/card/query_spec.rb +0 -574
- data/spec/lib/card/reference_spec.rb +0 -212
- data/spec/lib/card/set/event_spec.rb +0 -22
- data/spec/lib/card/set/trait_spec.rb +0 -80
- data/spec/lib/card/set_pattern_spec.rb +0 -59
- data/spec/lib/card/set_spec.rb +0 -89
- data/spec/lib/card/stage_director_spec.rb +0 -482
- data/spec/lib/card/subcards_spec.rb +0 -177
- data/spec/lib/card/success_spec.rb +0 -148
- data/spec/lib/card/view_cache_spec.rb +0 -27
- data/spec/mailers/mailer_spec.rb +0 -62
- data/spec/models/card/create_spec.rb +0 -119
- data/spec/models/card/trash_spec.rb +0 -189
- data/spec/models/card_spec.rb +0 -136
- data/spec/spec_helper.rb +0 -45
- data/spec/support/card_spec_helper.rb +0 -74
- data/spec/support/card_spec_loader.rb +0 -112
- data/spec/support/helper/card_helper.rb +0 -58
- data/spec/support/helper/event_helper.rb +0 -94
- data/spec/support/helper/render_helper.rb +0 -44
- data/spec/support/helper/save_helper.rb +0 -30
- data/spec/support/helper/set_helper.rb +0 -80
- data/spec/support/matchers/card_matchers.rb +0 -160
- data/spec/support/matchers/expectations.rb +0 -5
- data/spec/support/matchers/file_matchers.rb +0 -71
- data/spec/support/matchers/html_matchers.rb +0 -29
- data/spec/support/matchers/negated_matchers.rb +0 -2
- data/spec/support/simplecov_helper.rb +0 -70
- data/spec/support/test_mods/mod1/set/all/test_set.rb +0 -3
- data/spec/support/test_mods/mod2/set_pattern/test_pattern.rb +0 -0
@@ -1,19 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"adjoining-classes": false,
|
3
|
-
"box-sizing": false,
|
4
|
-
"box-model": false,
|
5
|
-
"compatible-vendor-prefixes": false,
|
6
|
-
"floats": false,
|
7
|
-
"font-sizes": false,
|
8
|
-
"gradients": false,
|
9
|
-
"important": false,
|
10
|
-
"known-properties": false,
|
11
|
-
"outline-none": false,
|
12
|
-
"qualified-headings": false,
|
13
|
-
"regex-selectors": false,
|
14
|
-
"shorthand": false,
|
15
|
-
"text-indent": false,
|
16
|
-
"unique-headings": false,
|
17
|
-
"universal-selector": false,
|
18
|
-
"unqualified-attributes": false
|
19
|
-
}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "font-awesome",
|
3
|
-
"homepage": "https://github.com/FortAwesome/Font-Awesome",
|
4
|
-
"version": "4.0.3",
|
5
|
-
"_release": "4.0.3",
|
6
|
-
"_resolution": {
|
7
|
-
"type": "version",
|
8
|
-
"tag": "v4.0.3",
|
9
|
-
"commit": "dc23a94e16a8daa3cbb3c7fa34d63e2812637b8f"
|
10
|
-
},
|
11
|
-
"_source": "git://github.com/FortAwesome/Font-Awesome.git",
|
12
|
-
"_target": "~4.0.0",
|
13
|
-
"_originalSource": "font-awesome"
|
14
|
-
}
|
@@ -1,32 +0,0 @@
|
|
1
|
-
*.pyc
|
2
|
-
*.egg-info
|
3
|
-
*.db
|
4
|
-
*.db.old
|
5
|
-
*.swp
|
6
|
-
*.db-journal
|
7
|
-
|
8
|
-
.coverage
|
9
|
-
.DS_Store
|
10
|
-
.installed.cfg
|
11
|
-
_gh_pages/*
|
12
|
-
|
13
|
-
.idea/*
|
14
|
-
.svn/*
|
15
|
-
src/website/static/*
|
16
|
-
src/website/media/*
|
17
|
-
|
18
|
-
bin
|
19
|
-
cfcache
|
20
|
-
develop-eggs
|
21
|
-
dist
|
22
|
-
downloads
|
23
|
-
eggs
|
24
|
-
parts
|
25
|
-
tmp
|
26
|
-
.sass-cache
|
27
|
-
node_modules
|
28
|
-
|
29
|
-
src/website/settingslocal.py
|
30
|
-
stunnel.log
|
31
|
-
|
32
|
-
.ruby-version
|
@@ -1,25 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "html5shiv",
|
3
|
-
"version": "3.7.3",
|
4
|
-
"main": [
|
5
|
-
"dist/html5shiv.js"
|
6
|
-
],
|
7
|
-
"ignore": [
|
8
|
-
"**/.*",
|
9
|
-
"composer.json",
|
10
|
-
"test",
|
11
|
-
"build",
|
12
|
-
"src",
|
13
|
-
"build.xml"
|
14
|
-
],
|
15
|
-
"homepage": "https://github.com/aFarkas/html5shiv",
|
16
|
-
"_release": "3.7.3",
|
17
|
-
"_resolution": {
|
18
|
-
"type": "version",
|
19
|
-
"tag": "3.7.3",
|
20
|
-
"commit": "ed28c56c071bddfe7d635ad88995674957a016be"
|
21
|
-
},
|
22
|
-
"_source": "git://github.com/aFarkas/html5shiv.git",
|
23
|
-
"_target": "~3.7.0",
|
24
|
-
"_originalSource": "html5shiv"
|
25
|
-
}
|
@@ -1,38 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "jquery",
|
3
|
-
"version": "2.1.4",
|
4
|
-
"main": "dist/jquery.js",
|
5
|
-
"license": "MIT",
|
6
|
-
"ignore": [
|
7
|
-
"**/.*",
|
8
|
-
"build",
|
9
|
-
"dist/cdn",
|
10
|
-
"speed",
|
11
|
-
"test",
|
12
|
-
"*.md",
|
13
|
-
"AUTHORS.txt",
|
14
|
-
"Gruntfile.js",
|
15
|
-
"package.json"
|
16
|
-
],
|
17
|
-
"devDependencies": {
|
18
|
-
"sizzle": "2.1.1-jquery.2.1.2",
|
19
|
-
"requirejs": "2.1.10",
|
20
|
-
"qunit": "1.14.0",
|
21
|
-
"sinon": "1.8.1"
|
22
|
-
},
|
23
|
-
"keywords": [
|
24
|
-
"jquery",
|
25
|
-
"javascript",
|
26
|
-
"library"
|
27
|
-
],
|
28
|
-
"homepage": "https://github.com/jquery/jquery",
|
29
|
-
"_release": "2.1.4",
|
30
|
-
"_resolution": {
|
31
|
-
"type": "version",
|
32
|
-
"tag": "2.1.4",
|
33
|
-
"commit": "7751e69b615c6eca6f783a81e292a55725af6b85"
|
34
|
-
},
|
35
|
-
"_source": "git://github.com/jquery/jquery.git",
|
36
|
-
"_target": ">= 1.9.0",
|
37
|
-
"_originalSource": "jquery"
|
38
|
-
}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "respond",
|
3
|
-
"version": "1.4.2",
|
4
|
-
"main": "dest/respond.src.js",
|
5
|
-
"description": "Fast and lightweight polyfill for min/max-width CSS3 Media Queries (for IE 6-8, and more)",
|
6
|
-
"ignore": [
|
7
|
-
"**/.*",
|
8
|
-
"test"
|
9
|
-
],
|
10
|
-
"homepage": "https://github.com/scottjehl/Respond",
|
11
|
-
"_release": "1.4.2",
|
12
|
-
"_resolution": {
|
13
|
-
"type": "version",
|
14
|
-
"tag": "1.4.2",
|
15
|
-
"commit": "3eda118b4440825df56e3c12d054f9d316a5987a"
|
16
|
-
},
|
17
|
-
"_source": "git://github.com/scottjehl/Respond.git",
|
18
|
-
"_target": "~1.4.2",
|
19
|
-
"_originalSource": "respond"
|
20
|
-
}
|
@@ -1,204 +0,0 @@
|
|
1
|
-
Contributing to Select2
|
2
|
-
=======================
|
3
|
-
Looking to contribute something to Select2? **Here's how you can help.**
|
4
|
-
|
5
|
-
Please take a moment to review this document in order to make the contribution
|
6
|
-
process easy and effective for everyone involved.
|
7
|
-
|
8
|
-
Following these guidelines helps to communicate that you respect the time of
|
9
|
-
the developers managing and developing this open source project. In return,
|
10
|
-
they should reciprocate that respect in addressing your issue or assessing
|
11
|
-
patches and features.
|
12
|
-
|
13
|
-
Using the issue tracker
|
14
|
-
-----------------------
|
15
|
-
When [reporting bugs][reporting-bugs] or
|
16
|
-
[requesting features][requesting-features], the
|
17
|
-
[issue tracker on GitHub][issue-tracker] is the recommended channel to use.
|
18
|
-
|
19
|
-
The issue tracker **is not** a place for support requests. The
|
20
|
-
[mailing list][community] or [IRC channel][community] are better places to
|
21
|
-
get help.
|
22
|
-
|
23
|
-
Reporting bugs with Select2
|
24
|
-
---------------------------
|
25
|
-
We really appreciate clear bug reports that _consistently_ show an issue
|
26
|
-
_within Select2_.
|
27
|
-
|
28
|
-
The ideal bug report follows these guidelines:
|
29
|
-
|
30
|
-
1. **Use the [GitHub issue search][issue-search]** — Check if the issue
|
31
|
-
has already been reported.
|
32
|
-
2. **Check if the issue has been fixed** — Try to reproduce the problem
|
33
|
-
using the code in the `master` branch.
|
34
|
-
3. **Isolate the problem** — Try to create an
|
35
|
-
[isolated test case][isolated-case] that consistently reproduces the problem.
|
36
|
-
|
37
|
-
Please try to be as detailed as possible in your bug report, especially if an
|
38
|
-
isolated test case cannot be made. Some useful questions to include the answer
|
39
|
-
to are:
|
40
|
-
|
41
|
-
- What steps can be used to reproduce the issue?
|
42
|
-
- What is the bug and what is the expected outcome?
|
43
|
-
- What browser(s) and Operating System have you tested with?
|
44
|
-
- Does the bug happen consistently across all tested browsers?
|
45
|
-
- What version of jQuery are you using? And what version of Select2?
|
46
|
-
- Are you using Select2 with other plugins?
|
47
|
-
|
48
|
-
All of these questions will help others fix and identify any potential bugs.
|
49
|
-
|
50
|
-
Requesting features in Select2
|
51
|
-
------------------------------
|
52
|
-
Select2 is a large library that carries with it a lot of functionality. Because
|
53
|
-
of this, many feature requests will not be implemented in the core library.
|
54
|
-
|
55
|
-
Before starting work on a major feature for Select2, **contact the
|
56
|
-
[community][community] first** or you may risk spending a considerable amount of
|
57
|
-
time on something which the project developers are not interested in bringing
|
58
|
-
into the project.
|
59
|
-
|
60
|
-
Contributing changes to Select2
|
61
|
-
-------------------------------
|
62
|
-
Select2 is made up of multiple submodules that all come together to make the
|
63
|
-
standard and extended builds that are available to users. The build system uses
|
64
|
-
Node.js to manage and compile the submodules, all of which is done using the
|
65
|
-
Grunt build system.
|
66
|
-
|
67
|
-
### Installing development dependencies
|
68
|
-
|
69
|
-
Select2 can be built and developed on any system which supports Node.js. The
|
70
|
-
preferred Node.js version is 0.10, but 0.12 and later versions can be used
|
71
|
-
without any noticeable issues. You can download Node.js at
|
72
|
-
[their website][nodejs].
|
73
|
-
|
74
|
-
All other required Node.js packages can be installed using [npm][npm], which
|
75
|
-
comes bundled alongside Node.js.
|
76
|
-
|
77
|
-
```bash
|
78
|
-
cd /path/to/select2/repo
|
79
|
-
npm install
|
80
|
-
```
|
81
|
-
|
82
|
-
You may need to install libsass on your system if it is not already available
|
83
|
-
in order to build the SASS files which generate the CSS for themes and the main
|
84
|
-
component.
|
85
|
-
|
86
|
-
In order to build and serve the documentation, you need to have [Jekyll][jekyll]
|
87
|
-
installed on your system.
|
88
|
-
|
89
|
-
### Building the Select2 component
|
90
|
-
|
91
|
-
Select2 uses the [Grunt][grunt] build task system and defines a few custom
|
92
|
-
tasks for common routines. One of them is the `compile` task, which compiles
|
93
|
-
the JavaScript and CSS and produces the final files.
|
94
|
-
|
95
|
-
```bash
|
96
|
-
cd /path/to/select2/repo
|
97
|
-
grunt compile
|
98
|
-
```
|
99
|
-
|
100
|
-
You can also generate the minified versions (`.min.js` files) by executing the
|
101
|
-
`minify` task after compiling.
|
102
|
-
|
103
|
-
```bash
|
104
|
-
cd /path/to/select2/repo
|
105
|
-
grunt minify
|
106
|
-
```
|
107
|
-
|
108
|
-
### Building the documentation
|
109
|
-
|
110
|
-
Using the Grunt build system, you run Jekyll and serve the documentation
|
111
|
-
locally. This will also set up the examples to use the latest version of
|
112
|
-
Select2 that has been built.
|
113
|
-
|
114
|
-
```bash
|
115
|
-
cd /path/to/select2/repo
|
116
|
-
grunt docs
|
117
|
-
```
|
118
|
-
|
119
|
-
### Running tests
|
120
|
-
|
121
|
-
Select2 uses the QUnit test system to test individual components.
|
122
|
-
|
123
|
-
```bash
|
124
|
-
cd /path/to/selct2/repo
|
125
|
-
grunt test
|
126
|
-
```
|
127
|
-
|
128
|
-
### Submitting a pull request
|
129
|
-
|
130
|
-
We use GitHub's pull request system for submitting patches. Here are some
|
131
|
-
guidelines to follow when creating the pull request for your fix.
|
132
|
-
|
133
|
-
1. Make sure to create a ticket for your pull request. This will serve as the
|
134
|
-
bug ticket, and any discussion about the bug will take place there. Your pull
|
135
|
-
request will be focused on the specific changes that fix the bug.
|
136
|
-
2. Make sure to reference the ticket you are fixing within your pull request.
|
137
|
-
This will allow us to close off the ticket once we merge the pull request, or
|
138
|
-
follow up on the ticket if there are any related blocking issues.
|
139
|
-
3. Explain why the specific change was made. Not everyone who is reviewing your
|
140
|
-
pull request will be familiar with the problem it is fixing.
|
141
|
-
4. Run your tests first. If your tests aren't passing, the pull request won't
|
142
|
-
be able to be merged. If you're breaking existing tests, make sure that you
|
143
|
-
aren't causing any breaking changes.
|
144
|
-
5. Only include source changes. While it's not required, only including changes
|
145
|
-
from the `src` directory will prevent merge conflicts from occurring. Making
|
146
|
-
this happen can be as a simple as not committing changes from the `dist`
|
147
|
-
directory.
|
148
|
-
|
149
|
-
By following these steps, you will make it easier for your pull request to be
|
150
|
-
reviewed and eventually merged.
|
151
|
-
|
152
|
-
Triaging issues and pull requests
|
153
|
-
---------------------------------
|
154
|
-
Anyone can help the project maintainers triage issues and review pull requests.
|
155
|
-
|
156
|
-
### Handling new issues
|
157
|
-
|
158
|
-
Select2 regularly receives new issues which need to be tested and organized.
|
159
|
-
|
160
|
-
When a new issue that comes in that is similar to another existing issue, it
|
161
|
-
should be checked to make sure it is not a duplicate. Duplicates issues should
|
162
|
-
be marked by replying to the issue with "Duplicate of #[issue number]" where
|
163
|
-
`[issue number]` is the url or issue number for the existing issue. This will
|
164
|
-
allow the project maintainers to quickly close off additional issues and keep
|
165
|
-
the discussion focused within a single issue.
|
166
|
-
|
167
|
-
If you can test issues that are reported to Select2 that contain test cases and
|
168
|
-
confirm under what conditions bugs happen, that will allow others to identify
|
169
|
-
what causes a bug quicker.
|
170
|
-
|
171
|
-
### Reviewing pull requests
|
172
|
-
|
173
|
-
It is very common for pull requests to be opened for issues that contain a clear
|
174
|
-
solution to the problem. These pull requests should be rigorously reviewed by
|
175
|
-
the community before being accepted. If you are not sure about a piece of
|
176
|
-
submitted code, or know of a better way to do something, do not hesitate to make
|
177
|
-
a comment on the pull request.
|
178
|
-
|
179
|
-
### Reviving old tickets
|
180
|
-
|
181
|
-
If you come across tickets which have not been updated for a while, you are
|
182
|
-
encouraged to revive them. While this can be as simple as saying `:+1:`, it is
|
183
|
-
best if you can include more information on the issue. Common bugs and feature
|
184
|
-
requests are more likely to be fixed, whether it is by the community or the
|
185
|
-
developers, so keeping tickets up to date is encouraged.
|
186
|
-
|
187
|
-
Licensing
|
188
|
-
---------
|
189
|
-
|
190
|
-
It should also be made clear that **all code contributed to Select** must be
|
191
|
-
licensable under the [MIT license][licensing]. Code that cannot be released
|
192
|
-
under this license **cannot be accepted** into the project.
|
193
|
-
|
194
|
-
[community]: https://select2.github.io/community.html
|
195
|
-
[grunt]: http://gruntjs.com/
|
196
|
-
[isolated-case]: http://css-tricks.com/6263-reduced-test-cases/
|
197
|
-
[issue-search]: https://github.com/select2/select2/search?q=&type=Issues
|
198
|
-
[issue-tracker]: https://github.com/select2/select2/issues
|
199
|
-
[jekyll]: https://jekyllrb.com/docs/installation/
|
200
|
-
[licensing]: https://github.com/select2/select2/blob/master/LICENSE.md
|
201
|
-
[nodejs]: https://nodejs.org/
|
202
|
-
[npm]: https://www.npmjs.com/
|
203
|
-
[reporting-bugs]: #reporting-bugs-with-select2
|
204
|
-
[requesting-features]: #requesting-features-in-select2
|
@@ -1,46 +0,0 @@
|
|
1
|
-
## Prerequisites
|
2
|
-
|
3
|
-
- [ ] I have searched for similar issues in both open and closed tickets and cannot find a duplicate
|
4
|
-
- [ ] The issue still exists against the latest `master` branch of Select2
|
5
|
-
- [ ] This is not a usage question (Those should be directed to the [community](https://select2.github.io/community.html))
|
6
|
-
- [ ] I have attempted to find the simplest possible steps to reproduce the issue
|
7
|
-
- [ ] I have included a failing test as a pull request (Optional)
|
8
|
-
|
9
|
-
## Steps to reproduce the issue
|
10
|
-
|
11
|
-
1.
|
12
|
-
2.
|
13
|
-
3.
|
14
|
-
|
15
|
-
## Expected behavior and actual behavior
|
16
|
-
|
17
|
-
When I follow those steps, I see...
|
18
|
-
|
19
|
-
I was expecting...
|
20
|
-
|
21
|
-
## Environment
|
22
|
-
|
23
|
-
Browsers
|
24
|
-
|
25
|
-
- [ ] Google Chrome
|
26
|
-
- [ ] Mozilla Firefox
|
27
|
-
- [ ] Internet Explorer
|
28
|
-
|
29
|
-
Operating System
|
30
|
-
|
31
|
-
- [ ] Windows
|
32
|
-
- [ ] Mac OS X
|
33
|
-
- [ ] Linux
|
34
|
-
- [ ] Mobile
|
35
|
-
|
36
|
-
Libraries
|
37
|
-
|
38
|
-
- jQuery version:
|
39
|
-
- Select2 version:
|
40
|
-
|
41
|
-
## Isolating the problem
|
42
|
-
|
43
|
-
- [ ] This bug happens [on the examples page](https://select2.github.io/examples.html)
|
44
|
-
- [ ] The bug happens consistently across all tested browsers
|
45
|
-
- [ ] This bug happens when using Select2 without other plugins
|
46
|
-
- [ ] I can reproduce this bug in [a jsbin](https://jsbin.com/)
|
@@ -1,25 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"bitwise": true,
|
3
|
-
"camelcase": true,
|
4
|
-
"curly": true,
|
5
|
-
"es3": true,
|
6
|
-
"eqnull": true,
|
7
|
-
"freeze": true,
|
8
|
-
"globals": {
|
9
|
-
"console": false,
|
10
|
-
"define": false,
|
11
|
-
"document": false,
|
12
|
-
"MockContainer": false,
|
13
|
-
"module": false,
|
14
|
-
"QUnit": false,
|
15
|
-
"require": false,
|
16
|
-
"test": false,
|
17
|
-
"window": false
|
18
|
-
},
|
19
|
-
"indent": 2,
|
20
|
-
"maxlen": 80,
|
21
|
-
"noarg": true,
|
22
|
-
"nonew": true,
|
23
|
-
"quotmark": "single",
|
24
|
-
"undef": true
|
25
|
-
}
|