fakecrm 0.9.9.2 → 0.9.9.3

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: b4243b3d84c8bf9185cfb014c6b746d81a346941
4
- data.tar.gz: 0b523fb5f92c63c3d5c494f1332ffccb9a39dfe1
3
+ metadata.gz: 14af0ae7cb0c003f5e2d8b469d4fdc46aa783033
4
+ data.tar.gz: f5df897d2d7b8984a1a77a69c353fec5c9b835db
5
5
  SHA512:
6
- metadata.gz: 6409aee45e645eda6a1eb00c11cc8ed3cbe485eb4d2dd7afeeecdc4f428d84a5ac115816499cb206d8a88db435f1fef46a0bbc8dadd015ff2016b9f5413446be
7
- data.tar.gz: 5507bfe68a96f31be706b9d6c80f660be8267f22ca15f4a774412bfc125e1e658d8760475999b63196b0d2ed7c687ba6972a5a051fe5f7bc58a772b27d91806a
6
+ metadata.gz: 34fa0f1e3b8ff4135d23ab6b824d3ab7ec035df29c10830ed85758ca6aad95cde4db3ad36981dd26e0ec2e3f6201e1de0b3b66a37c497f990cb4f82ae231f973
7
+ data.tar.gz: f8270d2ac2b5557a8d37f3206b8aeecbbbb8e8343da4eda61e311a96fee600e88ccd91006cc24c74cdaa8811dbc0916c626ef9d7c528040b1f7c27592cff6f90
data/fakecrm.gemspec CHANGED
@@ -23,6 +23,9 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency "pry"
24
24
  spec.add_development_dependency "byebug"
25
25
  spec.add_development_dependency "simplecov"
26
+ spec.add_development_dependency "test-unit"
27
+ spec.add_development_dependency "appraisal"
28
+ spec.add_development_dependency "rest-client"
26
29
  spec.add_dependency 'dm-sqlite-adapter'
27
30
  spec.add_dependency 'json'
28
31
  spec.add_dependency 'sinatra'
@@ -1,4 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
+ require 'monkey_patch_datamapper'
3
+
2
4
  DataMapper.auto_upgrade!
3
5
 
4
6
  contact = Fakecrm::Contact.first_or_create(:last_name => 'root', :login => 'root', :gender => 'N', :language => 'en', :email => 'root@root.org')
@@ -1,5 +1,5 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Fakecrm
3
- VERSION = "0.9.9.2"
3
+ VERSION = "0.9.9.3"
4
4
  end
5
5
 
@@ -0,0 +1,15 @@
1
+ # required monkey patch for datamapper gem
2
+
3
+ module DataMapper
4
+ class Property
5
+ module DirtyMinder
6
+ # Catch any direct assignment (#set), and any Resource#reload (set!).
7
+ def set!(resource, value)
8
+ if Hooker::MUTATION_METHODS.keys.detect { |klass| value.kind_of?(klass) }
9
+ hook_value(resource, value) unless value.kind_of? Hooker
10
+ end
11
+ super
12
+ end
13
+ end
14
+ end
15
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fakecrm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.9.2
4
+ version: 0.9.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Sojka
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-02-06 00:00:00.000000000 Z
12
+ date: 2015-11-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -81,6 +81,48 @@ dependencies:
81
81
  - - '>='
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: test-unit
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - '>='
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - '>='
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ - !ruby/object:Gem::Dependency
99
+ name: appraisal
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - '>='
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - '>='
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ - !ruby/object:Gem::Dependency
113
+ name: rest-client
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - '>='
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
84
126
  - !ruby/object:Gem::Dependency
85
127
  name: dm-sqlite-adapter
86
128
  requirement: !ruby/object:Gem::Requirement
@@ -233,6 +275,7 @@ files:
233
275
  - lib/fakecrm/server/templates.rb
234
276
  - lib/fakecrm/tolerant_mass_assignment.rb
235
277
  - lib/fakecrm/version.rb
278
+ - lib/monkey_patch_datamapper.rb
236
279
  - locales/de.yml
237
280
  - locales/en.yml
238
281
  - test/embedded/.gitignore