pocketbeuter 0.0.1

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.
@@ -0,0 +1,9 @@
1
+ ---
2
+ options:
3
+ default_account: foo
4
+ accounts:
5
+ foo:
6
+ consumer_key: 11111-8647bd0425d5a4541e07dfcf
7
+ redirect_uri: https://github.com/pietrushnic/pocketbeuter/blob/master/auth.md
8
+ access_token: 13ea4f22-b153-d26a-58fe-77777
9
+ request_token: 13ea4f22-1111-d26a-58fe-77777
@@ -0,0 +1,9 @@
1
+ ---
2
+ options:
3
+ default_account: bar
4
+ accounts:
5
+ foo:
6
+ consumer_key: 77777-8647bd0425d5a4541e07dfcf
7
+ redirect_uri: https://github.com/pietrushnic/pocketbeuter/blob/master/auth.md
8
+ access_token: 13ea4f22-b153-d26a-58fe-77777
9
+ request_token: 13ea4f22-1111-d26a-58fe-77777
@@ -0,0 +1,9 @@
1
+ ---
2
+ options: {}
3
+ account:
4
+ foo:
5
+ consumer_key: foo1337
6
+ redirect_uri: foo1337
7
+ code: foobar42
8
+ access_token: barfoo42
9
+ username: joedoe
@@ -0,0 +1,6 @@
1
+ ---
2
+ options: {}
3
+ account:
4
+ foo:
5
+ access_token: 1234-12345567889
6
+ redirect_uri: http://google.com
@@ -0,0 +1,7 @@
1
+ ---
2
+ account:
3
+ foo:
4
+ consumer_key: 11111-8647bd0425d5a4541e07dfcf
5
+ redirect_uri: https://github.com/pietrushnic/pocketbeuter/blob/master/auth.md
6
+ access_token: 13ea4f22-b153-d26a-58fe-77777
7
+ request_token: 13ea4f22-1111-d26a-58fe-77777
@@ -0,0 +1,9 @@
1
+ ---
2
+ accounts:
3
+ foo:
4
+ consumer_key: 77777-8647bd0425d5a4541e07dfcf
5
+ redirect_uri: https://github.com/pietrushnic/pocketbeuter/blob/master/auth.md
6
+ access_token: 13ea4f22-b153-d26a-58fe-77777
7
+ request_token: 13ea4f22-1111-d26a-58fe-77777
8
+ options:
9
+ default_account: foo
@@ -0,0 +1,6 @@
1
+ ---
2
+ options:
3
+ abc:
4
+ - foo
5
+ cde:
6
+ - bar
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://google.pl/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - '*/*'
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 301
19
+ message: Moved Permanently
20
+ headers:
21
+ Location:
22
+ - http://www.google.pl/
23
+ Content-Type:
24
+ - text/html; charset=UTF-8
25
+ Date:
26
+ - Fri, 10 Jan 2014 22:58:00 GMT
27
+ Expires:
28
+ - Sun, 09 Feb 2014 22:58:00 GMT
29
+ Cache-Control:
30
+ - public, max-age=2592000
31
+ Server:
32
+ - gws
33
+ Content-Length:
34
+ - '218'
35
+ X-Xss-Protection:
36
+ - 1; mode=block
37
+ X-Frame-Options:
38
+ - SAMEORIGIN
39
+ Alternate-Protocol:
40
+ - 80:quic
41
+ body:
42
+ encoding: UTF-8
43
+ string: "<HTML><HEAD><meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\">\n<TITLE>301
44
+ Moved</TITLE></HEAD><BODY>\n<H1>301 Moved</H1>\nThe document has moved\n<A
45
+ HREF=\"http://www.google.pl/\">here</A>.\r\n</BODY></HTML>\r\n"
46
+ http_version:
47
+ recorded_at: Fri, 10 Jan 2014 22:58:00 GMT
48
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,103 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://getpocket.com/v3/oauth/request
6
+ body:
7
+ encoding: US-ASCII
8
+ string: consumer_key=foo1337&redirect_uri=foo1337
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - '*/*'
14
+ User-Agent:
15
+ - Ruby
16
+ Content-Type:
17
+ - application/x-www-form-urlencoded
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - private
25
+ Content-Type:
26
+ - application/x-www-form-urlencoded
27
+ Date:
28
+ - Fri, 10 Jan 2014 23:44:26 GMT
29
+ Expires:
30
+ - Thu, 19 Nov 1981 08:52:00 GMT
31
+ P3p:
32
+ - policyref="/w3c/p3p.xml", CP="ALL CURa ADMa DEVa OUR IND UNI COM NAV INT STA
33
+ PRE"
34
+ Pragma:
35
+ - no-cache
36
+ Server:
37
+ - Apache
38
+ Set-Cookie:
39
+ - PHPSESSID=a9qfttiejud5mtbh1n0pnatic1; path=/
40
+ Status:
41
+ - 200 OK
42
+ X-Source:
43
+ - Pocket
44
+ Content-Length:
45
+ - '35'
46
+ Connection:
47
+ - keep-alive
48
+ body:
49
+ encoding: UTF-8
50
+ string: code=foobar42
51
+ http_version:
52
+ recorded_at: Fri, 10 Jan 2014 23:44:26 GMT
53
+ - request:
54
+ method: post
55
+ uri: https://getpocket.com/v3/oauth/authorize
56
+ body:
57
+ encoding: US-ASCII
58
+ string: consumer_key=foo1337&code=foobar42
59
+ headers:
60
+ Accept-Encoding:
61
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
62
+ Accept:
63
+ - '*/*'
64
+ User-Agent:
65
+ - Ruby
66
+ Content-Type:
67
+ - application/x-www-form-urlencoded
68
+ response:
69
+ status:
70
+ code: 200
71
+ message: OK
72
+ headers:
73
+ Cache-Control:
74
+ - private
75
+ Content-Type:
76
+ - application/x-www-form-urlencoded
77
+ Date:
78
+ - Fri, 10 Jan 2014 23:44:30 GMT
79
+ Expires:
80
+ - Thu, 19 Nov 1981 08:52:00 GMT
81
+ P3p:
82
+ - policyref="/w3c/p3p.xml", CP="ALL CURa ADMa DEVa OUR IND UNI COM NAV INT STA
83
+ PRE"
84
+ Pragma:
85
+ - no-cache
86
+ Server:
87
+ - Apache
88
+ Set-Cookie:
89
+ - PHPSESSID=8ohislhdlos9cq740034jc8hs0; path=/
90
+ Status:
91
+ - 200 OK
92
+ X-Source:
93
+ - Pocket
94
+ Content-Length:
95
+ - '64'
96
+ Connection:
97
+ - keep-alive
98
+ body:
99
+ encoding: UTF-8
100
+ string: access_token=barfoo42&username=joedoe
101
+ http_version:
102
+ recorded_at: Fri, 10 Jan 2014 23:44:30 GMT
103
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,53 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://getpocket.com/v3/oauth/authorize
6
+ body:
7
+ encoding: US-ASCII
8
+ string: consumer_key=21312-8647bd0425d5a4541e07dfcf&code=d410281d-5f95-f8f6-11cc-d81cc3
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - '*/*'
14
+ User-Agent:
15
+ - Ruby
16
+ Content-Type:
17
+ - application/x-www-form-urlencoded
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - private
25
+ Content-Type:
26
+ - application/x-www-form-urlencoded
27
+ Date:
28
+ - Sat, 04 Jan 2014 00:29:09 GMT
29
+ Expires:
30
+ - Thu, 19 Nov 1981 08:52:00 GMT
31
+ P3p:
32
+ - policyref="/w3c/p3p.xml", CP="ALL CURa ADMa DEVa OUR IND UNI COM NAV INT STA
33
+ PRE"
34
+ Pragma:
35
+ - no-cache
36
+ Server:
37
+ - Apache
38
+ Set-Cookie:
39
+ - PHPSESSID=5qr2qf5gseavbbrv6kaohcf8m6; path=/
40
+ Status:
41
+ - 200 OK
42
+ X-Source:
43
+ - Pocket
44
+ Content-Length:
45
+ - '64'
46
+ Connection:
47
+ - keep-alive
48
+ body:
49
+ encoding: UTF-8
50
+ string: access_token=13ea4f22-b153-d26a-58fe-33c2cf&username=pietrushnic
51
+ http_version:
52
+ recorded_at: Sat, 04 Jan 2014 00:29:09 GMT
53
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,53 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://getpocket.com/v3/oauth/request
6
+ body:
7
+ encoding: US-ASCII
8
+ string: consumer_key=21312-8647bd0425d5a4541e07dfcf&redirect_uri=https%3A%2F%2Fgithub.com%2Fpietrushnic%2Fpocketbeuter%2Fblob%2Fmaster%2Fauth.md
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - '*/*'
14
+ User-Agent:
15
+ - Ruby
16
+ Content-Type:
17
+ - application/x-www-form-urlencoded
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - private
25
+ Content-Type:
26
+ - application/x-www-form-urlencoded
27
+ Date:
28
+ - Sat, 04 Jan 2014 00:29:01 GMT
29
+ Expires:
30
+ - Thu, 19 Nov 1981 08:52:00 GMT
31
+ P3p:
32
+ - policyref="/w3c/p3p.xml", CP="ALL CURa ADMa DEVa OUR IND UNI COM NAV INT STA
33
+ PRE"
34
+ Pragma:
35
+ - no-cache
36
+ Server:
37
+ - Apache
38
+ Set-Cookie:
39
+ - PHPSESSID=p8vh4l67prknrlq82fg10k04g1; path=/
40
+ Status:
41
+ - 200 OK
42
+ X-Source:
43
+ - Pocket
44
+ Content-Length:
45
+ - '35'
46
+ Connection:
47
+ - keep-alive
48
+ body:
49
+ encoding: UTF-8
50
+ string: code=d410281d-5f95-f8f6-11cc-d81cc3
51
+ http_version:
52
+ recorded_at: Sat, 04 Jan 2014 00:29:01 GMT
53
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://google.pl/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - '*/*'
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 301
19
+ message: Moved Permanently
20
+ headers:
21
+ Location:
22
+ - http://www.google.pl/
23
+ Content-Type:
24
+ - text/html; charset=UTF-8
25
+ Date:
26
+ - Fri, 10 Jan 2014 22:58:39 GMT
27
+ Expires:
28
+ - Sun, 09 Feb 2014 22:58:39 GMT
29
+ Cache-Control:
30
+ - public, max-age=2592000
31
+ Server:
32
+ - gws
33
+ Content-Length:
34
+ - '218'
35
+ X-Xss-Protection:
36
+ - 1; mode=block
37
+ X-Frame-Options:
38
+ - SAMEORIGIN
39
+ Alternate-Protocol:
40
+ - 80:quic
41
+ body:
42
+ encoding: UTF-8
43
+ string: "<HTML><HEAD><meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\">\n<TITLE>301
44
+ Moved</TITLE></HEAD><BODY>\n<H1>301 Moved</H1>\nThe document has moved\n<A
45
+ HREF=\"http://www.google.pl/\">here</A>.\r\n</BODY></HTML>\r\n"
46
+ http_version:
47
+ recorded_at: Fri, 10 Jan 2014 22:58:39 GMT
48
+ recorded_with: VCR 2.8.0
data/spec/helpers.rb ADDED
@@ -0,0 +1,3 @@
1
+ def fixtures_path
2
+ File.expand_path('../fixtures', __FILE__)
3
+ end
@@ -0,0 +1,26 @@
1
+ # This file was generated by the `rspec --init` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # Require this file using `require "spec_helper"` to ensure that it is only
4
+ # loaded once.
5
+ #
6
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
7
+ require 'webmock/rspec'
8
+ require 'vcr'
9
+
10
+ VCR.configure do |c|
11
+ c.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
12
+ c.hook_into :webmock
13
+ c.configure_rspec_metadata!
14
+ end
15
+
16
+ RSpec.configure do |config|
17
+ config.treat_symbols_as_metadata_keys_with_true_values = true
18
+ config.run_all_when_everything_filtered = true
19
+ config.filter_run :focus
20
+
21
+ # Run specs in random order to surface order dependencies. If you find an
22
+ # order dependency and want to debug it, you can fix the order by providing
23
+ # the seed, which is printed after each run.
24
+ # --seed 1234
25
+ config.order = 'random'
26
+ end
metadata ADDED
@@ -0,0 +1,206 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pocketbeuter
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Piotr Król
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-01-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: launchy
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: thor
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: colorize
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: webmock
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: vcr
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ description: command line interface to Pocket
126
+ email:
127
+ - pietrushnic@gmail.com
128
+ executables:
129
+ - pockerbeuter
130
+ extensions: []
131
+ extra_rdoc_files: []
132
+ files:
133
+ - .gitignore
134
+ - .rspec
135
+ - Gemfile
136
+ - LICENSE
137
+ - LICENSE.txt
138
+ - README.md
139
+ - Rakefile
140
+ - auth.md
141
+ - bin/pockerbeuter
142
+ - lib/pocketbeuter.rb
143
+ - lib/pocketbeuter/cli.rb
144
+ - lib/pocketbeuter/conf.rb
145
+ - lib/pocketbeuter/configfile.rb
146
+ - lib/pocketbeuter/get_access_token_and_username.rb
147
+ - lib/pocketbeuter/pocket.rb
148
+ - lib/pocketbeuter/version.rb
149
+ - pocketbeuter.gemspec
150
+ - spec/cli_spec.rb
151
+ - spec/configfile_spec.rb
152
+ - spec/fixtures/.pocketbeuterrc
153
+ - spec/fixtures/bar_default_account
154
+ - spec/fixtures/createapp
155
+ - spec/fixtures/emptyrc
156
+ - spec/fixtures/multiple_accounts
157
+ - spec/fixtures/no_default_account
158
+ - spec/fixtures/options
159
+ - spec/fixtures/vcr_cassettes/Pocketbeuter_CLI/VCR_example_group_metadata/records_an_http_request.yml
160
+ - spec/fixtures/vcr_cassettes/authorize.yml
161
+ - spec/fixtures/vcr_cassettes/get_access_token_and_username.yml
162
+ - spec/fixtures/vcr_cassettes/get_request_token.yml
163
+ - spec/fixtures/vcr_cassettes/google_body.yml
164
+ - spec/helpers.rb
165
+ - spec/spec_helper.rb
166
+ homepage: ''
167
+ licenses:
168
+ - MIT
169
+ metadata: {}
170
+ post_install_message:
171
+ rdoc_options: []
172
+ require_paths:
173
+ - lib
174
+ required_ruby_version: !ruby/object:Gem::Requirement
175
+ requirements:
176
+ - - '>='
177
+ - !ruby/object:Gem::Version
178
+ version: '0'
179
+ required_rubygems_version: !ruby/object:Gem::Requirement
180
+ requirements:
181
+ - - '>='
182
+ - !ruby/object:Gem::Version
183
+ version: '0'
184
+ requirements: []
185
+ rubyforge_project:
186
+ rubygems_version: 2.1.11
187
+ signing_key:
188
+ specification_version: 4
189
+ summary: command line interface to Pocket
190
+ test_files:
191
+ - spec/cli_spec.rb
192
+ - spec/configfile_spec.rb
193
+ - spec/fixtures/.pocketbeuterrc
194
+ - spec/fixtures/bar_default_account
195
+ - spec/fixtures/createapp
196
+ - spec/fixtures/emptyrc
197
+ - spec/fixtures/multiple_accounts
198
+ - spec/fixtures/no_default_account
199
+ - spec/fixtures/options
200
+ - spec/fixtures/vcr_cassettes/Pocketbeuter_CLI/VCR_example_group_metadata/records_an_http_request.yml
201
+ - spec/fixtures/vcr_cassettes/authorize.yml
202
+ - spec/fixtures/vcr_cassettes/get_access_token_and_username.yml
203
+ - spec/fixtures/vcr_cassettes/get_request_token.yml
204
+ - spec/fixtures/vcr_cassettes/google_body.yml
205
+ - spec/helpers.rb
206
+ - spec/spec_helper.rb