crabfarm 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8098614afb567bcfdca40bf7744e9c4e3e90bd32
4
- data.tar.gz: 80f04f4467eb0165e9a3c3f7170604115bf0bbcb
3
+ metadata.gz: 37d3f15734681d8b6339ed2f6bd77bd6caf94742
4
+ data.tar.gz: c89118b300e7857bce7ddaa94386213e18fa7874
5
5
  SHA512:
6
- metadata.gz: 6c64f0918a254b6db190b8efb22636ab3df15f0c127cb121822d3b408321281307885fd6710d8b268589bb02af9eb2ca31c4be9cd9a2bec158b426aab5e4e2a2
7
- data.tar.gz: 37e09a7aa5428bf17be7fcd6149a5f1a4a960d168b7b3c1d8f54d119fcb68adca751b25fed8dc112396daec9811ed01066fbaa2ab9b0400483cc149cb821bdc4
6
+ metadata.gz: 2bc5696e073dfe164863b7daedac92450a68f5e2d88402f19890dbf778219d43eb59946d1356f41d89a1d66a8691bcf2cb0e8fe9cfdff94d7a81feaf3958f074
7
+ data.tar.gz: 2ef4e8bf0b5db722687f7cac21a39aa7a93232f09497ef4d9f670722ca78b161ffbfce88385710ba8c74c98998a0151618addc5cda937998c7a62ea7e611e138
data/lib/crabfarm/cli.rb CHANGED
@@ -108,8 +108,8 @@ module Crabfarm
108
108
  next puts "This command can only be ran inside a crabfarm application" unless Crabfarm.inside_crawler_app?
109
109
 
110
110
  require "crabfarm/modes/generator"
111
- Crabfarm::Modes::Generator.generate_navigator(GlobalState.app_path, args[0], options)
112
- Crabfarm::Modes::Generator.generate_reducer(GlobalState.app_path, args[0]) if options[:reducer]
111
+ Crabfarm::Modes::Generator.generate_navigator(Crabfarm.app_path, args[0], options)
112
+ Crabfarm::Modes::Generator.generate_reducer(Crabfarm.app_path, args[0]) if options[:reducer]
113
113
  end
114
114
  end
115
115
 
@@ -119,7 +119,7 @@ module Crabfarm
119
119
  next puts "This command can only be ran inside a crabfarm application" unless Crabfarm.inside_crawler_app?
120
120
 
121
121
  require "crabfarm/modes/generator"
122
- Crabfarm::Modes::Generator.generate_reducer(GlobalState.app_path, args[0])
122
+ Crabfarm::Modes::Generator.generate_reducer(Crabfarm.app_path, args[0])
123
123
  end
124
124
  end
125
125
 
@@ -129,7 +129,7 @@ module Crabfarm
129
129
  next puts "This command can only be ran inside a crabfarm application" unless Crabfarm.inside_crawler_app?
130
130
 
131
131
  require "crabfarm/modes/generator"
132
- Crabfarm::Modes::Generator.generate_struct(GlobalState.app_path, args[0])
132
+ Crabfarm::Modes::Generator.generate_struct(Crabfarm.app_path, args[0])
133
133
  end
134
134
  end
135
135
  end
@@ -187,7 +187,7 @@ module Crabfarm
187
187
  options[:remote] = args[0]
188
188
 
189
189
  require "crabfarm/modes/publisher"
190
- Crabfarm::Modes::Publisher.publish GlobalState.app_path, options
190
+ Crabfarm::Modes::Publisher.publish Crabfarm.app_path, options
191
191
  end
192
192
  end
193
193
 
@@ -17,12 +17,12 @@ module Crabfarm
17
17
  end
18
18
 
19
19
  def target
20
- raise "'#{_original.to_s}' was not invoked" if calls.size == 0
20
+ raise "'#{@original.to_s}' was not invoked" if calls.size == 0
21
21
  calls.first.target
22
22
  end
23
23
 
24
24
  def params
25
- raise "'#{_original.to_s}' was not invoked" if calls.size == 0
25
+ raise "'#{@original.to_s}' was not invoked" if calls.size == 0
26
26
  calls.first.params
27
27
  end
28
28
 
@@ -1,3 +1,3 @@
1
1
  module Crabfarm
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crabfarm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ignacio Baixas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-22 00:00:00.000000000 Z
11
+ date: 2015-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -402,6 +402,14 @@ executables:
402
402
  extensions: []
