inline_forms 5.0.6 → 5.0.15

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 CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- N2FkOTQ2NGEyMTFhMTVhNDg0NDNkNDIzMDA0NjMxNGQxYjg5YTIxZg==
5
- data.tar.gz: !binary |-
6
- NjJmMmY3NDhiMDk2ZjFjZmM4ZGQ0ZTlhNWM2YzUxZjlkZjliZDM1Yg==
2
+ SHA1:
3
+ metadata.gz: 01e55b3a95a7d12751a4ff77e3eb6b1d2e85652a
4
+ data.tar.gz: 86ef6f6769db075bdeb2671a91a3412cb69ec319
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MGNkNWVkMTcwYzZlNDUzYmU3ZTNhOWZhMDkwN2ExOWY2NTQ0Zjk5YzIwMDhh
10
- YjUzNzZiMTZjM2JhY2NkYmIzZmY5MzQ0MmRiZmQxMGEzZWFiZmQ2MGIxZjY3
11
- NTAyOWExMGM0NjM0ZTExYWQzYzVjNTc3OGFhNjQ1MzY3MDlkOWE=
12
- data.tar.gz: !binary |-
13
- MDE5OTM4Y2UwYTg3ZTdiNTkxMGNhNDEyMzA3OWYyMTE4OGUxYWIwYzZkNTYw
14
- ZjVjYTMwY2Q0Mzg2ZWNmY2EyZjFlM2E0NWE1NGViODYwMzY3NzU1NjJiNTdj
15
- MDE4Yjc0NTBmNDllODViZjNiMGI3ZWU2YWFmOGFiZTk4MDM3MDk=
6
+ metadata.gz: 14400ce2bf322680a120bc3b22110f34c8e6f16a552c37dcd8a9ad153549ecec05ae6af4c05b42786b9cecf0e9d1550c8edf1f39cace838ff977dc8d3310012f
7
+ data.tar.gz: 0adcddbfbc772dba2fd07d4eca15b8b8e8de21aaa9ea66987491ccd5b1c16bf11c4ddf777aec4a2a54787e3c6aa91a27417c28bacb3411c15225c1fc7adec210
@@ -17,7 +17,7 @@ gem 'carrierwave'
17
17
  gem 'remotipart', '~> 1.0'
18
18
  gem 'paper_trail'
19
19
  gem 'devise'
20
- gem 'inline_forms'
20
+ gem 'inline_forms', '>=5'
21
21
  gem 'validation_hints'
22
22
  gem 'mini_magick'
23
23
  gem 'rails-i18n'
@@ -232,12 +232,12 @@ create_file "app/models/user.rb", <<-USER_MODEL.strip_heredoc
232
232
  USER_MODEL
233
233
 
234
234
  say "- Adding admin user with email: #{ENV['email']}, password: #{ENV['password']} to seeds.rb"
235
- append_to_file "db/seeds.rb", "User.create({ id: 1, email: '#{ENV['email']}', locale_id: 1, name: 'Admin', password: '#{ENV['password']}', password_confirmation: '#{ENV['password']}' }, without_protection: true)\n"
235
+ append_to_file "db/seeds.rb", "User.create({ id: 1, email: '#{ENV['email']}', locale_id: 1, name: 'Admin', password: '#{ENV['password']}', password_confirmation: '#{ENV['password']}' })\n"
236
236
 
237
237
  # Create Locales
238
238
  say "- Create locales"
239
239
  generate "inline_forms", "Locale name:string title:string users:has_many _enabled:yes _presentation:\#{title}"
240
- append_to_file "db/seeds.rb", "Locale.create({ id: 1, name: 'en', title: 'English' }, without_protection: true)\n"
240
+ append_to_file "db/seeds.rb", "Locale.create({ id: 1, name: 'en', title: 'English' })\n"
241
241
 
242
242
  # Create Roles
243
243
  say "- Create roles"
@@ -262,14 +262,14 @@ create_file "db/migrate/" +
262
262
  end
263
263
  ROLES_MIGRATION
264
264
 
265
- append_to_file "db/seeds.rb", "Role.create({ id: 1, name: 'superadmin', description: 'Super Admin can access all.' }, without_protection: true)\n"
265
+ append_to_file "db/seeds.rb", "Role.create({ id: 1, name: 'superadmin', description: 'Super Admin can access all.' })\n"
266
266
 
267
267
  say "- Installaing ZURB Foundation..."
268
268
  generate "foundation:install", "-f"
269
269
 
270
270
  say "- Copy stylesheets..."
