otacrawler 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 473a91699e7860f33690062beb20a24c38f2bff8
4
- data.tar.gz: 1924ca2e5e66a1aabf778b03b9afd1439891049b
3
+ metadata.gz: 0b6078163571a0bcfd005cb0014bbbcde8518e63
4
+ data.tar.gz: ce52f3c0fd882bc90e020fbed9fc633cc5a3b255
5
5
  SHA512:
6
- metadata.gz: 1b6bb304343f9153768a46f293699a186c9449cbec443f8829c6403d84f22f5a012433f0d58118eb5de2637f04fe52d3a3b6cbc6854594e3e909ca53deb45e0d
7
- data.tar.gz: 5cc7bc50c145d2573d66ac1f96acde576b447d97447afb8b4ea4f9a1f35bf4d0b4a61725b8ecf96a3b81e009e5dab0a7c91126af0d730742525c07ee3bad1cf2
6
+ metadata.gz: 84aec7866172b784f048a8cd394ffc4254f51777dbe455e73088522a79355feb4ab97e30fdf64a7d4fe95c090b689ccb55231441c032a676f73317e5f215b773
7
+ data.tar.gz: 822b822a8b26e3fa2759518ce83b1a7bdf465a0d806f5392182d3c52732154848d30ce3a5241a519a95dbfbef19a7f0abbeb492ae6db6cfd9398b47fd5d43236
data/README.md CHANGED
@@ -23,7 +23,16 @@ Or install it yourself as:
23
23
 
24
24
  Run robot:
25
25
 
26
- $ bin/otacrawler
26
+ ```ruby
27
+ require 'otacrawler'
28
+ Otacrawler::Robot.new.run
29
+ ```
30
+
31
+ ## ENV
32
+
33
+ ```
34
+ DATABASE_SETTING_PATH - Database setting file path. It formatted YAML.
35
+ ```
27
36
 
28
37
  ## Development
29
38
 
@@ -1,3 +1,3 @@
1
1
  module Otacrawler
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/otacrawler.rb CHANGED
@@ -4,7 +4,7 @@ require "mem"
4
4
  require "active_record"
5
5
 
6
6
  module Otacrawler
7
- config = YAML.load(ERB.new(IO.read("database.yml")).result)
7
+ config = YAML.load(ERB.new(IO.read(ENV["DATABASE_SETTING_PATH"])).result)
8
8
  ActiveRecord::Base.establish_connection(config["db"]["development"])
9
9
 
10
10
  class << self
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: otacrawler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - yuta-muramoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-12 00:00:00.000000000 Z
11
+ date: 2016-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mem