knp 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/Gemfile +17 -0
  4. data/Gemfile.lock +100 -0
  5. data/MIT-LICENSE +20 -0
  6. data/README.md +37 -0
  7. data/Rakefile +40 -0
  8. data/app/assets/images/knp/.gitkeep +0 -0
  9. data/app/assets/javascripts/knp/application.js +15 -0
  10. data/app/assets/stylesheets/knp/application.css +13 -0
  11. data/app/controllers/knp/application_controller.rb +4 -0
  12. data/app/controllers/knp/notifications_controller.rb +39 -0
  13. data/app/helpers/knp/application_helper.rb +4 -0
  14. data/app/models/knp/notification.rb +61 -0
  15. data/app/views/layouts/knp/application.html.erb +14 -0
  16. data/config/routes.rb +4 -0
  17. data/knp.gemspec +23 -0
  18. data/lib/knp.rb +12 -0
  19. data/lib/knp/engine.rb +13 -0
  20. data/lib/knp/version.rb +3 -0
  21. data/lib/tasks/knp_tasks.rake +4 -0
  22. data/script/rails +8 -0
  23. data/test/dummy/README.rdoc +261 -0
  24. data/test/dummy/Rakefile +7 -0
  25. data/test/dummy/app/assets/javascripts/application.js +15 -0
  26. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  27. data/test/dummy/app/controllers/application_controller.rb +3 -0
  28. data/test/dummy/app/helpers/application_helper.rb +2 -0
  29. data/test/dummy/app/mailers/.gitkeep +0 -0
  30. data/test/dummy/app/models/.gitkeep +0 -0
  31. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  32. data/test/dummy/config.ru +4 -0
  33. data/test/dummy/config/application.rb +59 -0
  34. data/test/dummy/config/boot.rb +10 -0
  35. data/test/dummy/config/database.yml +25 -0
  36. data/test/dummy/config/environment.rb +5 -0
  37. data/test/dummy/config/environments/development.rb +37 -0
  38. data/test/dummy/config/environments/production.rb +67 -0
  39. data/test/dummy/config/environments/test.rb +37 -0
  40. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  41. data/test/dummy/config/initializers/inflections.rb +15 -0
  42. data/test/dummy/config/initializers/mime_types.rb +5 -0
  43. data/test/dummy/config/initializers/secret_token.rb +7 -0
  44. data/test/dummy/config/initializers/session_store.rb +8 -0
  45. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  46. data/test/dummy/config/locales/en.yml +5 -0
  47. data/test/dummy/config/routes.rb +4 -0
  48. data/test/dummy/lib/assets/.gitkeep +0 -0
  49. data/test/dummy/log/.gitkeep +0 -0
  50. data/test/dummy/public/404.html +26 -0
  51. data/test/dummy/public/422.html +26 -0
  52. data/test/dummy/public/500.html +25 -0
  53. data/test/dummy/public/favicon.ico +0 -0
  54. data/test/dummy/script/rails +6 -0
  55. data/test/functional/knp/adyen_notifications_controller_test.rb +34 -0
  56. data/test/functional/knp/functional_test_helper.rb +9 -0
  57. data/test/functional/knp/mock_notifications_controller_test.rb +42 -0
  58. data/test/knp_test.rb +7 -0
  59. data/test/test_helper.rb +17 -0
  60. metadata +180 -0
