fakery 0.5.0 → 0.6.0

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
- SHA1:
3
- metadata.gz: bc2cceb2748ed174be324b694b13883f4f21c33d
4
- data.tar.gz: bacea165b0a7b18c0a3ec92a57e99181a4df7331
2
+ SHA256:
3
+ metadata.gz: a083c622a491b2600667bb236e9aa00e4d1f219ffc3f045a4d98313c9752bfca
4
+ data.tar.gz: f25cc376e65b32d8290a95ba4925d875f77586dcdfbdbe0bf86d3e5500f90974
5
5
  SHA512:
6
- metadata.gz: a146622999edd36e23955fa470fc330a4f004f4c3e0e4472f569192e8bf0a5da690ddb3fbf788a7b7bad51a8ce8e7861c42790f2770e86ffc2e08c86d9f738dd
7
- data.tar.gz: 4fae0fe32a60fb36e7cb3b4fdfbd12cca47605f43b99082509f24c02476c2442cb7e14eef2b4d21e1a464f45fc4ce50289aed4951dacf7bafa2cb100181212f4
6
+ metadata.gz: 562ac91ccd24504a407af0351010432b0aba8663512f763834f3db11c4fb3ef6e9b8cb712936ef244f7054a30e2474ddd745fa959e57dcf9210f50d2aea4d825
7
+ data.tar.gz: c5599f232e4a061ee1ed16bdb971f19003331b353847fd23e42dcd9ee2587d449bda174297bb90bf423b0398a3e357d12b9489f853a7f8b59dca5bcf6c36d55c
@@ -1,10 +1,10 @@
1
1
  rvm:
2
2
  - 2.1
3
3
  - 2.2
4
- - 2.3.3
5
- - 2.4.0
6
-
7
- before_install:
8
- - gem install bundler
4
+ - 2.3
5
+ - 2.4
6
+ - 2.5
7
+ - 2.6
8
+ - 2.7
9
9
 
10
10
  sudo: false
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.6.0
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: fakery 0.5.0 ruby lib
2
+ # stub: fakery 0.6.0 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "fakery".freeze
6
- s.version = "0.5.0"
6
+ s.version = "0.6.0"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib".freeze]
10
10
  s.authors = ["betterplace Developers".freeze]
11
- s.date = "2017-01-02"
11
+ s.date = "2020-02-24"
12
12
  s.description = "This library fakes ruby objects from JSON API responses for testing purposes.".freeze
13
13
  s.email = "developers@betterplace.org".freeze
14
14
  s.extra_rdoc_files = ["README.md".freeze, "lib/fakery.rb".freeze, "lib/fakery/api.rb".freeze, "lib/fakery/api_error.rb".freeze, "lib/fakery/change.rb".freeze, "lib/fakery/fake.rb".freeze, "lib/fakery/fakery_error.rb".freeze, "lib/fakery/registry.rb".freeze, "lib/fakery/seeding.rb".freeze, "lib/fakery/state_error.rb".freeze, "lib/fakery/version.rb".freeze, "lib/fakery/wrapping.rb".freeze]
@@ -17,40 +17,31 @@ Gem::Specification.new do |s|
17
17
  s.licenses = ["Apache-2.0".freeze]
18
18
  s.rdoc_options = ["--title".freeze, "Fakery -- ".freeze, "--main".freeze, "README.md".freeze]
19
19
  s.required_ruby_version = Gem::Requirement.new("~> 2.1".freeze)
20
- s.rubygems_version = "2.6.8".freeze
20
+ s.rubygems_version = "3.1.2".freeze
21
21
  s.summary = "Fake Ruby objects from JSON API responses".freeze
22
22
  s.test_files = ["spec/api_spec.rb".freeze, "spec/change_spec.rb".freeze, "spec/fake_spec.rb".freeze, "spec/registry_spec.rb".freeze, "spec/seeding_spec.rb".freeze, "spec/spec_helper.rb".freeze, "spec/wrapping_spec.rb".freeze]
23
23
 
24
24
  if s.respond_to? :specification_version then
25
25
  s.specification_version = 4
26
+ end
26
27
 
27
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
28
- s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.9.1"])
29
- s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
30
- s.add_development_dependency(%q<rspec>.freeze, ["~> 3.0"])
31
- s.add_development_dependency(%q<rspec-nc>.freeze, [">= 0"])
32
- s.add_runtime_dependency(%q<tins>.freeze, ["~> 1.0"])
33
- s.add_runtime_dependency(%q<term-ansicolor>.freeze, ["~> 1.3"])
34
- s.add_runtime_dependency(%q<typhoeus>.freeze, ["~> 1.0"])
35
- s.add_runtime_dependency(%q<json>.freeze, ["< 3", ">= 1.0"])
36
- else
37
- s.add_dependency(%q<gem_hadar>.freeze, ["~> 1.9.1"])
38
- s.add_dependency(%q<simplecov>.freeze, [">= 0"])
39
- s.add_dependency(%q<rspec>.freeze, ["~> 3.0"])
40
- s.add_dependency(%q<rspec-nc>.freeze, [">= 0"])
41
- s.add_dependency(%q<tins>.freeze, ["~> 1.0"])
42
- s.add_dependency(%q<term-ansicolor>.freeze, ["~> 1.3"])
43
- s.add_dependency(%q<typhoeus>.freeze, ["~> 1.0"])
44
- s.add_dependency(%q<json>.freeze, ["< 3", ">= 1.0"])
45
- end
28
+ if s.respond_to? :add_runtime_dependency then
29
+ s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.11.0"])
30
+ s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
31
+ s.add_development_dependency(%q<rspec>.freeze, ["~> 3.0"])
32
+ s.add_development_dependency(%q<rspec-nc>.freeze, [">= 0"])
33
+ s.add_runtime_dependency(%q<tins>.freeze, ["~> 1.0"])
34
+ s.add_runtime_dependency(%q<term-ansicolor>.freeze, ["~> 1.3"])
35
+ s.add_runtime_dependency(%q<typhoeus>.freeze, ["~> 1.0"])
36
+ s.add_runtime_dependency(%q<json>.freeze, [">= 1.0", "< 3"])
46
37
  else
47
- s.add_dependency(%q<gem_hadar>.freeze, ["~> 1.9.1"])
38
+ s.add_dependency(%q<gem_hadar>.freeze, ["~> 1.11.0"])
48
39
  s.add_dependency(%q<simplecov>.freeze, [">= 0"])
49
40
  s.add_dependency(%q<rspec>.freeze, ["~> 3.0"])
50
41
  s.add_dependency(%q<rspec-nc>.freeze, [">= 0"])
51
42
  s.add_dependency(%q<tins>.freeze, ["~> 1.0"])
52
43
  s.add_dependency(%q<term-ansicolor>.freeze, ["~> 1.3"])
53
44
  s.add_dependency(%q<typhoeus>.freeze, ["~> 1.0"])
54
- s.add_dependency(%q<json>.freeze, ["< 3", ">= 1.0"])
45
+ s.add_dependency(%q<json>.freeze, [">= 1.0", "< 3"])
55
46
  end
56
47
  end
@@ -91,7 +91,7 @@ class Fakery::Fake < JSON::GenericObject
91
91
  name = $`.to_sym
92
92
  value = args.first
93
93
  self.class.ignore_changes? or record_change(name, value)
94
- modifiable[name] = value
94
+ self[name] = value
95
95
  else
96
96
  super
97
97
  end
@@ -1,6 +1,6 @@
1
1
  module Fakery
2
2
  # Fakery version
3
- VERSION = '0.5.0'
3
+ VERSION = '0.6.0'
4
4
  VERSION_ARRAY = VERSION.split('.').map(&:to_i) # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fakery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - betterplace Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-02 00:00:00.000000000 Z
11
+ date: 2020-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.9.1
19
+ version: 1.11.0
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.9.1
26
+ version: 1.11.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: simplecov
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -197,8 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
197
  - !ruby/object:Gem::Version
198
198
  version: '0'
199
199
  requirements: []
200
- rubyforge_project:
201
- rubygems_version: 2.6.8
200
+ rubygems_version: 3.1.2
202
201
  signing_key:
203
202
  specification_version: 4
204
203
  summary: Fake Ruby objects from JSON API responses