contact_congress_parser 0.0.10 → 0.0.11

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: 26448f830a6198af435b838a35006c086885ea2d
4
- data.tar.gz: ef5bce36e76b38129e60c75cd878054caee76c99
3
+ metadata.gz: a0577b4c77253e2e9e3994e632f06cfb588c1d15
4
+ data.tar.gz: d22e4b3714945c69f09c583ea877d2575eda64cb
5
5
  SHA512:
6
- metadata.gz: 9ddc7d872dc59a9ef43f814d5230d67bcc55aec0fdd3b7f7d4bea43ae8090fb1093530aa255a4d5f78703a1ac230333fc73fd9248f3cb6e09db19cd500fc905d
7
- data.tar.gz: 916c9e7afe25a23815413302ee11b91f55036618b28ea7561af7e926e256cdbf08901c698020a7cbcaafd99b0e6c69871d490ed990bbc7d1dda25ab6b99bbe94
6
+ metadata.gz: c25f858a07be0b444e49b788edf71b64155463bf947631a1d071837f82d671d16b77f917eb2223010f70bfdfb982728e637d60770019a9bb134da7a2b904974f
7
+ data.tar.gz: 64873abea514451dbe812288452c3a0e2192827728546228b4050265c0f7963e4dfb5ca90715e62f3d33dd86fd5831c85e2b3f3460375b72a5e92b40afafc911
@@ -14,13 +14,13 @@ module ContactCongressParser
14
14
 
15
15
  private
16
16
  def create_form(&block)
17
- "Conformity::Form.new('#{domain}') do" +
17
+ "Conformity::Form.new('#{base_url}') do" +
18
18
  yield +
19
19
  'end'
20
20
  end
21
21
 
22
- def domain
23
- @domain ||= URI.parse(steps.first['visit']).host
22
+ def base_url
23
+ @base_url ||= URI.join(steps.first['visit'], "/")
24
24
  end
25
25
 
26
26
  def actions
@@ -1,3 +1,3 @@
1
1
  module ContactCongressParser
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
data/spec/action_spec.rb CHANGED
@@ -18,7 +18,7 @@ describe Action do
18
18
 
19
19
  describe '#to_s' do
20
20
  it 'is eval-able by conformity' do
21
- form = Conformity::Form.new
21
+ form = Conformity::Form.new { }
22
22
 
23
23
  actions = Action.create_from_step(MULTI_ACT_STEP)
24
24
  expect { actions.each { |action| form.send(:eval, action.to_s) } }.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contact_congress_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikias Kalpaxis