killbill-kpm 0.0.5 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +2 -2
  4. data/Rakefile +31 -16
  5. data/app/assets/javascripts/application.js +24 -0
  6. data/app/assets/javascripts/kpm/kpm.js +7 -0
  7. data/app/assets/stylesheets/application.css +19 -0
  8. data/app/assets/stylesheets/bootstrap_and_overrides.css +17 -0
  9. data/app/assets/stylesheets/kpm/kpm.css +6 -0
  10. data/app/controllers/kpm/engine_controller.rb +29 -0
  11. data/app/controllers/kpm/nodes_info_controller.rb +109 -0
  12. data/app/controllers/kpm/plugins_controller.rb +19 -0
  13. data/app/helpers/kpm/application_helper.rb +4 -0
  14. data/app/views/kpm/layouts/kpm_application.html.erb +31 -0
  15. data/app/views/kpm/nodes_info/_logs_table.html.erb +43 -0
  16. data/app/views/kpm/nodes_info/_nodes_table.html.erb +68 -0
  17. data/app/views/kpm/nodes_info/index.html.erb +68 -0
  18. data/app/views/kpm/nodes_info/index.js.erb +4 -0
  19. data/app/views/kpm/plugins/_form.html.erb +37 -0
  20. data/app/views/kpm/plugins/_plugins_table.html.erb +48 -0
  21. data/app/views/kpm/plugins/index.html.erb +18 -0
  22. data/config/routes.rb +17 -0
  23. data/lib/kpm.rb +24 -0
  24. data/lib/kpm/client.rb +31 -0
  25. data/lib/kpm/engine.rb +23 -0
  26. data/lib/kpm/version.rb +3 -0
  27. data/lib/tasks/kpm_tasks.rake +4 -0
  28. data/test/dummy/README.rdoc +28 -0
  29. data/test/dummy/Rakefile +6 -0
  30. data/test/dummy/app/controllers/application_controller.rb +5 -0
  31. data/test/dummy/app/helpers/application_helper.rb +2 -0
  32. data/test/dummy/bin/bundle +3 -0
  33. data/test/dummy/bin/rails +4 -0
  34. data/test/dummy/bin/rake +4 -0
  35. data/test/dummy/bin/setup +29 -0
  36. data/test/dummy/config.ru +4 -0
  37. data/test/dummy/config/application.rb +32 -0
  38. data/test/dummy/config/boot.rb +5 -0
  39. data/test/dummy/config/database.yml +23 -0
  40. data/test/dummy/config/environment.rb +5 -0
  41. data/test/dummy/config/environments/development.rb +41 -0
  42. data/test/dummy/config/environments/production.rb +79 -0
  43. data/test/dummy/config/environments/test.rb +42 -0
  44. data/test/dummy/config/initializers/assets.rb +11 -0
  45. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  46. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  47. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  48. data/test/dummy/config/initializers/inflections.rb +16 -0
  49. data/test/dummy/config/initializers/killbill_client.rb +3 -0
  50. data/test/dummy/config/initializers/mime_types.rb +4 -0
  51. data/test/dummy/config/initializers/session_store.rb +3 -0
  52. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  53. data/test/dummy/config/locales/en.yml +23 -0
  54. data/test/dummy/config/routes.rb +4 -0
  55. data/test/dummy/config/secrets.yml +22 -0
  56. data/test/integration/navigation_test.rb +8 -0
  57. data/test/kpm_test.rb +7 -0
  58. data/test/test_helper.rb +21 -0
  59. metadata +349 -49
  60. data/.gitignore +0 -33
  61. data/.travis.yml +0 -41
  62. data/Gemfile +0 -5
  63. data/Gemfile.head +0 -5
  64. data/Gemfile.lock +0 -109
  65. data/Jarfile +0 -11
  66. data/Jarfile.lock +0 -61
  67. data/LICENSE +0 -201
  68. data/VERSION +0 -1
  69. data/config.ru +0 -4
  70. data/killbill-kpm.gemspec +0 -31
  71. data/killbill.properties +0 -3
  72. data/lib/kpm/application.rb +0 -92
  73. data/lib/kpm/listener.rb +0 -94
  74. data/lib/kpm/plugins_installer.rb +0 -112
  75. data/lib/kpm_plugin.rb +0 -13
  76. data/pom.xml +0 -44
  77. data/release.sh +0 -61
  78. data/spec/kpm/base_plugin_spec.rb +0 -25
  79. data/spec/spec_helper.rb +0 -14
@@ -1,25 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe ::KPM::Listener do
4
-
5
- include ::Killbill::Plugin::ActiveMerchant::RSpec
6
-
7
- before(:each) do
8
- Dir.mktmpdir do |dir|
9
- file = File.new(File.join(dir, 'kpm.yml'), 'w+')
10
- file.write(<<-eos)
11
- :kpm:
12
- eos
13
- file.close
14
-
15
- @plugin = build_plugin(::KPM::Listener, 'kpm', File.dirname(file))
16
-
17
- # Start the plugin here - since the config file will be deleted
18
- @plugin.start_plugin
19
- end
20
- end
21
-
22
- it 'should start and stop correctly' do
23
- @plugin.stop_plugin
24
- end
25
- end
data/spec/spec_helper.rb DELETED
@@ -1,14 +0,0 @@
1
- require 'bundler'
2
- require 'kpm_plugin'
3
- require 'killbill/helpers/properties_helper'
4
- require 'killbill/helpers/active_merchant/killbill_spec_helper'
5
-
6
- require 'logger'
7
-
8
- require 'rspec'
9
-
10
- RSpec.configure do |config|
11
- config.color_enabled = true
12
- config.tty = true
13
- config.formatter = 'documentation'
14
- end