viking 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a776ee5ac38d07df4f0452c0766c75aed02f7f4d
4
+ data.tar.gz: a4a4e91820b874b76db1fc375c9511066aefd08f
5
+ SHA512:
6
+ metadata.gz: 3d21822309db7d5dffe6c6be75e7268d838f6115adaebaddae43f73208d065744470c02214be874829f4bde7c2f098fc22d4df5930025a3ac0145ed9d269e5a0
7
+ data.tar.gz: 3c0fc02d14ce3ecfaa3564832e47658477f0ac27e8f69ba680d929903cd733c298c691bbcdd0187acda23077ff84255dc88b74d6a4eee59f0013ba09af3fc6b6
@@ -11,7 +11,7 @@ require "viking/version"
11
11
  # framework initialization. Rails initializers, for instance, work great for
12
12
  # this. An example of such an initializer would be as follows:
13
13
  #
14
- # Viking.default_engie = 'defensio'
14
+ # Viking.default_engine = 'defensio'
15
15
  # Viking.connect_options = { :api_key => '1234abc' }
16
16
  #
17
17
  # From this point out, Viking should have everything it needs to access the
@@ -41,8 +41,9 @@ module Viking
41
41
  end
42
42
 
43
43
  def connect(engine, options)
44
- unless engine.nil? || engine.empty?
45
- Viking.const_get(engine.to_s.capitalize).new(options)
44
+ engine = engine.to_s
45
+ if !engine.empty?
46
+ Viking.const_get(engine.capitalize).new(options)
46
47
  end
47
48
  end
48
49
 
@@ -1,3 +1,3 @@
1
1
  module Viking
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -17,6 +17,10 @@ describe Viking do
17
17
  Viking.connect('akismet', {}).should be_a_kind_of(Viking::Akismet)
18
18
  end
19
19
 
20
+ it "should load the Akismet engine with Symbol" do
21
+ Viking.connect(:akismet, {}).should be_a_kind_of(Viking::Akismet)
22
+ end
23
+
20
24
  it "should be nil if the engine is nil" do
21
25
  Viking.connect(nil, {}).should be_nil
22
26
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: viking
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
5
- prerelease:
4
+ version: 1.0.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Risk Danger Olson
@@ -11,12 +10,11 @@ authors:
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2013-03-04 00:00:00.000000000 Z
13
+ date: 2013-07-22 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: rspec
18
17
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
18
  requirements:
21
19
  - - ~>
22
20
  - !ruby/object:Gem::Version
@@ -24,7 +22,6 @@ dependencies:
24
22
  type: :development
25
23
  prerelease: false
26
24
  version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
25
  requirements:
29
26
  - - ~>
30
27
  - !ruby/object:Gem::Version
@@ -59,27 +56,26 @@ files:
59
56
  - viking.gemspec
60
57
  homepage: https://github.com/dimelo/viking
61
58
  licenses: []
59
+ metadata: {}
62
60
  post_install_message:
63
61
  rdoc_options: []
64
62
  require_paths:
65
63
  - lib
66
64
  required_ruby_version: !ruby/object:Gem::Requirement
67
- none: false
68
65
  requirements:
69
- - - ! '>='
66
+ - - '>='
70
67
  - !ruby/object:Gem::Version
71
68
  version: '0'
72
69
  required_rubygems_version: !ruby/object:Gem::Requirement
73
- none: false
74
70
  requirements:
75
- - - ! '>='
71
+ - - '>='
76
72
  - !ruby/object:Gem::Version
77
73
  version: '0'
78
74
  requirements: []
79
75
  rubyforge_project:
80
- rubygems_version: 1.8.23
76
+ rubygems_version: 2.0.3
81
77
  signing_key:
82
- specification_version: 3
78
+ specification_version: 4
83
79
  summary: Modernized gem version of the Viking plugin
84
80
  test_files:
85
81
  - spec/core_ext/object_spec.rb