inbox 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/inbox.gemspec +26 -2
  4. data/lib/draft.rb +2 -1
  5. metadata +114 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 066c3c8d975efa84261f5a3662b9b5edbac20720
4
- data.tar.gz: 8e3a86ca4e62a8283c260f62172823c8fd595457
3
+ metadata.gz: dcac9784992c077511c5edbb81053fba4cce7764
4
+ data.tar.gz: ba3dd368b5d4966d6814e6d4ba0b5d9f3707a3f1
5
5
  SHA512:
6
- metadata.gz: dbf83648e4b7ecd211713d393164108e0a71af6a41a4cc278d750f147e871d02e94f5c9d3f6031a01b7f3b9cd89808bce81b9be6903032e31b1bbe2f464364de
7
- data.tar.gz: d88e9c6ac927ca0d4726c558d97c9381fb2d56c1f15dbbd2d5acda276718468c02b76d09282810d3d92e999f87b70172fb5821befbbe6cd0f53b708f13e3c285
6
+ metadata.gz: 554bd2b31a48941561050f4a367a0c475abd3325dc52f0b79105cb8929ceb4e896fa645d613592d9a6467537013dedf41ff3d1aecbb4d3316bded344c8c29b13
7
+ data.tar.gz: 8dbf3f72b76af18d543fbf552535ca351fae83b72dac87d2fcb621a7ac3c0f5c39ae4487ad9398f7e54e33ca6ba74455600819a68ee19341f68592457accb27d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
data/inbox.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "inbox"
8
- s.version = "0.4.0"
8
+ s.version = "0.4.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ben Gotow"]
12
- s.date = "2014-09-08"
12
+ s.date = "2014-09-09"
13
13
  s.description = "Gem for interacting with the Inbox API that allows you to create and publish one-page websites, subscribe to web hooks and receive events when those pages are interacted with. Visit http://www.populr.me/ for more information. "
14
14
  s.email = "ben@inboxapp.com"
