epom_rails 1.3.5 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/epom_rails/acts_as.rb +0 -2
- data/lib/epom_rails/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 26630917caa4309b84a7eb2378556652bcb88fc2
|
|
4
|
+
data.tar.gz: e8117d6c261729f0544ca95b104d33f2c35cd043
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2b288b462350506d60183b1a0483b45dcaabb0119aa71f9333bf19520728197ca7d5d2eb442caed331fba8330293db70470ce6a712c5666d2bdd61566923d426
|
|
7
|
+
data.tar.gz: ba5e07b569509ed16496ef041a86843ba7aaa216a661452fd8311038a831a698d76a598745aeefe575c6fb3b922635382b733424672331d47e1020062e645b8d
|
data/lib/epom_rails/acts_as.rb
CHANGED
|
@@ -60,7 +60,6 @@ class ActiveRecord::Base
|
|
|
60
60
|
fields = get_config[:fields]
|
|
61
61
|
|
|
62
62
|
before_save do
|
|
63
|
-
puts "before_save for #{self.inspect}"
|
|
64
63
|
unless EpomRails.config.offline
|
|
65
64
|
method = if self.send fields.key('id') then "update_#{klass_name.downcase}" else "create_#{klass_name.downcase}" end
|
|
66
65
|
|
|
@@ -99,7 +98,6 @@ class ActiveRecord::Base
|
|
|
99
98
|
klass_name = get_epom_class_name
|
|
100
99
|
fields = get_config[:fields]
|
|
101
100
|
before_destroy do
|
|
102
|
-
puts "before_destroy for #{self.inspect}"
|
|
103
101
|
unless EpomRails.config.offline
|
|
104
102
|
if self.send fields.key('id')
|
|
105
103
|
epom_response = klass.send "delete_#{klass_name.downcase}", {"#{klass_name.downcase}Id" => self.send(fields.key('id'))}, {}
|
data/lib/epom_rails/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: epom_rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adrian Chang
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-11-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -260,9 +260,6 @@ test_files:
|
|
|
260
260
|
- test/epom_rails/acts_as_banner_test.rb
|
|
261
261
|
- test/epom_rails/acts_as_analytic_test.rb
|
|
262
262
|
- test/epom_rails/acts_as_advertiser_test.rb
|
|
263
|
-
- test/dummy/config.ru
|
|
264
|
-
- test/dummy/Rakefile
|
|
265
|
-
- test/dummy/README.rdoc
|
|
266
263
|
- test/dummy/test/models/zone_test.rb
|
|
267
264
|
- test/dummy/test/models/user_test.rb
|
|
268
265
|
- test/dummy/test/models/publisher_test.rb
|
|
@@ -303,10 +300,6 @@ test_files:
|
|
|
303
300
|
- test/dummy/db/migrate/20150603151041_create_advertisers.rb
|
|
304
301
|
- test/dummy/config/secrets.yml
|
|
305
302
|
- test/dummy/config/routes.rb
|
|
306
|
-
- test/dummy/config/environment.rb
|
|
307
|
-
- test/dummy/config/database.yml
|
|
308
|
-
- test/dummy/config/boot.rb
|
|
309
|
-
- test/dummy/config/application.rb
|
|
310
303
|
- test/dummy/config/locales/en.yml
|
|
311
304
|
- test/dummy/config/initializers/wrap_parameters.rb
|
|
312
305
|
- test/dummy/config/initializers/session_store.rb
|
|
@@ -319,6 +312,11 @@ test_files:
|
|
|
319
312
|
- test/dummy/config/environments/test.rb
|
|
320
313
|
- test/dummy/config/environments/production.rb
|
|
321
314
|
- test/dummy/config/environments/development.rb
|
|
315
|
+
- test/dummy/config/environment.rb
|
|
316
|
+
- test/dummy/config/database.yml
|
|
317
|
+
- test/dummy/config/boot.rb
|
|
318
|
+
- test/dummy/config/application.rb
|
|
319
|
+
- test/dummy/config.ru
|
|
322
320
|
- test/dummy/bin/setup
|
|
323
321
|
- test/dummy/bin/rake
|
|
324
322
|
- test/dummy/bin/rails
|
|
@@ -400,3 +398,5 @@ test_files:
|
|
|
400
398
|
- test/dummy/app/assets/javascripts/application.js
|
|
401
399
|
- test/dummy/app/assets/javascripts/analytics.js
|
|
402
400
|
- test/dummy/app/assets/javascripts/advertisers.js
|
|
401
|
+
- test/dummy/Rakefile
|
|
402
|
+
- test/dummy/README.rdoc
|