Dynamised 0.1.3 → 0.1.4

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: 5ee5e3bc7ef224ead6f6389b3af2c21220b6d314
4
- data.tar.gz: 3d19bdcc20e0742a96cdb1ebbe04b7a9dbebd566
3
+ metadata.gz: e3c518035c2541727ecc8ae369ac5c3a1641a38a
4
+ data.tar.gz: 9a00100d538fae1b85bf926f1340c49c8aeceafb
5
5
  SHA512:
6
- metadata.gz: 6668cb3446ff25bbfbac1748c712111d621f838b823522ba7cc2d397b6429c7792d7d9225eed5f494db280b31ba8dff604de7f1dec00f05c0a4ca7f6b51f50aa
7
- data.tar.gz: 8733963e5b9f7d5d320920fd96094f76f71c20dad0c61bbffea73115bc4cee8bbd4af1cf72f0b4a710a1bfefa97fe48801cd7de2bfe9cb6303e900be3566b04b
6
+ metadata.gz: 869906f75c240c384c88331b855b124243035675381c804368c3bb21278439b8f83cd9404b87c7ca947c9f8dc099729bde63dc0bc0c4d332a0633a39c7872ffb
7
+ data.tar.gz: 6a4d9eab4fbf9efd878f6f1110f7f7d346da6cd7f179d71a5cd14896624710874da01149aa7b175bb124ca30a8186d6998a9e31b83da78133f10645f4bd8827b
data/bin/dynamised CHANGED
@@ -19,7 +19,7 @@ module Dynamised
19
19
  c.option "--[no-]db", 'Turns off db, scraper will pull and store directly to end file, no resume'
20
20
  c.action do |args,options|
21
21
  options.default db: true
22
- args = {nodb: options.db}
22
+ # nodb = {nodb: options.db}
23
23
  script_path = check_and_convert(args.first)
24
24
  class_name = get_class_name(args.first)
25
25
  create_temp_class(class_name,File.read(script_path))
@@ -51,8 +51,15 @@ module Dynamised
51
51
  end
52
52
 
53
53
  def check_and_convert(path)
54
+ unless path
55
+ puts "No script file given"
56
+ exit
57
+ end
54
58
  script_path = File.expand_path(path, Dir.pwd )
55
- (puts "File name %s doesn't exist" % script_path and exit) unless File.exists?(script_path)
59
+ unless File.exists?(script_path)
60
+ puts "File name %s doesn't exist" % script_path
61
+ exit
62
+ end
56
63
  script_path
57
64
  end
58
65
 
@@ -1,6 +1,6 @@
1
1
  module Dynamised
2
2
  module META
3
- Version = "0.1.3"
3
+ Version = "0.1.4"
4
4
  Description = <<-DESC.gsub(/^\s*/, '')
5
5
  A tool that allows a user to build a web scraper that works by recursively crawling pages until
6
6
  it finds the requested infomation.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Dynamised
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Becker