assembly_wales 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MTM1OTRmMTFhMzc5M2ZmZjA3YjJlN2VlMGNhNTg3YzU2YTcxYjA5MA==
5
+ data.tar.gz: !binary |-
6
+ YTBjOWIxMDUyMjI0ZTM0ZDcwNWI0YTRhN2EyODZlODNiMTNkMDQxZQ==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ MzNmNGM4MzYwZjg0ZjI0NGI1Nzg0NTA5NTczMzcwODM3ZTFjMGM4YzZjZWVj
10
+ M2Y5ODI5YTY1ZWU4N2NmN2Y3NjQ5ZjM0YjdkMjE3OTM0YTM1NjhkNTFhNzA2
11
+ N2Y0MWEyZTQ4OGZkNmE3ODhjMmM2OWNmNmQxOGVhYmNjOWMyYTk=
12
+ data.tar.gz: !binary |-
13
+ ZDg4OGFmOGUyYjg5MDI1MjE4M2FiNTYxMDMyMWU2MjEzYWM3YmUwNjdkMjQz
14
+ ZTlmMTNkZjg1MTMzNTg0Y2I1Mjg4OGU1NjM1Njk4ZDU0MTY0OGQ4NDZhMTMw
15
+ YzI1MmE1MDU5YWRmMjVmMzA5N2QzMGE4MjRlOGQ1YjZkYjcwZmE=
data/Gemfile.lock ADDED
@@ -0,0 +1,47 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ assembly_wales (0.0.1)
5
+ httparty
6
+
7
+ GEM
8
+ remote: http://rubygems.org/
9
+ specs:
10
+ addressable (2.3.6)
11
+ ansi (1.4.3)
12
+ coderay (1.1.0)
13
+ crack (0.4.2)
14
+ safe_yaml (~> 1.0.0)
15
+ httparty (0.13.1)
16
+ json (~> 1.8)
17
+ multi_xml (>= 0.5.2)
18
+ json (1.8.1)
19
+ method_source (0.8.2)
20
+ minitest (4.7.5)
21
+ multi_xml (0.5.5)
22
+ pry (0.10.0)
23
+ coderay (~> 1.1.0)
24
+ method_source (~> 0.8.1)
25
+ slop (~> 3.4)
26
+ rake (10.3.2)
27
+ safe_yaml (1.0.3)
28
+ slop (3.5.0)
29
+ turn (0.9.7)
30
+ ansi
31
+ minitest (~> 4)
32
+ vcr (2.9.3)
33
+ webmock (1.18.0)
34
+ addressable (>= 2.3.6)
35
+ crack (>= 0.3.2)
36
+
37
+ PLATFORMS
38
+ ruby
39
+
40
+ DEPENDENCIES
41
+ assembly_wales!
42
+ minitest
43
+ pry
44
+ rake
45
+ turn
46
+ vcr
47
+ webmock
Binary file
@@ -1,5 +1,5 @@
1
1
  module AssemblyWales
2
- BASE_URL = 'http://www.assemblywales.org/docs/rop_xml/'
2
+ BASE_URL = 'http://www.assemblywales.org/Record%20of%20Proceedings%20XML/'
3
3
  class Plenary
4
4
 
5
5
  attr_accessor :date, :record, :speeches
@@ -14,11 +14,11 @@ module AssemblyWales
14
14
  private
15
15
 
16
16
  def build_url(date)
17
- BASE_URL + date.strftime('%y%m%d') + '_plenary_bilingual.xml'
17
+ BASE_URL + date.strftime('%y%m%d') + '_Plenary_Bilingual.xml'
18
18
  end
19
19
 
20
20
  def parse_xml(url)
21
- HTTParty.get(url).first[1].first[1]
21
+ HTTParty.get(url).first[1]["XML_Plenary_Bilingual"]
22
22
  end
23
23
 
24
24
  def parse_speeches
@@ -1,3 +1,3 @@
1
1
  module AssemblyWales
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: assembly_wales
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Sam Knight
@@ -14,7 +13,6 @@ dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: httparty
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: minitest
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: webmock
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ! '>='
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ! '>='
60
53
  - !ruby/object:Gem::Version
@@ -62,7 +55,6 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: vcr
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ! '>='
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ! '>='
76
67
  - !ruby/object:Gem::Version
@@ -78,7 +69,6 @@ dependencies:
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: turn
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ! '>='
84
74
  - !ruby/object:Gem::Version
@@ -86,7 +76,6 @@ dependencies:
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ! '>='
92
81
  - !ruby/object:Gem::Version
@@ -94,7 +83,6 @@ dependencies:
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: rake
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
87
  - - ! '>='
100
88
  - !ruby/object:Gem::Version
@@ -102,7 +90,6 @@ dependencies:
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
94
  - - ! '>='
108
95
  - !ruby/object:Gem::Version
@@ -113,36 +100,37 @@ executables: []
113
100
  extensions: []
114
101
  extra_rdoc_files: []
115
102
  files:
116
- - assembly_wales.gemspec
117
103
  - Gemfile
104
+ - Gemfile.lock
105
+ - README.md
106
+ - Rakefile
107
+ - assembly_wales-0.0.1.gem
108
+ - assembly_wales.gemspec
109
+ - lib/assembly_wales.rb
118
110
  - lib/assembly_wales/plenary.rb
119
111
  - lib/assembly_wales/speech.rb
120
112
  - lib/assembly_wales/version.rb
121
- - lib/assembly_wales.rb
122
- - Rakefile
123
- - README.md
124
113
  - spec/spec_helper.rb
125
114
  homepage: http://github.com/samknight/assembly_wales
126
115
  licenses: []
116
+ metadata: {}
127
117
  post_install_message:
128
118
  rdoc_options: []
129
119
  require_paths:
130
120
  - lib
131
121
  required_ruby_version: !ruby/object:Gem::Requirement
132
- none: false
133
122
  requirements:
134
123
  - - ! '>='
135
124
  - !ruby/object:Gem::Version
136
125
  version: '0'
137
126
  required_rubygems_version: !ruby/object:Gem::Requirement
138
- none: false
139
127
  requirements:
140
128
  - - ! '>='
141
129
  - !ruby/object:Gem::Version
142
130
  version: '0'
143
131
  requirements: []
144
132
  rubyforge_project:
145
- rubygems_version: 1.8.25
133
+ rubygems_version: 2.2.2
146
134
  signing_key:
147
135
  specification_version: 3
148
136
  summary: A Gem that consumes data from the Welsh Assembly