expresspigeon-ruby 0.0.3 → 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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/expresspigeon-ruby.rb +3 -4
- data/lib/{express_pigeon → expresspigeon-ruby}/auto_responders.rb +0 -0
- data/lib/expresspigeon-ruby/lists.rb +1 -1
- data/lib/expresspigeon-ruby/{meta_hash.rb → meta_response.rb} +3 -3
- data/lib/expresspigeon-ruby/version.rb +1 -1
- metadata +3 -4
- data/expresspigeon-ruby-0.0.2.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fdee9d24b11ab2c1c1ad244b1151779840503e5
|
4
|
+
data.tar.gz: 701bc9988808df03e689942bdef6466c66f7c426
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3928a3f4126fa3d3520de782de5a8e0cf654c5ef1075c432afd55d71930733bd38d17ab6cd7b4954c79666f77af76b5998dcd47353614816e309f821bdc65309
|
7
|
+
data.tar.gz: 9175f1a748d3b9497fc1152183a6af2637f11854d62d60fc87587f672869de58ee0e43b68ed623b555964fef757526fdeafe07729a8ae168993b72d2ee0c6f68
|
data/Gemfile.lock
CHANGED
data/lib/expresspigeon-ruby.rb
CHANGED
@@ -58,7 +58,7 @@ module ExpressPigeon
|
|
58
58
|
end
|
59
59
|
parsed = JSON.parse(resp.body)
|
60
60
|
if parsed.kind_of? Hash
|
61
|
-
|
61
|
+
MetaResponse.new parsed
|
62
62
|
else
|
63
63
|
parsed
|
64
64
|
end
|
@@ -112,11 +112,10 @@ module ExpressPigeon
|
|
112
112
|
|
113
113
|
end
|
114
114
|
|
115
|
-
require_relative 'expresspigeon-ruby/
|
115
|
+
require_relative 'expresspigeon-ruby/meta_response'
|
116
116
|
require_relative 'expresspigeon-ruby/lists'
|
117
117
|
require_relative 'expresspigeon-ruby/campaigns'
|
118
118
|
require_relative 'expresspigeon-ruby/contacts'
|
119
119
|
require_relative 'expresspigeon-ruby/messages'
|
120
120
|
require_relative 'expresspigeon-ruby/templates'
|
121
|
-
|
122
|
-
require_relative 'express_pigeon/auto_responders'
|
121
|
+
require_relative 'expresspigeon-ruby/auto_responders'
|
File without changes
|
@@ -1,12 +1,12 @@
|
|
1
1
|
module ExpressPigeon
|
2
|
-
class
|
2
|
+
class MetaResponse
|
3
|
+
|
3
4
|
def initialize(delegate)
|
4
|
-
super
|
5
5
|
@delegate = delegate
|
6
6
|
@delegate.each_key do |k|
|
7
7
|
v = @delegate[k] # lets go only one level down for now
|
8
8
|
if v.kind_of? Hash
|
9
|
-
@delegate[k] =
|
9
|
+
@delegate[k] = MetaResponse.new(v)
|
10
10
|
end
|
11
11
|
end
|
12
12
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: expresspigeon-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ipolevoy
|
@@ -53,15 +53,14 @@ files:
|
|
53
53
|
- LICENSE.txt
|
54
54
|
- README.md
|
55
55
|
- Rakefile
|
56
|
-
- expresspigeon-ruby-0.0.2.gem
|
57
56
|
- expresspigeon-ruby.gemspec
|
58
|
-
- lib/express_pigeon/auto_responders.rb
|
59
57
|
- lib/expresspigeon-ruby.rb
|
58
|
+
- lib/expresspigeon-ruby/auto_responders.rb
|
60
59
|
- lib/expresspigeon-ruby/campaigns.rb
|
61
60
|
- lib/expresspigeon-ruby/contacts.rb
|
62
61
|
- lib/expresspigeon-ruby/lists.rb
|
63
62
|
- lib/expresspigeon-ruby/messages.rb
|
64
|
-
- lib/expresspigeon-ruby/
|
63
|
+
- lib/expresspigeon-ruby/meta_response.rb
|
65
64
|
- lib/expresspigeon-ruby/templates.rb
|
66
65
|
- lib/expresspigeon-ruby/version.rb
|
67
66
|
- spec/campaigns_spec.rb
|
Binary file
|