companies_house_hub 0.0.3 → 0.0.4

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
  SHA256:
3
- metadata.gz: 2e0656dfb23e4316fb845a491348c9fcfdfd042b5860063f7f8a457f2cccb36b
4
- data.tar.gz: f3e5fcc7aa0f9c01a4f0e5f89c1762d449ec8e17b252cf3fb2376e15cdb40e61
3
+ metadata.gz: 9ea6132366d0ddd6973acf012b8d48612d3070a8e15d131d21e1a0911e3141b2
4
+ data.tar.gz: fe4243c4a4a59fde93e00521cb701b211bbb5ada3daf524722469013808c63bb
5
5
  SHA512:
6
- metadata.gz: 06b9b2478e4131bd573510ba947a42bd31e904c5ebdd948259de44b645ea4ffc7f6c6eebeccc3f5a22c2bd94c520b2d3d2e045b831144e922d77fb51cbda5df7
7
- data.tar.gz: 58aef96efff40cf679e1ad5811bc5ee27fb4e6f3feea18e10111a2f41d8fad83ac83438336a558f5e10790e6059cb67f18aaecb71bc93b059bd285f043549c05
6
+ metadata.gz: 515164f0720bdfc7f5363508f2b14e9e5c504d5acd12f9b2fe798721e2a7fec1e63d4ae676bb421640eef6b8065af1a52115dc505f750c6364969289ff633091
7
+ data.tar.gz: 321b69386d473106007b0293de743ea124d80ba61fb310ac5fbe57d396f99daec54a798ff1d06083d3a06cd85ba48dca4c3295594aa588f63b3db59d9756279c
data/.gitignore CHANGED
@@ -1,5 +1,6 @@
1
1
  *.gem
2
2
  *.rbc
3
+ .rspec_status
3
4
  .env
4
5
  .bundle
5
6
  .config
data/.rspec ADDED
@@ -0,0 +1,4 @@
1
+ --color
2
+ --format documentation
3
+ --order random
4
+ --require spec_helper
data/.rubocop.yml CHANGED
@@ -1,3 +1,5 @@
1
+ require: rubocop-rspec
2
+
1
3
  Metrics/AbcSize:
2
4
  Max: 30
3
5
 
@@ -21,3 +23,10 @@ Metrics/ModuleLength:
21
23
 
22
24
  Metrics/AbcSize:
23
25
  Max: 70
26
+
27
+ Lint/UselessAssignment:
28
+ Exclude:
29
+ - spec/data/*
30
+
31
+ RSpec/ExampleLength:
32
+ Max: 100
@@ -31,5 +31,8 @@ Gem::Specification.new do |spec|
31
31
  spec.add_development_dependency 'dotenv', '~> 2.4.0'
32
32
  spec.add_development_dependency 'pry-byebug'
33
33
  spec.add_development_dependency 'rake', '~> 10.0'
34
+ spec.add_development_dependency 'rspec'
34
35
  spec.add_development_dependency 'rubocop', '~> 0.54.0'
36
+ spec.add_development_dependency 'rubocop-rspec'
37
+ spec.add_development_dependency 'simplecov'
35
38
  end
@@ -45,7 +45,7 @@ module CompaniesHouseHub
45
45
  replaced = text.dup
46
46
 
47
47
  matches.each do |match|
48
- value = @filing_history.description_values[match.to_sym]
48
+ value = @filing_history.description_values.dig(match.to_sym)
49
49
  replaced.sub!(/{#{match}}/, value)
50
50
  end
51
51
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CompaniesHouseHub
4
- VERSION = '0.0.3'
4
+ VERSION = '0.0.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: companies_house_hub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Otero
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '10.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: rubocop
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -108,6 +122,34 @@ dependencies:
108
122
  - - "~>"
109
123
  - !ruby/object:Gem::Version
110
124
  version: 0.54.0
125
+ - !ruby/object:Gem::Dependency
126
+ name: rubocop-rspec
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: simplecov
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
111
153
  description: A REST client for the UK Companies House API, including authentication
112
154
  email:
113
155
  - oterosantos@gmail.com
@@ -116,6 +158,7 @@ extensions: []
116
158
  extra_rdoc_files: []
117
159
  files:
118
160
  - ".gitignore"
161
+ - ".rspec"
119
162
  - ".rubocop.yml"
120
163
  - ".ruby-version"
121
164
  - Gemfile