mindmatch 0.0.1.pre.beta6 → 0.0.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: b3e5a49deda4f439b0c972b291dae0c73882de96
4
- data.tar.gz: 902887d3cbc230824ca003c98143a51c529765b1
3
+ metadata.gz: 94ab080d96c28d20727ca55a2f9d3162abfcf3f2
4
+ data.tar.gz: eec31b6509ecd098d280402e04c17aa76752b4c7
5
5
  SHA512:
6
- metadata.gz: c01244cffb23578783e2c01ac75f787a5fa97a75add3efe26ac65628bd9eea223c8fbb97901a6e03ab8624d6a26fda295a3ca2ecf86f56b5e408677fd74ccf3f
7
- data.tar.gz: a8894f5947afb821b3fcd10b34899b2b9adc213f7fc6b69908150680184f44aaca5a77119b7d7acccca518e82ee7946814866614a1fe067695579660ff6105da
6
+ metadata.gz: 597d1a16bcb73924df86ee86f099ca48882d2d5784bcf76096b457e42093b051381804d043e08f242f4d1e795f528ed7d222edc2a04e01ccf260591a2f6fe723
7
+ data.tar.gz: c022ec969c2e50d599e8c46375dc0b53ed150ecda6bb11d7602c175e111aeeea8879ca8d11f6193481910b3528bfd31935ff76921a40f34dfac6e1349a731b30
@@ -139,9 +139,9 @@ module MindMatch
139
139
  position = stringify_keys(position)
140
140
  <<-EOS.split.join(" ")
141
141
  {
142
- refId: "#{position['id']}",
143
- name: "#{position['name']}",
144
- description: "#{position['description']}"
142
+ refId: "#{value(position['id'])}",
143
+ name: "#{value(position['name'])}",
144
+ description: "#{value(position['description'])}"
145
145
  }
146
146
  EOS
147
147
  end
@@ -151,9 +151,9 @@ module MindMatch
151
151
  if company.has_key?("positions")
152
152
  <<-EOS.split.join(" ")
153
153
  {
154
- name: "#{company['name']}",
154
+ name: "#{value(company['name'])}",
155
155
  location: #{[company['location']].flatten},
156
- url: "#{company['url']}",
156
+ url: "#{value(company['url'])}",
157
157
  profileUrls: #{company['profileUrls'] || []},
158
158
  positions: [#{company['positions'].map(&method(:positionql)).join(', ')}]
159
159
  }
@@ -176,12 +176,12 @@ module MindMatch
176
176
  tal = stringify_keys(tal)
177
177
  <<-EOS.split.join(" ")
178
178
  {
179
- refId: "#{tal['id']}",
180
- name: "#{tal['name']}",
181
- email: "#{tal['email']}",
179
+ refId: "#{value(tal['id'])}",
180
+ name: "#{value(tal['name'])}",
181
+ email: "#{value(tal['email'])}",
182
182
  profileUrls: #{tal['profileUrls'] || []},
183
- resumeUrl: "#{tal['resumeUrl']}",
184
- skills: #{tal['skills'] || []}
183
+ resumeUrl: "#{value(tal['resumeUrl'])}",
184
+ skills: #{tal['skills'].map(&method(:value)) || []}
185
185
  }
186
186
  EOS
187
187
  end
@@ -207,5 +207,9 @@ module MindMatch
207
207
  def stringify_keys(hash)
208
208
  JSON.parse(JSON.generate(hash))
209
209
  end
210
+
211
+ def value(text)
212
+ text.to_s.gsub('"','\"')
213
+ end
210
214
  end
211
215
  end
@@ -1,3 +1,3 @@
1
1
  module MindMatch
2
- VERSION = "0.0.1-beta6"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mindmatch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.pre.beta6
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - MindMatch
@@ -134,12 +134,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
134
134
  version: '0'
135
135
  required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - ">"
137
+ - - ">="
138
138
  - !ruby/object:Gem::Version
139
- version: 1.3.1
139
+ version: '0'
140
140
  requirements: []
141
141
  rubyforge_project:
142
- rubygems_version: 2.5.2
142
+ rubygems_version: 2.6.13
143
143
  signing_key:
144
144
  specification_version: 4
145
145
  summary: MindMatch api client library for Ruby