mongosteen 0.1.3 → 0.1.7
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 +4 -4
- data/.DS_Store +0 -0
- data/.gitignore +3 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +204 -0
- data/README.md +32 -55
- data/Rakefile +16 -2
- data/lib/mongosteen.rb +24 -13
- data/lib/mongosteen/actions.rb +6 -0
- data/lib/mongosteen/base_helpers.rb +6 -7
- data/lib/mongosteen/class_methods.rb +6 -2
- data/lib/mongosteen/permitted_params.rb +3 -34
- data/lib/mongosteen/version.rb +1 -1
- data/mongosteen.gemspec +13 -4
- data/test/.DS_Store +0 -0
- data/test/controllers/.keep +0 -0
- data/test/helpers/.keep +0 -0
- data/test/integration/api_test.rb +95 -0
- data/test/rails_app/.DS_Store +0 -0
- data/test/rails_app/Rakefile +6 -0
- data/test/rails_app/app/assets/images/.keep +0 -0
- data/test/rails_app/app/assets/javascripts/application.js +16 -0
- data/test/rails_app/app/assets/stylesheets/application.css +15 -0
- data/test/rails_app/app/controllers/application_controller.rb +5 -0
- data/test/rails_app/app/controllers/concerns/.keep +0 -0
- data/test/rails_app/app/controllers/test_items_controller.rb +5 -0
- data/test/rails_app/app/controllers/test_permit_items_controller.rb +9 -0
- data/test/rails_app/app/helpers/application_helper.rb +2 -0
- data/test/rails_app/app/mailers/.keep +0 -0
- data/test/rails_app/app/models/concerns/.keep +0 -0
- data/test/rails_app/app/models/test_item.rb +16 -0
- data/test/rails_app/app/models/test_permit_item.rb +7 -0
- data/test/rails_app/app/views/layouts/application.html.erb +14 -0
- data/test/rails_app/bin/bundle +3 -0
- data/test/rails_app/bin/rails +8 -0
- data/test/rails_app/bin/rake +8 -0
- data/test/rails_app/bin/setup +29 -0
- data/test/rails_app/bin/spring +15 -0
- data/test/rails_app/config.ru +4 -0
- data/test/rails_app/config/application.rb +32 -0
- data/test/rails_app/config/boot.rb +3 -0
- data/test/rails_app/config/environment.rb +5 -0
- data/test/rails_app/config/environments/development.rb +38 -0
- data/test/rails_app/config/environments/production.rb +76 -0
- data/test/rails_app/config/environments/test.rb +42 -0
- data/test/rails_app/config/initializers/assets.rb +11 -0
- data/test/rails_app/config/initializers/backtrace_silencers.rb +7 -0
- data/test/rails_app/config/initializers/cookies_serializer.rb +3 -0
- data/test/rails_app/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/rails_app/config/initializers/inflections.rb +16 -0
- data/test/rails_app/config/initializers/mime_types.rb +4 -0
- data/test/rails_app/config/initializers/session_store.rb +3 -0
- data/test/rails_app/config/initializers/wrap_parameters.rb +9 -0
- data/test/rails_app/config/locales/en.yml +23 -0
- data/test/rails_app/config/mongoid.yml +9 -0
- data/test/rails_app/config/routes.rb +6 -0
- data/test/rails_app/config/secrets.yml +22 -0
- data/test/rails_app/db/seeds.rb +7 -0
- data/test/rails_app/lib/assets/.keep +0 -0
- data/test/rails_app/lib/tasks/.keep +0 -0
- data/test/rails_app/public/404.html +67 -0
- data/test/rails_app/public/422.html +67 -0
- data/test/rails_app/public/500.html +66 -0
- data/test/rails_app/public/favicon.ico +0 -0
- data/test/rails_app/public/robots.txt +5 -0
- data/test/rails_app/vendor/assets/javascripts/.keep +0 -0
- data/test/rails_app/vendor/assets/stylesheets/.keep +0 -0
- data/test/test_helper.rb +16 -0
- metadata +158 -22
- data/CONTRIBUTING.md +0 -24
- data/lib/mongoid/fake_criteria.rb +0 -24
- data/lib/mongoid/serializable_id.rb +0 -19
- data/lib/mongoid/sorted_relations.rb +0 -61
- data/lib/mongosteen/engine.rb +0 -5
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
62
|
+
</div>
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
File without changes
|
File without changes
|
File without changes
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
ENV['RAILS_ENV'] ||= 'test'
|
2
|
+
$:.unshift File.dirname(__FILE__)
|
3
|
+
require 'rails_app/config/environment'
|
4
|
+
require 'rails/test_help'
|
5
|
+
require 'database_cleaner'
|
6
|
+
require 'minitest/rails/capybara'
|
7
|
+
require 'mongosteen'
|
8
|
+
|
9
|
+
Capybara.javascript_driver = :webkit
|
10
|
+
DatabaseCleaner[:mongoid].strategy = :truncation
|
11
|
+
|
12
|
+
class ActiveSupport::TestCase
|
13
|
+
def setup
|
14
|
+
DatabaseCleaner.clean
|
15
|
+
end
|
16
|
+
end
|
metadata
CHANGED
@@ -1,57 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongosteen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Kravets
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: inherited_resources
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '1.6'
|
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
|
-
version: '
|
26
|
+
version: '1.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: mongoid-history
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.4.5
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 0.4.5
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: mongoid
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0
|
47
|
+
version: '4.0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0
|
54
|
+
version: '4.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: mongoid_search
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0.3'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: kaminari
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.16'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.16'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: has_scope
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,21 +95,91 @@ dependencies:
|
|
81
95
|
- !ruby/object:Gem::Version
|
82
96
|
version: '0.5'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
98
|
+
name: rake
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
101
|
- - ">="
|
88
102
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
90
|
-
type: :
|
103
|
+
version: 0.8.7
|
104
|
+
type: :development
|
91
105
|
prerelease: false
|
92
106
|
version_requirements: !ruby/object:Gem::Requirement
|
93
107
|
requirements:
|
94
108
|
- - ">="
|
95
109
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
110
|
+
version: 0.8.7
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rails
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 4.1.2
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 4.1.2
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: database_cleaner
|
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: factory_girl_rails
|
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
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: minitest-reporters
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: minitest-focus
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
97
181
|
description: |
|
98
|
-
Mongosteen is a library that helps to easily add
|
182
|
+
Mongosteen is a library that helps to easily add RESTful actions to
|
99
183
|
mongoid models with support of search, pagination, scopes, history,
|
100
184
|
json config.
|
101
185
|
email: alex@slatestudio.com
|
@@ -103,22 +187,74 @@ executables: []
|
|
103
187
|
extensions: []
|
104
188
|
extra_rdoc_files: []
|
105
189
|
files:
|
106
|
-
-
|
190
|
+
- ".DS_Store"
|
191
|
+
- ".gitignore"
|
107
192
|
- Gemfile
|
193
|
+
- Gemfile.lock
|
108
194
|
- LICENSE.md
|
109
195
|
- README.md
|
110
196
|
- Rakefile
|
111
|
-
- lib/mongoid/fake_criteria.rb
|
112
|
-
- lib/mongoid/serializable_id.rb
|
113
|
-
- lib/mongoid/sorted_relations.rb
|
114
197
|
- lib/mongosteen.rb
|
115
198
|
- lib/mongosteen/actions.rb
|
116
199
|
- lib/mongosteen/base_helpers.rb
|
117
200
|
- lib/mongosteen/class_methods.rb
|
118
|
-
- lib/mongosteen/engine.rb
|
119
201
|
- lib/mongosteen/permitted_params.rb
|
120
202
|
- lib/mongosteen/version.rb
|
121
203
|
- mongosteen.gemspec
|
204
|
+
- test/.DS_Store
|
205
|
+
- test/controllers/.keep
|
206
|
+
- test/helpers/.keep
|
207
|
+
- test/integration/api_test.rb
|
208
|
+
- test/rails_app/.DS_Store
|
209
|
+
- test/rails_app/Rakefile
|
210
|
+
- test/rails_app/app/assets/images/.keep
|
211
|
+
- test/rails_app/app/assets/javascripts/application.js
|
212
|
+
- test/rails_app/app/assets/stylesheets/application.css
|
213
|
+
- test/rails_app/app/controllers/application_controller.rb
|
214
|
+
- test/rails_app/app/controllers/concerns/.keep
|
215
|
+
- test/rails_app/app/controllers/test_items_controller.rb
|
216
|
+
- test/rails_app/app/controllers/test_permit_items_controller.rb
|
217
|
+
- test/rails_app/app/helpers/application_helper.rb
|
218
|
+
- test/rails_app/app/mailers/.keep
|
219
|
+
- test/rails_app/app/models/concerns/.keep
|
220
|
+
- test/rails_app/app/models/test_item.rb
|
221
|
+
- test/rails_app/app/models/test_permit_item.rb
|
222
|
+
- test/rails_app/app/views/layouts/application.html.erb
|
223
|
+
- test/rails_app/bin/bundle
|
224
|
+
- test/rails_app/bin/rails
|
225
|
+
- test/rails_app/bin/rake
|
226
|
+
- test/rails_app/bin/setup
|
227
|
+
- test/rails_app/bin/spring
|
228
|
+
- test/rails_app/config.ru
|
229
|
+
- test/rails_app/config/application.rb
|
230
|
+
- test/rails_app/config/boot.rb
|
231
|
+
- test/rails_app/config/environment.rb
|
232
|
+
- test/rails_app/config/environments/development.rb
|
233
|
+
- test/rails_app/config/environments/production.rb
|
234
|
+
- test/rails_app/config/environments/test.rb
|
235
|
+
- test/rails_app/config/initializers/assets.rb
|
236
|
+
- test/rails_app/config/initializers/backtrace_silencers.rb
|
237
|
+
- test/rails_app/config/initializers/cookies_serializer.rb
|
238
|
+
- test/rails_app/config/initializers/filter_parameter_logging.rb
|
239
|
+
- test/rails_app/config/initializers/inflections.rb
|
240
|
+
- test/rails_app/config/initializers/mime_types.rb
|
241
|
+
- test/rails_app/config/initializers/session_store.rb
|
242
|
+
- test/rails_app/config/initializers/wrap_parameters.rb
|
243
|
+
- test/rails_app/config/locales/en.yml
|
244
|
+
- test/rails_app/config/mongoid.yml
|
245
|
+
- test/rails_app/config/routes.rb
|
246
|
+
- test/rails_app/config/secrets.yml
|
247
|
+
- test/rails_app/db/seeds.rb
|
248
|
+
- test/rails_app/lib/assets/.keep
|
249
|
+
- test/rails_app/lib/tasks/.keep
|
250
|
+
- test/rails_app/public/404.html
|
251
|
+
- test/rails_app/public/422.html
|
252
|
+
- test/rails_app/public/500.html
|
253
|
+
- test/rails_app/public/favicon.ico
|
254
|
+
- test/rails_app/public/robots.txt
|
255
|
+
- test/rails_app/vendor/assets/javascripts/.keep
|
256
|
+
- test/rails_app/vendor/assets/stylesheets/.keep
|
257
|
+
- test/test_helper.rb
|
122
258
|
homepage: https://github.com/slate-studio/mongosteen
|
123
259
|
licenses:
|
124
260
|
- MIT
|
@@ -139,7 +275,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
275
|
version: '0'
|
140
276
|
requirements: []
|
141
277
|
rubyforge_project: mongosteen
|
142
|
-
rubygems_version: 2.4.
|
278
|
+
rubygems_version: 2.4.6
|
143
279
|
signing_key:
|
144
280
|
specification_version: 4
|
145
281
|
summary: An easy way to add restful actions
|
data/CONTRIBUTING.md
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
We love pull requests. Here’s a quick guide:
|
2
|
-
|
3
|
-
1. Fork the repository.
|
4
|
-
2. Make your changes in a topic branch.
|
5
|
-
3. Squash your commits into a single one (more on that [here](http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html)).
|
6
|
-
4. Rebase against `origin/master`, push to your fork and submit a pull request.
|
7
|
-
5. If you are writing a new feature please add documentation for it by making another pull request to the `gh-pages` branch.
|
8
|
-
|
9
|
-
At this point you’re waiting on us. We like to at least comment on, if not
|
10
|
-
accept, pull requests within three business days (and, typically, one business
|
11
|
-
day). We may suggest some changes or improvements or alternatives.
|
12
|
-
|
13
|
-
Some things that will increase the chance that your pull request is accepted:
|
14
|
-
|
15
|
-
* Fix a bug, refactor code or expand an existing feature.
|
16
|
-
* Use the right syntax and naming conventions.
|
17
|
-
* Update parts of the documentation that are affected by your contribution.
|
18
|
-
|
19
|
-
**Git Commit Messages**
|
20
|
-
|
21
|
-
* Capitalize your commit messages.
|
22
|
-
* Start your message with a verb.
|
23
|
-
* Use present tense.
|
24
|
-
* Refer to the issue/PR number in your squashed commit message.
|