killbill-currency-plugin 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,19 @@
1
+ language: ruby
2
+
3
+ notifications:
4
+ email:
5
+ - kill-bill-commits@googlegroups.com
6
+
7
+ rvm:
8
+ - jruby-19mode
9
+ - jruby-20mode
10
+ - jruby-head
11
+
12
+ jdk:
13
+ - openjdk6
14
+ - openjdk7
15
+ - oraclejdk7
16
+
17
+ matrix:
18
+ allow_failures:
19
+ - rvm: jruby-head
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.1
1
+ 1.1.2
@@ -0,0 +1,24 @@
1
+ module Killbill::CurrencyPlugin
2
+ class Properties
3
+ def initialize(file = 'currency.yml')
4
+ @config_file = Pathname.new(file).expand_path
5
+ end
6
+
7
+ def parse!
8
+ raise "#{@config_file} is not a valid file" unless @config_file.file?
9
+ @config = YAML.load_file(@config_file.to_s)
10
+ validate!
11
+ end
12
+
13
+ def [](key)
14
+ @config[key]
15
+ end
16
+
17
+ private
18
+
19
+ def validate!
20
+ raise "Bad configuration for CurrencyPlugin plugin. Config is #{@config.inspect}" if @config.blank? ||
21
+ @config[:database].blank?
22
+ end
23
+ end
24
+ end
data/pom.xml CHANGED
@@ -25,7 +25,7 @@
25
25
  <groupId>com.ning.killbill.ruby</groupId>
26
26
  <artifactId>killbill-currency-plugin</artifactId>
27
27
  <packaging>pom</packaging>
28
- <version>1.1.1</version>
28
+ <version>1.1.2</version>
29
29
  <name>killbill-currency-plugin</name>
30
30
  <description></description>
31
31
  <scm>
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: killbill-currency-plugin
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.1.1
5
+ version: 1.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Kill Bill core team
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-31 00:00:00.000000000 Z
12
+ date: 2013-11-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: killbill
@@ -130,6 +130,7 @@ extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
132
  - ".gitignore"
133
+ - ".travis.yml"
133
134
  - Gemfile
134
135
  - Jarfile
135
136
  - README.md
@@ -143,6 +144,7 @@ files:
143
144
  - lib/currency_plugin/api.rb
144
145
  - lib/currency_plugin/models/currency_rate.rb
145
146
  - lib/currency_plugin/models/currency_update.rb
147
+ - lib/currency_plugin/properties.rb
146
148
  - pom.xml
147
149
  - release.sh
148
150
  - spec/currency_plugin/api_spec.rb