bootbox_crud 0.1.1.6 → 0.1.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +21 -0
  3. data/.eslintrc +212 -0
  4. data/.gitignore +5 -0
  5. data/.rubocop.yml +1156 -0
  6. data/.travis.yml +11 -0
  7. data/Gemfile +14 -0
  8. data/README.md +4 -2
  9. data/Rakefile +33 -0
  10. data/bootbox_crud.gemspec +2 -0
  11. data/lib/bootbox_crud/action_view/helpers.rb +1 -1
  12. data/lib/bootbox_crud/engine.rb +1 -1
  13. data/lib/bootbox_crud/version.rb +1 -1
  14. data/lib/generators/bootbox_crud/install_generator.rb +5 -5
  15. data/lib/generators/bootbox_crud/templates/config/initializers/simple_form_bootstrap.rb +54 -50
  16. data/lib/generators/rails/haml_modal_crud/haml_modal_crud_generator.rb +2 -2
  17. data/lib/generators/rails/haml_modal_crud/templates/create.js.erb +1 -1
  18. data/lib/generators/rails/haml_modal_crud/templates/destroy.js.erb +1 -1
  19. data/lib/generators/rails/haml_modal_crud/templates/update.js.erb +1 -1
  20. data/lib/generators/rails/modal_crud_route/modal_crud_route_generator.rb +1 -1
  21. data/test/dummy/README.rdoc +28 -0
  22. data/test/dummy/Rakefile +6 -0
  23. data/test/dummy/app/assets/images/.keep +0 -0
  24. data/test/dummy/app/assets/javascripts/application.js +19 -0
  25. data/test/dummy/app/assets/javascripts/models.js +8 -0
  26. data/test/dummy/app/assets/stylesheets/application.css +17 -0
  27. data/test/dummy/app/assets/stylesheets/bootstrap_main.scss +2 -0
  28. data/test/dummy/app/controllers/application_controller.rb +5 -0
  29. data/test/dummy/app/controllers/blocks_controller.rb +92 -0
  30. data/test/dummy/app/controllers/concerns/.keep +0 -0
  31. data/test/dummy/app/helpers/.keep +0 -0
  32. data/test/dummy/app/mailers/.keep +0 -0
  33. data/test/dummy/app/models/.keep +0 -0
  34. data/test/dummy/app/models/block.rb +2 -0
  35. data/test/dummy/app/models/concerns/.keep +0 -0
  36. data/test/dummy/app/views/blocks/_form.html.haml +13 -0
  37. data/test/dummy/app/views/blocks/create.js.erb +2 -0
  38. data/test/dummy/app/views/blocks/destroy.js.erb +1 -0
  39. data/test/dummy/app/views/blocks/edit.html.haml +2 -0
  40. data/test/dummy/app/views/blocks/index.html.haml +38 -0
  41. data/test/dummy/app/views/blocks/new.html.haml +2 -0
  42. data/test/dummy/app/views/blocks/show.html.haml +8 -0
  43. data/test/dummy/app/views/blocks/update.js.erb +1 -0
  44. data/test/dummy/app/views/layouts/application.html.haml +11 -0
  45. data/test/dummy/bin/bundle +3 -0
  46. data/test/dummy/bin/rails +4 -0
  47. data/test/dummy/bin/rake +4 -0
  48. data/test/dummy/bin/setup +29 -0
  49. data/test/dummy/config/application.rb +34 -0
  50. data/test/dummy/config/boot.rb +5 -0
  51. data/test/dummy/config/database.yml +25 -0
  52. data/test/dummy/config/environment.rb +5 -0
  53. data/test/dummy/config/environments/development.rb +41 -0
  54. data/test/dummy/config/environments/production.rb +79 -0
  55. data/test/dummy/config/environments/test.rb +42 -0
  56. data/test/dummy/config/initializers/assets.rb +11 -0
  57. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  58. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  59. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  60. data/test/dummy/config/initializers/inflections.rb +16 -0
  61. data/test/dummy/config/initializers/mime_types.rb +4 -0
  62. data/test/dummy/config/initializers/session_store.rb +3 -0
  63. data/test/dummy/config/initializers/simple_form.rb +142 -0
  64. data/test/dummy/config/initializers/simple_form_bootstrap.rb +167 -0
  65. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  66. data/test/dummy/config/locales/en.yml +23 -0
  67. data/test/dummy/config/routes.rb +58 -0
  68. data/test/dummy/config/secrets.yml +22 -0
  69. data/test/dummy/config.ru +4 -0
  70. data/test/dummy/db/migrate/20160328122748_create_blocks.rb +12 -0
  71. data/test/dummy/lib/assets/.keep +0 -0
  72. data/test/dummy/log/.keep +0 -0
  73. data/test/dummy/public/404.html +67 -0
  74. data/test/dummy/public/422.html +67 -0
  75. data/test/dummy/public/500.html +66 -0
  76. data/test/dummy/public/favicon.ico +0 -0
  77. data/test/dummy/spec/javascripts/alert_spec.js.es6 +5 -0
  78. data/test/dummy/spec/javascripts/bb_crud_spec.js.es6 +5 -0
  79. data/test/dummy/spec/javascripts/helpers/.gitkeep +0 -0
  80. data/test/dummy/spec/javascripts/modals_spec.js.es6 +5 -0
  81. data/test/dummy/spec/javascripts/models_spec.js.es6 +5 -0
  82. data/test/dummy/spec/javascripts/support/jasmine.yml +50 -0
  83. data/test/dummy/spec/javascripts/support/jasmine_helper.rb +14 -0
  84. data/test/dummy/test/controllers/blocks_controller_test.rb +49 -0
  85. data/test/dummy/test/fixtures/blocks.yml +19 -0
  86. data/test/dummy/test/models/block_test.rb +11 -0
  87. data/test/generators/generator_test_base.rb +7 -0
  88. data/test/generators/haml_modal_crud_generator_test.rb +15 -0
  89. data/test/generators/install_generator_test.rb +14 -0
  90. data/test/generators/modal_crud_route_generator_test.rb +22 -0
  91. data/test/test_helper.rb +37 -0
  92. data/vendor/assets/javascripts/bootbox_crud_modals.js +33 -20
  93. data/vendor/assets/javascripts/sortable.js +11 -10
  94. data/vendor/assets/stylesheets/{bootbox_crud.css.scss → bootbox_crud.scss} +0 -0
  95. data/vendor/assets/stylesheets/bootbox_crud_main.scss +2 -0
  96. metadata +110 -6
  97. data/vendor/assets/stylesheets/bootbox_crud_main.css.scss +0 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0a699c43c7aeb3c8d6df2eaa797587a7d3f4b5c4
