rbbt-rest 1.3.12 → 1.3.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rbbt/rest/common/misc.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 765fc7bb4d44d39787a173df36f82d5dce19e911
4
- data.tar.gz: 42fb2b42d23bd0c8f955c1973465f75203eb21d1
3
+ metadata.gz: 67dce81d38feaadc05aaf7a687e1b2a404e3d8d2
4
+ data.tar.gz: 9afbe5fb579fa2312d2265b4120e3334403b3c95
5
5
  SHA512:
6
- metadata.gz: 13cb68ac206b7df1e465f5bf0e23af9fe34a798c1652df48e5689ee324d1d3f24d686301ec0bc19ff44f44ed9671d6f6ff7248b5f6be766ce930003eac5553ba
7
- data.tar.gz: 17f4cb717a004fde7ade0010decbd84d7e6608aab058711e8c6b1be2b24564a52c58c66b530dbf69f6621cb58ab0eae523c3ab1117cc45cf975e2561b944beff
6
+ metadata.gz: dc9822583807cf4072c9b653dea7ab6c5e01db1b01ca2c895b4982968861c6299ba493e09c50e7a2f040426d3515c88ee9dab9efe758e5fbdebc0108fb7d7fa8
7
+ data.tar.gz: 572b0a098081e53db8bbd431d2c76c2a025f60c3fa8d1915d5e726a03227bc8908ea2533bd5ac0c9e832d940e45d431a01ec70f2d491a94be9246e1347bdae13
@@ -134,8 +134,8 @@ module RbbtRESTHelpers
134
134
  text
135
135
  when text =~ /^list:([^:]+):(.+)$/
136
136
  Entity::List.load_list($1, $2, user)
137
- when text =~ /\[.*\]/
138
- JSON.parse(text)
137
+ when text =~ /^\[.*\]$/sm
138
+ JSON.parse(text)
139
139
  when text =~ /\n/
140
140
  text.split(/\r?\n/).collect{|l| l.strip}
141
141
  when text =~ /\|/
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.12
4
+ version: 1.3.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-15 00:00:00.000000000 Z
11
+ date: 2014-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake