admidat_query 0.0.1 → 0.0.4

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/admitad.rb +1 -45
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7e314b2cb5b5aba795bb7e9df0e880491f131c58fb9ffa644076661e701e9bf
4
- data.tar.gz: d775c952e60f4f330144488f3c089d2d603af47a8990cd81c573b95ed73f3ace
3
+ metadata.gz: '078307756a2b99aebcb5d35f3dcc1d10281add856e6b617741804a5300f255ec'
4
+ data.tar.gz: a409b5fdc91c48f15ed02bee0fff468dc72f7de54e48c616c25b07340617a91f
5
5
  SHA512:
6
- metadata.gz: afce5bb6173bbb771478335ad60444868c485cd881df36e9e55a8736117d466d2f0ef812769d3051bbbce6090df84afa162ae659cf70a7fa0309c76e9ceaccbe
7
- data.tar.gz: 012657161accbc1b26ac948d4a03cd45d1de89bda7fefc7d6b320845780b233ecf202d2667ed59aca836e1ad7666ba46d0310ccec5389174238b2504f78d1e3c
6
+ metadata.gz: dfbdc01b1bdd09f269da908401dd6385e620cc3913743bdebd015b9542eef881ae0a8500677ba149c823d47b014c0e119891fa4c876a323d009eca5858cb72bd
7
+ data.tar.gz: 81895c88c8677550e9f9e9baf28a11b35bd0c83b45e8ffbb320cc9a7f5a5429fed777a4a47d83530be5d00dc8871a545df5f52036d38f76d129c510b985491cc
data/lib/admitad.rb CHANGED
@@ -71,48 +71,4 @@ module Admitad
71
71
  request = create_json(https.request(request).read_body.force_encoding('utf-8'))
72
72
  @action_data = request['results']
73
73
  end
74
- def rec_user_actions
75
- sub_id = cookies[:subid_data]
76
- sub_id.each do |client|
77
- next if client['subid'] == ''
78
- begin
79
- @client = User.find(client['subid']) if User.find(client['subid']).present?
80
- transaction_params = params.permit(:total).merge(user_id: client['subid'], offer_id: 1, status: 0)
81
- @transaction = Transaction.find_by(transaction_params.except(:status, :total))
82
- if @transaction.present?
83
- @transaction.total = client['payment_sum_open']
84
- @transaction.status = 0
85
- @transaction.save
86
- else
87
- Transaction.create(transaction_params.merge(total: client['payment_sum_open']))
88
- end
89
- rescue ActiveRecord::RecordNotFound
90
- next
91
- end
92
- end
93
- end
94
-
95
- def rec_user_data
96
- sub_id = cookies[:subid_data]
97
- sub_id.each do |client|
98
- next if client['subid'] == ''
99
- begin
100
- @client = User.find(client['subid']) if User.find(client['subid']).present?
101
- transaction_params = params.permit(:total).merge(user_id: client['subid'], offer_id: 1, status: 0)
102
- @transaction = Transaction.find_by(transaction_params.except(:status, :total))
103
- if @transaction.present?
104
- @transaction.total = client['payment_sum_open']
105
- @transaction.status = 0
106
- @transaction.save
107
- else
108
- Transaction.create(transaction_params.merge(total: client['payment_sum_open']))
109
- end
110
- rescue ActiveRecord::RecordNotFound
111
- next
112
- end
113
- end
114
- end
115
-
116
-
117
-
118
- end
74
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: admidat_query
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - cruelRamp