wedding_on_rails 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: 0424c8304c40d402a85b65fb42388efc27265c0c
4
- data.tar.gz: f5b63f63900c30ccf20667c620b8892a923b6635
3
+ metadata.gz: 649f2857e038cd37eaa1d2175f42ac6df3780a73
4
+ data.tar.gz: ca92ef43c916e5b9672d800694c2aeeb1bb01c63
5
5
  SHA512:
6
- metadata.gz: abe1f99f2de19af6795d357c457ddda2c5c554c65f64ad51a7cfc30e5d3b8c34913f8ec1eb7bec643ebd74615eb2c4263c084f0ab3d11a38ee02722f7bcedb98
7
- data.tar.gz: 6fa77b2db811c9b0d94d8fcbb278af770c90cb7afa6c4f5b94c8fb37364745ac5cb0474cd8598a64b02ef68810b3e1950748305cf09f6b3939487a3fc3f99e77
6
+ metadata.gz: be842ccf6a732e78be80f7db897f12fd72b82e677e09fb5393a01983e7729baaceb68b385c7379379fc645a9b8bac25b76ddcc4f09376e6d99aea736427fa241
7
+ data.tar.gz: 4ebf26a0808cde7a0b2ac79911eecb462decad94e40bc0e50ebc6551bdc557a64b3b245ddbdf51f96e7ae122aa6f8b5e6ed9844e3a1c37d2754a1dbf0cacc636
@@ -1,6 +1,17 @@
1
- = wedding_on_rails
1
+ # wedding-on-rails
2
2
 
3
- Describe your project here
3
+ ### Install
4
4
 
5
- :include:wedding_on_rails.rdoc
5
+ ```
6
+ $ gem install wedding_on_rails
7
+ ```
6
8
 
9
+ ### Usage
10
+
11
+ ```
12
+ $ wedding_on_rails rsvp
13
+ ```
14
+
15
+ ### Contributing
16
+
17
+ Contributions are welcome, please follow [GitHub Flow](https://guides.github.com/introduction/flow/index.html)
@@ -41,7 +41,7 @@ command :rsvp do |c|
41
41
  c.flag :f
42
42
  c.action do |global_options,options,args|
43
43
 
44
- uri = URI('http://hitched.it/events/1/groups/1/guests')
44
+ uri = URI('http://hitched.it/events/1/guests.json')
45
45
  http = Net::HTTP.new(uri.host, uri.port)
46
46
  req = Net::HTTP::Get.new(uri)
47
47
  guests = JSON.parse(http.request(req).body)
@@ -84,7 +84,7 @@ command :rsvp do |c|
84
84
  menu.choices("No sorry I can't make it") { new_rsvp = false }
85
85
  end
86
86
 
87
- uri = URI('http://hitched.it/events/1/groups/1/guests/1')
87
+ uri = URI("http://hitched.it/events/1/guests/#{guest["id"]}.json")
88
88
  http = Net::HTTP.new(uri.host, uri.port)
89
89
  data = { "guest[rsvp]" => new_rsvp }
90
90
  body = URI.encode_www_form(data)
@@ -1,3 +1,3 @@
1
1
  module WeddingOnRails
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: wedding_on_rails
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
  - Adam Butler