catarse_monkeymail 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: deb390340c759808013f6f0e892f59024cd98eb0
4
- data.tar.gz: 9d9b80737a26891588c5e150301a39d9a8988644
3
+ metadata.gz: 99397ed3010ced18f6fb91ca072075f9cc72b9e9
4
+ data.tar.gz: 5b7f454aefd94f070dae77fc0919ba085f68a810
5
5
  SHA512:
6
- metadata.gz: 2165c734d2c88ef6f327c3b8bb11e5287e4d4e3455c323aca2b740d0bc58dbda6a662b5f3399fd7f7653339a9bcc5314910eb9d6f6cf559c13046f7ec7670c3d
7
- data.tar.gz: 9de109719e1f28c5673768acf1b4fff1765e543df90f425cd29eeeef1a04cc6aa67745b079b7389a61594f93d130fdb9f4c7cf097887fd36ef3d0652676c366f
6
+ metadata.gz: 094f40e3dcd4e1c3ac2973981818edf56d484c49890dd77b4aefddfb4b5c12dd654176bf4dfeae7fd54ce74246fd303520d7fa741530058aec85226c01faa2a0
7
+ data.tar.gz: 78e773435d458c011248257d4eeecc1202f6721232f7a081abdf8b92e57a4a8b9ed5e74329c1bdd78ed254906a1bf337415ad7507589dbf409cd05473e4b4628
data/README.md CHANGED
@@ -1,3 +1,37 @@
1
- = CatarseMonkeymail
1
+ # CatarseMonkeymail
2
2
 
3
- This project rocks and uses MIT-LICENSE.
3
+ Mailchimp 2.0 integration for Catarse[http://github.com/catarse/catarse]
4
+
5
+
6
+ ## Installation
7
+
8
+ Add into your Gemfile:
9
+
10
+ `gem 'catarse_monkeymail'`
11
+
12
+ or
13
+
14
+ `gem install catarse_monkeymail`
15
+
16
+
17
+ You need to have a Mailchimp API KEY and a List ID configured:
18
+
19
+ `CatarseSettings[:mailchimp_api_key] = 'YOUR_API_KEY'`
20
+
21
+ `CatarseSettings[:mailchimp_list_id] = 'YOUR_NEWSLETTER_LIST_ID'`
22
+
23
+
24
+ ### If you want to use the project mailchimp integration (when project is failed or successful we add the project owner to a separated list) you need to:
25
+
26
+ #### Add into config/application.rb
27
+
28
+ `config.active_record.observers = 'CatarseMonkeymail::MonkeyProjectObserver'`
29
+
30
+ #### Add theses configurations:
31
+
32
+ `CatarseSettings[:mailchimp_successful_projects_list] = 'YOUR_PROJECT_SUCCESSFUL_LIST_ID'`
33
+
34
+ `CatarseSettings[:mailchimp_failed_projects_list] = 'YOUR_PROJECT_FAILED_LIST_ID'`
35
+
36
+
37
+ This project rocks and uses MIT-LICENSE.
@@ -1,7 +1,9 @@
1
+ require 'mailchimp'
2
+
1
3
  module CatarseMonkeymail
2
4
  class MailchimpApi
3
5
  def self.start
4
- @mailchimp ||= Mailchimp::API.new(::CatarseSettings[:mailchimp_api_key])
6
+ @mailchimp ||= ::Mailchimp::API.new(::CatarseSettings[:mailchimp_api_key])
5
7
  end
6
8
  end
7
9
  end
@@ -1,3 +1,3 @@
1
1
  module CatarseMonkeymail
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: catarse_monkeymail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antônio Roberto Silva