sweet-alert2-rails 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.travis.yml +14 -0
- data/Gemfile +41 -0
- data/MIT-LICENSE +20 -0
- data/README.md +86 -0
- data/Rakefile +12 -0
- data/bin/rake +17 -0
- data/doc/after.png +0 -0
- data/doc/before.png +0 -0
- data/lib/assets/javascripts/sweet-alert2-rails.js +85 -0
- data/lib/sweet-alert2-rails.rb +6 -0
- data/lib/sweet-alert2-rails/rails/engine.rb +6 -0
- data/lib/sweet-alert2-rails/railtie.rb +9 -0
- data/lib/sweet-alert2-rails/version.rb +3 -0
- data/lib/sweet-alert2-rails/view_helpers.rb +39 -0
- data/spec/dummy/.gitignore +2 -0
- data/spec/dummy/.rspec +1 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +17 -0
- data/spec/dummy/app/assets/javascripts/application_turbolinks.js +18 -0
- data/spec/dummy/app/assets/javascripts/confirms.js +2 -0
- data/spec/dummy/app/assets/stylesheets/application.css +16 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/controllers/confirms_controller.rb +13 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/views/confirms/delete_cow.html.erb +1 -0
- data/spec/dummy/app/views/confirms/delete_cow.js.erb +1 -0
- data/spec/dummy/app/views/confirms/get_cow.html.erb +1 -0
- data/spec/dummy/app/views/confirms/index.html.erb +19 -0
- data/spec/dummy/app/views/confirms/pre_index.html.erb +1 -0
- data/spec/dummy/app/views/layouts/application.html.erb +18 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +28 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +78 -0
- data/spec/dummy/config/environments/test.rb +43 -0
- data/spec/dummy/config/initializers/assets.rb +8 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/secret_token.rb +1 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +60 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/features/sweet_alert_confirm_spec.rb +116 -0
- data/spec/spec_helper.rb +50 -0
- data/sweet-alert2-rails.gemspec +24 -0
- metadata +169 -0
@@ -0,0 +1,24 @@
|
|
1
|
+
$:.push File.expand_path("../lib", __FILE__)
|
2
|
+
|
3
|
+
# Maintain your gem's version:
|
4
|
+
require "sweet-alert2-rails/version"
|
5
|
+
|
6
|
+
# Describe your gem and declare its dependencies:
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = "sweet-alert2-rails"
|
9
|
+
s.version = SweetAlert2Rails::VERSION
|
10
|
+
s.authors = ["Nicolas Blanco"]
|
11
|
+
s.email = ["nicolas@nicolasblanco.fr"]
|
12
|
+
s.homepage = "https://www.github.com/nicolasblanco/sweet-alert2-rails"
|
13
|
+
s.summary = "A Rails confirm replacement with SweetAlert2"
|
14
|
+
s.description = "Replace the Rails system confirm box with SweetAlert2"
|
15
|
+
s.license = "MIT"
|
16
|
+
|
17
|
+
s.add_development_dependency "rails", ">= 4.2"
|
18
|
+
s.add_development_dependency "rspec-rails"
|
19
|
+
s.add_development_dependency "capybara", "~> 2.9"
|
20
|
+
s.add_development_dependency "pry"
|
21
|
+
|
22
|
+
s.files = `git ls-files`.split("\n")
|
23
|
+
s.require_paths = ['lib']
|
24
|
+
end
|
metadata
ADDED
@@ -0,0 +1,169 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sweet-alert2-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Nicolas Blanco
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-11-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.2'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec-rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: capybara
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.9'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.9'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pry
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: Replace the Rails system confirm box with SweetAlert2
|
70
|
+
email:
|
71
|
+
- nicolas@nicolasblanco.fr
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- ".travis.yml"
|
78
|
+
- Gemfile
|
79
|
+
- MIT-LICENSE
|
80
|
+
- README.md
|
81
|
+
- Rakefile
|
82
|
+
- bin/rake
|
83
|
+
- doc/after.png
|
84
|
+
- doc/before.png
|
85
|
+
- lib/assets/javascripts/sweet-alert2-rails.js
|
86
|
+
- lib/sweet-alert2-rails.rb
|
87
|
+
- lib/sweet-alert2-rails/rails/engine.rb
|
88
|
+
- lib/sweet-alert2-rails/railtie.rb
|
89
|
+
- lib/sweet-alert2-rails/version.rb
|
90
|
+
- lib/sweet-alert2-rails/view_helpers.rb
|
91
|
+
- spec/dummy/.gitignore
|
92
|
+
- spec/dummy/.rspec
|
93
|
+
- spec/dummy/README.rdoc
|
94
|
+
- spec/dummy/Rakefile
|
95
|
+
- spec/dummy/app/assets/images/.keep
|
96
|
+
- spec/dummy/app/assets/javascripts/application.js
|
97
|
+
- spec/dummy/app/assets/javascripts/application_turbolinks.js
|
98
|
+
- spec/dummy/app/assets/javascripts/confirms.js
|
99
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
100
|
+
- spec/dummy/app/controllers/application_controller.rb
|
101
|
+
- spec/dummy/app/controllers/concerns/.keep
|
102
|
+
- spec/dummy/app/controllers/confirms_controller.rb
|
103
|
+
- spec/dummy/app/helpers/application_helper.rb
|
104
|
+
- spec/dummy/app/mailers/.keep
|
105
|
+
- spec/dummy/app/models/.keep
|
106
|
+
- spec/dummy/app/models/concerns/.keep
|
107
|
+
- spec/dummy/app/views/confirms/delete_cow.html.erb
|
108
|
+
- spec/dummy/app/views/confirms/delete_cow.js.erb
|
109
|
+
- spec/dummy/app/views/confirms/get_cow.html.erb
|
110
|
+
- spec/dummy/app/views/confirms/index.html.erb
|
111
|
+
- spec/dummy/app/views/confirms/pre_index.html.erb
|
112
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
113
|
+
- spec/dummy/bin/bundle
|
114
|
+
- spec/dummy/bin/rails
|
115
|
+
- spec/dummy/bin/rake
|
116
|
+
- spec/dummy/config.ru
|
117
|
+
- spec/dummy/config/application.rb
|
118
|
+
- spec/dummy/config/boot.rb
|
119
|
+
- spec/dummy/config/database.yml
|
120
|
+
- spec/dummy/config/environment.rb
|
121
|
+
- spec/dummy/config/environments/development.rb
|
122
|
+
- spec/dummy/config/environments/production.rb
|
123
|
+
- spec/dummy/config/environments/test.rb
|
124
|
+
- spec/dummy/config/initializers/assets.rb
|
125
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
126
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
127
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
128
|
+
- spec/dummy/config/initializers/inflections.rb
|
129
|
+
- spec/dummy/config/initializers/mime_types.rb
|
130
|
+
- spec/dummy/config/initializers/secret_token.rb
|
131
|
+
- spec/dummy/config/initializers/session_store.rb
|
132
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
133
|
+
- spec/dummy/config/locales/en.yml
|
134
|
+
- spec/dummy/config/routes.rb
|
135
|
+
- spec/dummy/config/secrets.yml
|
136
|
+
- spec/dummy/lib/assets/.keep
|
137
|
+
- spec/dummy/log/.keep
|
138
|
+
- spec/dummy/public/404.html
|
139
|
+
- spec/dummy/public/422.html
|
140
|
+
- spec/dummy/public/500.html
|
141
|
+
- spec/dummy/public/favicon.ico
|
142
|
+
- spec/features/sweet_alert_confirm_spec.rb
|
143
|
+
- spec/spec_helper.rb
|
144
|
+
- sweet-alert2-rails.gemspec
|
145
|
+
homepage: https://www.github.com/nicolasblanco/sweet-alert2-rails
|
146
|
+
licenses:
|
147
|
+
- MIT
|
148
|
+
metadata: {}
|
149
|
+
post_install_message:
|
150
|
+
rdoc_options: []
|
151
|
+
require_paths:
|
152
|
+
- lib
|
153
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
154
|
+
requirements:
|
155
|
+
- - ">="
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
158
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
159
|
+
requirements:
|
160
|
+
- - ">="
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: '0'
|
163
|
+
requirements: []
|
164
|
+
rubyforge_project:
|
165
|
+
rubygems_version: 2.5.2
|
166
|
+
signing_key:
|
167
|
+
specification_version: 4
|
168
|
+
summary: A Rails confirm replacement with SweetAlert2
|
169
|
+
test_files: []
|