bootsy 2.1.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +37 -27
  4. data/Rakefile +1 -6
  5. data/app/assets/javascripts/bootsy.js +8 -7
  6. data/app/assets/javascripts/bootsy/area.js +91 -0
  7. data/app/assets/javascripts/bootsy/editor_options.js +8 -53
  8. data/app/assets/javascripts/bootsy/image_template.js.erb +45 -0
  9. data/app/assets/javascripts/bootsy/locales/en.js +59 -0
  10. data/app/assets/javascripts/bootsy/locales/pt-BR.js +59 -0
  11. data/app/assets/javascripts/bootsy/modal.js +167 -0
  12. data/app/assets/javascripts/bootsy/{bootstrap.file-input.js → vendor/bootstrap.file-input.js} +0 -0
  13. data/app/assets/javascripts/bootsy/vendor/bootstrap3-wysihtml5.all.js +14975 -0
  14. data/app/assets/javascripts/bootsy/{polyfill.js → vendor/polyfill.js} +0 -0
  15. data/app/assets/stylesheets/bootsy.css +14 -0
  16. data/app/helpers/bootsy/application_helper.rb +0 -6
  17. data/app/views/bootsy/images/_image.html.erb +3 -1
  18. data/config/locales/bootsy.en.yml +0 -2
  19. data/config/locales/bootsy.pt-BR.yml +0 -2
  20. data/lib/bootsy.rb +5 -4
  21. data/lib/bootsy/form_helper.rb +23 -17
  22. data/lib/bootsy/version.rb +1 -1
  23. data/lib/generators/bootsy/templates/bootsy.rb +5 -4
  24. metadata +14 -17
  25. data/app/assets/javascripts/bootsy/bootstrap-wysihtml5.js +0 -530
  26. data/app/assets/javascripts/bootsy/bootsy.js +0 -320
  27. data/app/assets/javascripts/bootsy/locales/bootstrap-wysihtml5.pt-BR.js +0 -50
  28. data/app/assets/javascripts/bootsy/locales/bootsy.pt-BR.js +0 -9
  29. data/app/assets/javascripts/bootsy/translations.js +0 -8
  30. data/app/assets/javascripts/bootsy/wysihtml5.js +0 -9565
  31. data/app/views/bootsy/images/_modal.html.erb +0 -30
  32. data/config/cucumber.yml +0 -8
  33. data/lib/tasks/cucumber.rake +0 -65
@@ -1,30 +0,0 @@
1
- <div class="modal fade bootsy-modal"
2
- data-no-turbolink
3
- data-gallery-id="<%= container.bootsy_image_gallery_id %>">
4
- <div class="modal-dialog">
5
- <div class="modal-content">
6
- <div class="modal-header">
7
- <button type="button" class="close" data-dismiss="modal">
8
- <span aria-hidden="true">&times;</span>
9
- </button>
10
-
11
- <h4 class="modal-title"><%= t 'bootsy.image.p' %></h4>
12
- </div>
13
-
14
- <div class="modal-body">
15
- <div class="alert alert-info bootsy-empty-alert">
16
- <%= t 'bootsy.no_images_uploaded' %>
17
- </div>
18
-
19
- <div class="row bootsy-gallery"></div>
20
-
21
- <%= image_tag 'bootsy/gallery-loader.gif', class: 'bootsy-gallery-loader' %>
22
-
23
- <%= refresh_btn %>
24
- </div>
25
-
26
- <div class="modal-footer">
27
- </div>
28
- </div>
29
- </div>
30
- </div>
@@ -1,8 +0,0 @@
1
- <%
2
- rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
3
- rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
4
- std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} --strict --tags ~@wip"
5
- %>
6
- default: <%= std_opts %> features
7
- wip: --tags @wip:3 --wip features
8
- rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip
@@ -1,65 +0,0 @@
1
- # IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
2
- # It is recommended to regenerate this file in the future when you upgrade to a
3
- # newer version of cucumber-rails. Consider adding your own code to a new file
4
- # instead of editing this one. Cucumber will automatically load all features/**/*.rb
5
- # files.
6
-
7
-
8
- unless ARGV.any? {|a| a =~ /^gems/} # Don't load anything when running the gems:* tasks
9
-
10
- vendored_cucumber_bin = Dir["#{Rails.root}/vendor/{gems,plugins}/cucumber*/bin/cucumber"].first
11
- $LOAD_PATH.unshift(File.dirname(vendored_cucumber_bin) + '/../lib') unless vendored_cucumber_bin.nil?
12
-
13
- begin
14
- require 'cucumber/rake/task'
15
-
16
- namespace :cucumber do
17
- Cucumber::Rake::Task.new({:ok => 'db:test:prepare'}, 'Run features that should pass') do |t|
18
- t.binary = vendored_cucumber_bin # If nil, the gem's binary is used.
19
- t.fork = true # You may get faster startup if you set this to false
20
- t.profile = 'default'
21
- end
22
-
23
- Cucumber::Rake::Task.new({:wip => 'db:test:prepare'}, 'Run features that are being worked on') do |t|
24
- t.binary = vendored_cucumber_bin
25
- t.fork = true # You may get faster startup if you set this to false
26
- t.profile = 'wip'
27
- end
28
-
29
- Cucumber::Rake::Task.new({:rerun => 'db:test:prepare'}, 'Record failing features and run only them if any exist') do |t|
30
- t.binary = vendored_cucumber_bin
31
- t.fork = true # You may get faster startup if you set this to false
32
- t.profile = 'rerun'
33
- end
34
-
35
- desc 'Run all features'
36
- task :all => [:ok, :wip]
37
-
38
- task :statsetup do
39
- require 'rails/code_statistics'
40
- ::STATS_DIRECTORIES << %w(Cucumber\ features features) if File.exist?('features')
41
- ::CodeStatistics::TEST_TYPES << "Cucumber features" if File.exist?('features')
42
- end
43
- end
44
- desc 'Alias for cucumber:ok'
45
- task :cucumber => 'cucumber:ok'
46
-
47
- task :default => :cucumber
48
-
49
- task :features => :cucumber do
50
- STDERR.puts "*** The 'features' task is deprecated. See rake -T cucumber ***"
51
- end
52
-
53
- # In case we don't have ActiveRecord, append a no-op task that we can depend upon.
54
- task 'db:test:prepare' do
55
- end
56
-
57
- task :stats => 'cucumber:statsetup'
58
- rescue LoadError
59
- desc 'cucumber rake task not available (cucumber not installed)'
60
- task :cucumber do
61
- abort 'Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin'
62
- end
63
- end
64
-
65
- end