15
15
  s.extra_rdoc_files = [
@@ -78,6 +78,14 @@ Gem::Specification.new do |s|
78
78
  s.add_development_dependency(%q<pry>, [">= 0"])
79
79
  s.add_development_dependency(%q<pry-nav>, [">= 0"])
80
80
  s.add_development_dependency(%q<pry-stack_explorer>, [">= 0"])
81
+ s.add_development_dependency(%q<rspec>, [">= 0"])
82
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
83
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
84
+ s.add_development_dependency(%q<bundler>, [">= 1.3.5"])
85
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
86
+ s.add_development_dependency(%q<pry>, [">= 0"])
87
+ s.add_development_dependency(%q<pry-nav>, [">= 0"])
88
+ s.add_development_dependency(%q<pry-stack_explorer>, [">= 0"])
81
89
  else
82
90
  s.add_dependency(%q<inbox>, [">= 0"])
83
91
  s.add_dependency(%q<rest-client>, ["~> 1.6"])
@@ -105,6 +113,14 @@ Gem::Specification.new do |s|
105
113
  s.add_dependency(%q<pry>, [">= 0"])
106
114
  s.add_dependency(%q<pry-nav>, [">= 0"])
107
115
  s.add_dependency(%q<pry-stack_explorer>, [">= 0"])
116
+ s.add_dependency(%q<rspec>, [">= 0"])
117
+ s.add_dependency(%q<shoulda>, [">= 0"])
118
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
119
+ s.add_dependency(%q<bundler>, [">= 1.3.5"])
120
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
121
+ s.add_dependency(%q<pry>, [">= 0"])
122
+ s.add_dependency(%q<pry-nav>, [">= 0"])
123
+ s.add_dependency(%q<pry-stack_explorer>, [">= 0"])
108
124
  end
109
125
  else
110
126
  s.add_dependency(%q<inbox>, [">= 0"])
@@ -133,6 +149,14 @@ Gem::Specification.new do |s|
133
149
  s.add_dependency(%q<pry>, [">= 0"])
134
150
  s.add_dependency(%q<pry-nav>, [">= 0"])
135
151
  s.add_dependency(%q<pry-stack_explorer>, [">= 0"])
152
+ s.add_dependency(%q<rspec>, [">= 0"])
153
+ s.add_dependency(%q<shoulda>, [">= 0"])
154
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
155
+ s.add_dependency(%q<bundler>, [">= 1.3.5"])
156
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
157
+ s.add_dependency(%q<pry>, [">= 0"])
158
+ s.add_dependency(%q<pry-nav>, [">= 0"])
159
+ s.add_dependency(%q<pry-stack_explorer>, [">= 0"])
136
160
  end
137
161
  end
138
162
 
data/lib/draft.rb CHANGED
@@ -4,6 +4,7 @@ module Inbox
4
4
  class Draft < Message
5
5
 
6
6
  attr_accessor :thread_id
7
+ attr_accessor :version
7
8
  attr_accessor :state
8
9
 
9
10
  def attach(file)
@@ -15,7 +16,7 @@ module Inbox
15
16
  save! unless @id
16
17
 
17
18
  url = @_api.url_for_path("/n/#{@namespace_id}/send")
18
- data = {:draft_id => @id}
19
+ data = {:draft_id => @id, :version => @version}
19
20
 
20
21
  ::RestClient.post(url, data.to_json, :content_type => :json) do |response, request, result|
21
22
  Inbox.interpret_response(result, response, :expected_class => Object)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Gotow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-08 00:00:00.000000000 Z
11
+ date: 2014-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inbox
@@ -374,6 +374,118 @@ dependencies:
374
374
  - - '>='
375
375
  - !ruby/object:Gem::Version
376
376
  version: '0'
377
+ - !ruby/object:Gem::Dependency
378
+ name: rspec
379
+ requirement: !ruby/object:Gem::Requirement
380
+ requirements:
381
+ - - '>='
382
+ - !ruby/object:Gem::Version
383
+ version: '0'
384
+ type: :development
385
+ prerelease: false
386
+ version_requirements: !ruby/object:Gem::Requirement
387
+ requirements:
388
+ - - '>='
389
+ - !ruby/object:Gem::Version
390
+ version: '0'
391
+ - !ruby/object:Gem::Dependency
392
+ name: shoulda
393
+ requirement: !ruby/object:Gem::Requirement
394
+ requirements:
395
+ - - '>='
396
+ - !ruby/object:Gem::Version
397
+ version: '0'
398
+ type: :development
399
+ prerelease: false
400
+ version_requirements: !ruby/object:Gem::Requirement
401
+ requirements:
402
+ - - '>='
403
+ - !ruby/object:Gem::Version
404
+ version: '0'
405
+ - !ruby/object:Gem::Dependency
406
+ name: rdoc
407
+ requirement: !ruby/object:Gem::Requirement
408
+ requirements:
409
+ - - ~>
410
+ - !ruby/object:Gem::Version
411
+ version: '3.12'
412
+ type: :development
413
+ prerelease: false
414
+ version_requirements: !ruby/object:Gem::Requirement
415
+ requirements:
416
+ - - ~>
417
+ - !ruby/object:Gem::Version
418
+ version: '3.12'
419
+ - !ruby/object:Gem::Dependency
420
+ name: bundler
421
+ requirement: !ruby/object:Gem::Requirement
422
+ requirements:
423
+ - - '>='
424
+ - !ruby/object:Gem::Version
425
+ version: 1.3.5
426
+ type: :development
427
+ prerelease: false
428
+ version_requirements: !ruby/object:Gem::Requirement
429
+ requirements:
430
+ - - '>='
431
+ - !ruby/object:Gem::Version
432
+ version: 1.3.5
433
+ - !ruby/object:Gem::Dependency
434
+ name: jeweler
435
+ requirement: !ruby/object:Gem::Requirement
436
+ requirements:
437
+ - - ~>
438
+ - !ruby/object:Gem::Version
439
+ version: 1.8.4
440
+ type: :development
441
+ prerelease: false
442
+ version_requirements: !ruby/object:Gem::Requirement
443
+ requirements:
444
+ - - ~>
445
+ - !ruby/object:Gem::Version
446
+ version: 1.8.4
447
+ - !ruby/object:Gem::Dependency
448
+ name: pry
449
+ requirement: !ruby/object:Gem::Requirement
450
+ requirements:
451
+ - - '>='
452
+ - !ruby/object:Gem::Version
453
+ version: '0'
454
+ type: :development
455
+ prerelease: false
456
+ version_requirements: !ruby/object:Gem::Requirement
457
+ requirements:
458
+ - - '>='
459
+ - !ruby/object:Gem::Version
460
+ version: '0'
461
+ - !ruby/object:Gem::Dependency
462
+ name: pry-nav
463
+ requirement: !ruby/object:Gem::Requirement
464
+ requirements:
465
+ - - '>='
466
+ - !ruby/object:Gem::Version
467
+ version: '0'
468
+ type: :development
469
+ prerelease: false
470
+ version_requirements: !ruby/object:Gem::Requirement
471
+ requirements:
472
+ - - '>='
473
+ - !ruby/object:Gem::Version
474
+ version: '0'
475
+ - !ruby/object:Gem::Dependency
476
+ name: pry-stack_explorer
477
+ requirement: !ruby/object:Gem::Requirement
478
+ requirements:
479
+ - - '>='
480
+ - !ruby/object:Gem::Version
481
+ version: '0'
482
+ type: :development
483
+ prerelease: false
484
+ version_requirements: !ruby/object:Gem::Requirement
485
+ requirements:
486
+ - - '>='
487
+ - !ruby/object:Gem::Version
488
+ version: '0'
377
489
  description: 'Gem for interacting with the Inbox API that allows you to create and
378
490
  publish one-page websites, subscribe to web hooks and receive events when those
379
491
  pages are interacted with. Visit http://www.populr.me/ for more information. '