uni_sender 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -15,3 +15,5 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ *~
19
+
data/README.rdoc ADDED
@@ -0,0 +1,48 @@
1
+ = UniSender
2
+
3
+ uni_sender gem provides full dev kit to access to api of unisender.com.ua. It uses method_missing method to provide flexible functionality, so all methods will return hash that represents responce of server.
4
+
5
+ == Installation
6
+
7
+ If you use bundler then add this
8
+
9
+ gem 'uni_sender'
10
+
11
+ Or you can install it via gem command
12
+
13
+ gem install uni_sender
14
+
15
+ == Getting Started
16
+
17
+ Gem provide class UniSender::Client for accessing server. For creating client you need you personal key
18
+
19
+ client = UniSender::Client.new('your secret key')
20
+
21
+ Gem provides non-sensitive style, so action getLits will equal to get_lists or Get_List
22
+
23
+ For getting contacts call client.exportContacts(or export_clients ;) ). If request will be accepted client return hash in format
24
+
25
+ {'result'=>{'field_names'=>[...], 'data'=>[[...], [...], ... ]}
26
+
27
+ Before sent action to server gem process all parameters. If it will be String gem decode it to url standarts - no latin symbols will changed to equal codes.For example:
28
+
29
+ 'Прекрасный день' will be "%D0%9F%D1%80%D0%B5%D0%BA%D1%80%D0%B0%D1%81%D0%BD%D1%8B%D0%B9%20%D0%B4%D0%B5%D0%BD%D1%8C"
30
+
31
+ If parameter are array, uni_sender will join contents by ","(comma), also process all item like string
32
+
33
+ :sample => [233, 'foo', 545] will sample=233,foo,545
34
+
35
+ Hash will decode to variables of 2 level, for example:
36
+
37
+ :friend=>{:name=>"Роман", :car=>"BMW"} will be friend[name]=%D0%A0%D0%BE%D0%BC%D0%B0%D0%BD&friend[car]=BMW
38
+
39
+ == Dependencies
40
+
41
+ That gem supports ruby 1.8+
42
+
43
+ == Wikis
44
+
45
+ For more information about actions and returned answers please visit:
46
+
47
+ * {UniSender Api list}[http://unisender.com.ua/help/api]
48
+
@@ -1,3 +1,3 @@
1
1
  module UniSender
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/uni_sender.rb CHANGED
@@ -18,15 +18,6 @@ module UniSender
18
18
  end
19
19
  end
20
20
 
21
- def subscribe(params)
22
- params['request_ip'] ||= client_ip
23
- return default_request('subscribe', params)
24
- end
25
-
26
- def client_ip
27
- @client_ip || '0.0.0.0'
28
- end
29
-
30
21
  def locale
31
22
  @locale || 'en'
32
23
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uni_sender
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sergey Pchelincev
@@ -72,6 +72,7 @@ extra_rdoc_files: []
72
72
  files:
73
73
  - .gitignore
74
74
  - Gemfile
75
+ - README.rdoc
75
76
  - Rakefile
76
77
  - lib/uni_sender.rb
77
78
  - lib/uni_sender/camelize.rb
@@ -81,7 +82,6 @@ files:
81
82
  - spec/functionality/managing_email_spec.rb
82
83
  - spec/functionality/managing_list_spec.rb
83
84
  - spec/spec.opt
84
- - spec/spec.opt~
85
85
  - spec/spec_helper.rb
86
86
  - uni_sender.gemspec
87
87
  has_rdoc: true
data/spec/spec.opt~ DELETED
File without changes