rollout_ui2 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/.rspec +2 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +41 -0
  7. data/Rakefile +6 -0
  8. data/bin/console +14 -0
  9. data/bin/setup +8 -0
  10. data/example_rack/.bundle/config +2 -0
  11. data/example_rack/Gemfile +6 -0
  12. data/example_rack/Gemfile.lock +30 -0
  13. data/example_rack/README.md +6 -0
  14. data/example_rack/config.ru +13 -0
  15. data/lib/public/vendor/bootstrap/css/bootstrap-theme.css +587 -0
  16. data/lib/public/vendor/bootstrap/css/bootstrap-theme.css.map +1 -0
  17. data/lib/public/vendor/bootstrap/css/bootstrap-theme.min.css +6 -0
  18. data/lib/public/vendor/bootstrap/css/bootstrap-theme.min.css.map +1 -0
  19. data/lib/public/vendor/bootstrap/css/bootstrap.css +6757 -0
  20. data/lib/public/vendor/bootstrap/css/bootstrap.css.map +1 -0
  21. data/lib/public/vendor/bootstrap/css/bootstrap.min.css +6 -0
  22. data/lib/public/vendor/bootstrap/css/bootstrap.min.css.map +1 -0
  23. data/lib/public/vendor/bootstrap/fonts/glyphicons-halflings-regular.eot +0 -0
  24. data/lib/public/vendor/bootstrap/fonts/glyphicons-halflings-regular.svg +288 -0
  25. data/lib/public/vendor/bootstrap/fonts/glyphicons-halflings-regular.ttf +0 -0
  26. data/lib/public/vendor/bootstrap/fonts/glyphicons-halflings-regular.woff +0 -0
  27. data/lib/public/vendor/bootstrap/fonts/glyphicons-halflings-regular.woff2 +0 -0
  28. data/lib/public/vendor/bootstrap/js/bootstrap.js +2377 -0
  29. data/lib/public/vendor/bootstrap/js/bootstrap.min.js +7 -0
  30. data/lib/public/vendor/jq-debounce.min.js +9 -0
  31. data/lib/public/vendor/jquery-1.9.1.min.js +5 -0
  32. data/lib/public/vendor/select2/css/select2.css +484 -0
  33. data/lib/public/vendor/select2/css/select2.min.css +1 -0
  34. data/lib/public/vendor/select2/js/select2.js +5725 -0
  35. data/lib/public/vendor/select2/js/select2.min.js +3 -0
  36. data/lib/rollout_ui2/version.rb +3 -0
  37. data/lib/rollout_ui2.rb +104 -0
  38. data/lib/views/index.erb +84 -0
  39. data/lib/views/layout.erb +50 -0
  40. data/rollout_ui2.gemspec +27 -0
  41. metadata +146 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7613d47131069f9c31404661107125662d274d96
4
+ data.tar.gz: 51ddaa17859e48aaf12a33a5daf1c9a60b3db3d7
5
+ SHA512:
6
+ metadata.gz: 8f80ab0326ac3b5102f4740bdee0ca04c18a0b95eb809c4f9914974eac5bda3f068a93a13d9fc42e9452a48fc77b847051152d56e705e1050fda5f76d929137d
7
+ data.tar.gz: 812d909e617e38cb97589c7ad3bace1e2511bddd9b1c1de72314143581631adeb92bd74fa6759b57a76de037013d3eb27d0023ef797089d4a7dabbbdc39a4e34
data/.gitignore ADDED
@@ -0,0 +1,10 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.gem
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in rollout_ui2.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Manuel
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # RolloutUi2
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rollout_ui2`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'rollout_ui2'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install rollout_ui2
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rollout_ui2.
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
+
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "rollout_ui2"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,2 @@
1
+ ---
2
+ BUNDLE_DISABLE_SHARED_GEMS: '1'
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'redis'
4
+ gem 'rollout'
5
+
6
+ gem 'rollout_ui2', path: '..'
@@ -0,0 +1,30 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ rollout_ui2 (0.1.0)
5
+ sinatra (~> 1.4.7)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ rack (1.6.5)
11
+ rack-protection (1.5.3)
12
+ rack
13
+ redis (3.3.2)
14
+ rollout (2.4.0)
15
+ sinatra (1.4.7)
16
+ rack (~> 1.5)
17
+ rack-protection (~> 1.4)
18
+ tilt (>= 1.3, < 3)
19
+ tilt (2.0.5)
20
+
21
+ PLATFORMS
22
+ ruby
23
+
24
+ DEPENDENCIES
25
+ redis
26
+ rollout
27
+ rollout_ui2!
28
+
29
+ BUNDLED WITH
30
+ 1.13.6
@@ -0,0 +1,6 @@
1
+ RolloutUi2
2
+ ==========
3
+
4
+ Rollout UI for Rollout 2.4!
5
+
6
+ ![screehshot](http://i.imgur.com/gQLOmAD.png)
@@ -0,0 +1,13 @@
1
+ require 'rollout_ui2'
2
+
3
+ require 'redis'
4
+ RolloutUi2.wrap(Rollout.new(Redis.new))
5
+
6
+ RolloutUi2::Server.use Rack::Auth::Basic do |user, pass|
7
+ user == pass
8
+ end
9
+
10
+ run Rack::URLMap.new(
11
+ # "/" => Your::App.new,
12
+ "/rollout" => RolloutUi2::Server
13
+ )