reshape 0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 97ce0c036d8b1e1ee167623535faab9d3edec236
4
- data.tar.gz: 821216ca55ba7fb15f8902a934b572ce88594a8c
3
+ metadata.gz: f972c334808f97a458c38892049ce1b440c96acd
4
+ data.tar.gz: 1b1073e896528f9210225f166ea62535a8004fa5
5
5
  SHA512:
6
- metadata.gz: a1fa673a17b7d6f7bf484a9669226c5c22a542b8a328def3169a66fe707d26cce2d5d8e2f795d4d77d32c8780bcfa72525a3463303e2dfd0cb20b6bcf777ead6
7
- data.tar.gz: 3ffd941a5c3ba8c568f0d06ccfe6fac9a487ae0ad6a1d3b4870e2ea06090675e212121d6436ddece75a6e7b63740fa97929d1c074319fc446d226e5864afae19
6
+ metadata.gz: b3c8ae33f59d13440e9414afde5ebf2abc8ffa79c3bce2b4aea0f0e768652da344ffedd7a9dfc287f8f53349d566f4d45b360db5d02ef135905a044e5dcbfeed
7
+ data.tar.gz: 18190ee325d0ea65cf810872407d3606d762f568023aa8ae970cac0f1157accf9ec6aceb08e6b19e3785be5ed8b0266b2dd3684256a5683f227c3fa888038497
data/examples/config.ru CHANGED
@@ -4,8 +4,8 @@ require 'omniauth-shapeways'
4
4
  require 'reshape'
5
5
 
6
6
  # Get these keys from http://developer.shapeways.com
7
- ENV['CONSUMER_KEY'] = '61b13483fc0caf31f986026ce2add918d3fa9377'
8
- ENV['CONSUMER_SECRET'] = 'd0482b1653e67cfd25057c257eedd48a5cb8b66e'
7
+ ENV['SHAPEWAYS_CONSUMER_KEY'] = ''
8
+ ENV['SHAPEWAYS_CONSUMER_SECRET'] = ''
9
9
 
10
10
  # To run this example:
11
11
  # $ bundle install
@@ -18,12 +18,19 @@ class App < Sinatra::Base
18
18
 
19
19
  get '/auth/:provider/callback' do
20
20
  auth = request.env['omniauth.auth']
21
+
22
+ puts '::::'
23
+ puts auth.credentials.token
24
+ puts auth.credentials.secret
25
+
21
26
  client = Reshape::Client.new({
22
- consumer_token: ENV['SHAPEWAYS_CONSUMER_TOKEN'],
27
+ consumer_token: ENV['SHAPEWAYS_CONSUMER_KEY'],
23
28
  consumer_secret: ENV['SHAPEWAYS_CONSUMER_SECRET'],
24
29
  oauth_token: auth.credentials.token,
25
- oauth_secret: auth.credentials.secret
30
+ oauth_secret: auth.credentials.secret,
31
+ proxy: 'http://localhost:8888'
26
32
  })
33
+
27
34
  materials = client.materials
28
35
 
29
36
  erb "<h1>#{params[:provider]}</h1>
@@ -39,7 +46,7 @@ end
39
46
  use Rack::Session::Cookie
40
47
 
41
48
  use OmniAuth::Builder do
42
- provider :shapeways, ENV['CONSUMER_KEY'], ENV['CONSUMER_SECRET']
49
+ provider :shapeways, ENV['SHAPEWAYS_CONSUMER_KEY'], ENV['SHAPEWAYS_CONSUMER_SECRET']
43
50
  end
44
51
 
45
52
  run App.new
@@ -1,3 +1,3 @@
1
1
  module Reshape
2
- VERSION = '0.1'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reshape
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Barton