bcdatabase 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,10 @@
1
1
  Bcdatabase history
2
2
  ==================
3
3
 
4
+ 1.2.4
5
+ -----
6
+ - Remove activesupport dependency. (#21)
7
+
4
8
  1.2.3
5
9
  -----
6
10
  - Loosen thor dependency. (#20, @asmega)
@@ -17,9 +17,7 @@ Gem::Specification.new do |s|
17
17
  s.executables = ['bcdatabase']
18
18
  s.files = Dir.glob("{CHANGELOG.markdown,LICENSE,README.markdown,bcdatabase.gemspec,{bin,lib}/**/*}")
19
19
 
20
- s.add_dependency "activesupport", ">= 2.0"
21
20
  s.add_dependency "highline", "~> 1.5", '< 1.6.9'
22
- s.add_dependency "i18n"
23
21
  s.add_dependency 'thor', '~> 0.14'
24
22
 
25
23
  s.add_development_dependency 'bundler', '~> 1.0', '>= 1.0.15'
@@ -4,9 +4,6 @@ require 'digest/sha2'
4
4
  require 'base64'
5
5
  require 'pathname'
6
6
 
7
- # Requiring just extract_options doesn't work on AS 2.3.
8
- require 'active_support/core_ext/array'
9
-
10
7
  module Bcdatabase
11
8
  autoload :VERSION, 'bcdatabase/version'
12
9
  autoload :CLI, 'bcdatabase/cli'
@@ -42,7 +39,7 @@ module Bcdatabase
42
39
  # @return [DatabaseConfigurations] a new instance reflecting
43
40
  # the selected path.
44
41
  def load(*args)
45
- options = args.extract_options!
42
+ options = extract_options(args)
46
43
  path ||= (args.first || base_path)
47
44
  files = Dir.glob(File.join(path, "*.yml")) + Dir.glob(File.join(path, "*.yaml"))
48
45
  DatabaseConfigurations.new(files, options[:transforms] || [])
@@ -71,6 +68,14 @@ module Bcdatabase
71
68
 
72
69
  private
73
70
 
71
+ def extract_options(args)
72
+ if args.last.is_a?(Hash)
73
+ args.pop
74
+ else
75
+ {}
76
+ end
77
+ end
78
+
74
79
  # based on http://snippets.dzone.com/posts/show/576
75
80
  def encipher(direction, s)
76
81
  # the order of operations here is very important
@@ -1,3 +1,3 @@
1
1
  module Bcdatabase
2
- VERSION = '1.2.3'
2
+ VERSION = '1.2.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bcdatabase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,24 +9,8 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-23 00:00:00.000000000 Z
12
+ date: 2014-04-08 00:00:00.000000000 Z
13
13
  dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: activesupport
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '2.0'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '2.0'
30
14
  - !ruby/object:Gem::Dependency
31
15
  name: highline
32
16
  requirement: !ruby/object:Gem::Requirement
@@ -49,22 +33,6 @@ dependencies:
49
33
  - - <
50
34
  - !ruby/object:Gem::Version
51
35
  version: 1.6.9
52
- - !ruby/object:Gem::Dependency
53
- name: i18n
54
- requirement: !ruby/object:Gem::Requirement
55
- none: false
56
- requirements:
57
- - - ! '>='
58
- - !ruby/object:Gem::Version
59
- version: '0'
60
- type: :runtime
61
- prerelease: false
62
- version_requirements: !ruby/object:Gem::Requirement
63
- none: false
64
- requirements:
65
- - - ! '>='
66
- - !ruby/object:Gem::Version
67
- version: '0'
68
36
  - !ruby/object:Gem::Dependency
69
37
  name: thor
70
38
  requirement: !ruby/object:Gem::Requirement
@@ -201,7 +169,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
201
169
  version: '0'
202
170
  segments:
203
171
  - 0
204
- hash: 1397585274649387177
172
+ hash: 245183332221944830
205
173
  required_rubygems_version: !ruby/object:Gem::Requirement
206
174
  none: false
207
175
  requirements:
@@ -210,10 +178,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
178
  version: '0'
211
179
  segments:
212
180
  - 0
213
- hash: 1397585274649387177
181
+ hash: 245183332221944830
214
182
  requirements: []
215
183
  rubyforge_project:
216
- rubygems_version: 1.8.24
184
+ rubygems_version: 1.8.25
217
185
  signing_key:
218
186
  specification_version: 3
219
187
  summary: Server-central database configuration for rails and other ruby apps