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 +4 -4
- data/fakecrm.gemspec +3 -0
- data/lib/fakecrm/initialize.rb +2 -0
- data/lib/fakecrm/version.rb +1 -1
- data/lib/monkey_patch_datamapper.rb +15 -0
- metadata +45 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14af0ae7cb0c003f5e2d8b469d4fdc46aa783033
|
4
|
+
data.tar.gz: f5df897d2d7b8984a1a77a69c353fec5c9b835db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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'
|
data/lib/fakecrm/initialize.rb
CHANGED
data/lib/fakecrm/version.rb
CHANGED
@@ -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.
|
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-
|
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
|