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.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -0
- data/README.md +2 -2
- data/Rakefile +31 -16
- data/app/assets/javascripts/application.js +24 -0
- data/app/assets/javascripts/kpm/kpm.js +7 -0
- data/app/assets/stylesheets/application.css +19 -0
- data/app/assets/stylesheets/bootstrap_and_overrides.css +17 -0
- data/app/assets/stylesheets/kpm/kpm.css +6 -0
- data/app/controllers/kpm/engine_controller.rb +29 -0
- data/app/controllers/kpm/nodes_info_controller.rb +109 -0
- data/app/controllers/kpm/plugins_controller.rb +19 -0
- data/app/helpers/kpm/application_helper.rb +4 -0
- data/app/views/kpm/layouts/kpm_application.html.erb +31 -0
- data/app/views/kpm/nodes_info/_logs_table.html.erb +43 -0
- data/app/views/kpm/nodes_info/_nodes_table.html.erb +68 -0
- data/app/views/kpm/nodes_info/index.html.erb +68 -0
- data/app/views/kpm/nodes_info/index.js.erb +4 -0
- data/app/views/kpm/plugins/_form.html.erb +37 -0
- data/app/views/kpm/plugins/_plugins_table.html.erb +48 -0
- data/app/views/kpm/plugins/index.html.erb +18 -0
- data/config/routes.rb +17 -0
- data/lib/kpm.rb +24 -0
- data/lib/kpm/client.rb +31 -0
- data/lib/kpm/engine.rb +23 -0
- data/lib/kpm/version.rb +3 -0
- data/lib/tasks/kpm_tasks.rake +4 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +29 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +32 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +23 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +41 -0
- data/test/dummy/config/environments/production.rb +79 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/killbill_client.rb +3 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/integration/navigation_test.rb +8 -0
- data/test/kpm_test.rb +7 -0
- data/test/test_helper.rb +21 -0
- metadata +349 -49
- data/.gitignore +0 -33
- data/.travis.yml +0 -41
- data/Gemfile +0 -5
- data/Gemfile.head +0 -5
- data/Gemfile.lock +0 -109
- data/Jarfile +0 -11
- data/Jarfile.lock +0 -61
- data/LICENSE +0 -201
- data/VERSION +0 -1
- data/config.ru +0 -4
- data/killbill-kpm.gemspec +0 -31
- data/killbill.properties +0 -3
- data/lib/kpm/application.rb +0 -92
- data/lib/kpm/listener.rb +0 -94
- data/lib/kpm/plugins_installer.rb +0 -112
- data/lib/kpm_plugin.rb +0 -13
- data/pom.xml +0 -44
- data/release.sh +0 -61
- data/spec/kpm/base_plugin_spec.rb +0 -25
- 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
|