davidtrogers-steamer 0.1.2.1243972942 → 0.1.2.1243976709

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 (4) hide show
  1. data/lib/steamer.rb +16 -10
  2. data/steamer.gemspec +0 -1
  3. metadata +1 -2
  4. data/VERSION +0 -1
data/lib/steamer.rb CHANGED
@@ -3,27 +3,33 @@ require 'sqlite3'
3
3
 
4
4
  class Steamer
5
5
 
6
- attr_accessor :source_db_connection
6
+ attr_accessor :source_db_connection, :magic
7
7
 
8
8
  def initialize
9
- connect
9
+ puts connect
10
+ puts @magic = "hello"
10
11
  end
11
12
 
12
13
  def connect # assuming sqlite3 db at the moment
13
- @source_db_name = Dir[File.join("./*/development.sqlite3")].first
14
- @destination_db_name = Dir[File.join("./*/test.sqlite3")].first
14
+ puts @source_db_name = Dir[File.join("./*/development.sqlite3")].first
15
+ puts @destination_db_name = Dir[File.join("./*/test.sqlite3")].first
15
16
  # read from sqlite3 db
16
- @source_db= ActiveRecord::Base.establish_connection({:adapter => "sqlite3",
17
+ puts @source_db= ActiveRecord::Base.establish_connection({:adapter => "sqlite3",
17
18
  :database => @source_db_name})
18
- @source_db_connection = @source_db.connection
19
+ puts @source_db_connection = @source_db.connection
19
20
  @source_db.connected?
20
21
  end
21
-
22
- def copy_table(table_name = nil)
23
- end
24
22
 
25
23
  def make_factory(table_name)
26
- @source_db_connection.
24
+ # This shows the columns for a particular table
25
+ # >> puts s.source_db_connection.columns("work_efforts").each {|a| puts a.inspect}
26
+
27
+ # This shows all of the tables
28
+ #>> puts s.source_db_connection.tables
29
+
30
+ # This returns a hash of the table structure
31
+ # >> puts s.source_db_connection.table_structure("work_efforts")
32
+
27
33
  end
28
34
  end
29
35
 
data/steamer.gemspec CHANGED
@@ -18,7 +18,6 @@ Gem::Specification.new do |s|
18
18
  "README",
19
19
  "README.rdoc",
20
20
  "Rakefile",
21
- "VERSION",
22
21
  "lib/steamer.rb",
23
22
  "spec/spec_helper.rb",
24
23
  "spec/steamer_spec.rb",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: davidtrogers-steamer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2.1243972942
4
+ version: 0.1.2.1243976709
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Rogers
@@ -39,7 +39,6 @@ files:
39
39
  - README
40
40
  - README.rdoc
41
41
  - Rakefile
42
- - VERSION
43
42
  - lib/steamer.rb
44
43
  - spec/spec_helper.rb
45
44
  - spec/steamer_spec.rb
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.1.2.1243972524