4
- data.tar.gz: b896e32a7ed1d4f0042647447827d1cd87927c8d
3
+ metadata.gz: bf24369f6333a8c7321af19175eed6e5c36ebb75
4
+ data.tar.gz: 90bbab5b20cc2322cbd1d016668c1a77a0a3c2f6
5
5
  SHA512:
6
- metadata.gz: 81214187df147a485850d683fdcf385a0f3a031187fb45d581583b0825ed3ad24e67bb0f7cecf636ec8da7e724bd66c2a9586a7008337a13404371deab702fb2
7
- data.tar.gz: 87b4dbc3c014d95459d86510168a783567a770b26ebd344c6cddfd85928e1b564ffdbea87fa573fe366e6a267e0e798af079af03c927bdb5c877b3a78938384c
6
+ metadata.gz: 8ba3a59b1d598b3b1f2559ce9f3b36c2d49f7092be574cfc1fb523b9b4d259ad37d7192117d042b6f474ed922fedc240638abca86da35493a1287d7faf5d6ca6
7
+ data.tar.gz: 0cdf0ae1ec61d42566ee805c7bfb4343205471e53c5db01ada2ce00fc3147c9b0cca57dcdd80c052c864a81d2793ffaada9f3e8085d2aa5c0ee2bafe2caddc8b
data/.codeclimate.yml ADDED
@@ -0,0 +1,21 @@
1
+ ---
2
+ engines:
3
+ duplication:
4
+ enabled: true
5
+ config:
6
+ languages:
7
+ - ruby
8
+ - javascript
9
+ eslint:
10
+ enabled: true
11
+ fixme:
12
+ enabled: true
13
+ rubocop:
14
+ enabled: true
15
+ ratings:
16
+ paths:
17
+ - "**.js"
18
+ - "**.rb"
19
+ exclude_paths:
20
+ - test/
21
+ - lib/templates
data/.eslintrc ADDED
@@ -0,0 +1,212 @@
1
+ ecmaFeatures:
2
+ modules: false
3
+ jsx: false
4
+
5
+ env:
6
+ amd: false
7
+ browser: true
8
+ es6: true
9
+ jquery: true
10
+ node: false
11
+
12
+ # http://eslint.org/docs/rules/
13
+ rules:
14
+ # Possible Errors
15
+ comma-dangle: [2, never]
16
+ no-cond-assign: 2
17
+ no-console: 0
18
+ no-constant-condition: 2
19
+ no-control-regex: 2
20
+ no-debugger: 2
21
+ no-dupe-args: 2
22
+ no-dupe-keys: 2
23
+ no-duplicate-case: 2
24
+ no-empty: 2
25
+ no-empty-character-class: 2
26
+ no-ex-assign: 2
27
+ no-extra-boolean-cast: 2
28
+ no-extra-parens: 0
29
+ no-extra-semi: 2
30
+ no-func-assign: 2
31
+ no-inner-declarations: [2, functions]
32
+ no-invalid-regexp: 2
33
+ no-irregular-whitespace: 2
34
+ no-negated-in-lhs: 2
35
+ no-obj-calls: 2
36
+ no-regex-spaces: 2
37
+ no-sparse-arrays: 2
38
+ no-unexpected-multiline: 2
39
+ no-unreachable: 2
40
+ use-isnan: 2
41
+ valid-jsdoc: 0
42
+ valid-typeof: 2
43
+
44
+ # Best Practices
45
+ accessor-pairs: 2
46
+ block-scoped-var: 0
47
+ complexity: [2, 6]
48
+ consistent-return: 0
49
+ curly: 0
50
+ default-case: 0
51
+ dot-location: 0
52
+ dot-notation: 0
53
+ eqeqeq: 2
54
+ guard-for-in: 2
55
+ no-alert: 2
56
+ no-caller: 2
57
+ no-case-declarations: 2
58
+ no-div-regex: 2
59
+ no-else-return: 0
60
+ no-empty-pattern: 2
61
+ no-eq-null: 2
62
+ no-eval: 2
63
+ no-extend-native: 2
64
+ no-extra-bind: 2
65
+ no-fallthrough: 2
66
+ no-floating-decimal: 0
67
+ no-implicit-coercion: 0
68
+ no-implied-eval: 2
69
+ no-invalid-this: 0
70
+ no-iterator: 2
71
+ no-labels: 0
72
+ no-lone-blocks: 2
73
+ no-loop-func: 2
74
+ no-magic-number: 0
75
+ no-multi-spaces: 0
76
+ no-multi-str: 0
77
+ no-native-reassign: 2
78
+ no-new-func: 2
79
+ no-new-wrappers: 2
80
+ no-new: 2
81
+ no-octal-escape: 2
82
+ no-octal: 2
83
+ no-proto: 2
84
+ no-redeclare: 2
85
+ no-return-assign: 2
86
+ no-script-url: 2
87
+ no-self-compare: 2
88
+ no-sequences: 0
89
+ no-throw-literal: 0
90
+ no-unused-expressions: 2
91
+ no-useless-call: 2
92
+ no-useless-concat: 2
93
+ no-void: 2
94
+ no-warning-comments: 0
95
+ no-with: 2
96
+ radix: 2
97
+ vars-on-top: 0
98
+ wrap-iife: 2
99
+ yoda: 0
100
+
101
+ # Strict
102
+ strict: 0
103
+
104
+ # Variables
105
+ init-declarations: 0
106
+ no-catch-shadow: 2
107
+ no-delete-var: 2
108
+ no-label-var: 2
109
+ no-shadow-restricted-names: 2
110
+ no-shadow: 0
111
+ no-undef-init: 2
112
+ no-undef: 0
113
+ no-undefined: 0
114
+ no-unused-vars: 0
115
+ no-use-before-define: 0
116
+
117
+ # Node.js and CommonJS
118
+ callback-return: 2
119
+ global-require: 2
120
+ handle-callback-err: 2
121
+ no-mixed-requires: 0
122
+ no-new-require: 0
123
+ no-path-concat: 2
124
+ no-process-exit: 2
125
+ no-restricted-modules: 0
126
+ no-sync: 0
127
+
128
+ # Stylistic Issues
129
+ array-bracket-spacing: 0
130
+ block-spacing: 0
131
+ brace-style: 0
132
+ camelcase: 0
133
+ comma-spacing: 0
134
+ comma-style: 0
135
+ computed-property-spacing: 0
136
+ consistent-this: 0
137
+ eol-last: 0
138
+ func-names: 0
139
+ func-style: 0
140
+ id-length: 0
141
+ id-match: 0
142
+ indent: 0
143
+ jsx-quotes: 0
144
+ key-spacing: 0
145
+ linebreak-style: 0
146
+ lines-around-comment: 0
147
+ max-depth: 0
148
+ max-len: 0
149
+ max-nested-callbacks: 0
150
+ max-params: 0
151
+ max-statements: [2, 30]
152
+ new-cap: 0
153
+ new-parens: 0
154
+ newline-after-var: 0
155
+ no-array-constructor: 0
156
+ no-bitwise: 0
157
+ no-continue: 0
158
+ no-inline-comments: 0
159
+ no-lonely-if: 0
160
+ no-mixed-spaces-and-tabs: 0
161
+ no-multiple-empty-lines: 0
162
+ no-negated-condition: 0
163
+ no-nested-ternary: 0
164
+ no-new-object: 0
165
+ no-plusplus: 0
166
+ no-restricted-syntax: 0
167
+ no-spaced-func: 0
168
+ no-ternary: 0
169
+ no-trailing-spaces: 0
170
+ no-underscore-dangle: 0
171
+ no-unneeded-ternary: 0
172
+ object-curly-spacing: 0
173
+ one-var: 0
174
+ operator-assignment: 0
175
+ operator-linebreak: 0
176
+ padded-blocks: 0
177
+ quote-props: 0
178
+ quotes: 0
179
+ require-jsdoc: 0
180
+ semi-spacing: 0
181
+ semi: 0
182
+ sort-vars: 0
183
+ space-after-keywords: 0
184
+ space-before-blocks: 0
185
+ space-before-function-paren: 0
186
+ space-before-keywords: 0
187
+ space-in-parens: 0
188
+ space-infix-ops: 0
189
+ space-return-throw-case: 0
190
+ space-unary-ops: 0
191
+ spaced-comment: 0
192
+ wrap-regex: 0
193
+
194
+ # ECMAScript 6
195
+ arrow-body-style: 0
196
+ arrow-parens: 0
197
+ arrow-spacing: 0
198
+ constructor-super: 0
199
+ generator-star-spacing: 0
200
+ no-arrow-condition: 0
201
+ no-class-assign: 0
202
+ no-const-assign: 0
203
+ no-dupe-class-members: 0
204
+ no-this-before-super: 0
205
+ no-var: 0
206
+ object-shorthand: 0
207
+ prefer-arrow-callback: 0
208
+ prefer-const: 0
209
+ prefer-reflect: 0
210
+ prefer-spread: 0
211
+ prefer-template: 0
212
+ require-yield: 0
data/.gitignore CHANGED
@@ -7,6 +7,10 @@
7
7
  /spec/reports/
8
8
  /test/tmp/
9
9
  /test/version_tmp/
10
+ /test/dummy/log
11
+ /test/dummy/tmp
12
+ /test/dummy/db/*.sqlite3
13
+ /test/dummy/db/schema.rb
10
14
  /tmp/
11
15
 
12
16
  ## Documentation cache and generated files:
@@ -17,6 +21,7 @@
17
21
 
18
22
  ## Environment normalisation:
19
23
  /.bundle/
24
+ /.idea/
20
25
  /vendor/bundle
21
26
  /lib/bundler/man/
22
27