oci8_simple 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
data/lib/oci8_simple.rb CHANGED
@@ -61,12 +61,12 @@ class Oci8Simple
61
61
  CONFIG_FILE = File.join(USER_DIR, "database.yml")
62
62
  LOG_FILE = File.join(USER_DIR, "oci8_simple.log")
63
63
 
64
- attr_accessor :log_file, :puts_mode
64
+ attr_accessor :log_file, :puts_mode, :env
65
65
 
66
66
  # * env is the environment heading in your database.yml file
67
67
  # * uname is the username you want to use (defaults to config["username"])
68
68
  # * puts_mode is whether you want to format the result for printing to a terminal (defaults to false)
69
- def initialize(env, uname=nil, puts_mode=false)
69
+ def initialize(env="development", uname=nil, puts_mode=false)
70
70
  @env = env
71
71
  @uname = uname
72
72
  @puts_mode = puts_mode
data/oci8_simple.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{oci8_simple}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Billy Reisinger"]
@@ -1,6 +1,12 @@
1
1
  require 'helper'
2
2
 
3
3
  class TestOci8Simple < Test::Unit::TestCase
4
+ context "A client" do
5
+ should "default to development environment" do
6
+ @client = Oci8Simple.new
7
+ assert_equal "development", @client.env
8
+ end
9
+ end
4
10
  context "Given a table" do
5
11
  setup do
6
12
  @client = Oci8Simple.new("test", nil, false)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oci8_simple
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Billy Reisinger