403
403
  extra_rdoc_files: []
404
404
  files:
405
+ - assets/live-tools/instructions.html
406
+ - assets/live-tools/selectorgadget_combined.css
407
+ - assets/live-tools/selectorgadget_combined.js
408
+ - assets/live-tools/tools.css
409
+ - assets/live-tools/tools.js
410
+ - assets/live-tools/welcome.html
411
+ - bin/crabfarm
412
+ - lib/crabfarm.rb
405
413
  - lib/crabfarm/adapters/browser/abstract_webdriver.rb
406
414
  - lib/crabfarm/adapters/browser/chrome.rb
407
415
  - lib/crabfarm/adapters/browser/firefox.rb
@@ -428,9 +436,9 @@ files:
428
436
  - lib/crabfarm/crabtrap_context.rb
429
437
  - lib/crabfarm/crabtrap_runner.rb
430
438
  - lib/crabfarm/driver_pool.rb
439
+ - lib/crabfarm/dsl/surfer.rb
431
440
  - lib/crabfarm/dsl/surfer/search_context.rb
432
441
  - lib/crabfarm/dsl/surfer/surf_context.rb
433
- - lib/crabfarm/dsl/surfer.rb
434
442
  - lib/crabfarm/engines/async_state_manager.rb
435
443
  - lib/crabfarm/engines/sync_state_manager.rb
436
444
  - lib/crabfarm/errors.rb
@@ -461,25 +469,25 @@ files:
461
469
  - lib/crabfarm/modes/server.rb
462
470
  - lib/crabfarm/modes/shared/interactive_decorator.rb
463
471
  - lib/crabfarm/modes/shared/snapshot_decorator.rb
472
+ - lib/crabfarm/rspec.rb
464
473
  - lib/crabfarm/rspec/navigator_spec_helpers.rb
465
474
  - lib/crabfarm/rspec/reducer_spec_helpers.rb
466
475
  - lib/crabfarm/rspec/reducer_spy.rb
467
476
  - lib/crabfarm/rspec/reducer_spy_manager.rb
468
- - lib/crabfarm/rspec.rb
469
477
  - lib/crabfarm/state_store.rb
470
478
  - lib/crabfarm/strategies.rb
471
479
  - lib/crabfarm/support/custom_puma.rb
472
480
  - lib/crabfarm/support/gli.rb
473
481
  - lib/crabfarm/support/phantom_runner.rb
474
482
  - lib/crabfarm/support/webdriver_factory.rb
483
+ - lib/crabfarm/templates/Crabfile.erb
484
+ - lib/crabfarm/templates/Gemfile.erb
475
485
  - lib/crabfarm/templates/boot.rb.erb
476
486
  - lib/crabfarm/templates/crabfarm_bin.erb
477
- - lib/crabfarm/templates/Crabfile.erb
478
487
  - lib/crabfarm/templates/dot_crabfarm.erb
479
488
  - lib/crabfarm/templates/dot_gitignore.erb
480
489
  - lib/crabfarm/templates/dot_gitkeep.erb
481
490
  - lib/crabfarm/templates/dot_rspec.erb
482
- - lib/crabfarm/templates/Gemfile.erb
483
491
  - lib/crabfarm/templates/navigator.rb.erb
484
492
  - lib/crabfarm/templates/navigator_spec.rb.erb
485
493
  - lib/crabfarm/templates/reducer.rb.erb
@@ -495,14 +503,6 @@ files:
495
503
  - lib/crabfarm/utils/rspec_runner.rb
496
504
  - lib/crabfarm/utils/webdriver.rb
497
505
  - lib/crabfarm/version.rb
498
- - lib/crabfarm.rb
499
- - bin/crabfarm
500
- - assets/live-tools/instructions.html
501
- - assets/live-tools/selectorgadget_combined.css
502
- - assets/live-tools/selectorgadget_combined.js
503
- - assets/live-tools/tools.css
504
- - assets/live-tools/tools.js
505
- - assets/live-tools/welcome.html
506
506
  homepage: https://github.com/platanus/crabfarm-gem
507
507
  licenses:
508
508
  - MIT
@@ -523,7 +523,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
523
523
  version: '0'
524
524
  requirements: []
525
525
  rubyforge_project:
526
- rubygems_version: 2.0.14
526
+ rubygems_version: 2.4.7
527
527
  signing_key:
528
528
  specification_version: 4
529
529
  summary: Crabfarm crawler creation framework