data/test/knp_test.rb ADDED
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class KnpTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, Knp
6
+ end
7
+ end
@@ -0,0 +1,17 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
+
12
+ # Load fixtures from the engine
13
+ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
+ end
16
+
17
+ require 'functional/knp/functional_test_helper'
metadata ADDED
@@ -0,0 +1,180 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: knp
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Killbill core team
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-01-06 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: 3.2.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 3.2.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: killbill-client
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.8.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.8.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: sqlite3
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: Externally-facing proxy to forward notifications to Kill Bill
56
+ email:
57
+ - killbilling-users@googlegroups.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - Gemfile
64
+ - Gemfile.lock
65
+ - MIT-LICENSE
66
+ - README.md
67
+ - Rakefile
68
+ - app/assets/images/knp/.gitkeep
69
+ - app/assets/javascripts/knp/application.js
70
+ - app/assets/stylesheets/knp/application.css
71
+ - app/controllers/knp/application_controller.rb
72
+ - app/controllers/knp/notifications_controller.rb
73
+ - app/helpers/knp/application_helper.rb
74
+ - app/models/knp/notification.rb
75
+ - app/views/layouts/knp/application.html.erb
76
+ - config/routes.rb
77
+ - knp.gemspec
78
+ - lib/knp.rb
79
+ - lib/knp/engine.rb
80
+ - lib/knp/version.rb
81
+ - lib/tasks/knp_tasks.rake
82
+ - script/rails
83
+ - test/dummy/README.rdoc
84
+ - test/dummy/Rakefile
85
+ - test/dummy/app/assets/javascripts/application.js
86
+ - test/dummy/app/assets/stylesheets/application.css
87
+ - test/dummy/app/controllers/application_controller.rb
88
+ - test/dummy/app/helpers/application_helper.rb
89
+ - test/dummy/app/mailers/.gitkeep
90
+ - test/dummy/app/models/.gitkeep
91
+ - test/dummy/app/views/layouts/application.html.erb
92
+ - test/dummy/config.ru
93
+ - test/dummy/config/application.rb
94
+ - test/dummy/config/boot.rb
95
+ - test/dummy/config/database.yml
96
+ - test/dummy/config/environment.rb
97
+ - test/dummy/config/environments/development.rb
98
+ - test/dummy/config/environments/production.rb
99
+ - test/dummy/config/environments/test.rb
100
+ - test/dummy/config/initializers/backtrace_silencers.rb
101
+ - test/dummy/config/initializers/inflections.rb
102
+ - test/dummy/config/initializers/mime_types.rb
103
+ - test/dummy/config/initializers/secret_token.rb
104
+ - test/dummy/config/initializers/session_store.rb
105
+ - test/dummy/config/initializers/wrap_parameters.rb
106
+ - test/dummy/config/locales/en.yml
107
+ - test/dummy/config/routes.rb
108
+ - test/dummy/lib/assets/.gitkeep
109
+ - test/dummy/log/.gitkeep
110
+ - test/dummy/public/404.html
111
+ - test/dummy/public/422.html
112
+ - test/dummy/public/500.html
113
+ - test/dummy/public/favicon.ico
114
+ - test/dummy/script/rails
115
+ - test/functional/knp/adyen_notifications_controller_test.rb
116
+ - test/functional/knp/functional_test_helper.rb
117
+ - test/functional/knp/mock_notifications_controller_test.rb
118
+ - test/knp_test.rb
119
+ - test/test_helper.rb
120
+ homepage: http://killbill.io
121
+ licenses: []
122
+ metadata: {}
123
+ post_install_message:
124
+ rdoc_options: []
125
+ require_paths:
126
+ - lib
127
+ required_ruby_version: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ required_rubygems_version: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: '0'
137
+ requirements: []
138
+ rubyforge_project:
139
+ rubygems_version: 2.2.2
140
+ signing_key:
141
+ specification_version: 4
142
+ summary: Kill Bill Notifications Proxy
143
+ test_files:
144
+ - test/dummy/README.rdoc
145
+ - test/dummy/Rakefile
146
+ - test/dummy/app/assets/javascripts/application.js
147
+ - test/dummy/app/assets/stylesheets/application.css
148
+ - test/dummy/app/controllers/application_controller.rb
149
+ - test/dummy/app/helpers/application_helper.rb
150
+ - test/dummy/app/mailers/.gitkeep
151
+ - test/dummy/app/models/.gitkeep
152
+ - test/dummy/app/views/layouts/application.html.erb
153
+ - test/dummy/config.ru
154
+ - test/dummy/config/application.rb
155
+ - test/dummy/config/boot.rb
156
+ - test/dummy/config/database.yml
157
+ - test/dummy/config/environment.rb
158
+ - test/dummy/config/environments/development.rb
159
+ - test/dummy/config/environments/production.rb
160
+ - test/dummy/config/environments/test.rb
161
+ - test/dummy/config/initializers/backtrace_silencers.rb
162
+ - test/dummy/config/initializers/inflections.rb
163
+ - test/dummy/config/initializers/mime_types.rb
164
+ - test/dummy/config/initializers/secret_token.rb
165
+ - test/dummy/config/initializers/session_store.rb
166
+ - test/dummy/config/initializers/wrap_parameters.rb
167
+ - test/dummy/config/locales/en.yml
168
+ - test/dummy/config/routes.rb
169
+ - test/dummy/lib/assets/.gitkeep
170
+ - test/dummy/log/.gitkeep
171
+ - test/dummy/public/404.html
172
+ - test/dummy/public/422.html
173
+ - test/dummy/public/500.html
174
+ - test/dummy/public/favicon.ico
175
+ - test/dummy/script/rails
176
+ - test/functional/knp/adyen_notifications_controller_test.rb
177
+ - test/functional/knp/functional_test_helper.rb
178
+ - test/functional/knp/mock_notifications_controller_test.rb
179
+ - test/knp_test.rb
180
+ - test/test_helper.rb