ractive_campaign 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: a1f97cdac78234978c3b5e8d87359883ba8844d646fd7ed2d0c41a50168537f4
4
- data.tar.gz: 55f1c00eb4a214570eb4a9d97c43e62e0d396f725769b81a62f096d111902315
3
+ metadata.gz: 20846b5cddd766958b09faca5a0554802c8f031f7a44c25dd6ef33bed8b6b066
4
+ data.tar.gz: 5b82e51039ee6a7aaa8946ae64072c085719133b199d23740e295ede1e96b556
5
5
  SHA512:
6
- metadata.gz: a86d70655730f310016ba26ea518d0e53f461479de71cd9dd72e214c07c72b86983ed499b641eb3cb866d28724bdd88513464442e5cdd4244d5f076ac1fa7c86
7
- data.tar.gz: 5b76063e260e6df6d49854111b74f4192352d3ed2b0c3d81326644519510d64194def26f22da60bd8661966a78be0d83155288bc124d7a006d70e8dc8e0a6ead
6
+ metadata.gz: 5bec213cd9e222d45e65dc71bba599e35ceb30a10b6e70feb3927f7a008e76fb551de9a196c1d95a88be9597318ef9feda293be85ccf0d54964223f6f5f4128a
7
+ data.tar.gz: ffb849881717487e63908d4a916d3d884827f24e72ec29bdd5a24c0c6f4e75fc5af77f6f226338904a26034720c8270be7dbf5ea50169a118c95a0aef6459136
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ractive_campaign (0.1.1)
4
+ ractive_campaign (0.1.2)
5
5
  activemodel (~> 6.1.4)
6
- dry-configurable (~> 0.7.0)
6
+ dry-configurable (~> 0.12.1)
7
7
  faraday (~> 1.8.0)
8
8
  faraday_middleware (~> 1.2.0)
9
9
 
@@ -28,7 +28,10 @@ GEM
28
28
  rexml
29
29
  diff-lcs (1.4.4)
30
30
  dotenv (2.7.6)
31
- dry-configurable (0.7.0)
31
+ dry-configurable (0.12.1)
32
+ concurrent-ruby (~> 1.0)
33
+ dry-core (~> 0.5, >= 0.5.0)
34
+ dry-core (0.7.1)
32
35
  concurrent-ruby (~> 1.0)
33
36
  faraday (1.8.0)
34
37
  faraday-em_http (~> 1.0)
@@ -88,7 +91,7 @@ GEM
88
91
  diff-lcs (>= 1.2.0, < 2.0)
89
92
  rspec-support (~> 3.10.0)
90
93
  rspec-support (3.10.3)
91
- rubocop (1.22.3)
94
+ rubocop (1.23.0)
92
95
  parallel (~> 1.10)
93
96
  parser (>= 3.0.0.0)
94
97
  rainbow (>= 2.2.2, < 4.0)
data/README.md CHANGED
@@ -7,7 +7,7 @@ Simple wrapper for ActiveCampaign API v3
7
7
  Add this line to your application's Gemfile:
8
8
 
9
9
  ```ruby
10
- gem 'ractive_campaign'
10
+ gem "ractive_campaign"
11
11
  ```
12
12
 
13
13
  And then execute:
@@ -37,11 +37,15 @@ end
37
37
 
38
38
  ```ruby
39
39
  # new
40
- harry = ActiveCampaign::Contact.new firstName: "Harry", lastName: "Potter", email: "potter.hurray@hogwash.com"
40
+ harry = ActiveCampaign::Contact.new firstName: "Harry",
41
+ lastName: "Potter",
42
+ email: "potter.hurray@hogwash.com"
41
43
  harry.save
42
44
 
43
45
  # create
44
- hermione = ActiveCampaign::Contact.new firstName: "Hermione", lastName: "Granger", email: "mione@drtooth.com"
46
+ hermione = ActiveCampaign::Contact.new firstName: "Hermione",
47
+ lastName: "Granger",
48
+ email: "mione@drtooth.com"
45
49
 
46
50
  # update
47
51
  ron = ActiveCampaign::Contact.create email: "ron1988@hogwash.com", lastName: "Weasley"
@@ -52,7 +56,7 @@ ron.save
52
56
  #### Tag
53
57
 
54
58
  ```ruby
55
- ActiveCampaign::Contact.create tag: "hogwarts"
59
+ ActiveCampaign::Tag.create tag: "hogwarts"
56
60
  ```
57
61
 
58
62
  #### Contact tags
@@ -69,7 +73,7 @@ harry.remove_tag "hogwarts"
69
73
 
70
74
  ## Contributing
71
75
 
72
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ractive_campaign. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/ractive_campaign/blob/master/CODE_OF_CONDUCT.md).
76
+ Bug reports and pull requests are welcome on GitHub at https://github.com/wedsonlima/ractive_campaign. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/ractive_campaign/blob/master/CODE_OF_CONDUCT.md).
73
77
 
74
78
  ## License
75
79
 
@@ -4,8 +4,8 @@ module ActiveCampaign
4
4
  #
5
5
  # @example ContactTags
6
6
  #
7
- # contact = ActiveCampaign::Contact.find(email: "contact-email@mail.com")
8
- # tag = ActiveCampaign::Tag.find_by(tag: "tag-name")
7
+ # contact = ActiveCampaign::Contact.find(1)
8
+ # tag = ActiveCampaign::Tag.find(1)
9
9
  #
10
10
  # ActiveCampaing::ContactTag.create contact: contact, tag: tag
11
11
  #
@@ -2,46 +2,10 @@
2
2
 
3
3
  module ActiveCampaign
4
4
  class List < Model # :nodoc:
5
- define_attributes :stringid,
6
- :userid,
7
- :name,
8
- :p_use_tracking,
9
- :p_use_analytics_read,
10
- :p_use_analytics_link,
11
- :p_use_twitter,
12
- :p_use_facebook,
13
- :p_embed_image,
14
- :p_use_captcha,
15
- :send_last_broadcast,
16
- :private,
17
- :analytics_domains,
18
- :analytics_source,
19
- :analytics_ua,
20
- :twitter_token,
21
- :twitter_token_secret,
22
- :facebook_session,
23
- :carboncopy,
24
- :subscription_notify,
25
- :unsubscription_notify,
26
- :require_name,
27
- :get_unsubscribe_reason,
28
- :to_name,
29
- :optinoptout,
30
- :sender_name,
31
- :sender_addr1,
32
- :sender_addr2,
33
- :sender_city,
34
- :sender_state,
35
- :sender_zip,
36
- :sender_country,
37
- :sender_phone,
5
+ define_attributes :name,
6
+ :stringid,
38
7
  :sender_url,
39
8
  :sender_reminder,
40
- :fulladdress,
41
- :optinmessageid,
42
- :optoutconf,
43
- :deletestamp,
44
- :udate,
45
9
  :user
46
10
  end
47
11
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveCampaign
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ractive_campaign
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wedson Lima
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-16 00:00:00.000000000 Z
11
+ date: 2021-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.7.0
33
+ version: 0.12.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.7.0
40
+ version: 0.12.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: faraday
43
43
  requirement: !ruby/object:Gem::Requirement