populate-me 0.7.0 → 0.7.1

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: 83cee64b1b7d5d922cc2ade4ad1a2f1d24b317a0
4
- data.tar.gz: 67e97164caaace17af9ed42342373680207f922f
3
+ metadata.gz: 2a4e1b29c84ee80302c1e0dc749c0de5926191c1
4
+ data.tar.gz: a600a41a3590d08d0a09f429fd65bded993f12cb
5
5
  SHA512:
6
- metadata.gz: f52e72e41359fb87b63da4b65499743c43016456b86d94e91c9286eb0293ce4d18162c967fea575eba3c75ff39916bd6c70e439afd09e8b449d7f23f8213ff45
7
- data.tar.gz: 7a230d3258bf349c96b2000e6fd75c60617b4e98e586b944677c831761687b25c1b23fc18bb8240ff934e53c6a2ce3972fe6b2912574073d4b7ba445a999b36b
6
+ metadata.gz: 22131a127100872095a3c1c5f8188f75a18bb5913c6d0611d4ad897a0013edaf09a0e1b9463384025d70e675933ca511b9f4135d4d4ce6f8c34123ae4db63aa0
7
+ data.tar.gz: aac7ae50254aa787daaf7d83c10955a251483823cfc9f5f9d512777ecd95d2ba1ac134776cb7697c5b9b2d9a71451769e3faeaf14550af71b0f2f49de945da42
@@ -1,5 +1,5 @@
1
1
  require 'populate_me/attachment'
2
- require 'aws-sdk'
2
+ require 'aws-sdk-s3'
3
3
 
4
4
  module PopulateMe
5
5
 
@@ -1,4 +1,4 @@
1
1
  module PopulateMe
2
- VERSION = '0.7.0'
2
+ VERSION = '0.7.1'
3
3
  end
4
4
 
data/populate-me.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.require_paths = ['lib']
19
19
 
20
20
  s.add_dependency 'web-utils', '~> 0'
21
- s.add_dependency 'sinatra', '~> 1.4'
21
+ s.add_dependency 'sinatra', '~> 2'
22
22
  s.add_dependency 'json', '~> 2.1'
23
23
 
24
24
  s.add_development_dependency 'bundler', '~> 1.13'
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
27
27
  s.add_development_dependency 'rack-cerberus', '~> 1.0'
28
28
  s.add_development_dependency 'mongo', '~> 2.0'
29
29
  s.add_development_dependency 'rack-grid-serve', '~> 0.0.8'
30
- s.add_development_dependency 'aws-sdk', '~> 3'
30
+ s.add_development_dependency 'aws-sdk-s3', '~> 1'
31
31
  s.add_development_dependency 'racksh', '~> 1.0'
32
32
  s.add_development_dependency 'rake', '~> 10.1'
33
33
  end
@@ -74,9 +74,8 @@ describe PopulateMe::Document, 'Typecasting' do
74
74
  end
75
75
  end
76
76
  describe "Value is a float with irregular decimals for a price" do
77
- it "Rounds it" do
77
+ it "Assumes 2 digits after comma" do
78
78
  assert_equal 4250, subject.typecast(:salary,'42.5')
79
- assert_equal 4257, subject.typecast(:salary,'42.567')
80
79
  end
81
80
  end
82
81
  describe "Value is prefixed or suffixed" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: populate-me
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mickael Riga
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-10 00:00:00.000000000 Z
11
+ date: 2018-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: web-utils
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.4'
33
+ version: '2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.4'
40
+ version: '2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: json
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -137,19 +137,19 @@ dependencies:
137
137
  - !ruby/object:Gem::Version
138
138
  version: 0.0.8
139
139
  - !ruby/object:Gem::Dependency
140
- name: aws-sdk
140
+ name: aws-sdk-s3
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '3'
145
+ version: '1'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '3'
152
+ version: '1'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: racksh
155
155
  requirement: !ruby/object:Gem::Requirement