271
- remove_file 'app/assets/stylesheets/foundation_and_overrides.scss'
272
- %w(application.scss devise.scss foundation_and_overrides.scss inline_forms.scss).each do |stylesheet|
271
+ remove_file 'app/assets/stylesheets/application.css'
272
+ %w(application.scss devise.scss inline_forms.scss).each do |stylesheet|
273
273
  copy_file File.join(GENERATOR_PATH, 'lib/generators/assets/stylesheets' , stylesheet), File.join('app/assets/stylesheets' , stylesheet)
274
274
  end
275
275
 
@@ -403,7 +403,7 @@ create_file "app/models/ability.rb", <<-END_ABILITY.strip_heredoc
403
403
  def initialize(user)
404
404
  # See the wiki for details: https://github.com/ryanb/cancan/wiki/Defining-Abilities
405
405
 
406
- user ||= user.new # guest user
406
+ user ||= User.new # guest user
407
407
 
408
408
  # use this if you get stuck:
409
409
  # if user.id == 1 #quick hack
@@ -485,13 +485,14 @@ remove_file 'spec/factories/users.rb'
485
485
  remove_file 'spec/models/user_spec.rb'
486
486
 
487
487
  # precompile devise.css
488
- say "- Precompile devise.css in environments/production.rb..."
489
- insert_into_file "config/environments/production.rb", " config.assets.precompile += %w( devise.css )\n", :after => "# config.assets.precompile += %w( search.js )\n"
488
+ say "- Precompile devise.css in environments/production.rb... (Since Rails 5 in config/initializers/assets.rb !)"
489
+ append_file "config/initializers/assets.rb", " Rails.application.config.assets.precompile += %w( devise.css )\n"
490
490
 
491
491
  # devise mailer stuff
492
492
  say "- Injecting devise mailer stuff in environments/production.rb..."
493
493
  # strip_heredoc_with_indent(2) became strip_heredoc(2), but only in rails 4... :-(
494
494
  insert_into_file "config/environments/production.rb", <<-DEVISE_MAILER_STUFF.strip_heredoc, :before => "end\n"
495
+
495
496
  # for devise
496
497
  config.action_mailer.default_url_options = { protocol: 'https', host: 'YOURHOSTNAME' }
497
498
  config.action_mailer.delivery_method = :smtp
@@ -6,15 +6,12 @@
6
6
  <title>
7
7
  <%= t('inline_forms.general.application_title') %> v<%= InlineForms::VERSION %>
8
8
  </title>
9
- <%= stylesheet_link_tag "application" %>
10
- <%= javascript_include_tag "vendor/modernizr" %>
11
- <%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
9
+ <%= stylesheet_link_tag "application" %>
12
10
  <%= csrf_meta_tags %>
13
11
  </head>
14
12
 
15
13
  <body>
16
-
17
14
  <%= yield %>
18
-
15
+ <%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
19
16
  </body>
20
17
  </html>
@@ -6,16 +6,13 @@
6
6
  <title>
7
7
  <%= t('inline_forms.general.application_title') %> v<%= InlineForms::VERSION %>
8
8
  </title>
9
- <%= stylesheet_link_tag "devise" %>
10
- <%= javascript_include_tag "vendor/modernizr" %>
9
+ <%= stylesheet_link_tag "devise" %>
11
10
  <%= csrf_meta_tags %>
12
11
  </head>
13
12
 
14
13
  <body>
15
-
16
14
  <div id="inline_forms_devise_outer_container">
17
15
  <%= yield %>
18
16
  </div>
19
-
20
17
  </body>
21
18
  </html>
@@ -3,22 +3,17 @@
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,400italic' rel='stylesheet' type='text/css' />
7
-
8
6
  <title><%= t('application_name') + " v" + InlineForms::VERSION -%></title>
9
-
10
- <%= stylesheet_link_tag "application" %>
11
- <%= javascript_include_tag "vendor/modernizr" %>
7
+ <%= stylesheet_link_tag "application" %>
12
8
  <%= csrf_meta_tags %>
13
9
  </head>
14
10
 
15
11
  <body>
16
-
17
12
  <%= render "inline_forms/header" %>
18
13
  <%= render "/inline_forms_tabs" %>
19
14
  <div id="outer_container">
20
- <%= yield %>
15
+ <%= yield %>
21
16
  </div>
22
- <%= javascript_include_tag 'application' %>
17
+ <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
23
18
  </body>
24
19
  </html>
@@ -17,3 +17,5 @@
17
17
  //= require foundation
18
18
  //= require jquery.remotipart
19
19
  //= require inline_forms
20
+
21
+ $(function(){ $(document).foundation(); });
@@ -8,7 +8,7 @@ CKEDITOR.editorConfig = function( config )
8
8
  // Define changes to default configuration here. For example:
9
9
  // config.language = 'fr';
10
10
  // config.uiColor = '#AADC6E';
11
-
11
+
12
12
  /* Filebrowser routes */
13
13
  // The location of an external file browser, that should be launched when "Browse Server" button is pressed.
14
14
  config.filebrowserBrowseUrl = "/ckeditor/attachment_files";
@@ -18,7 +18,7 @@ CKEDITOR.editorConfig = function( config )
18
18
 
19
19
  // The location of a script that handles file uploads in the Flash dialog.
20
20
  config.filebrowserFlashUploadUrl = "/ckeditor/attachment_files";
21
-
21
+
22
22
  // The location of an external file browser, that should be launched when "Browse Server" button is pressed in the Link tab of Image dialog.
23
23
  config.filebrowserImageBrowseLinkUrl = "/ckeditor/pictures";
24
24
 
@@ -31,44 +31,42 @@ CKEDITOR.editorConfig = function( config )
31
31
  config.filebrowserImageUploadUrl = "/ckeditor/pictures" + "?" + token + "=" + param;
32
32
  // The location of a script that handles file uploads.
33
33
  config.filebrowserUploadUrl = "/ckeditor/attachment_files";
34
-
34
+
35
35
  // Rails CSRF token
36
36
  config.filebrowserParams = function(){
37
37
  var csrf_token = $('meta[name=csrf-token]').attr('content'),
38
38
  csrf_param = $('meta[name=csrf-param]').attr('content'),
39
39
  params = new Object();
40
-
40
+
41
41
  if (csrf_param !== undefined && csrf_token !== undefined) {
42
42
  params[csrf_param] = csrf_token;
43
43
  }
44
-
44
+
45
45
  return params;
46
46
  };
47
-
48
- /* Extra plugins */
49
- // works only with en, ru, uk locales
50
- // config.extraPlugins = "embed,attachment";
51
47
 
52
48
  config.height = 400;
53
49
  config.width = 600;
54
50
 
51
+ config.language = 'nl';
55
52
 
53
+ // these two lines needed for spellchecking in the browser!
54
+ config.disableNativeSpellChecker = false;
55
+ config.removePlugins = 'contextmenu,liststyle,tabletools';
56
56
 
57
- config.language = 'nl';
58
-
59
- /* Toolbars */
57
+ /* Toolbars */
60
58
 
61
- config.toolbarCanCollapse = false;
59
+ config.toolbarCanCollapse = false;
62
60
 
63
- config.toolbar_Minimal =
64
- [
65
- ['Format','-','Bold','Italic','-','NumberedList','BulletedList','-','Link'],
66
- ['PasteFromWord','Source','Undo','Redo','RemoveFormat'],
67
- ];
61
+ config.toolbar_Minimal =
62
+ [
63
+ ['Format','-','Bold','Italic','Underline','-','NumberedList','BulletedList','-','Link'],
64
+ ['PasteFromWord','RemoveFormat','Source','-','Undo','Redo','-','Maximize']
65
+ ];
68
66
 
69
- config.toolbar_None =
70
- [ '-' ];
67
+ config.toolbar_None =
68
+ [ '-' ];
71
69
 
72
- config.toolbar = 'Minimal';
70
+ config.toolbar = 'Minimal';
73
71
 
74
72
  };
@@ -1,5 +1,3 @@
1
- $(document).foundation();
2
-
3
1
  // initialize datepickers
4
2
  $(document).ready(function() {
5
3
  $.datepicker.setDefaults({
@@ -10,6 +10,10 @@
10
10
  *
11
11
  *= require jquery.ui.core
12
12
  *= require jquery.ui.theme
13
- *= require foundation_and_overrides
13
+ @import url(http://fonts.googleapis.com/css?family=Open+Sans:400,400italic);
14
+ @import 'foundation-icons';
15
+ @import 'themes/jquery.ui.sunny';
16
+ @import 'jquery.ui.all';
17
+ @import 'foundation_and_overrides';
14
18
  *= require inline_forms
15
19
  */
@@ -1,10 +1,6 @@
1
1
  @import url(http://fonts.googleapis.com/css?family=Open+Sans:400,400italic);
2
2
  @import 'foundation_and_overrides';
3
3
 
4
- .contain-to-grid {
5
- background-color: $body-bg !important;
6
- }
7
-
8
4
  #inline_forms_devise_outer_container a {
9
5
  color: #A3381E;
10
6
  }
@@ -1,13 +1,4 @@
1
- @import url(http://fonts.googleapis.com/css?family=Open+Sans:400,400italic);
2
- @import 'foundation-icons';
3
- @import 'themes/jquery.ui.sunny';
4
- @import 'jquery.ui.all';
5
-
6
- @import 'foundation_and_overrides';
7
-
8
- .contain-to-grid {
9
- background-color: $body-bg !important;
10
- }
1
+ // inline_forms
11
2
 
12
3
  input {
13
4
  margin: 2px 0 !important;
@@ -1,7 +1,8 @@
1
1
  class InlineFormsCreate<%= table_name.camelize %> < ActiveRecord::Migration
2
2
 
3
3
  def self.up
4
- create_table :<%= table_name + ", :id => " + @create_id.to_s %> do |t|
4
+ #create_table :<%= table_name + ", :id => " + @create_id.to_s %> do |t|
5
+ create_table :<%= table_name %> do |t|
5
6
  <%= @columns -%>
6
7
  t.timestamps
7
8
  end
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module InlineForms
3
- VERSION = "5.0.6"
3
+ VERSION = "5.0.15"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inline_forms
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.6
4
+ version: 5.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ace Suares
@@ -15,42 +15,42 @@ dependencies:
15
15
  name: rvm
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ! '>='
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ! '>='
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: '0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: thor
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ! '>='
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ! '>='
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: validation_hints
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ! '>='
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
48
  version: '0'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ! '>='
53
+ - - ">="
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  - !ruby/object:Gem::Dependency
@@ -71,70 +71,70 @@ dependencies:
71
71
  name: rails-i18n
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - ! '>='
74
+ - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ! '>='
81
+ - - ">="
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: rspec-rails
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - ! '>='
88
+ - - ">="
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0'
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - ! '>='
95
+ - - ">="
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: shoulda
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - ! '>='
102
+ - - ">="
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0'
105
105
  type: :development
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - ! '>='
109
+ - - ">="
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: bundler
114
114
  requirement: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - ! '>='
116
+ - - ">="
117
117
  - !ruby/object:Gem::Version
118
118
  version: '0'
119
119
  type: :development
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - ! '>='
123
+ - - ">="
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: jeweler
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  requirements:
130
- - - ! '>='
130
+ - - ">="
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0'
133
133
  type: :development
134
134
  prerelease: false
135
135
  version_requirements: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - ! '>='
137
+ - - ">="
138
138
  - !ruby/object:Gem::Version
139
139
  version: '0'
140
140
  description: Inline Forms aims to ease the setup of forms that provide inline editing.
@@ -148,9 +148,9 @@ executables:
148
148
  extensions: []
149
149
  extra_rdoc_files: []
150
150
  files:
151
- - .document
152
- - .gitignore
153
- - .vscode/settings.json
151
+ - ".document"
152
+ - ".gitignore"
153
+ - ".vscode/settings.json"
154
154
  - Gemfile
155
155
  - LICENSE.txt
156
156
  - README.rdoc
@@ -248,7 +248,6 @@ files:
248
248
  - lib/generators/assets/javascripts/inline_forms.js
249
249
  - lib/generators/assets/stylesheets/application.scss
250
250
  - lib/generators/assets/stylesheets/devise.scss
251
- - lib/generators/assets/stylesheets/foundation_and_overrides.scss
252
251
  - lib/generators/assets/stylesheets/inline_forms.scss
253
252
  - lib/generators/human_attribute_name_generator.rb
254
253
  - lib/generators/inline_forms_generator.rb
@@ -284,17 +283,17 @@ require_paths:
284
283
  - lib
285
284
  required_ruby_version: !ruby/object:Gem::Requirement
286
285
  requirements:
287
- - - ! '>='
286
+ - - ">="
288
287
  - !ruby/object:Gem::Version
289
288
  version: '0'
290
289
  required_rubygems_version: !ruby/object:Gem::Requirement
291
290
  requirements:
292
- - - ! '>='
291
+ - - ">="
293
292
  - !ruby/object:Gem::Version
294
293
  version: '0'
295
294
  requirements: []
296
295
  rubyforge_project: inline_forms
297
- rubygems_version: 2.4.8
296
+ rubygems_version: 2.5.1
298
297
  signing_key:
299
298
  specification_version: 4
300
299
  summary: Inline editing of forms.
@@ -1,11 +0,0 @@
1
- @import 'foundation/functions';
2
-
3
- $include-html-classes: true;
4
- $include-html-global-classes: $include-html-classes;
5
-
6
- // We use these to define default font stacks
7
- $font-family-sans-serif: "Open Sans", sans-serif;
8
- // $font-family-serif: Georgia, Cambria, "Times New Roman", Times, serif;
9
- // $font-family-monospace: Consolas, "Liberation Mono", Courier, monospace;
10
-
11
- @import 'foundation';